Python docstring generator CLI — Automate your docs
Python teams waste hours manually writing and updating docstrings. Legacy Doc-AI CLI automates this process, scanning your codebase for missing and stale documentation while generating accurate READMEs from actual code.
How it works
Run the CLI on any Python directory to get a full docstring health report:
legacy-doc-ai check ./src/
The tool uses AST parsing to detect:
- Functions without any docstrings
- Stale docstrings that don't match current signatures
- Parameters with missing type hints
Auto-generate with review
Generate docstrings for undocumented functions with a single command:
legacy-doc-ai docstrings ./src/ --dry-run
Review unified diffs before applying changes—just like code reviews. When satisfied, run without --dry-run to write the updates.
Generate README from code
Legacy Doc-AI can also generate a complete README file that reflects your actual API structure, complete with function tables and coverage stats.
Get started
Start with a free audit (email jasper@jzzystudios.com); the CLI is in early access. Single repo subscriptions start at £39/month with unlimited runs.