What problem does it solve?
This skill solves the problem of outdated, inconsistent, or manually intensive API documentation by automating its generation directly from the source code. It ensures documentation accurately reflects the current state of the API, saving developers time and reducing errors.
Core Features & Use Cases
- Automated API Discovery: Scans the codebase to identify API frameworks, endpoints, and their associated methods and paths.
- Schema Extraction: Extracts detailed request and response schemas, including types, validation rules, and descriptions, from code definitions (e.g., TypeScript interfaces, Pydantic models).
- Multi-Format Output: Generates API documentation in industry-standard formats such as OpenAPI 3.1 YAML, Markdown API Reference, or Postman Collections.
- Use Case: A development team needs to provide up-to-date API documentation for a new microservice. They can use this skill to automatically generate an OpenAPI specification and a Markdown reference directly from their code, ensuring consistency and accuracy for consumers.
Quick Start
Use the api-docs skill to generate OpenAPI documentation for the current project's API endpoints.