Creating a new README for an application, CLI tool, internal tool, template, or framework
Rewriting an outdated or weak README
Improving after major repo changes (new tooling, restructure)
Adapting README for a different audience
Do NOT use when:
Writing a README for a reusable package or library → use readme-writing-package instead
Fixing minor typos or updating a single section
Writing reference docs that belong in separate files
Only adding a badge or version bump
Goal
Write a README that is accurate, evidence-based, scannable, and useful for
the intended audience. Reflects the real repository — not assumptions.
Core principles
Analyze first, write second — inspect the repo before writing a single line
Evidence-based only — every command, setup step, and feature must exist in the repo
Strong quickstart over exhaustive noise — a reader should get started in 30 seconds
Right scope — high-level overview in README, deep content in dedicated docs
Match the repo type — a package README differs from an app, CLI tool, or framework
Re-analyze every time — never trust cached knowledge of the repo; the README that drifted yesterday is the README the model wrote from memory
Preserve existing visual identity — banner, badges, profile/role grids, official logo lockups stay byte-identical unless the user explicitly asks to change them
Procedure
0. Re-analysis gate — MANDATORY before any writing
Before drafting a single line, run a fresh repository inspection in this
session. Do not rely on prior knowledge, prior turns, or the existing README
prose. Produce an explicit evidence ledger:
ledger:
package: <name + version from manifest>
description: <verbatim from manifest>
cli_entry: <bin / entry from manifest, if any>
commands: <list of real commands from Taskfile / Makefile / package.json scripts>
install: <verified install path(s) from scripts/install.* or docs>
doc_targets: <list of /docs files actually linked from the new draft>
counts: <skills / rules / commands / personas / advisors — if surfaced as badges>
visual_keep: <line range of existing README header, banner, badge block to preserve>
If any cell is unknown, run ls, grep, find, or read the file before
writing — never invent. If the user asks to "use the existing banner",
locate the exact source lines and reproduce them byte-for-byte, including
the surrounding HTML.
Only include sections that provide value. Candidates:
Title + one-line summary — always
Why / what problem it solves — if not obvious from name
Key features or capabilities — if more than a trivial tool
Requirements — only if non-obvious
Installation / setup — always
Usage / quickstart — always (most important section)
Configuration / customization — if applicable
Development workflow — if repo accepts contributions
Testing / quality — if tooling exists
Project structure — if non-trivial
Contributing — if open or team project
License — if applicable
Do NOT include sections "because READMEs usually have them."
Skip empty or near-empty sections entirely.
4. Write evidence-based content
Rules:
Only document commands that actually exist in the repo
Only describe setup steps supported by scripts/configs
Only claim features confirmed by code or docs
If something is unclear: inspect more or ask — never invent
Formatting:
Tables for structured comparisons (tools, options, features)
Code blocks for every command (copy-pasteable)
Short paragraphs — max 3 sentences before a break
Directory trees for project structure (use tree format)
Badges only if they link to live CI/release status
5. Optimize for the first screen
A reader scanning the README should answer within 10 seconds:
What is this?
Why does it exist?
How do I install/start it?
The first screen (before scrolling) must contain the title, summary,
and either install command or quickstart. Everything else comes after.
6. Size and structure
Keep the README scannable. If it grows past ~150 lines, add a Table of
Contents; past ~300 lines, split deep content out to /docs/ or
references/. Use <details> only for secondary, bulky content (never
for install, first example, or requirements).
→ See docs/guidelines/docs/readme-size-and-splitting.md for thresholds,
splitting strategies (reference-split, deep-link tables, collapsibles),
multi-audience handling, and anti-patterns.
7. Validate links and detect orphans — MANDATORY
For every internal link in the new draft:
Resolve the path. If it points to a file, test -f the path. If a
directory, test -d. Strip #anchor and ?query before the check.
For every anchor link (file.md#section), grep the target file for
the heading slug. Missing anchor = broken link.
Build the link-delta between the old README and the new one:
kept: linked in both
added: only linked by the new README
dropped: only linked by the old README
For every dropped target, search the rest of the repository
(grep -r "<path>" over AGENTS.md, docs/, dist/agent-src*/,
.augment/, packages/). If no other file references it, mark
orphan-candidate. Surface the list to the user — do not delete
silently.
8. Validate
After writing, verify:
Every documented command exists in the repo (Taskfile.yml, Makefile, package.json scripts, etc.)
Setup steps are reproducible (no missing prerequisites)
No features or capabilities are invented
First screen contract — within the first ~40 lines: project name, one-sentence pitch, install command (or pointer), and the primary CTA
Banner, badges, and any explicit "preserve" block from Step 0 are byte-identical to source
No dead sections (heading with 1-2 trivial sentences)
Scope is right — deep content moved to dedicated docs, not crammed in
Size below the "overloaded" threshold, or splitting is in place (see size guideline)
ToC present if README > 150 lines or > 6 top-level sections
Matches existing tonality if repo has established voice
Every internal link resolved per Step 7 — zero broken file or anchor links
Orphan-candidate list produced even if empty
Output format
Full README draft
Short note: detected repo type + audience
Link delta — kept / added / dropped with orphan-candidates flagged
Evidence ledger (Step 0) so the user can audit assumptions
Any uncertainties or assumptions that need confirmation
Gotcha
The model tends to write generic boilerplate instead of repo-specific documentation
The model tends to include commands or setup steps that don't actually exist in the repo
The model tends to over-document and bury the quickstart under walls of text
Existing README structure can be misleading — don't preserve weak structure blindly
READMEs for packages consumed by others need install/usage focus, not internal dev workflow
The model forgets to validate commands against Taskfile.yml / Makefile / package.json scripts
Per the charter's default-terse rule, the README opens with one
sentence stating what the project is.
Per the cite-don't-restate principle, "Installation" links to the
canonical install script, not its full contents.
Per the cheap-question check, "Quick start vs. full guide" is
offered only when the two paths produce different artifacts.
Pre-save self-check:
Does the opening paragraph carry marketing adjectives ("modern",
"comprehensive", "powerful")?
Are setup steps narrated instead of bulleted commands?
Are screenshots / GIFs present without explicit user request? A
data-bearing screenshot (dashboard, admin panel, form/list with real
content) without an explicit request is a stronger flag — route it through
screenshot-hygiene: anonymize sensitive
data and human-gate the embed before it ships. Illustrative / no-data visuals
(diagrams, placeholder-only UI) are the reconciled exception.
Is content duplicated from AGENTS.md rather than linked?
Do NOT
Do NOT invent features, setup steps, or commands not found in the repo
Do NOT copy generic README templates without adapting to the actual project
Do NOT overload with deep reference material — link to docs instead
Do NOT write for "everyone" — choose a real audience
Do NOT skip repository inspection before writing
Do NOT preserve weak structure from an existing README just because it exists
Do NOT add marketing language ("blazing fast", "revolutionary", "next-gen")
→ Final prose pass for audience-facing output: humanizer — remove AI-writing tells before delivery.
1---2name: readme-writing3description: Use when creating, rewriting, or significantly improving a README based on the actual repository structure, commands, and intended audience.4---56# readme-writing78## When to use910- Creating a new README for an **application, CLI tool, internal tool, template, or framework**11- Rewriting an outdated or weak README12- Improving after major repo changes (new tooling, restructure)13- Adapting README for a different audience1415Do NOT use when:1617- Writing a README for a **reusable package or library** → use `readme-writing-package` instead18- Fixing minor typos or updating a single section19- Writing reference docs that belong in separate files20- Only adding a badge or version bump2122## Goal2324Write a README that is accurate, evidence-based, scannable, and useful for25the intended audience. Reflects the real repository — not assumptions.2627## Core principles2829- **Analyze first, write second** — inspect the repo before writing a single line30- **Evidence-based only** — every command, setup step, and feature must exist in the repo31- **Strong quickstart over exhaustive noise** — a reader should get started in 30 seconds32- **Right scope** — high-level overview in README, deep content in dedicated docs33- **Match the repo type** — a package README differs from an app, CLI tool, or framework34- **Re-analyze every time** — never trust cached knowledge of the repo; the README that drifted yesterday is the README the model wrote from memory35- **Preserve existing visual identity** — banner, badges, profile/role grids, official logo lockups stay byte-identical unless the user explicitly asks to change them3637## Procedure3839### 0. Re-analysis gate — MANDATORY before any writing4041Before drafting a single line, run a fresh repository inspection in **this**42session. Do not rely on prior knowledge, prior turns, or the existing README43prose. Produce an explicit evidence ledger:4445```46ledger:47 package: <name + version from manifest>48 description: <verbatim from manifest>49 cli_entry: <bin / entry from manifest, if any>50 commands: <list of real commands from Taskfile / Makefile / package.json scripts>51 install: <verified install path(s) from scripts/install.* or docs>52 doc_targets: <list of /docs files actually linked from the new draft>53 counts: <skills / rules / commands / personas / advisors — if surfaced as badges>54 visual_keep: <line range of existing README header, banner, badge block to preserve>55```5657If any cell is unknown, run `ls`, `grep`, `find`, or read the file before58writing — never invent. If the user asks to "use the existing banner",59locate the exact source lines and reproduce them byte-for-byte, including60the surrounding HTML.6162### 1. Identify README type and audience6364Determine repository type:6566| Type | Audience | Priority |67|---|---|---|68| **Library/Package** | Developers consuming it | Install → Usage → API |69| **Application** | Team / contributors | Setup → Dev workflow → Architecture |70| **CLI tool** | End users | Install → Commands → Examples |71| **Template/Starter** | Bootstrappers | What you get → Quickstart → Customize |72| **Internal tool** | Team members | Purpose → Setup → Common tasks |73| **Agent/Framework** | AI tools + maintainers | What it is → Install → Architecture → Extend |7475### 2. Inspect the repository7677Read these files to extract truth:7879- `README.md` (existing, if any)80- `package.json`, `composer.json` — name, description, scripts, dependencies81- `Dockerfile`, `docker-compose.yml` — runtime setup82- `Taskfile.yml`, `Makefile` — available commands83- CI workflows — what gets tested, how84- `docs/`, `agents/` — existing documentation85- Config files — what tools are used8687Extract: project purpose, install path, main commands, requirements,88key workflows, testing/linting commands, contribution flow.8990### 3. Choose sections9192Only include sections that provide value. Candidates:93941. **Title + one-line summary** — always952. **Why / what problem it solves** — if not obvious from name963. **Key features or capabilities** — if more than a trivial tool974. **Requirements** — only if non-obvious985. **Installation / setup** — always996. **Usage / quickstart** — always (most important section)1007. **Configuration / customization** — if applicable1018. **Development workflow** — if repo accepts contributions1029. **Testing / quality** — if tooling exists10310. **Project structure** — if non-trivial10411. **Contributing** — if open or team project10512. **License** — if applicable106107Do NOT include sections "because READMEs usually have them."108Skip empty or near-empty sections entirely.109110### 4. Write evidence-based content111112Rules:113114- Only document commands that actually exist in the repo115- Only describe setup steps supported by scripts/configs116- Only claim features confirmed by code or docs117- If something is unclear: inspect more or ask — never invent118119Formatting:120121- Tables for structured comparisons (tools, options, features)122- Code blocks for every command (copy-pasteable)123- Short paragraphs — max 3 sentences before a break124- Directory trees for project structure (use `tree` format)125- Badges only if they link to live CI/release status126127### 5. Optimize for the first screen128129A reader scanning the README should answer within 10 seconds:1301311. What is this?1322. Why does it exist?1333. How do I install/start it?134135The first screen (before scrolling) must contain the title, summary,136and either install command or quickstart. Everything else comes after.137138### 6. Size and structure139140Keep the README scannable. If it grows past ~150 lines, add a Table of141Contents; past ~300 lines, split deep content out to `/docs/` or142`references/`. Use `<details>` only for secondary, bulky content (never143for install, first example, or requirements).144145→ See `docs/guidelines/docs/readme-size-and-splitting.md` for thresholds,146splitting strategies (reference-split, deep-link tables, collapsibles),147multi-audience handling, and anti-patterns.148149### 7. Validate links and detect orphans — MANDATORY150151For every internal link in the new draft:1521531. Resolve the path. If it points to a file, `test -f` the path. If a154 directory, `test -d`. Strip `#anchor` and `?query` before the check.1552. For every anchor link (`file.md#section`), grep the target file for156 the heading slug. Missing anchor = broken link.1573. Build the **link-delta** between the old README and the new one:158 - **kept**: linked in both159 - **added**: only linked by the new README160 - **dropped**: only linked by the old README161162For every `dropped` target, search the rest of the repository163(`grep -r "<path>"` over `AGENTS.md`, `docs/`, `dist/agent-src*/`,164`.augment/`, `packages/`). If no other file references it, mark165**orphan-candidate**. Surface the list to the user — do not delete166silently.167168### 8. Validate169170After writing, verify:171172- [ ] Every documented command exists in the repo (`Taskfile.yml`, `Makefile`, `package.json scripts`, etc.)173- [ ] Setup steps are reproducible (no missing prerequisites)174- [ ] No features or capabilities are invented175- [ ] **First screen contract** — within the first ~40 lines: project name, one-sentence pitch, install command (or pointer), and the primary CTA176- [ ] Banner, badges, and any explicit "preserve" block from Step 0 are byte-identical to source177- [ ] No dead sections (heading with 1-2 trivial sentences)178- [ ] Scope is right — deep content moved to dedicated docs, not crammed in179- [ ] Size below the "overloaded" threshold, or splitting is in place (see size guideline)180- [ ] ToC present if README > 150 lines or > 6 top-level sections181- [ ] Matches existing tonality if repo has established voice182- [ ] Every internal link resolved per Step 7 — zero broken file or anchor links183- [ ] Orphan-candidate list produced even if empty184185## Output format1861871. Full README draft1882. Short note: detected repo type + audience1893. **Link delta** — `kept` / `added` / `dropped` with orphan-candidates flagged1904. Evidence ledger (Step 0) so the user can audit assumptions1915. Any uncertainties or assumptions that need confirmation192193## Gotcha194195- The model tends to write generic boilerplate instead of repo-specific documentation196- The model tends to include commands or setup steps that don't actually exist in the repo197- The model tends to over-document and bury the quickstart under walls of text198- Existing README structure can be misleading — don't preserve weak structure blindly199- READMEs for packages consumed by others need install/usage focus, not internal dev workflow200- The model forgets to validate commands against `Taskfile.yml` / `Makefile` / `package.json scripts`201202## Frugality Standards203204Apply the [Frugality Charter](../../contexts/contracts/frugality-charter.md)205to every README you author.206207**Examples in this artifact:**208- Per the charter's default-terse rule, the README opens with one209 sentence stating what the project is.210- Per the cite-don't-restate principle, "Installation" links to the211 canonical install script, not its full contents.212- Per the cheap-question check, "Quick start vs. full guide" is213 offered only when the two paths produce different artifacts.214215**Pre-save self-check:**2161. Does the opening paragraph carry marketing adjectives ("modern",217 "comprehensive", "powerful")?2182. Are setup steps narrated instead of bulleted commands?2193. Are screenshots / GIFs present without explicit user request? A220 **data-bearing** screenshot (dashboard, admin panel, form/list with real221 content) without an explicit request is a stronger flag — route it through222 [`screenshot-hygiene`](../screenshot-hygiene/SKILL.md): anonymize sensitive223 data and human-gate the embed before it ships. Illustrative / no-data visuals224 (diagrams, placeholder-only UI) are the reconciled exception.2254. Is content duplicated from `AGENTS.md` rather than linked?226227## Do NOT228229- Do NOT invent features, setup steps, or commands not found in the repo230- Do NOT copy generic README templates without adapting to the actual project231- Do NOT overload with deep reference material — link to docs instead232- Do NOT write for "everyone" — choose a real audience233- Do NOT skip repository inspection before writing234- Do NOT preserve weak structure from an existing README just because it exists235- Do NOT add marketing language ("blazing fast", "revolutionary", "next-gen")236237→ Final prose pass for audience-facing output: [`humanizer`](../humanizer/SKILL.md) — remove AI-writing tells before delivery.
Run npx skillmds@latest add event4u-app/readme-writing in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Use when creating, rewriting, or significantly improving a README based on the actual repository structure, commands, and intended audience. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
event4u-app (@event4u-app) published this skill. Their other Agent Skills are listed on their SkillMD profile.