API Documentation Generator

•
5
•

Automatically generates comprehensive OpenAPI specifications, TypeScript types, and curl examples by analyzing existing backend route handlers and middleware.

The API Documentation Generator is a specialized skill for Claude Code designed to automate the creation of API references directly from source code. By analyzing route handlers in frameworks like Express, Next.js, Fastify, and Hono, it reverse-engineers the actual API contract including path parameters, query strings, and request bodies. It intelligently infers schemas from Zod, Joi, or TypeScript types, traces middleware to document authentication requirements, and catalogs error responses. This tool ensures your documentation, client-side types, and testing examples remain perfectly synchronized with your implementation without manual authoring.

주요 기능

01Framework-aware route discovery for Express, Next.js, Fastify, and Hono
02Automated OpenAPI 3.0/3.1 YAML specification generation
03Schema inference from validation libraries, TypeScript types, or runtime usage
04Generation of standalone TypeScript type definitions for client-side use
05Creation of runnable curl examples with realistic sample data for every endpoint
065 GitHub stars

사용 사례

01Generating an up-to-date OpenAPI spec for a legacy codebase without existing documentation
02Creating accurate frontend TypeScript types directly from backend route logic
03Auditing backend services to identify undocumented endpoints and inconsistent error handling