/gh-readme:gh-readmefrom gh-readme
Writes, restructures, audits and beautifies a repository's README.md, its GitHub landing page, from facts in the repo. Section order by project type, a scored audit, honest shields.io badges, dark/light logos, alerts and relative links. Use when asked to write, review, fix, reorder or polish a README or a repo's front page. Not for Forgejo or Codeberg (`forgejo-readme`).
Ships in gh-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.
Not for Forgejo or Codeberg repos (forgejo-readme). The rendering rules below (alerts, outline, dark/light images) are GitHub's.
Forge gate. Proceed when the origin host is github.com or one gh auth status --hostname <host> knows; otherwise stop with "not a GitHub remote; on Forgejo or Codeberg use forgejo-readme if installed".
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.
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, .github/workflows/, examples on disk, tags and releases (gh release list on GitHub, 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 <repo-root> and fix what it flags: broken relative links, empty alt text, leftover placeholders, size.bash ${CLAUDE_SKILL_DIR}/scripts/readme_audit.sh <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 badges, headers, hero images, screenshots, demos and tables, and references/github-rendering.md for what GitHub actually renders.
LICENSE. Cut intent-only badges such as "PRs welcome" or "made with love".<picture> with light and dark sources when the logo is unreadable on one theme. 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.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 settings..github/README.md first, then the root, then docs/. A shadowed root copy is still what npm and PyPI publish, so the two drift apart. Keep one.raw.githubusercontent.com URLs for images in a README that a registry publishes.<script>, <style> and style= attributes. align= and width= work.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin gh-readme