/paperthin:re0-readmefrom paperthin
Audits and redrafts README, AGENTS.md, manifests, and llms.txt for a repository, ensuring each file serves its intended reader and all manifests agree on the repository name and contents.
Ships in paperthin. 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.
Audit a repository's README, AGENTS.md, manifests and llms.txt with the bundled script, redraft both files from the repository for their readers on every write run, and correct each manifest and llms.txt entry that disagrees with the repository.
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/, .codex-plugin/ and .cursor-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. An llms.txt, the plain-text entry a web chat is handed instead of the repository page, reaches each file it lists at that file's absolute raw address. A skills catalog, the kind of repository a plugin directory lists, ships llms.txt alone, since the directory's validator fetches a full copy of the docs (an llms-full.txt) too and can time out on it; any other repository ships that full copy beside it, every listed file in one text with absolute links.
The trigger is a README, AGENTS.md or llms.txt that is about to be written, was just written, or is under review, or a line in README or AGENTS.md 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 (--loop-dir), 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, a keep list with reasons, and the hosted audit or why it could not run. A review-only run reports the proposed moves and the proposed gate, then stops with no edit. A rewrite reports the edited files, the after audit with what it dropped, 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.
Run the audit before any edit and keep its output as the baseline. From this skill's folder, naming the repository root by its absolute path:
node scripts/audit.mjs <repo-root> [--kind app|cli|library|skills] [--loop-dir <name>]... [--since <commit>] [--strict] [--json] [--rules]
node scripts/audit.mjs <repo-root> --host <owner/repo> [--kind app|cli|library|skills] [--fix] [--strict] [--json]
It reports each finding with its rule id, file, line and severity (fail, warn or note; the host audit uses fail and review, and prints a trade-off as an option that never fails), 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. The second form audits the hosted surface and, with --fix, writes it (step 13). --json prints the result as one JSON object; --rules prints every rule id with its severity per kind, the host audit's included. 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 inside this skill's folder, named or taken from the working directory, a root that is not a directory, a manifest 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, the script audits it as the agent guide and still fails the missing AGENTS.md; a rewrite may create AGENTS.md as the guide or a symlink to CLAUDE.md, then rerun the audit. A review proposes that repair without writing. An AGENTS.md whose whole content is one Markdown file's name, the way git checks out a symlink where links are off, is audited as the file it names, by --since too, and fails as missing when that file does not exist or lies outside the repository. An AGENTS.md holding only an import line (@CLAUDE.md) fails as well, since a host that reads the file as written gets that line and no guide.
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.
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). It reports before any edit and edits only after approval, so on a review request its report is the proposed move and its plan is never put to approval.
Stop here on a review request. A request to review, audit or check runs step 13's hosted audit without --fix, reports the baseline, the hosted audit, the proposed move for each finding and each About write, 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.
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), read the READMEs of the two or three most-starred repositories the host's search finds doing what this one does for their shape, never copying them, and write each file as if none existed, by steps 6 to 9.
Rewrite README for its reader, in the language that reader reads, which the repository's owner or its sibling repositories set (when neither does, the current README's language, or English for a first README), 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. Each install route in that setup is one line the reader pastes once, its commands joined with && and none repeated in another line, with any step no command can take (a sign-in, a restart of the host) written beside it. A reader who would rather not choose gets one line too: the repository address to hand an agent, and the raw address of llms.txt for a web chat when the repository has one. 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. Where nothing measures the product, state what its tests or a run you make show, named as such, and never a figure no run produced. 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).
For a visual product, put real product images before long explanation. Capture each with a repository script that opens the product on committed example data and waits until the scene has finished loading its fonts, images and data, and inspect a frame before publishing. When the repository has no such script, write it, and when its CI does not run the script on every change to a screen it captures, add that job, committing or proposing the retaken pictures, so a changed screen never leaves its old picture in the README. From the day the product runs on phones or other devices, the script captures their screens too, shown beside the desktop screen. Image sizes and folders follow the repository's convention.
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 post it with gh issue comment <number> --attach <file> (gh pr comment on a pull request), whose posted comment carries the URL. 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.
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. The map says where the repository's local state lives when the checkout only links to it (another worktree or checkout, reached by a symlink or junction), so an agent never commits it. The commit conventions say how the default branch moves, such as by pull request only. Once the draft is written, call the Skill tool with "re0-order" (paperthin:re0-order) to put the sections after the owner table, which stays first, and the 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). Compression does not clear a guide the audit flags as too large or too long for a host: move whole sections, the largest self-contained one first, into the doc or skill that owns their fact and link each from the owner table, never raising a host's cap, squeezing a load-bearing rule, or pulling a section back in by a reference the host loads with the guide.
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.
Align the manifests and llms.txt the audit names: give each manifest 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>. Give each llms.txt entry into the repository a file that exists, at its absolute raw address. In a skills repository, remove the full copy beside it once llms.txt lists each file the copy carried; in any other, write llms-full.txt beside it, each listed file in one text with its links made absolute. A manifest, llms.txt or llms-full.txt the repository generates is fixed at its generator.
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.
Project the hosted surface from the manifests with node scripts/audit.mjs <repo-root> --host <owner/repo> [--kind <kind>], where <owner/repo> is the repository's GitHub origin (git remote get-url origin) and the kind is the one step 2 settled, since the topics it projects depend on the kind. --host reads and writes a GitHub repository through the signed-in GitHub CLI (gh) and exits 2 when it cannot (another host, no gh, no sign-in); beside the root it takes --kind, --fix, --strict and --json, and refuses --loop-dir, --since and --rules. It reads from the host the About, the community profile, the README size and, when a custom social preview is set, the preview's size; it reads the manifests from <repo-root>, so the About projects from the manifests step 11 fixed before anyone pushes them, and without a root it reads them on the host's default branch. The manifests are the one source of the About: the script fails manifests that disagree with each other, then fails each About field that differs from what they project. Fix a disagreement in the manifests or the generator that writes them, then run the same command with --fix, which writes the About with gh repo edit 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. --fix writes only what the manifests project, so where they hold no description or no keywords, add them to the manifests. A repository with no manifest takes its About from the README opening instead, written by hand as gh repo edit <owner/repo> --description "<the opening sentence step 6 settled>" --add-topic <topic>, each topic naming what that opening says the repository is, then audited again until it exits 0; in that repository alone, an existing description that disagrees with the opening as a judgment about the product is proposed rather than written. 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.
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. When llms.txt lists the repository's own files, a script writes it in the llmstxt.org form from those files (and llms-full.txt where step 11 keeps one), and the gate list runs that script and fails on any byte the committed copy differs from its output; write the script with the gate when the repository has none. Name each 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.
Taste-test the rewrite: call the Skill tool with "sip" (paperthin:sip) before reporting.
--rules prints them.--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.ssotize puts to approval in step 3.Before finishing, confirm:
--since rerun reports dropped was placed, reported stale, or held for approval.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
readme, agents.md, llms.txt, manifest-audit, documentation-review
npx claudepluginhub lilmgenius/paperthin --plugin paperthin45 skills in this plugin
/aimWhen data lands with a thin ask (files, a repo, a paste, a chat scrollback), read it and propose what the user is trying to do with it for them to confirm. Use the moment material arrives without a fully-formed ask, or when the ask reads thinner than the data suggests./autobahnCarve guardrail-adjacent items out of scope with safe alternatives before risk-adjacent work starts, then run the safe remainder at full strength in a fresh subagent that only ever sees the carved prompt, never the risky input. Use when a task includes stealth, scraping, privacy, IP, policy, licensing, security, or other safety-adjacent material that could be silently dropped, over-elaborated, or needlessly diluted. Fires on the impulse, not only the topic: the moment you notice yourself about to hedge, soften, silently skip, or brace for a refusal, carve before you execute./Other plugins' skills for the same job