Scans your codebase for API routes and generates OpenAPI 3.1 spec, interactive docs, and client SDK types automatically.
Uploaded markdown content, not a verification of tool compatibility or results. Review the raw text, commands, and permissions before using it. Stars require an account.
name: api-docs-gen
description: Auto-generate OpenAPI specs and docs from code
Automatically generate comprehensive API documentation from your source code.
1. OpenAPI 3.1 Specification β Complete schema with types, examples, and descriptions
2. Interactive Docs β Swagger UI or Redoc HTML page
3. Client Types β TypeScript interfaces for all request/response shapes
4. cURL Examples β Ready-to-use commands for every endpoint
5. Postman Collection β Import-ready JSON
These are not built-in Claude Code subcommands. They require a custom wrapper; consult the wrapper's documentation before use.
# Scan and generate docs
claude api-docs ./app/api
# Generate with specific format
claude api-docs ./app/api --format openapi --output docs/api.yaml
# Generate TypeScript client types
claude api-docs ./app/api --types --output lib/api-types.ts
The generator understands: