Readme writing

From event4u-app/agent-config · View interactive version

Readme writing is an AI agent skill from the GitHub repository event4u-app/agent-config. Use when creating, rewriting, or significantly improving a README based on the actual repository structure, commands, and intended audience.

How to use this skill

Skill file

readme-writing

When to use

Do NOT use when:

Goal

Write a README that is accurate, evidence-based, scannable, and useful for

the intended audience. Reflects the real repository — not assumptions.

Core principles

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.

1. Identify README type and audience

Determine repository type:

| Type | Audience | Priority |

|---|---|---|

| Library/Package | Developers consuming it | Install → Usage → API |

| Application | Team / contributors | Setup → Dev workflow → Architecture |

| CLI tool | End users | Install → Commands → Examples |

| Template/Starter | Bootstrappers | What you get → Quickstart → Customize |

| Internal tool | Team members | Purpose → Setup → Common tasks |

| Agent/Framework | AI tools + maintainers | What it is → Install → Architecture → Extend |

2. Inspect the repository

Read these files to extract truth:

Extract: project purpose, install path, main commands, requirements,

key workflows, testing/linting commands, contribution flow.

3. Choose sections

Only include sections that provide value. Candidates:

  1. Title + one-line summary — always
  2. Why / what problem it solves — if not obvious from name
  3. Key features or capabilities — if more than a trivial tool
  4. Requirements — only if non-obvious
  5. Installation / setup — always
  6. Usage / quickstart — always (most important section)
  7. Configuration / customization — if applicable
  8. Development workflow — if repo accepts contributions
  9. Testing / quality — if tooling exists
  10. Project structure — if non-trivial
  11. Contributing — if open or team project
  12. 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:

Formatting:

5. Optimize for the first screen

A reader scanning the README should answer within 10 seconds:

  1. What is this?
  2. Why does it exist?
  3. 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:

  1. 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.

  1. For every anchor link (file.md#section), grep the target file for

the heading slug. Missing anchor = broken link.

  1. Build the link-delta between the old README and the new one:

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:

Output format

  1. Full README draft
  2. Short note: detected repo type + audience
  3. Link delta — kept / added / dropped with orphan-candidates flagged
  4. Evidence ledger (Step 0) so the user can audit assumptions
  5. Any uncertainties or assumptions that need confirmation

Gotcha

Frugality Standards

Apply the Frugality Charter

to every README you author.

Examples in this artifact:

sentence stating what the project is.

canonical install script, not its full contents.

offered only when the two paths produce different artifacts.

Pre-save self-check:

  1. Does the opening paragraph carry marketing adjectives ("modern",

"comprehensive", "powerful")?

  1. Are setup steps narrated instead of bulleted commands?
  2. 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

CODE0: anonymize sensitive

data and human-gate the embed before it ships. Illustrative / no-data visuals

(diagrams, placeholder-only UI) are the reconciled exception.

  1. Is content duplicated from AGENTS.md rather than linked?

Do NOT

→ Final prose pass for audience-facing output: humanizer (gtm-marketing pack) — remove AI-writing tells before delivery.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.