Skip to content
Back to skills

Writing Readmes

ASecurity

Use when writing, overhauling, or reviewing a project's README (the front-door README.md of a repo). Produces a clear, scannable, source-grounded README that leads with what/why, adapts its section set to the repo type, keeps a lean quickstart distinct from full install, and links out to deeper docs instead of inlining them. Use also when a README \"isn't clear what the project is\" or has grown into a docs dump. Use this skill alone when only the README is wanted; writing-repo-docs produces ...

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 15, 2026
ai-agentsrustgogitapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 15, 2026

npx -y skills add smarzban/agent-sdlc --skill writing-readmes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Writing Readmes?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Writing Readmes
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/smarzban-writing-readmes/badge)](https://www.skillsdirectory.com/skills/smarzban-writing-readmes)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: writing-readmes
description: "Use when writing, overhauling, or reviewing a project's README (the front-door README.md of a repo). Produces a clear, scannable, source-grounded README that leads with what/why, adapts its section set to the repo type, keeps a lean quickstart distinct from full install, and links out to deeper docs instead of inlining them. Use also when a README \"isn't clear what the project is\" or has grown into a docs dump. Use this skill alone when only the README is wanted; writing-repo-docs produces the full essentials tree INCLUDING this front door (by this skill's method), and writing-technical-docs the internals. Triggers: \"write/fix the README\", \"README review\", \"the readme isn't clear\". Scope: standalone — for any repo's docs, independent of the Agent SDLC pipeline."
---

# Writing READMEs

A README is the **front door**. A newcomer should know *what this is, whether it's
for them, and how to start* within the first screen. Build that — not a docs dump.

**Announce at start:** "I'm using the writing-readmes skill to (re)write this README."

## Core principles

1. **Lead with the lede.** Title + one-sentence description + a short highlights
   list come first. What it does and why it exists, before any setup.
2. **What / why / how.** A good README answers all three, in that order.
3. **Quickstart ≠ install.** A lean, copy-pasteable "see it work" path is separate
   from the fuller, multi-path install/config. Don't merge them.
4. **Link out, don't bloat.** The README points into deeper docs (`docs/…`); it
   does not contain them. If a section is becoming reference material, move the
   body to docs and leave a short summary + link. (Too short is worse than too
   long — but the fix for "too long" is *relocate*, not delete.)
5. **Adapt to the repo type.** A library leads with install + import + API; a CLI
   with the one command; a service/app with what-it-does + a visual + quickstart +
   deploy. See `reference/anatomy-and-templates.md`.
6. **Everything must be true and runnable.** Commands, examples, defaults, and
   links are verified against the actual repo. No broken links; examples that
   actually run.
7. **Scannable.** Short sections, clear headers, bullets, copy-pasteable fenced
   blocks. Write for someone who has never seen the project.
8. **Write for humans *and* agents (GEO/SEO).** The README is also how AI search,
   coding agents, and crawlers find, match, and summarize the project. The same
   things that help a human skim help an agent retrieve: a front-loaded
   declarative "what is this," the **real high-intent terms** people actually
   search ("retrieval-augmented generation (RAG)", "self-hosted alternative to
   …", the stack names), and chunk-structured sections. Discoverability also
   needs things *outside* the README — repo metadata and (for docs sites) an
   `llms.txt`. See `reference/geo-and-agent-discovery.md`.

## Checklist (turn each into a tracked task)

1. **Assess** — repo type, what it does, audience, what deeper docs exist to link
   to, the front-door assets (LICENSE? CI? a UI worth a screenshot?), and the
   discoverability state (public? repo description/topics set? a docs site?).
2. **Choose the section set** — adapt the anatomy to the repo type.
3. **Write** — front-door discipline: lead with what/why, lean quickstart, link to docs.
4. **Verify** — examples accurate, links resolve, no stale claims, license handled.
5. **Optimize for discovery** — high-intent terminology, repo metadata, `llms.txt`
   (see `reference/geo-and-agent-discovery.md`).
6. **Report** — note what moved to doc links and flag any owner decisions.

## Phase 1 — Assess

- **Target scope.** Operate on the current working directory's repo unless given an explicit target
  path; confirm the target with the owner before acting on a self/special repo (the one hosting this
  skill, or one whose docs are deliberately non-standard) rather than assuming.
- **Project type & one-liner.** What is it in <120 chars, no jargon? (library / CLI
  / service / app / framework / monorepo — drives the section set.)
- **Audience.** Who reads this README — API consumers, operators, end users?
- **Deeper docs to link to.** Is there a `docs/` tree (or a guide) the README
  should point into rather than duplicate? If yes, the README slims down and links.
- **Front-door assets.** Is there a `LICENSE` file (don't invent one — flag if
  missing)? CI workflow (a status badge is cheap and trust-building)? A UI worth a
  screenshot (don't add a broken image — note it as a TODO for the owner if no
  asset exists)?
- **Existing README.** Read it. Salvage accurate content; relocate reference-heavy
  prose into docs links; note stale/contradicted claims to drop (verify against code).
  A README carrying the `repo-setup:seed` token is an intentional stub left by
  `repo-setup` — a fill-target for this skill, never a placeholder violation.

## Phase 2 — Choose the section set

Start from the ordered anatomy and keep only what applies. Read
`reference/anatomy-and-templates.md` for the full ordered list (with
required/optional) and the per-repo-type templates.

The near-universal core: **Title + one-liner → (badges) → (visual) → highlights /
what & why → quickstart → install → usage/config → link to docs → contributing →
license.** Add a table of contents once it scrolls. Drop sections that don't apply.

## Phase 3 — Write (front-door discipline)

- **First screen sells it:** title, one-sentence description, then 3–6 bullet
  **highlights** (the selling points / the problem solved). A reader decides here.
- **Quickstart** is the shortest real path to a working result — copy-pasteable,
  minimal, with expected output where it helps. Link to full install for the rest.
- **Install** is the fuller, multi-path setup (or just a link to `docs/install` if
  that's where it lives).
- **Usage/config**: small runnable examples; for big reference tables, show the
  common few and link to the complete reference in docs.
- **Documentation** section: explicit links into the deeper docs, routed by
  audience ("Users → …, Operators → …, Engineers → …").
- Keep the body scannable; relocate anything that reads like reference docs.

## Phase 4 — Verify

- **Examples & commands** are accurate to the repo (run/trace them; verify install
  steps, env var names, defaults, command names against the source).
- **Links resolve** — every relative link (especially into `docs/`) points at a
  real file; external links are valid. No broken links (a hard rule of the
  standard-readme spec).
- **No stale claims** — nothing describing removed features or wrong defaults.
- **License** present (a License section + a `LICENSE` file). If absent, FLAG it —
  do not invent a license.
- **Length sanity** — if a section ballooned, it belongs in docs; leave a summary + link.

## Phase 5 — Optimize for discovery (GEO / SEO / agents)

Make the project findable and correctly summarizable by AI search, coding agents,
and crawlers — not just readable. Read `reference/geo-and-agent-discovery.md` for
the full checklist. The essentials:

- **Lead with a declarative, keyword-true description.** The first sentence should
  state what it is using the terms people (and their agents) actually query. Name
  the category explicitly ("retrieval-augmented generation (RAG)", "CLI", "ORM"),
  the stack, and — when apt — an "open-source / self-hosted alternative to X"
  framing. Don't bury this under cleverness.
- **Structure for retrieval.** Short, self-contained sections under clear headings,
  with bullets/tables/code blocks — the chunks an LLM lifts and quotes.
- **Set the repo metadata** (the biggest discovery lever after "is it public"):
  the GitHub `description` + `topics`, and the package-manifest description, with
  the same high-intent terms. Often matters more for *discovery* than README prose.
- **Add an `llms.txt`** (see [llmstxt.org](https://llmstxt.org/)) when there's a
  docs tree/site: a top-level curated Markdown map pointing agents at the docs —
  the GEO analog of `sitemap.xml`.
- **Be specific and accurate.** GEO favors concrete, current, authoritative detail
  (real numbers, real commands) over vague marketing; wrong facts get quoted wrong.

Metadata changes and "make it public" are often **owner decisions** — do what you
can (propose/set metadata, add `llms.txt`) and flag the rest.

## Phase 6 — Report

State what the new README does, what content you **relocated to doc links** (so
nothing accurate was lost), what **discoverability** changes you made (metadata,
`llms.txt`, terminology), and **flag owner decisions** you couldn't make (missing
license, a screenshot to add, making the repo public, a tagline to confirm).

## Red flags (stop and fix)

- The reader can't tell what the project *is* from the first screen.
- Quickstart is tangled with full provider/config detail.
- The README re-explains everything instead of linking to existing docs.
- A broken relative link, or an example/command that doesn't actually work.
- An invented license, or a `![screenshot](…)` pointing at a file that doesn't exist.
- Reference tables inlined when a `docs/` reference already exists.
- The category/stack terms a person would *search for* are missing — an agent
  can't match what the README never names.
- Shipping a README without checking the repo's `description`/`topics` metadata
  (the discovery lever the README can't fix on its own).

Files in this skill

  • SKILL.md9.4 KB
  • reference/anatomy-and-templates.md4.8 KB
  • reference/geo-and-agent-discovery.md4.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.