doc-sync-validator
SKILL.md
Documentation Sync Protocol
1. Context Mapping
The project uses a docs_manifest.yaml to map source code modules to their corresponding documentation files.
2. Validation Logic
Whenever changes are detected in the src/ directory:
- Analyze Diff: Identify which modules or functions were modified.
- Manifest Check: Cross-reference the modified paths against
docs_manifest.yaml. - Parity Audit:
- Check if the corresponding
.mdfiles indocs/en/product/have been modified in the current staged changes. - If code was added/changed but documentation was not, flag a Sync Warning.
- Check if the corresponding
3. Agent Instructions
- If a drift is detected, do not block the commit immediately. Instead, present a summary:
"⚠️ Source change detected in
src/auth/butdocs/en/product/auth-flow.mdwas not updated. Would you like me to draft the documentation update now?" - If the user says "No," proceed but log the drift in
PROJECT_STATE.mdunder a "Technical Debt" section.