Create, update, or enhance project README.md files with proper structure and documentation best practices. Use when user asks to create a new README, update an existing README, improve documentation, add missing sections, or restructure README content.
Professional README.md creation and enhancement following industry best practices.
If README.md exists:
If no README exists:
Collect before writing:
Follow these principles:
npm install" not "You should run npm install"Use this section order (adjust for project type):
For Libraries/Packages:
## Installation
\`\`\`bash
pip install package-name
\`\`\`
## Quick Start
\`\`\`python
from package import main_function
result = main_function("input")
print(result) # Output: expected result
\`\`\`
## API
### `main_function(input: str) -> str`
Description of what it does.
**Parameters:**
- `input` (str): Description of input
**Returns:**
- str: Description of return value
For CLI Tools:
## Installation
\`\`\`bash
pip install tool-name
\`\`\`
## Usage
\`\`\`bash
# Basic usage
tool-name input.txt
# With options
tool-name input.txt --output result.txt --format json
\`\`\`
### Options
- `--output, -o`: Specify output file
- `--format, -f`: Output format (json|csv|txt)
For Web Applications:
## Quick Start
\`\`\`bash
# Clone and install
git clone https://github.com/user/app.git
cd app
npm install
# Set up environment
cp .env.example .env
# Edit .env with your configuration
# Run development server
npm run dev
\`\`\`
Visit http://localhost:3000
## Environment Variables
| Variable | Description | Default |
|----------|-------------|---------|
| `PORT` | Server port | `3000` |
| `DATABASE_URL` | Database connection | Required |
Before finishing, verify:
When updating existing READMEs, look for:
# Project Name
One-line description of what this does.
## Installation
\`\`\`bash
pip install project-name
\`\`\`
## Usage
\`\`\`python
from project import function
result = function()
\`\`\`
## License
MIT
Includes all sections from Standard Structure above with detailed examples.
Avoid these in README: