What problem does it solve?
Streamlines documentation-to-code synchronization by detecting when the specification no longer matches the current codebase, then updating the spec to remove divergence and restore correctness.
Core Features & Use Cases
- Drift detection: Identify where recent code changes may require matching documentation updates, including exported APIs, routes, types/interfaces, dependencies, and architecture shifts.
- Spec-first updates: Update documentation as the source of truth (not the code) and ensure the revised spec remains internally consistent.
- Link and example validation: Verify referenced paths exist, internal links resolve, version claims are current, and code examples actually compile/run rather than being treated as static text.
- Codemap generation: Create or refresh module index information to accelerate future navigation and reduce re-scanning effort during sessions.
- Use case: After refactoring or API changes, run this workflow to produce a “documentation truth” report, fix remaining drifts, and prevent future AI-generated code from relying on stale specs.
Quick Start
Use doc-update after a refactor or API change to detect drift, update the affected spec documents, and produce a DOC-UPDATE REPORT with remaining divergences listed.