What problem does it solve?
Writing and maintaining OpenAPI documentation by hand is tedious and quickly drifts out of sync with the actual code. This Skill scans your existing route definitions and produces a standards-compliant OpenAPI 3.0.3 spec automatically, keeping API docs aligned with the implementation.
Core Features & Use Cases
- Multi-Framework Route Scanning: Parses Flask, FastAPI, and Django REST Framework via Python AST, Express.js via regex with JSDoc, and Gin/Echo in Go via regex with comments.
- Rich Endpoint Extraction: Captures HTTP methods, path parameters (with type inference), query parameters, request bodies, FastAPI response models, and docstring-based descriptions, then groups endpoints into tags by source file.
- Flexible Output: Emits JSON or YAML specs with configurable title, version, description, and server URLs, ready to import into Swagger UI or Redoc.
- Use Case: Point the script at a FastAPI project's source directory to instantly produce an api-spec.yaml documenting every endpoint, including Pydantic request/response models, for publishing to your developer portal.
Quick Start
Ask the assistant to scan your project's source directory and generate an OpenAPI 3.0 specification file from its route definitions.