ais-one/novex-kit/api-docs-generator
Claude Code and agent skill by ais-one/novex-kit
- community
Checking that the SKILL.md file is still in the repository.
Generate structured API reference documentation from source code, OpenAPI specs, or route definitions. Trigger phrases include "generate API docs", "document this API", "create API reference", "write endpoint docs", "scaffold API docs".
Install
npx vskill@latest install ais-one/novex-kit/api-docs-generatorSKILL.md
API Documentation Generator
Generate clean, structured Markdown API reference docs from source code, OpenAPI/Swagger specs, or route definitions.
Gather Context
Before writing anything, determine:
- Source — Controller, route file, OpenAPI spec (JSON/YAML), or a set of files?
- API name — e.g., "User Management API". Infer from class/file name if not stated.
- Base URL — e.g.,
https://api.example.com/v1. Default tohttps://api.example.comif unknown. - Auth method — Bearer token (default), API key, OAuth 2.0, or none.
- Output format:
single-file(default) — one Markdown file with all endpointsper-endpoint— one file per endpoint ({method}-{path-slug}.md) plus aREADME.mdindex
- Language/framework — Auto-detect from file extensions, imports, and decorators.
If context is missing: In conversational mode, ask. In agent/inline mode, use sensible defaults and note your assumptions at the top of the output.
Analyzing the Source
From Source Code
Read the file(s) and extract:
- Every endpoint: HTTP method + route path
- Route params, query params, request body schemas
- Response types, status codes, and return models
- Auth requirements (per-endpoint if they vary)
- Doc comments, decorators, or annotations (
/// <summary>,@ApiOperation,@app.get(...), JSDoc@param/@returns, etc.)
Framework detection hints:
| Signal | Framework | |
|---|---|---|
[ApiController], [HttpGet] | ASP.NET Core | |
@app.get(), @router.post() | FastAPI | |
router.get(), app.use() | Express.js | |
@GetMapping, @RestController | Spring Boot | |
@Controller, @Get() | NestJS | |
resources :users | Rails |
From OpenAPI/Swagger Specs
Parse the spec and map directly:
paths→ endpointsparameters→ params tablerequestBody→ request body sectionresponses→ response table + examplescomponents/schemas→ inline the referenced modelssecurityDefinitions/securitySchemes→ auth sectioninfo.title,info.version,servers[0].url→ header metadata
Prefer descriptions from the spec. Only infer descriptions when the spec omits them.
Handling Incomplete Source
If the source references models, DTOs, or types defined in other files:
- Document what's visible. Use the type name as-is (e.g.,
UserDto) and note that the full schema is defined elsewhere. - If the user provides multiple files, cross-reference them to build complete schemas.
- Never fabricate fields for a model you can't see.
Documentation Template
Authorization: Bearer {token}
{ "email": "string — the user's email address", "displayName": "string — display name" }
{ "id": 42, "email": "jane@example.com", "displayName": "Jane Smith", "createdAt": "2026-01-15T10:30:00Z" }
curl -X GET "{base-url}/{path}" \ -H "Authorization: Bearer eyJhbG..."
For per-endpoint format: one file per endpoint named {method}-{path-slug}.md (e.g., get-users-id.md), each using the endpoint section above, plus a README.md that links to all of them grouped by resource.
Common API Patterns to Document
When you encounter these in the source, document them:
- Pagination — query params like
page,limit,offset,cursor. Note defaults and max values if visible. - Filtering/sorting — query params like
sort,filter,q,status. Document allowed values. - Rate limiting — if headers like
X-RateLimit-*or decorators like@Throttle()are present, add a "Rate Limiting" section. - Versioning — if the API uses path versioning (
/v1/,/v2/) or header versioning, note it in the header. - Bulk operations — endpoints accepting arrays or batch payloads.
Rules
Do:
- Extract only what exists in the source — never invent endpoints, params, or fields
- Use exact route paths, param names, and types from the code
- Preserve existing descriptions from doc comments, annotations, or spec descriptions
- Include a
curlexample for every endpoint - Use realistic fake data in examples (
jane@example.com,42,"acme-corp"— not"string"or"value") - Document both success and error responses
- Use standard HTTP status descriptions (200 OK, 201 Created, 400 Bad Request, 401 Unauthorized, 404 Not Found, etc.)
- Flag ambiguity with a note (e.g., _"Response schema inferred from return type; actual response may differ"_)
Don't:
- Invent endpoints or params that aren't in the source
- Use placeholder junk like
"string","value", or"example"in response bodies - Skip error responses — include at least 400 and 404 where applicable
- Assume auth requirements if the code doesn't specify them — note the uncertainty instead
Example
Input — ASP.NET Core controller:
Output:
{ "id": 42, "email": "jane@example.com", "displayName": "Jane Smith", "createdAt": "2026-01-15T10:30:00Z" }
curl -X GET "https://api.example.com/api/users/42" \ -H "Authorization: Bearer eyJhbG..."
{ "email": "string — the user's email address", "displayName": "string — the user's display name", "role": "string — user role (admin, member, viewer)" }
{ "id": 43, "email": "john@example.com", "displayName": "John Doe", "createdAt": "2026-02-18T14:00:00Z" }
curl -X POST "https://api.example.com/api/users" \ -H "Authorization: Bearer eyJhbG..." \ -H "Content-Type: application/json" \ -d '{"email": "john@example.com", "displayName": "John Doe", "role": "member"}'
Pre-Delivery Checklist
- [ ] Every endpoint in the source is documented — none missing, none invented
- [ ] All params have correct name, location (
path/query/header/body), type, and required status - [ ] Every endpoint has a
curlexample with realistic data - [ ] Response examples use plausible fake data, not placeholders
- [ ] Endpoints are grouped by resource and sorted GET → POST → PUT → PATCH → DELETE
- [ ] Auth section matches what the code actually specifies
- [ ] Ambiguities are flagged, not silently assumed
- [ ] TOC anchors resolve correctly
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/api-docs-generator/SKILL.md
Popularity
- Repository stars
- 460
- Repository forks
- 120
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Jun 2026, 4 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ais-one/novex-kit/api-docs-generator)