/writing-artifacts:readmefrom writing-artifacts
Writes, audits, or revises README.md files. Grounds claims in a file:line fact inventory, scores the first screen, orders sections as a reader funnel, and runs a checker for broken paths, links, anchors, commands, badges, emoji, and TODOs.
Ships in writing-artifacts. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A README is read by a stranger deciding, in about thirty seconds, whether this project is for them. Everything in it must be true of the repository as it stands today, and the first screen must answer the stranger's questions before it answers the maintainer's. This skill gives the procedure for getting there and a checker for the parts a script can verify. For sentence-level prose, apply writing-artifacts:writing-artifacts as well.
It applies to a new README, a rewrite, an audit of an existing one, or a README change inside a pull request. It does not decide what the project is, capture screenshots, or pick a license. When one of those is missing, say so and leave the decision to the owner.
Say only what a reader could verify from the repository, and mark what you could not verify. A README that overclaims is worse than a short one: the reader trusts it once.
Read the existing README, the manifest (package.json, pyproject.toml, Cargo.toml, .claude-plugin/plugin.json or equivalent), the CLI's own help output, .github/workflows/, the LICENSE file if any, and every doc the README links to. Note whether the repository is public or private (gh repo view --json visibility).
Before drafting, list every fact the README will state, each with its source as file:line or the command whose output shows it:
A fact with no source is marked unverified. Either find its source, run the command to confirm it, or leave it out. Never invent a command, flag, path or link because it is what such a project usually has.
The first screen is what shows before scrolling: roughly the title, badges and first twenty lines. Score each item present, missing, or not applicable:
Anything a notice, logo or badge row pushes below the first screen counts as missing.
Badges are claims, so each must be true and point at something real. Pick at most five, in this order, and only those that apply:
.github/workflows/.engines or equivalent.Leave out download counts, stars, "PRs welcome", chat links and anything decorative. A private repository needs GitHub's own workflow badge (https://github.com/<owner>/<repo>/actions/workflows/<file>/badge.svg) or a static badge: shields.io's GitHub endpoints cannot read a private repository and render as errors or as "repo not found". When no badge is true and useful, have none.
Each section serves a reader further along than the one before. Use this order and skip what does not apply:
Maintainer procedures (release steps, CI internals, how the docs are built) move to a doc under docs/ with a link from the README. Keep one home per fact: if a doc already holds it, link there rather than copying it.
List every noun a newcomer would not know: project-specific names, internal tools, acronyms, product names. For each, find its first use in the README. Define it in a clause there, link to where it is defined, or cut it. A term defined three sections after its first use counts as undefined.
#-name).sh or bash, one per line, with no $ prompt unless the block also shows output.From the repository root, run the bundled script. Its path is relative to this skill's base directory, as stated when the skill loaded (do not use ${CLAUDE_PLUGIN_ROOT}; it is unset in session shells):
node "<this skill's base directory>/scripts/check-readme.mjs" README.md
Options:
--cli "<name>=<help command>" declares a CLI the README documents, for example --cli "mytool=node bin/mytool.mjs --help". Every <name> <subcommand> in the README must then appear in that help output. Repeat it for each CLI.--private flags shields.io badges that need to read the repository from GitHub.--root <dir> sets the repository root (default: the git root above the README).--json prints the findings as JSON.It prints README.md:<line>: <kind> <message> per finding and exits 1 when there are any. Kinds: path (a backticked path that does not exist, or a machine path such as /Users/...), link (a relative link or image whose target is missing), anchor (a #anchor that matches no heading under GitHub's slug rules, in the README or the linked Markdown file), command (a npm, pnpm, yarn or bun script that package.json does not define, a node <file> whose file is missing, or a CLI subcommand absent from its help), badge (a workflow badge whose workflow file is missing, a license badge with no LICENSE file, a static version badge that disagrees with the manifest, or a shields.io GitHub badge on a private repo), emoji and leftover.
Fix every finding, or say in the report why it is a false positive. The checker covers what can be checked mechanically. Steps 3 to 7 remain reading checks, and passing the checker does not mean they pass.
When done, report in a few lines: the first-screen score before and after, what moved and why, what was cut and why, the facts left unverified, and anything only the owner can supply (a screenshot, a license, a statement of scope).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub jasonm4130/claude-skills --plugin writing-artifacts