GitHub README Generator
Generate, audit, or update repository READMEs with project-type detection, voice calibration, discoverability guidance, and scored quality audits.
Install
git clone https://github.com/thatrebeccarae/claude-marketing.git && cp -r claude-marketing/skills/github-readme ~/.claude/skills/
When to Use
- Starting a new public repo and need a solid README from scratch
- Auditing an existing README for quality, discoverability, and security issues
- Updating a README after the repo has evolved (new deps, features, structure)
- Preparing a repo for public release and want discoverability optimized
Modes
/github:readme generate [repo-path] # Scan repo, detect type, generate README
/github:readme audit [repo-path] # Score existing README (read-only, 0-100)
/github:readme update [repo-path] # Re-scan, silent audit, patch with approval
Default repo-path is the current working directory if omitted.
Step 0: Parse and Validate
Expect: /github:readme {mode} [repo-path]
- Extract mode —
generate, audit, or update. Any other value or missing → error with usage hint. STOP.
- Extract repo-path — second argument, or current working directory if omitted.
- Validate — confirm path exists, is a directory, and contains
.git. If not → error. STOP.
Store repo_path (absolute) and mode.
Step 1: Scan the Repo
Gather context by reading available files. Skip gracefully if a file does not exist.
Package/config files (tech stack detection):
package.json — Node/TypeScript/React
Cargo.toml — Rust
pyproject.toml, setup.py, requirements.txt — Python
go.mod — Go
tsconfig.json — TypeScript confirmation
Dockerfile, docker-compose.yml — containerization
Makefile, justfile — build system
.github/workflows/ — CI/CD
Directory structure:
- Run
ls at repo root for top-level layout
- Note:
src/, bin/, lib/, scripts/, docs/, tests/, skills/, templates/, plugins/, .github/
Existing docs:
README.md, CONTRIBUTING.md, SECURITY.md, LICENSE, ARCHITECTURE.md, CHANGELOG.md, CODE_OF_CONDUCT.md, llms.txt
Git remote:
- Run
git -C {repo_path} remote get-url origin
- Extract
{owner} and {repo} from the URL
- Determine public/private:
.public-repo marker → public; -dev suffix or no marker → ask user
Step 2: Detect Project Type
Classify the repo into exactly one type based on scan signals:
| Type |
Signals |
| tool/CLI |
Has bin field in package.json, CLI entry points, man pages, command parsers (yargs, clap, cobra) |
| library/SDK |
Has main/exports/module field, published to npm/PyPI/crates.io, no CLI entry |
| collection/marketplace |
Contains multiple independent items: skills/, templates/, plugins/, recipes/ directories with 3+ subdirectories |
| web-app |
Has React/Vue/Svelte/Next/Nuxt, server framework (Express, FastAPI, Actix), deployment config (Vercel, Dockerfile) |
| personal/experimental |
Small repo (<20 files), no package publishing config, no CI, no semver tags |
If ambiguous, ask the user to confirm. Store as project_type.
Step 3: Discoverability Audit
Before generating or auditing README content, check these repo-level discoverability signals. Present findings and suggestions to the user.
Repo name:
- Is it keyword-rich and searchable? (e.g.,
markdown-lint-action > my-linter)
- Flag generic names:
app, project, tool, my-thing
GitHub About/description:
- Read via
gh repo view if available
- Should be 3-8 words, front-loaded with primary keyword
- Suggest improvement if missing or generic
Topics:
- GitHub allows up to 20 topics
- Suggest relevant topics based on detected tech stack, project type, and domain
- Include both broad (
typescript, cli) and specific (markdown-parser, github-action) topics
Social preview image:
- Flag if missing — suggest creating one (1280x640px recommended)
llms.txt (optional):
- If repo is a library/SDK or tool/CLI, suggest generating an
llms.txt file
- Purpose: helps LLMs understand and recommend the project accurately
Present discoverability suggestions. User can accept, skip, or defer. These do NOT block README generation.
Step 4: Generate / Audit / Update
Generate Mode
4a. Check for existing README — if present, confirm overwrite or suggest update mode instead.
4b. Select sections based on project type (see Section Menu below).
4c. Voice calibration:
- Default: professional product voice — clear, direct, no hedge language, no marketing fluff
- Personal/experimental repos OR explicit user opt-in: first-person voice allowed
- Never: passive voice in problem statements, emojis in prose, marketing fluff
4d. Generate each section:
- Title + description — derive name from package config or directory; one-line bold description under 120 chars
- Badges — see Badge Selection below
- Getting Started / Install — prerequisites with versions, install steps, first-run command. Under 20 lines.
- Type-specific sections — per Section Menu. Only include if enough scanned context exists.
- "Why" section (personal/experimental only) — ask user for 2-3 sentences. Do not fabricate.
- License — read LICENSE file type. One line linking to the file.
4e. Run PII/infrastructure scrub (see below). Remove violations before writing.
4f. Write {repo_path}/README.md and display summary.
Audit Mode (read-only)
Read existing README. Do NOT modify any files.
Run quality-signal checks and score against weighted rubric:
| Category |
Weight |
Checks |
| Clarity |
25 |
Clear one-line description? Title is descriptive? |
| Usability |
25 |
Working install/setup command? Code examples? Getting started under 20 lines? |
| Credibility |
15 |
Badges present? Badge URLs resolve? License section present? |
| Currency |
15 |
Version numbers match package config? Tech stack matches repo? No stale links? |
| Security |
20 |
No PII or infrastructure leaks? No API keys/tokens? No private hostnames/IPs? |
Scoring: Each category scored 0-100, final score = weighted average.
=== README Audit: {repo-name} ===
Score: {X}/100
Clarity: {X}/25
Usability: {X}/25
Credibility: {X}/15
Currency: {X}/15
Security: {X}/20
PASS:
- {passing checks}
WARN:
- {warnings with specific detail}
FAIL:
- {failures with specific detail and fix suggestion}
Update Mode
- Re-scan repo (Step 1) to detect current state
- Run silent audit — store results, do not display
- Generate update plan — diff-style, grouped by category:
[STRUCTURE] — missing/outdated sections, badge changes
[CONTENT] — stale version numbers, outdated tech references
[VOICE] — hedge language, marketing fluff, passive voice
[SECURITY] — PII/infra violations (applied automatically)
- Show preview — numbered list of proposed changes
- User approval —
y (all), N (cancel), or comma-separated numbers
- Apply, run final PII scrub, write file, display summary
Section Menu by Project Type
| Section |
tool/CLI |
library/SDK |
collection |
web-app |
personal |
| Title + description |
Required |
Required |
Required |
Required |
Required |
| Badges |
Required |
Required |
Required |
Required |
Optional |
| Getting Started / Install |
Required |
Required |
Required |
Required |
Required |
| Usage / Commands |
Required |
-- |
-- |
-- |
-- |
| API Reference |
-- |
Required |
-- |
-- |
-- |
| Catalog / Index |
-- |
-- |
Required |
-- |
-- |
| Features |
Recommended |
Recommended |
-- |
Required |
-- |
| Configuration |
Recommended |
Recommended |
-- |
Recommended |
-- |
| Architecture |
-- |
-- |
-- |
Recommended |
-- |
| Why I Built This |
-- |
-- |
-- |
-- |
Required |
| Who This Is For |
Recommended |
Recommended |
Recommended |
-- |
-- |
| Contributing |
Recommended |
Required |
Recommended |
Recommended |
-- |
| License |
Required |
Required |
Required |
Required |
Required |
Voice Guidelines
| Type |
Default Tone |
Example Opening |
| tool/CLI |
Direct, practical |
"Fast Markdown linting for CI pipelines." |
| library/SDK |
Technical, precise |
"A typed HTTP client for the Stripe API." |
| collection |
Organized, scannable |
"50+ reusable GitHub Actions workflows." |
| web-app |
Product-focused, clear |
"Real-time project dashboard with team analytics." |
| personal |
First-person, opinionated |
"I needed a better way to track reading habits." |
Always: direct, specific, opinionated, short paragraphs (4 sentences max).
Never: hedge language, marketing fluff, passive voice in problem statements, emojis in prose.
Badge Selection
Based on detected tech stack, generate 1-3 tech badges + license badge minimum.
Use style=for-the-badge for all badges. Generic patterns:






