Agent skills for analyzing FastAPI routes and completing API documentation.
npx skills add leechael/fastapi-api-docs-skillsAnalyze FastAPI route files and complete API documentation metadata. Follows the complete call stack including Depends, traces all possible errors, and generates comprehensive OpenAPI documentation elements.
Usage:
/api-docs @path/to/routes/file.py
Batch mode:
/api-docs @project/api/routes/ # All files in directory
/api-docs @file1.py @file2.py @file3.py # Multiple specific files
What it does:
- Discovers all route handlers (
@router.get,@router.post, etc.) - Traces dependencies (
Depends(...)) for auth requirements and errors - Analyzes handler body for database operations, external calls, and error propagation
- Generates docstrings, OpenAPI metadata, and parameter documentation
Documentation follows the anti-slop guidelines:
- Summaries: 6 words max, imperative verb
- Descriptions: direct statements, no filler
- No "serves as", "in order to", or hedging language
MIT