Back to MD Exchange
    Claude Code Skillsapidocumentationopenapiswaggertypescriptdevtools

    API Documentation Generator

    Scans your codebase for API routes and generates OpenAPI 3.1 spec, interactive docs, and client SDK types automatically.

    K
    keygroup|March 25, 2026|Updated Oct 8
    0 downloads0 stars

    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


    API Documentation Generator

    Automatically generate comprehensive API documentation from your source code.

    Supported Frameworks

    • Next.js App Router (route.ts files)
    • Express.js
    • FastAPI (Python)
    • Gin (Go)
    • Axum (Rust)

    What It Generates

    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

    Usage (illustrative custom-wrapper commands)

    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
    

    Smart Detection

    The generator understands:

    • Zod schemas β†’ JSON Schema
    • TypeScript types β†’ Schema definitions
    • JSDoc comments β†’ Descriptions
    • HTTP status codes β†’ Response variants
    • Middleware β†’ Auth requirements