Badge order: tech stack (left) → stars → license (right).
PII / Infrastructure Scrub
Run in ALL modes. Scan generated or existing README text for:
If violations found: list each, remove or redact, show user what was removed.
Security violations are never optional — applied automatically in update mode.
Key Principles
- Detect, don't assume. Scan the repo and adapt structure to what actually exists.
- Professional by default. First-person voice is opt-in, not the default.
- Discoverability matters. Repo name, description, topics, and llms.txt are part of the README story.
- Quality over completeness. Fewer well-written sections beat bloated README with empty placeholders.
- Security is non-negotiable. PII/infra scrub runs in every mode, every time.
- Audit mode is read-only. Never modify files during an audit.
1---2name: github-readme3description: "Generate, audit, or update GitHub READMEs with project-type-aware structure, voice calibration, and SEO/AEO discoverability guidance. Three modes: generate (new), audit (check existing), update (patch). Detects repo type and adapts sections, tone, and badges accordingly."4license: MIT5origin: custom6author: Rebecca Rae Barton7author_url: https://github.com/thatrebeccarae8metadata:9 source: https://skillmd.com/skills/thatrebeccarae/github-readme10 version: 2.0.011 category: devops12 domain: github13 updated: 2026-03-1914 tested: 2026-03-1915 tested_with: "Claude Code v2.1"16---1718# GitHub README Generator1920Generate, audit, or update repository READMEs with project-type detection, voice calibration, discoverability guidance, and scored quality audits.2122## Install2324```bash25git clone https://github.com/thatrebeccarae/claude-marketing.git && cp -r claude-marketing/skills/github-readme ~/.claude/skills/26```2728## When to Use2930- Starting a new public repo and need a solid README from scratch31- Auditing an existing README for quality, discoverability, and security issues32- Updating a README after the repo has evolved (new deps, features, structure)33- Preparing a repo for public release and want discoverability optimized3435## Modes3637```38/github:readme generate [repo-path] # Scan repo, detect type, generate README39/github:readme audit [repo-path] # Score existing README (read-only, 0-100)40/github:readme update [repo-path] # Re-scan, silent audit, patch with approval41```4243Default `repo-path` is the current working directory if omitted.4445---4647## Step 0: Parse and Validate4849Expect: `/github:readme {mode} [repo-path]`50511. **Extract mode** — `generate`, `audit`, or `update`. Any other value or missing → error with usage hint. STOP.522. **Extract repo-path** — second argument, or current working directory if omitted.533. **Validate** — confirm path exists, is a directory, and contains `.git`. If not → error. STOP.5455Store `repo_path` (absolute) and `mode`.5657---5859## Step 1: Scan the Repo6061Gather context by reading available files. Skip gracefully if a file does not exist.6263**Package/config files** (tech stack detection):64- `package.json` — Node/TypeScript/React65- `Cargo.toml` — Rust66- `pyproject.toml`, `setup.py`, `requirements.txt` — Python67- `go.mod` — Go68- `tsconfig.json` — TypeScript confirmation69- `Dockerfile`, `docker-compose.yml` — containerization70- `Makefile`, `justfile` — build system71- `.github/workflows/` — CI/CD7273**Directory structure:**74- Run `ls` at repo root for top-level layout75- Note: `src/`, `bin/`, `lib/`, `scripts/`, `docs/`, `tests/`, `skills/`, `templates/`, `plugins/`, `.github/`7677**Existing docs:**78- `README.md`, `CONTRIBUTING.md`, `SECURITY.md`, `LICENSE`, `ARCHITECTURE.md`, `CHANGELOG.md`, `CODE_OF_CONDUCT.md`, `llms.txt`7980**Git remote:**81- Run `git -C {repo_path} remote get-url origin`82- Extract `{owner}` and `{repo}` from the URL83- Determine public/private: `.public-repo` marker → public; `-dev` suffix or no marker → ask user8485---8687## Step 2: Detect Project Type8889Classify the repo into exactly one type based on scan signals:9091| Type | Signals |92|------|---------|93| **tool/CLI** | Has `bin` field in package.json, CLI entry points, man pages, command parsers (yargs, clap, cobra) |94| **library/SDK** | Has `main`/`exports`/`module` field, published to npm/PyPI/crates.io, no CLI entry |95| **collection/marketplace** | Contains multiple independent items: `skills/`, `templates/`, `plugins/`, `recipes/` directories with 3+ subdirectories |96| **web-app** | Has React/Vue/Svelte/Next/Nuxt, server framework (Express, FastAPI, Actix), deployment config (Vercel, Dockerfile) |97| **personal/experimental** | Small repo (<20 files), no package publishing config, no CI, no semver tags |9899If ambiguous, ask the user to confirm. Store as `project_type`.100101---102103## Step 3: Discoverability Audit104105Before generating or auditing README content, check these repo-level discoverability signals. Present findings and suggestions to the user.106107**Repo name:**108- Is it keyword-rich and searchable? (e.g., `markdown-lint-action` > `my-linter`)109- Flag generic names: `app`, `project`, `tool`, `my-thing`110111**GitHub About/description:**112- Read via `gh repo view` if available113- Should be 3-8 words, front-loaded with primary keyword114- Suggest improvement if missing or generic115116**Topics:**117- GitHub allows up to 20 topics118- Suggest relevant topics based on detected tech stack, project type, and domain119- Include both broad (`typescript`, `cli`) and specific (`markdown-parser`, `github-action`) topics120121**Social preview image:**122- Flag if missing — suggest creating one (1280x640px recommended)123124**llms.txt (optional):**125- If repo is a library/SDK or tool/CLI, suggest generating an `llms.txt` file126- Purpose: helps LLMs understand and recommend the project accurately127128Present discoverability suggestions. User can accept, skip, or defer. These do NOT block README generation.129130---131132## Step 4: Generate / Audit / Update133134### Generate Mode135136**4a. Check for existing README** — if present, confirm overwrite or suggest update mode instead.137138**4b. Select sections** based on project type (see Section Menu below).139140**4c. Voice calibration:**141- Default: professional product voice — clear, direct, no hedge language, no marketing fluff142- Personal/experimental repos OR explicit user opt-in: first-person voice allowed143- Never: passive voice in problem statements, emojis in prose, marketing fluff144145**4d. Generate each section:**146- **Title + description** — derive name from package config or directory; one-line bold description under 120 chars147- **Badges** — see Badge Selection below148- **Getting Started / Install** — prerequisites with versions, install steps, first-run command. Under 20 lines.149- **Type-specific sections** — per Section Menu. Only include if enough scanned context exists.150- **"Why" section** (personal/experimental only) — ask user for 2-3 sentences. Do not fabricate.151- **License** — read LICENSE file type. One line linking to the file.152153**4e. Run PII/infrastructure scrub** (see below). Remove violations before writing.154155**4f. Write** `{repo_path}/README.md` and display summary.156157### Audit Mode (read-only)158159Read existing README. Do NOT modify any files.160161Run quality-signal checks and score against weighted rubric:162163| Category | Weight | Checks |164|----------|--------|--------|165| **Clarity** | 25 | Clear one-line description? Title is descriptive? |166| **Usability** | 25 | Working install/setup command? Code examples? Getting started under 20 lines? |167| **Credibility** | 15 | Badges present? Badge URLs resolve? License section present? |168| **Currency** | 15 | Version numbers match package config? Tech stack matches repo? No stale links? |169| **Security** | 20 | No PII or infrastructure leaks? No API keys/tokens? No private hostnames/IPs? |170171**Scoring:** Each category scored 0-100, final score = weighted average.172173```174=== README Audit: {repo-name} ===175Score: {X}/100176177Clarity: {X}/25178Usability: {X}/25179Credibility: {X}/15180Currency: {X}/15181Security: {X}/20182183PASS:184 - {passing checks}185186WARN:187 - {warnings with specific detail}188189FAIL:190 - {failures with specific detail and fix suggestion}191```192193### Update Mode1941951. **Re-scan** repo (Step 1) to detect current state1962. **Run silent audit** — store results, do not display1973. **Generate update plan** — diff-style, grouped by category:198 - `[STRUCTURE]` — missing/outdated sections, badge changes199 - `[CONTENT]` — stale version numbers, outdated tech references200 - `[VOICE]` — hedge language, marketing fluff, passive voice201 - `[SECURITY]` — PII/infra violations (applied automatically)2024. **Show preview** — numbered list of proposed changes2035. **User approval** — `y` (all), `N` (cancel), or comma-separated numbers2046. **Apply**, run final PII scrub, write file, display summary205206---207208## Section Menu by Project Type209210| Section | tool/CLI | library/SDK | collection | web-app | personal |211|---------|:--------:|:-----------:|:----------:|:-------:|:--------:|212| Title + description | Required | Required | Required | Required | Required |213| Badges | Required | Required | Required | Required | Optional |214| Getting Started / Install | Required | Required | Required | Required | Required |215| Usage / Commands | Required | -- | -- | -- | -- |216| API Reference | -- | Required | -- | -- | -- |217| Catalog / Index | -- | -- | Required | -- | -- |218| Features | Recommended | Recommended | -- | Required | -- |219| Configuration | Recommended | Recommended | -- | Recommended | -- |220| Architecture | -- | -- | -- | Recommended | -- |221| Why I Built This | -- | -- | -- | -- | Required |222| Who This Is For | Recommended | Recommended | Recommended | -- | -- |223| Contributing | Recommended | Required | Recommended | Recommended | -- |224| License | Required | Required | Required | Required | Required |225226---227228## Voice Guidelines229230| Type | Default Tone | Example Opening |231|------|-------------|-----------------|232| tool/CLI | Direct, practical | "Fast Markdown linting for CI pipelines." |233| library/SDK | Technical, precise | "A typed HTTP client for the Stripe API." |234| collection | Organized, scannable | "50+ reusable GitHub Actions workflows." |235| web-app | Product-focused, clear | "Real-time project dashboard with team analytics." |236| personal | First-person, opinionated | "I needed a better way to track reading habits." |237238**Always:** direct, specific, opinionated, short paragraphs (4 sentences max).239**Never:** hedge language, marketing fluff, passive voice in problem statements, emojis in prose.240241---242243## Badge Selection244245Based on detected tech stack, generate 1-3 tech badges + license badge minimum.246247Use `style=for-the-badge` for all badges. Generic patterns:248249```markdown250251252253254255256```257258Badge order: tech stack (left) → stars → license (right).259260---261262## PII / Infrastructure Scrub263264Run in ALL modes. Scan generated or existing README text for:265266- [ ] Private hostnames267- [ ] IP addresses (especially 10.x, 172.16-31.x, 192.168.x, 100.x Tailscale)268- [ ] Internal network/VLAN names269- [ ] Device identifiers or serial numbers270- [ ] Client or employer names that should not be public271- [ ] Personal email addresses272- [ ] API keys or tokens (`sk-`, `token_`, `ghp_`, `Bearer`, long alphanumeric strings)273- [ ] Internal Docker/service config (private port mappings, container names)274- [ ] SSH config references (aliases, private key paths)275276**If violations found:** list each, remove or redact, show user what was removed.277**Security violations are never optional** — applied automatically in update mode.278279---280281## Key Principles282283- **Detect, don't assume.** Scan the repo and adapt structure to what actually exists.284- **Professional by default.** First-person voice is opt-in, not the default.285- **Discoverability matters.** Repo name, description, topics, and llms.txt are part of the README story.286- **Quality over completeness.** Fewer well-written sections beat bloated README with empty placeholders.287- **Security is non-negotiable.** PII/infra scrub runs in every mode, every time.288- **Audit mode is read-only.** Never modify files during an audit.