Skip to content
Development
Command

/generate-api-ref

Generate API reference documentation from source code and route definitions.

From plugin
rohitg00-claude-code-toolkit
2.8k199 skills138 agents199 commands
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

Command definition

generate-api-ref.md

/generate-api-ref - Generate API Reference

Generate API reference documentation from source code and route definitions.

Steps

1. Detect the API framework: Express, FastAPI, Django REST, Spring Boot, Gin, etc. 2. Scan route definitions to find all API endpoints 3. For each endpoint, extract: HTTP method, path, middleware, handler function 4. Parse handler functions to identify request parameters (path, query, body, headers) 5. Extract request/response schemas from TypeScript types, Pydantic models, or JSDoc 6. Identify authentication requirements from middleware chains 7. Find example request/response pairs from test files or inline documentation 8. Detect rate limiting, pagination, and caching configurations 9. Generate markdown documentation for each endpoint with: method, path, description, parameters, request body, response, errors 10. Group endpoints by resource or router module 11. Add a table of contents and overview section 12. Save documentation to docs/api-reference.md or the specified output path

Rules

  • Include all HTTP methods (GET, POST, PUT, PATCH, DELETE) for each resource
  • Document error responses (400, 401, 403, 404, 500) with example payloads
  • Use the actual TypeScript/Python types, not simplified versions
  • Include authentication requirements for each endpoint
  • Show curl examples for at least the primary endpoints
  • Do not document internal or health-check endpoints unless requested
  • Keep parameter descriptions concise but include type and required status
Read more
@rohitg00
Ships withrohitg00-claude-code-toolkit

The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.

2.8k40 skills138 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.8k
Star history of rohitg00/awesome-claude-code-toolkit on GitHub, a chart by star-history.com

Other commands on rohitg00-claude-code-toolkit.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command