Write a new README.md or improve an existing one. Use when the user asks to create, update, or improve a README, or wants to document a project and no other documentation skill is more specific.
Ships in docs. 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.
Generate or improve a README.md that is well-structured, informative, and free of decoration. The goal is a document that helps both newcomers and contributors understand what the project does, how to use it, and how it is organized -- without wasting their time.
{describe the deployment process}) so the user knows to fill it in.Explore the repository to understand what it is and how it works. Run these in parallel where possible:
# Package metadata
cat package.json 2>/dev/null || cat pyproject.toml 2>/dev/null || cat Cargo.toml 2>/dev/null || cat go.mod 2>/dev/null || cat pom.xml 2>/dev/null || cat Gemfile 2>/dev/null || true
# Existing README
cat README.md 2>/dev/null || cat readme.md 2>/dev/null || cat Readme.md 2>/dev/null || true
# Project conventions and contributing guides
cat CLAUDE.md 2>/dev/null || true
cat CONTRIBUTING.md 2>/dev/null || cat .github/CONTRIBUTING.md 2>/dev/null || true
# License
cat LICENSE 2>/dev/null || cat LICENSE.md 2>/dev/null || true
# CI/CD and config files (existence check)
ls .github/workflows/ 2>/dev/null || true
ls Makefile Dockerfile docker-compose.yml .env.example 2>/dev/null || true
Also generate a project structure tree using the bundled script:
bash <skill-path>/scripts/generate_tree.sh . 3
Replace <skill-path> with the actual path to this skill's directory.
Read a few key source files (entry points, main modules) to understand what the project actually does. Do not read every file -- just enough to write an accurate overview.
Check the existing README and other documentation files for their written language (e.g., English, Chinese, Japanese). If documentation exists, write the README in the same language. If there is no existing documentation, default to English.
<skill-path>/assets/template.md. Read the template, then fill in each section with real content based on what you gathered in Step 1.Follow the template structure from assets/template.md as a guide. Here is how to handle each section:
Use the actual project name. Write one or two sentences that explain what it does and why someone would use it. Be specific -- "A CLI tool that converts OpenAPI specs to TypeScript client libraries" is better than "A useful developer tool."
Include a Table of Contents with anchor links when the README has more than three sections. Omit it for very short READMEs.
Expand on the opening description. Cover the problem the project solves, who it is for, and any important design decisions. This section should give a reader enough context to decide whether the project is relevant to them.
List each major feature with a short description. For projects with a visual interface (web apps, SaaS, desktop apps, CLI tools with rich output), include screenshots or demo GIFs to show what the feature looks like in practice.
Format image references like this:
- **Dashboard view** -- Real-time metrics for all connected services.

If screenshots do not exist yet, add a placeholder and tell the user:

