api-generating
Generate API endpoint code and documentation from specifications. Use when the user wants to create new API endpoints, generate route handlers, scaffold REST APIs, or produce OpenAPI/Swagger specs from code.
npx skills add huangjia2019/claude-code-engineering --skill 05-api-generator --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# API Documentation Generator Generate comprehensive API documentation from source code. ## Quick Reference | Task | Resource | |------|----------| | Identify framework | See `PATTERNS.md` | | Documentation standards | See `STANDARDS.md` | | Example outputs | See `EXAMPLES.md` | ## Process ### Step 1: Identify API Endpoints Look for route definitions. For framework-specific patterns, see `PATTERNS.md`. ### Step 2: Extract Information For each endpoint, extract: - HTTP method (GET, POST, PUT, DELETE, etc.) - Path/route - Parameters (path, query, body) - Request/response schemas - Authentication requirements ### Step 3: Generate Documentation Use the template in `templates/endpoint.md` for each endpoint. ### Step 4: Create Overview Generate an index using `templates/index.md`. ## Output Formats ### Markdown (Default) Generate markdown suitable for README or docs site. ### OpenAPI/Swagger If requested, generate OpenAPI 3.0 spec. See `templates/openapi.yaml`. ## Automation To auto-detect routes: ```bash python scripts/detect_routes.py <source_directory> ``` To validate OpenAPI spec: ```bash ./scripts/validate_openapi.sh <spec_file> ```
- Quick Reference
- Process
- Step 1: Identify API Endpoints
- Step 2: Extract Information
- Step 3: Generate Documentation
- Step 4: Create Overview
- Output Formats
- Markdown (Default)
- OpenAPI/Swagger
- Automation
python scripts/detect_routes.py <source_directory>
What does the api-generating skill do?
Generate API endpoint code and documentation from specifications. Use when the user wants to create new API endpoints, generate route handlers, scaffold REST APIs, or produce OpenAPI/Swagger specs from code.
How do I install it?
Run `npx skills add huangjia2019/claude-code-engineering --skill 05-api-generator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From huangjia2019/claude-code-engineering, a repository with 1,040 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
