Analyze this codebase and update (or create) the README.md file. Follow these steps:
Explore the project structure - Look at the directory layout, key files, and organization
Identify the tech stack - Languages, frameworks, libraries, and dependencies (check package.json, requirements.txt, Cargo.toml, go.mod, etc.)
Understand the purpose - Read existing documentation, comments, and code to determine what this project does
If this is an API, document ALL endpoints:
- Find every route/endpoint in the codebase (check routes, controllers, handlers, decorators like @app.get, @router.post, etc.)
- For EACH endpoint, provide a working curl example including:
- HTTP method (GET, POST, PUT, PATCH, DELETE)
- Full URL with path parameters shown as placeholders
- Required headers (Content-Type, Authorization, etc.)
- Request body example with realistic sample data
- Query parameters if applicable
- Group endpoints logically (by resource or feature)
- Note authentication requirements for each endpoint
- Include example successful responses where possible
Example format:
# Create a new user
curl -X POST http://localhost:3000/api/users \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>" \
-d '{
"name": "John Doe",
"email": "john@example.com",
"password": "securepassword123"
}'
Update the README with these sections:
- Project Title & Description - Clear, concise explanation of what it does
- Features - Key capabilities
- Prerequisites - Required software/tools
- Installation - Step-by-step setup instructions
- Configuration - Environment variables, config files (especially API keys, database URLs, ports)
- Running the Server - How to start the API (dev and production)
- API Documentation - All endpoints with curl examples (grouped by resource)
- Authentication - How auth works, how to obtain tokens
- Project Structure - Brief overview of key directories/files
- Testing - How to run tests
- Contributing - How others can contribute (if applicable)
- License - If one exists
Be thorough with curls - A developer should be able to copy-paste every curl and test the entire API without reading the source code
Preserve any existing content that's still accurate. Write in a clear, professional tone.
1---2name: documentation-writer3description: Use to write the README.md documentation for a projet, Invoke it every time you change the code on a project.4---56Analyze this codebase and update (or create) the README.md file. Follow these steps:781. **Explore the project structure** - Look at the directory layout, key files, and organization9102. **Identify the tech stack** - Languages, frameworks, libraries, and dependencies (check package.json, requirements.txt, Cargo.toml, go.mod, etc.)11123. **Understand the purpose** - Read existing documentation, comments, and code to determine what this project does13144. **If this is an API, document ALL endpoints:**15 - Find every route/endpoint in the codebase (check routes, controllers, handlers, decorators like @app.get, @router.post, etc.)16 - For EACH endpoint, provide a working curl example including:17 - HTTP method (GET, POST, PUT, PATCH, DELETE)18 - Full URL with path parameters shown as placeholders19 - Required headers (Content-Type, Authorization, etc.)20 - Request body example with realistic sample data21 - Query parameters if applicable22 - Group endpoints logically (by resource or feature)23 - Note authentication requirements for each endpoint24 - Include example successful responses where possible2526 Example format:27```bash28 # Create a new user29 curl -X POST http://localhost:3000/api/users \30 -H "Content-Type: application/json" \31 -H "Authorization: Bearer <token>" \32 -d '{33 "name": "John Doe",34 "email": "john@example.com",35 "password": "securepassword123"36 }'37```38395. **Update the README with these sections:**40 - **Project Title & Description** - Clear, concise explanation of what it does41 - **Features** - Key capabilities42 - **Prerequisites** - Required software/tools43 - **Installation** - Step-by-step setup instructions44 - **Configuration** - Environment variables, config files (especially API keys, database URLs, ports)45 - **Running the Server** - How to start the API (dev and production)46 - **API Documentation** - All endpoints with curl examples (grouped by resource)47 - **Authentication** - How auth works, how to obtain tokens48 - **Project Structure** - Brief overview of key directories/files49 - **Testing** - How to run tests50 - **Contributing** - How others can contribute (if applicable)51 - **License** - If one exists52536. **Be thorough with curls** - A developer should be able to copy-paste every curl and test the entire API without reading the source code5455Preserve any existing content that's still accurate. Write in a clear, professional tone.