Keep a repository's README for the person deciding whether and how to use it, its AGENTS.md (or a CLAUDE.md read through it) for the agent working inside it, and the manifests hosts read first (package.json, plugin and marketplace files, agents/openai.yaml) on the repository's one name: audit them with the bundled script, then redraft each file from the repository for its reader, carrying every fact the old ones held, and fix each disagreeing manifest. Use when writing, rewriting or reviewing...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Re0 Readme?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/lilmgenius-re0-readme)
---
name: re0-readme
description: "Keep a repository's README for the person deciding whether and how to use it, its AGENTS.md (or a CLAUDE.md read through it) for the agent working inside it, and the manifests hosts read first (package.json, plugin and marketplace files, agents/openai.yaml) on the repository's one name: audit them with the bundled script, then redraft each file from the repository for its reader, carrying every fact the old ones held, and fix each disagreeing manifest. Use when writing, rewriting or reviewing a README or an AGENTS.md, when an agent-only command shows up in a README or marketing copy in an agent guide, when deciding which file a section belongs in, or after a rename. Not for contracts, ledgers, changelogs or release notes."
---
Audit a repository's README, AGENTS.md and manifests with the bundled script, redraft both files from the repository for their readers on every write run, and correct each manifest that disagrees with the repository.
## Goal
README.md serves a person deciding whether and how to use the repository. AGENTS.md serves an agent working inside it: layout, commands, gates, conventions. Each line lives in the file whose reader needs it. A fact both readers need takes one form per reader (the address a person opens in README, the configuration an agent maintains in AGENTS.md); neither file restates the other's procedure, and each links rather than copies. The manifests a host or registry shows before either file is opened (package.json, `.claude-plugin/` and `.codex-plugin/` plugin files, marketplace files, each skill's `agents/openai.yaml`) answer to the repository's one name, point at its own address, and list exactly the skill folders it ships, so a rename that reaches README but not a manifest leaves the old name on every host that lists it.
The trigger is a README or AGENTS.md that is about to be written, was just written, or is under review, or a line in one suspected of serving the other file's reader. The input is the repository root (the repository the request is about, or the working directory's when none is named), and optionally the kind, extra local-state folder names, and whether the run may rewrite or must only report.
Every run reports the baseline audit, its kind and source, each finding's rule id, file, line and severity, and a keep list with reasons. A review-only run reports the proposed moves and the proposed gate, then stops with no edit, after audit or hosted audit. A rewrite reports the edited files, the after audit with what it dropped, the hosted audit or its unresolved failure, and the gate it added or why it added none.
A write run redrafts both files from the repository every time, whether the baseline is green or red: the audit finds a line written for the wrong reader, never a line that stopped being true, and a pass that edits the old text keeps its framing. The draft replaces old text only where it says the thing better or truer, so a run whose draft improves nothing leaves the files unchanged, and zero edits is a successful run.
## Workflow
1. **Run the audit before any edit** and keep its output as the baseline. From this skill's folder:
```
node scripts/audit.mjs [<repo-root>] [--kind app|cli|library|skills] [--loop-dir <name>]... [--since <commit>] [--host <owner/repo>] [--strict] [--json] [--rules]
```
It reports each finding with its rule id, file, line and severity, sorted by file, line, then rule id. `--since <commit>` adds a note for each link, URL, code span or fenced line README.md or the agent guide held at that commit that neither file, nor a local Markdown file they link, holds now. `--json` prints the result as one JSON object; `--rules` prints every rule id with its severity per kind. Exit codes: 0 no fail finding; 1 a fail finding, any finding under --strict, or AGENTS.md missing; 2 a usage error or an unreadable input (unknown kind, a root that is not a directory, a package.json that does not parse, a `--since` that names no commit). An exit of 2 is a broken run, never a red audit: fix the command or the input and run again. When only CLAUDE.md exists, read it as the agent guide and report the missing AGENTS.md failure; a rewrite may create AGENTS.md as the guide or a link to CLAUDE.md, then rerun the audit. A review proposes that repair without writing.
2. **Check the kind.** The kind is detected from repository files unless `--kind` is given; compare it with what the repository ships and pass `--kind` when detection is wrong. A dot folder the repository's own .gitignore excludes is treated as local state, and `--loop-dir` adds one more name per use, so pass it for a local-state folder the .gitignore does not name. The kind decides severity: commands are product surface for a CLI, agent vocabulary is the subject of a skills catalog, pictures are product for an app.
3. **Read every finding in context.** A match is a lead, never a verdict: a troubleshooting variable can belong in a README, and a contributor test command can stay as a note. Decide move, rewrite, or keep for each finding, and write the reason for each keep into the keep list, which goes in the report rather than a file. When a fact is copied into both files, or into a third doc, beyond the one-form-per-reader split, call the Skill tool with "ssotize" (`paperthin:ssotize`).
4. **Stop here on a review request.** A request to review, audit or check reports the baseline, the proposed move for each finding, the keep list and the gate step 14 would add, and edits nothing. Continue only when the request is to write, fix or rewrite the files.
5. **Draft both files from the repository, not from their old text.** Note the commit that holds the files the run started from, and report any edit to them no commit holds, since the dropped-line check cannot see it. Set the old files aside, with step 3's dispositions kept for step 10, read what the repository is now (its code, manifests, scripts, tests, measurements and the docs it links), and write each file as if none existed, by steps 6 to 9.
6. **Rewrite README for its reader**, in the language that reader reads, which the repository's owner or its sibling repositories set, never the language the code happens to be written in: lead with one sentence saying what the product is, then what it does today as measured, then a visible result or usage example, the shortest working setup, supported environments, dependencies that matter, and links to deeper docs. A product that does less than it was built to do says so near the top, with the measurement, and says what it was designed for only as the goal; a README describing the design as the present misleads the reader the file exists for. In list tables, turn grouping columns into sections, show status with an icon and a word, and give the legend once. Keep operational detail only where it helps a person use or contribute. When stack, vendor or tool nouns in README stand for a mechanism, call the Skill tool with "detool" (`paperthin:detool`).
7. **For a visual product, put real product images before long explanation.** Capture each after the scene has finished loading its fonts, images and data, and inspect a frame before publishing. From the day the product runs on phones or other devices, show their screens beside the desktop screen and capture them with a repository script using committed example data. Image sizes and folders follow the repository's convention.
8. **Where motion shows the product better than a still, embed a video the host plays.** A repository-relative or raw video link is only a download. On GitHub the player is a `https://github.com/user-attachments/assets/<id>` URL alone in its paragraph, the address GitHub gives a file attached to an issue or pull request comment: drop the file into a comment box, which returns the URL, or attach it from GitHub's CLI to a comment it posts. Post the comment that carries the file, since how long GitHub keeps an upload no posted comment links is unverified, and keep the original in the repository or a release asset, since a deleted attachment stops playing. Directly above or below the player put a poster image or GIF with alt text, linked to that kept original, and a line saying what the video shows, for hosts and agents that cannot play it. Then check each surface that renders the README: on the host, play it signed in and, for a public repository, signed out (a private repository's attachments open only to readers with access to it); on a surface that cannot play video (a package registry page, a mobile client, a plain-text copy for agents), the poster, its link and the line are all present. A surface not checked, or a run with no browser, leaves the video unverified.
9. **Rewrite AGENTS.md for its reader**, the agent, in English unless the repository's contract names another language for it; a README written for Korean readers does not move AGENTS.md into Korean. Open with which document owns which kind of fact, then the repository map, run commands, gates with what each protects, failure rules with their evidence, document conventions and commit conventions. After the owner table, call the Skill tool with "re0-order" (`paperthin:re0-order`) to put sections and listings in one stated order. A rule a check enforces names that check beside it, so an agent can run it; a measured case stays one sentence of evidence, and explanation meant for a person moves to README. Link contracts and evidence in their original language rather than translating them. When either file has bloated past its load-bearing density, call the Skill tool with "debloat" (`paperthin:debloat`).
10. **Lay each draft over its old file.** Now read the old file end to end beside the draft: take the draft's line where it says the thing better or truer, keep the old wording where the draft says the same thing no better, and carry in each fact the draft missed (a measured case, a fix someone learned the hard way, an image, a link). Where the draft improves nothing, the old file stays as it was. Text carried in has not met the passes steps 6 and 9 call, so run them again on each file this step changed.
11. **Align the manifests** the audit names: give each the repository's name (an npm name in its lowercase form), point each address at the repository's own origin, list every skill folder a plugin ships and nothing else, and give each skill an `agents/openai.yaml` whose default prompt names `$<skill>`. A manifest the repository generates is fixed at its generator.
12. **Rerun the audit with `--since <commit>`**, the commit step 5 noted, and read both files and the manifests as their intended readers would. Each dropped line is a fact the old files held that neither file nor a doc they link now holds: place it, report it as stale when what it names no longer exists, or hold its deletion for approval.
13. **Project the hosted surface from the manifests** with `node scripts/audit.mjs --host <owner/repo>`, which reads the About, the community profile, the README size and, when a custom social preview is set, its size. The manifests a host shows from (`package.json`, the `.claude-plugin` plugin and marketplace files, the `.codex-plugin` and `.cursor-plugin` plugin files) are the one source of the About: the script first fails manifests that disagree (a description that is neither the first one nor `package.json`'s long form, a keyword one carries and another lacks, more than 20 keywords), then computes what they imply (the first manifest's description and homepage, every keyword as a GitHub topic beside the kind's fixed topics) and fails a description, topic set or homepage that differs. Fix a disagreement in the manifests or the generator that writes them, then run `--host <owner/repo> --fix`, which writes the About with the host's own command and audits what the host serves afterwards, until it exits 0; a name the repository no longer uses is corrected in its manifest the same way. A repository with no manifest takes its About from the README opening: an empty description or no topics fails, a rewrite writes them from the opening it settled, and only an existing description that disagrees with the opening as a judgment about the product is proposed. A review run proposes every write. A setting that trades one gain for a loss is printed as an option, never a finding, and never fails a run: no custom social preview keeps GitHub's default card with live stars, forks and contributors, so the report tells the owner it can be changed and leaves the choice to them.
14. **Add the gate.** When the repository keeps a gate list (a check script, a CI workflow, a commit hook) and nothing in it runs the audit, a rewrite whose after audit exits 0 adds it: copy the script beside the repository's other gate scripts with a comment naming where it came from, and run that copy from the gate list on the repository root without `--host`, which needs the host's login, so the gate runs on a fresh clone. Never point a gate at a path that exists on one machine. Name the new gate in AGENTS.md beside the others, with what it protects. A repository with no gate list gets none, and while a fail finding stands the gate is proposed instead.
15. **Taste-test the rewrite**: call the Skill tool with "sip" (`paperthin:sip`) before reporting.
## Rules
- When the host has no Skill tool, read and follow each named installed skill directly; if it is unavailable, report the missing step and do not claim it ran.
- The script owns the rule table. Name the script, its flags and exit codes, and never restate the rules; `--rules` prints them.
- An explanation never changes the exit code. An accepted note can pass without `--strict`; a kept fail stays red. Correct the kind, or propose a change to the repository's own copy of a rule when justified, or report the gate as unresolved. Never claim a prose exception passed it.
- Moving content loses nothing: a line leaving one file lands in the other, in a linked doc, or in the keep list with its reason. Deleting a fact outright needs the human's approval.
- Review requests report only. Rewrite only when the request is to write, fix or rewrite the files.
- Edit safely: assert each target line exists before replacing it and report a MISS, edit unicode-safe, act per occurrence, never by blanket sweep.
- Contracts, ledgers, changelogs and release notes are out of scope.
- Two changes wait for the human's explicit approval, and the run reports each as a proposal until it arrives: deleting a fact that has no other home; changing a rule in the repository's vendored copy of the script.
## Verification
Before finishing, confirm:
1. Every report includes the baseline and kind source; a rewrite also includes the after audit and hosted result, while a review run stops at its stated exit.
2. Every finding is moved, rewritten, or kept with a stated reason, or has a proposed disposition in a review, and no fail finding is reported as passed by explanation.
3. No fact was lost: in a rewrite, every line the `--since` rerun reports dropped was placed, reported stale, or held for approval.
4. For a rewrite, README opens with what the product is, and the agent guide opens with which document owns what.
5. For a rewrite, README states what the product does today as measured, in the language its reader reads, and the hosted About is the projection of the manifests (or, with none, of that opening) with the host audit at exit 0, or the one description left as a judgment call is proposed.
6. For a rewrite that embeds a video, every surface step 8 names passed its check, or the report names the video unverified with each surface not checked.
7. A rewrite added the gate, or the report says why it did not (no gate list, a fail finding still standing); every approval still open is named in the report.