Documentation Generator
Auto-generate and maintain API docs, changelogs, and code documentation from your codebase
🧂 Ingredients
🔌 APIs
repository_access_code_commits_prs_and_file_contents
🔄 Alternatives:
store_generated_documentation
🔄 Alternatives:
📋 Step-by-Step Build Guide
Connect to GitHub and clone/access your repository
1. Connect to GitHub and clone/access your repository
Connect to GitHub and clone/access your repository Steps: 1. Validate all required inputs are available 2. Execute the operation described above 3. Verify the result meets expected output format 4. Handle errors gracefully — retry transient failures, log and alert on persistent ones 5. Return structured output with status and any relevant data If any required data is missing, request it from the user before proceeding.
Scan codebase for API endpoints
2. Scan codebase for API endpoints — parse route definitions, controllers, and handler functions
Scan codebase for API endpoints — parse route definitions, controllers, and handler functions Steps: 1. Validate all required inputs are available 2. Execute the operation described above 3. Verify the result meets expected output format 4. Handle errors gracefully — retry transient failures, log and alert on persistent ones 5. Return structured output with status and any relevant data If any required data is missing, request it from the user before proceeding.
For each endpoint, extract
3. For each endpoint, extract: HTTP method, path, parameters, request body schema, response format, authentication requirements
For each endpoint, extract: HTTP method, path, parameters, request body schema, response format, authentication requirements Steps: 1. Validate all required inputs are available 2. Execute the operation described above 3. Verify the result meets expected output format 4. Handle errors gracefully — retry transient failures, log and alert on persistent ones 5. Return structured output with status and any relevant data If any required data is missing, request it from the user before proceeding.
Generate OpenAPI/Swagger
4. Generate OpenAPI/Swagger-compatible documentation automatically
Generate OpenAPI/Swagger-compatible documentation automatically Steps: 1. Validate all required inputs are available 2. Execute the operation described above 3. Verify the result meets expected output format 4. Handle errors gracefully — retry transient failures, log and alert on persistent ones 5. Return structured output with status and any relevant data If any required data is missing, request it from the user before proceeding.
Scan for undocumented public functions and flag them with suggested doc template
5. Scan for undocumented public functions and flag them with suggested doc templates
Scan for undocumented public functions and flag them with suggested doc templates Steps: 1. Validate all required inputs are available 2. Execute the operation described above 3. Verify the result meets expected output format 4. Handle errors gracefully — retry transient failures, log and alert on persistent ones 5. Return structured output with status and any relevant data If any required data is missing, request it from the user before proceeding.
Parse git log to generate a changelog
6. Parse git log to generate a changelog: group commits by type (feature, fix, refactor), link to PRs
Parse git log to generate a changelog: group commits by type (feature, fix, refactor), link to PRs Steps: 1. Validate all required inputs are available 2. Execute the operation described above 3. Verify the result meets expected output format 4. Handle errors gracefully — retry transient failures, log and alert on persistent ones 5. Return structured output with status and any relevant data If any required data is missing, request it from the user before proceeding.
When PRs are merged, check if they affect documented endpoints and flag docs tha
7. When PRs are merged, check if they affect documented endpoints and flag docs that need updating
When PRs are merged, check if they affect documented endpoints and flag docs that need updating Steps: 1. Validate all required inputs are available 2. Execute the operation described above 3. Verify the result meets expected output format 4. Handle errors gracefully — retry transient failures, log and alert on persistent ones 5. Return structured output with status and any relevant data If any required data is missing, request it from the user before proceeding.
Weekly
8. Weekly: documentation health report — coverage percentage, stale docs, recently changed endpoints needing doc updates
Compile the gathered data into a structured report. Format as clean Markdown with: - Title/date header - Executive summary (2-3 sentences) - Key metrics section with actual numbers - Detailed sections with bullet points - Action items or recommendations at the end Keep it scannable — busy people read reports in 30 seconds. Use emoji sparingly for visual anchors (📊 metrics, ✅ wins, ⚠️ concerns, 📋 action items). Include data comparisons: "X this period vs Y last period (↑Z%)" If any data source was unavailable, note it clearly: "⚠️ [Source] data unavailable — excluded from this report."
🤖 Example Agent Prompt
Connect to GitHub and clone/access your repository Steps: 1. Validate all required inputs are available 2. Execute the operation described above 3. Verify the result meets expected output format 4. Handle errors gracefully — retry transient failures, log and alert on persistent ones 5. Return structured output with status and any relevant data If any required data is missing, request it from the user before proceeding.
Copy this prompt into your agent to get started.