README Generator
Purpose
Produce a README that a new developer can go from clone to running code with, and keep
it truthful by deriving every claim from the repository's real files. For Go libraries
and services it can additionally produce a GETTING_STARTED.md tutorial.
When to Use / When NOT to Use
Use when:
- Creating a README for a new repository, or rewriting a stale one.
- Someone asks "write a getting-started guide" or "our README doesn't match reality".
- A project is being open-sourced or handed to another team.
Do NOT use when:
- The request is API reference material — use
api-documentation.
- The request is ADRs, runbooks, or deep-dive articles — use
technical-writing.
- The repository has no runnable artifact yet; document after the quickstart works.
Prerequisites & Assumptions
- Repository access is available; every claim must be derived from the actual code,
manifests (
go.mod, pom.xml, pyproject.toml), and CI configuration.
- The README is written in Markdown, English, with a working Quick Start that is
executed to verify before delivery.
- Code samples compile and run; error handling is shown, never swallowed with
_.
Step-by-Step Workflow
- Scan the repository — read the manifest, entry points, Makefile targets, CI
config, and LICENSE. List features from code, not from aspiration.
- Verify the quickstart — run the install + minimal usage commands yourself; the
Quick Start is only done when it exits successfully.
- Draft the README using the structure below, filling every section from evidence.
- Add usage examples — 3–5 modular scenarios covering normal operations, each with
expected output as a comment.
- Self-review — check badges match reality, commands match the Makefile, versions
match the manifest, and no placeholder text remains.
- Maintain — README updates ship in the same PR as the change that invalidates
them (new flag, renamed target, changed install).
Enterprise Rules & Standards (MUST / MUST NOT)
- MUST verify every command in the README by running it before delivery.
- MUST keep the Quick Start under ~10 lines and runnable as-is.
- MUST derive features and compatibility claims from code/manifests; mark anything
unverified explicitly.
- MUST state language/tool minimums exactly as enforced (e.g.
go 1.26 from
go.mod, python 3.14 from pyproject.toml).
- SHOULD include: badges (build, release, license), a table of configuration
options, and a Contributing link.
- MUST NOT include placeholder text, unrunnable snippets, or instructions that
contradict the Makefile/CI.
- MUST NOT claim tests/coverage/status the repo does not have.
README structure
1. Title + one-paragraph value proposition
2. Badges (CI, release, license)
3. Features (bulleted, from code)
4. Installation (prerequisites + command)
5. Quick Start (minimal runnable snippet + expected output)
6. Usage Examples (3–5 scenarios)
7. Configuration / API highlights (table)
8. Testing & Development (make targets)
9. Contributing (link to CONTRIBUTING.md) & License
Examples
Good — Quick Start with verified output:
```go
package main
import (
"fmt"
"log"
"github.com/example/orderlint"
)
func main() {
findings, err := orderlint.CheckFile("order.json")
if err != nil {
log.Fatalf("check failed: %v", err)
}
for _, f := range findings {
fmt.Printf("%s: %s\n", f.Rule, f.Message)
}
}
```
Expected output: `MISSING_TAX_ID: field taxId is required for region EU`
Bad — untested snippet:
## Quick Start
Just run the tool, it's easy! (no command, no output, unverifiable)
Why it fails: "just run" is not a command; a new user cannot reproduce anything.
Checklist
Common Pitfalls
- Aspirational features — listing capabilities the code does not have yet.
- Bit-rot commands — install steps referencing old package managers; CI can check
README commands in a nightly job.
- Wall of text — burying the Quick Start below philosophy paragraphs; lead with
running code.
- Duplicate tutorials — README duplicating GETTING_STARTED content; the README
links to it and stays lean.
References
1---2name: readme-generator3description: 'Generates a complete README.md (and GETTING_STARTED.md on request) for a project from its actual code and configuration. Trigger with "write a README for this repo", "our README is outdated", or "create a getting-started guide".'4metadata:5 source: https://skillmd.com/skills/pnguyen215/readme-generator6---78# README Generator910## Purpose1112Produce a README that a new developer can go from clone to running code with, and keep13it truthful by deriving every claim from the repository's real files. For Go libraries14and services it can additionally produce a GETTING_STARTED.md tutorial.1516## When to Use / When NOT to Use1718Use when:1920- Creating a README for a new repository, or rewriting a stale one.21- Someone asks "write a getting-started guide" or "our README doesn't match reality".22- A project is being open-sourced or handed to another team.2324Do NOT use when:2526- The request is API reference material — use `api-documentation`.27- The request is ADRs, runbooks, or deep-dive articles — use `technical-writing`.28- The repository has no runnable artifact yet; document after the quickstart works.2930## Prerequisites & Assumptions3132- Repository access is available; every claim must be derived from the actual code,33 manifests (`go.mod`, `pom.xml`, `pyproject.toml`), and CI configuration.34- The README is written in Markdown, English, with a working Quick Start that is35 executed to verify before delivery.36- Code samples compile and run; error handling is shown, never swallowed with `_`.3738## Step-by-Step Workflow39401. **Scan the repository** — read the manifest, entry points, Makefile targets, CI41 config, and LICENSE. List features from code, not from aspiration.422. **Verify the quickstart** — run the install + minimal usage commands yourself; the43 Quick Start is only done when it exits successfully.443. **Draft the README** using the structure below, filling every section from evidence.454. **Add usage examples** — 3–5 modular scenarios covering normal operations, each with46 expected output as a comment.475. **Self-review** — check badges match reality, commands match the Makefile, versions48 match the manifest, and no placeholder text remains.496. **Maintain** — README updates ship in the same PR as the change that invalidates50 them (new flag, renamed target, changed install).5152## Enterprise Rules & Standards (MUST / MUST NOT)5354- **MUST** verify every command in the README by running it before delivery.55- **MUST** keep the Quick Start under ~10 lines and runnable as-is.56- **MUST** derive features and compatibility claims from code/manifests; mark anything57 unverified explicitly.58- **MUST** state language/tool minimums exactly as enforced (e.g. `go 1.26` from59 `go.mod`, `python 3.14` from `pyproject.toml`).60- **SHOULD** include: badges (build, release, license), a table of configuration61 options, and a Contributing link.62- **MUST NOT** include placeholder text, unrunnable snippets, or instructions that63 contradict the Makefile/CI.64- **MUST NOT** claim tests/coverage/status the repo does not have.6566### README structure6768```text691. Title + one-paragraph value proposition702. Badges (CI, release, license)713. Features (bulleted, from code)724. Installation (prerequisites + command)735. Quick Start (minimal runnable snippet + expected output)746. Usage Examples (3–5 scenarios)757. Configuration / API highlights (table)768. Testing & Development (make targets)779. Contributing (link to CONTRIBUTING.md) & License78```7980## Examples8182Good — Quick Start with verified output:8384````markdown85```go86package main8788import (89 "fmt"90 "log"9192 "github.com/example/orderlint"93)9495func main() {96 findings, err := orderlint.CheckFile("order.json")97 if err != nil {98 log.Fatalf("check failed: %v", err)99 }100 for _, f := range findings {101 fmt.Printf("%s: %s\n", f.Rule, f.Message)102 }103}104```105106Expected output: `MISSING_TAX_ID: field taxId is required for region EU`107````108109Bad — untested snippet:110111```markdown112## Quick Start113114Just run the tool, it's easy! (no command, no output, unverifiable)115```116117Why it fails: "just run" is not a command; a new user cannot reproduce anything.118119## Checklist120121- [ ] Install and Quick Start commands executed successfully before delivery.122- [ ] Every feature listed is visible in the code or manifest.123- [ ] Versions/prerequisites match `go.mod` / `pom.xml` / `pyproject.toml`.124- [ ] Make targets referenced exist in the Makefile.125- [ ] Code samples handle errors; none swallow errors with `_`.126- [ ] No unfilled template markers or filler text anywhere in the document.127128## Common Pitfalls129130- **Aspirational features** — listing capabilities the code does not have yet.131- **Bit-rot commands** — install steps referencing old package managers; CI can check132 README commands in a nightly job.133- **Wall of text** — burying the Quick Start below philosophy paragraphs; lead with134 running code.135- **Duplicate tutorials** — README duplicating GETTING_STARTED content; the README136 links to it and stays lean.137138## References139140- Make a README: https://www.makeareadme.com/141- Standard Readme spec: https://github.com/RichardLitt/standard-readme142- Go doc comments (for example style): https://go.dev/doc/comment