// Generate comprehensive README files for projects. Use when the user asks to create, generate, or write a README, readme file, or project documentation.
| name | generating-readmes |
| description | Generate comprehensive README files for projects. Use when the user asks to create, generate, or write a README, readme file, or project documentation. |
| allowed-tools | read_file, write_file, list_directory |
Generate a comprehensive, professional README.md file for the project. Follow this structured approach:
First, understand what kind of project this is:
Explore the project directory using list_directory to understand the structure
Identify the project type by looking for key files:
setup.py, pyproject.toml, requirements.txt, Pipfilepackage.json, package-lock.json, yarn.lockCargo.toml, Cargo.lockgo.mod, go.sumpom.xml, build.gradleRead configuration files using read_file to extract:
Find the main entry point:
main.py, index.js, src/main.rs, main.go, etc.grep_search to find executable scripts or entry pointsDiscover project features:
__init__.py, index.js, or main modulesIdentify usage patterns:
.env.example, config.yaml, etc.)Create a well-structured README.md with these sections (include only relevant ones):
Project Title - Clear, descriptive title
Description - What the project does
Installation - How to install
pip install, pip install -e ., or pip install -r requirements.txtnpm install or yarn installcargo installgo install or go getUsage - How to use the project
Features - Key features and capabilities
Configuration - Setup and configuration
.env.example or .env)Development - For contributors
npm test, pytest, cargo test, etc.)Requirements/Dependencies - What's needed
Contributing - How to contribute
License - Project license
Author/Credits - Who made it
Badges - Status badges (optional)
Use markdown formatting:
Make it scannable:
Include actual examples:
Check for existing README:
Read the generated README back to ensure:
Ensure completeness:
User: "Generate a README for this Python project"
setup.py or pyproject.toml for metadatarequirements.txt for dependenciesUser: "Create a README file"
package.json for project info.env.example for configurationUser: "Update the README"