/readme:readmefrom readme
Writes, restructures, audits and beautifies a repository's README.md, its landing page on GitHub, Forgejo, Codeberg or Gitea, from facts in the repo. Detects the forge from the git remote, then applies that forge's badge URLs, relative links, alerts and logo rules. Section order by project type, a scored audit, honest badges. Use when asked to write, review, fix, reorder or polish a README or a repo's front page. Not for docs drift in docs/ or config references (`docs-audit`) or changelogs and release notes (`gh-release`, `forgejo-release`).
Ships in readme. 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 a landing page and a router, not a manual. In a minute a stranger should know what the project is, why to pick it over the obvious alternative, whether it fits their stack and licence, whether it is alive, and what to run first. Then it points them at the docs. A reader who decides not to use the project is a good outcome too, so don't try to stop that.
Run git remote -v. The forge decides the badge URLs, where a README is looked up, which images and HTML survive, and which CLI to use.
| Signal | Forge |
|---|---|
github.com, or a host gh auth status --hostname <host> knows | github |
codeberg.org; a host where curl -fsS https://<host>/api/forgejo/v1/version answers; a .forgejo/ directory or .gitea/workflows | forgejo |
With several remotes, ask which one hosts the landing page and never assume origin. When no signal settles it (no remote, an unknown self-hosted host) and the answer changes the output, ask once. Then read the matching reference in full before you write anything: references/github.md or references/forgejo.md. A Gitea host is treated as forgejo, but the reference was checked against Forgejo only.
What differs, with the detail in those two files:
| github | forgejo | |
|---|---|---|
| README lookup | .github/, then root, then docs/ | root, then docs/, then .forgejo/ or .gitea/, then .github/ |
| CI workflows | .github/workflows/ | .forgejo/workflows/ or .gitea/workflows/ |
| CI and release badges | shields.io or the native badge.svg | Forgejo's own badge.svg and badges/release.svg routes, or shields gitea/ endpoints |
| Light/dark logo | <picture> with prefers-color-scheme sources | <picture> is stripped; use one SVG that paints its own background |
| Table of contents | the Outline button generates one | no verified outline; keep headings clear |
| Image URL for a registry | raw.githubusercontent.com/OWNER/REPO/main/... | https://HOST/OWNER/REPO/raw/branch/main/... |
Alerts, Mermaid, <details> | render | render |
| Releases CLI | gh release list | fj release -R <remote> list |
package.json, pyproject.toml, Cargo.toml, go.mod, *.csproj, pom.xml, composer.json, *.gemspec), the LICENSE file, the CLI's argument parser or the --help of a binary that is already built, the forge's workflow directory, examples on disk, tags and releases (the releases command in the table above, else git tag --sort=-creatordate), and recent commit dates.README.md and any README assets the user approved (default assets/readme/). Show the diff before you write over an existing README. Never commit, push or open a PR unless asked.Ask once if the request is ambiguous. "Make the README better" means Audit first, then Restructure.
| Mode | When | Output |
|---|---|---|
| Write | No README, or a stub | A new README built from a template |
| Audit | "Review", "is it good", "why no installs" | A scorecard only. Change nothing |
| Restructure | The README exists but is disordered, bloated or stale | Audit, agree the fixes, then rewrite section by section |
| Beautify | "Make it look good", badges, logo, header, visuals | The visual layer on content that is already sound. Add structure only if asked |
bash ${CLAUDE_SKILL_DIR}/scripts/readme_audit.sh --forge <github|forgejo> <repo-root> and fix what it flags: broken relative links, empty alt text, leftover placeholders, size.bash ${CLAUDE_SKILL_DIR}/scripts/readme_audit.sh --forge <github|forgejo> <repo-root>. It reports facts (shadowed copies, headings, words before the first code block, badges, alt text, raw HTML, broken links, placeholders), not verdicts.Run Audit, get the user's agreement on the diagnosis, then:
CONTRIBUTING.md, docs/... and the like).Read references/badges-and-visuals.md for the shared badge, header, hero image, screenshot, demo and table rules, and the forge reference for badge URLs and what that forge actually renders.
LICENSE. Cut intent-only badges such as "PRs welcome" or "made with love". On Forgejo, workflow and release badges are served by the instance itself (URL shapes in the reference).<picture> with light and dark sources when the logo is unreadable on one theme. On Forgejo the sanitizer drops <picture> and <source>, so never write them there, even when asked for a theme-following logo: emit one plain <img>, say that Forgejo cannot switch logos by theme, and suggest one logo that reads on both (an SVG that paints its own background). Put the one-liner right under it, never a badge wall or a screen-sized image above the first sentence.> [!NOTE] and the like) per page, and use <details> for long optional material.Once a draft is done, if the avoid-ai-writing skill is installed, offer to run it on the prose. Generated-sounding copy undermines a page that is trying to earn trust.
docs/, setup guides, API or config references after a code change: docs-audit.scribe agent.gh-release on GitHub, forgejo-release on Forgejo, if installed.CONTRIBUTING.md, issue templates and repo settings such as description, topics and social preview: suggest them, but they are not this skill's output. gh-repo-setup covers GitHub settings; on Forgejo they are changed in the web UI..github/README.md first. Forgejo shows the root README first and only falls back to docs/, .forgejo/, .gitea/ and .github/ when the root has none, so a .github/ copy is hidden by a root copy there. A shadowed copy is still what npm and PyPI may publish, so the two drift apart. Keep one.<script> and <style>; align= and width= work on both. GitHub also strips style= attributes and does not play animation inside an SVG. Forgejo also strips <iframe> and <picture> and keeps only a few style= attributes.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin readme