All skills
Skillintermediate
/generate-readme - Generate README
Generate a comprehensive README.md from project analysis.
Claude Code Knowledge Pack7/10/2026
Overview
/generate-readme - Generate README
Generate a comprehensive README.md from project analysis.
Steps
- Scan the project root for key files: package.json, Cargo.toml, pyproject.toml, go.mod, Makefile
- Detect the project type, language, framework, and build system
- Read existing documentation files for context (CONTRIBUTING.md, docs/, wiki)
- Analyze the source code structure: main entry points, modules, and public API
- Extract project name, version, description, and license from manifest files
- Identify installation steps from lock files and build configuration
- Find usage examples from test files, examples directory, or existing docs
- Detect available scripts/commands from package.json scripts or Makefile targets
- Check for CI/CD configuration to document build and deployment status
- Generate the README with sections: Title, Description, Installation, Usage, API, Contributing, License
- Add badges for build status, version, license, and coverage if available
- Write the README.md to the project root
Rules
- Preserve any existing README content the user wants to keep
- Use the project's actual commands, not generic placeholders
- Include real code examples from the project when possible
- Keep the README concise; link to detailed docs instead of duplicating
- Add a table of contents for READMEs longer than 100 lines
- Do not include auto-generated timestamps or tool attribution
- Match the tone and style of existing project documentation