Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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.
.claude/skills/huangjia2019-api-generating/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | -39% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -35% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -43% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -42% | 0% |
| case-18 | ✗→✓ | ▲ Improved | -46% | 0% |
IMPORTANT: You MUST follow these steps in order. DO NOT skip or substitute any step.
You MUST use the Python script for route detection:
bashpython3 skills/scripts/detect-routes.py src/
DO NOT manually search for routes using Grep — the script handles edge cases (dynamic routes, middleware-mounted sub-routers, re-exported routes) that Grep patterns will miss.
For each route discovered by the script:
requireAuth, isAdmin)validate(schema))Use the template at templates/api-doc.md to generate documentation.
Output rules:
docs/api/users.md)scripts/detect-routes.pytemplates/api-doc.mdBefore finishing, verify:
Other measured skills in the registry, with their headline benchmark lift.