Generate readme
Skill tranviet0710/agent-skills/.github/skills/generate-readme
Generate a README.md file based on an existing implementation. Use when: writing a README, documenting a feature, create README from code, generate docs from implementation, document a project or folder.From its SKILL.md
npx -y skills add tranviet0710/agent-skills --skill generate-readmeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.6 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it
Generate README from Implementation
When to Use
Invoke this skill when the user says:
- "generate a README for this"
- "create a README based on the implementation"
- "document this feature / module / project"
- "write a README for [folder]"
- "generate docs from the code"
Procedure
Step 1 — Locate the Implementation
- Identify the target scope: a folder, a single file, or the entire workspace root.
- List all files in the target scope (recursively if a folder).
- Read the key source files — entry points, main modules, config files, and any existing partial docs.
- If a
TASKS.mdorPLAN.mdexists in the same folder, read it for context on intent and scope.
Step 2 — Extract Key Information
While reading the code, collect the following details:
| Category | What to look for |
|---|---|
| Purpose | What problem does this solve? What is the main feature/module? |
| Inputs / Outputs | CLI args, function params, API endpoints, events consumed/produced |
| Configuration | Environment variables, config files, feature flags |
| Dependencies | External packages, services, or APIs relied upon |
| Usage examples | Invocation patterns, code snippets, sample commands |
| Folder structure | Notable sub-folders and their roles |
| Setup / Installation | Build steps, install commands, prerequisites |
| Limitations / Notes | Known edge cases, TODOs, constraints |
Step 3 — Ask Clarifying Questions
Before writing, ask the user about anything that cannot be reliably inferred from the code:
- Target audience (internal devs, open-source contributors, end users)?
- Should usage examples be included? If so, in what language/format?
- Is there a specific README template or style guide to follow?
- Any sections to include or explicitly omit?
- License to include?
If all details are clear from the code and context, state: "The implementation is clear — no questions. Proceeding to generate README."
Wait for the user's answers before writing the file.
Step 4 — Write README.md
Create (or overwrite) README.md in the same folder as the target implementation, using the structure below. Omit any section where the information genuinely does not apply.
# <Project / Feature Name>
> <One-line description of what this does and why it exists.>
## Table of Contents
- [Overview](#overview)
- [Features](#features)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Configuration](#configuration)
- [Folder Structure](#folder-structure)
- [API / Interface Reference](#api--interface-reference)
- [Examples](#examples)
- [Contributing](#contributing)
- [License](#license)
---
## Overview
<2-4 sentences explaining the problem this solves and the approach taken.>
## Features
- <Feature 1>
- <Feature 2>
- ...
## Prerequisites
- <Runtime / tool with minimum version>
- <Any required service or credential>
## Installation
```bash
# Example install commands derived from package.json / Makefile / etc.
npm install
Usage
# Primary invocation / entry-point command
<Short explanation of the happy-path workflow.>
Configuration
| Variable / Key | Default | Description |
|---|---|---|
ENV_VAR_NAME | value | What it controls |
Folder Structure
<root>/
├── src/ # Source files
├── tests/ # Test suites
└── ...
API / Interface Reference
functionOrEndpointName(param: Type): ReturnType
<Description, param table, return value, example call.>
Examples
// Concrete usage example
Contributing
<How to run tests, lint, and submit changes.>
License
<License name and link, or "Internal use only.">
### Step 5 — Validate & Report
1. Re-read the generated `README.md` and verify:
- Every section references only real, confirmed details from the code.
- No placeholder text (e.g., `<Your text here>`) remains unfilled.
- Code blocks use the correct language tag.
- Markdown renders cleanly (no broken links, no orphan headings).
2. If any section is still unknown, either omit it or add a `<!-- TODO: ... -->` comment with a clear note.
3. Report to the user: list every section that was written, and any that were skipped and why.
What ships with it: 1 file
2.2 KB alongside SKILL.md
- README.md2.2 KB
Gives 0 of the 12 instructions most readme changelog skills give in ~1.0k tokens
Counted across 472 of the 478 authors here whose files we hold, read 2026-08-07
- Follow the keep a changelog formatin 31 of 472, across 26 files
- Run from the git repository rootin 20 of 472, across 7 files
- Save output directly to CHANGELOG.mdin 20 of 472, across 7 files
- Group commits into logical categoriesin 19 of 472, across 6 files
- Review the generated changelog before publishingin 19 of 472, across 6 files
- Omit empty sectionsin 19 of 472
- Apply changelog guidelines and brand voicein 18 of 472, across 5 files
- Exclude internal commits like refactoring and testsin 18 of 472, across 5 files
- Specify date ranges for focused changelogsin 17 of 472, across 4 files
- Convert technical commits into customer languagein 17 of 472, across 4 files
- Provide a migration guide for breaking changesin 15 of 472, across 10 files
- Group commits by conventional commit typein 13 of 472
Said here and by no other author read
- Identify the target scope of the implementation
- Read key source files and existing documentation
- Extract project metadata and usage details from code
- Wait for user answers before writing the file
- Write the README in the target folder
- Verify all details against the source code
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.