<!-- TODO: Add a screenshot of the dashboard -->
After writing the README, let the user know which screenshots are missing so they can capture them.
Only list prerequisites that are genuinely required. Pull version requirements from the package manifest when possible (e.g., engines in package.json, python_requires in pyproject.toml).
For installation, provide copy-pasteable commands. If there are multiple installation methods (npm, Docker, building from source), list them under separate subheadings.
For usage, show the single most common command or code snippet first, then cover additional examples if the project has multiple modes of operation.
If the project uses environment variables, config files, or CLI flags, document them. A table works well for environment variables. If there is an .env.example file, use it as the source of truth.
Skip this section entirely if the project has no configuration.
Use the tree output from Step 1. Trim it to show only the directories and files that matter for understanding the project's architecture. Add a brief note after the tree explaining what the key directories contain.
myproject/
├── src/
│ ├── api/ # REST endpoint handlers
│ ├── models/ # Database models
│ └── utils/ # Shared helpers
├── tests/
├── Dockerfile
└── package.json
If a CONTRIBUTING.md exists, write a short sentence and link to it. Otherwise, include basic instructions: fork, branch, commit, PR. Mention how to run tests if a test command is available (e.g., npm test, pytest).
State the license name and link to the LICENSE file. If no LICENSE file exists, note that the project does not specify a license.
Before writing the file, review your draft for:
Write the final README.md to the project root. If you replaced an existing README, briefly tell the user what changed.
If the README references images that do not exist yet, try to capture them automatically. If automatic capture is not possible, fall back to a manual checklist.
Before writing image references in the README, check whether Playwright is available so you can decide upfront whether to include real screenshot paths or TODO placeholders:
python3 -c "from playwright.sync_api import sync_playwright; print('ready')" 2>/dev/null || echo "not installed"
If Playwright is not installed, prefer writing image placeholders with TODO comments rather than referencing files that will not exist.
Create a JSON file listing every missing asset. Use a path (e.g., /dashboard) for the url_or_context field -- the capture script resolves it against the dev server URL automatically.
[
{
"filename": "dashboard.png",
"description": "Main dashboard with sample data loaded",
"type": "screenshot",
"url_or_context": "/dashboard"
},
{
"filename": "setup-flow.png",
"description": "The initial setup wizard",
"type": "screenshot",
"url_or_context": "/setup"
}
]
Save this file to a temporary location (e.g., /tmp/readme-assets.json).
For web application projects, run the capture script. It auto-detects the dev server command, starts it, captures screenshots with Playwright, and stops it when done.
python3 <skill-path>/scripts/capture_screenshots.py . /tmp/readme-assets.json
The script supports these flags for common edge cases:
python3 <skill-path>/scripts/capture_screenshots.py . /tmp/readme-assets.json \
--timeout 90000 \
--delay 5.0 \
--viewport 1440x900 \
--storage-state auth-state.json
What the script does:
dev:web and similar monorepo patterns), Django manage.py, Flask app.py, or pyproject.tomlpnpm --filter workspace delegation to determine the correct portdomcontentloaded wait strategy to avoid hanging on HMR WebSocket connectionsassets/screenshots/ in the project root/tmp/capture_results.json (not into the project directory)If Playwright is not installed, the script prints installation instructions and falls back to the manual checklist automatically.
Prerequisite (one-time setup):
pip install playwright && playwright install chromium
Tell the user about this requirement if the script reports that Playwright is missing.
If the project is not a web app, or if automatic capture fails, run the checklist script instead:
bash <skill-path>/scripts/prepare_assets.sh . /tmp/readme-assets.json
This creates the assets/screenshots/ directory and prints a checklist with filenames, descriptions, and suggested capture tools.
If the README has no image placeholders, skip this step entirely.
Common failure modes with screenshot capture and how to handle them:
pip install playwright && playwright install chromium (the browser download is a separate step after pip install).networkidle strategy from resolving. The script defaults to domcontentloaded to avoid this. If it still hangs, try --wait-until load.--timeout 90000.lsof -ti :3000 | xargs kill -9 and retry.dev:web or pnpm --filter @scope/pkg dev are now supported, but deeply nested workspaces may still fail. Start the dev server manually before running the script as a workaround.--storage-state auth-state.json with a pre-saved Playwright auth session.capture_results.json into assets/screenshots/. The script now writes to /tmp/ by default. Use --no-results to suppress it entirely.generate_tree.sh can produce 500+ lines in monorepos with many packages, especially when some packages have their own node_modules that are not gitignored. The resulting Project Structure section becomes unreadable. Trim the tree aggressively: limit depth to 2 for the top level, exclude node_modules and other dependency directories, and consider showing only the root layout plus one representative package. If the raw output exceeds ~60 lines, manually curate it before pasting into the README.package.json with TypeScript at the root, pyproject.toml in one package, go.mod in another). Defaulting to whichever manifest is found first gives a misleading picture of the project. When multiple languages are detected, list all of them in the Overview and Features sections rather than picking one. Frame the project as a polyglot monorepo and describe each package's language and role individually.What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
/docs:readmefrom docs
npx claudepluginhub chienchuanw/chuan-skills --plugin docs