What problem does it solve?
Update docs/ai/architecture.md when the codebase has drifted. Detects structural changes (new/deleted/renamed modules) under the paths the diagram covers and updates the mermaid block directly - no approval gate. Use when the user says 'sync architecture', 'update the architecture diagram', 'check the arch diagram', 'refresh architecture', 'audit the diagram'. Also auto-invoked by /save and /deep-review when drift is detected. Also use after adding, removing, or renaming a top-level component (new API route module, new shared-function module, schema restructure).
Core Features & Use Cases
- Detect architecture drift and apply the fix directly to docs/ai/architecture.md. No approval prompt - just edit the file and leave it unstaged so the user sees the diff in git status before the next commit.
- The diagram must contain a This diagram covers section listing the paths it represents. Without that, the skill can't scope the check.
- The steps outline how to identify changes and apply updates to the mermaid diagram and the coverage list.
Quick Start
Run the sync-architecture skill to update docs/ai/architecture.md whenever the codebase drifts.