Identify and fix documentation that's out of sync with code.
Find and fix documentation that's out of sync with your code. Use before commits to catch broken references, outdated examples, and missing docstrings.
/plugin marketplace add varaku1012/aditi.code/plugin install auto-docs@aditi-code-pluginsIdentify and fix documentation that's out of sync with code.
/docs-sync # Check for mismatches
/docs-sync --fix # Auto-fix issues
/docs-sync --report # Generate detailed report
## Documentation Sync Report
### Out of Sync: 5 items
#### Critical (broken docs)
1. `src/pipelines/idea2video.py:process_idea`
- Docstring mentions `timeout` parameter
- Parameter was removed in recent commit
- Fix: Remove from docstring
2. `README.md:Installation`
- Shows `pip install infinitemedia`
- Package name is `infinite-video`
- Fix: Update package name
#### Warnings (incomplete)
1. `src/agents/screenwriter.py:generate_story`
- New parameter `temperature` not documented
- Fix: Add to Args section
2. `docs/api/tools.md`
- Missing documentation for `VeoVideoGenerator`
- Fix: Generate API docs
#### Info (style issues)
1. `src/tools/nanobanana.py`
- Docstring uses NumPy style
- Project uses Google style
- Fix: Convert to Google style
With --fix flag:
# GitHub Actions
- name: Check Docs Sync
run: |
/docs-sync --report > sync-report.md
if grep -q "Critical" sync-report.md; then
exit 1
fi
In docs-sync.yaml:
check:
- docstrings
- readme
- api_docs
- examples
ignore:
- "tests/*"
- "scripts/*"
strict_mode: false # Fail on warnings too
# .pre-commit-config.yaml
- repo: local
hooks:
- id: docs-sync
name: Check documentation sync
entry: /docs-sync
language: system
pass_filenames: false
## Documentation
- [ ] Docstrings updated for changed functions
- [ ] README updated if needed
- [ ] API docs regenerated