plugins/coordinator/skills/atlas-integrity-check/SKILL.md
Check today's changed files against the architecture atlas — flags narrative-drift when changes touch systems the atlas description doesn't mention or reflect. On RAG repos: narrative-drift findings. On non-RAG repos: also flags unmapped files as potential new systems. Invoked by /update-docs (Phase 11) or standalone.
npx skillsauth add oduffy-delphi/coordinator-claude atlas-integrity-checkInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Detect where the atlas narrative may have drifted from the codebase's current reality.
Two modes depending on RAG presence:
mcp__*project-rag* tool available): Narrative-drift mode. File-level coverage is RAG's job. This skill checks whether changed files touch areas the atlas narrative doesn't mention — suggesting the narrative description of that system needs updating.Skip silently if tasks/architecture-atlas/systems-index.md does not exist — the atlas hasn't been bootstrapped yet. No error, no warning.
Get today's changed files:
git diff --name-only $(git merge-base HEAD origin/main) HEAD 2>/dev/null || git diff --name-only HEAD~10 HEAD 2>/dev/null
Read tasks/architecture-atlas/systems-index.md — identify the named systems and their descriptions.
For each changed file, determine which system it belongs to:
plugins/coordinator-claude/coordinator/commands/ → coordinator-pipeline).Read the narrative description for that system from tasks/architecture-atlas/systems/{system-name}.md — specifically the "System Narrative" or "Purpose" section.
Narrative-drift check: Does the changed file's module or component appear in the narrative? Ask:
Emit narrative-drift findings for any mismatches:
NOTE: Narrative drift — [system-name]:
- [file path]: this file touches [describe what changed — new capability/subsystem/refactor].
The atlas narrative for [system-name] does not mention [X]. Consider updating the atlas
narrative to reflect this change.
If no drift detected: Note: "Atlas narrative check: no drift detected for [N] changed files."
Run Steps 1-7 above (narrative-drift), then additionally:
Read tasks/architecture-atlas/file-index.md — each entry maps a file path (or directory) to a system.
For each changed file, check if it appears in the file-index (exact path match, or parent directory match).
Collect unmapped files — changed files not in the index.
If unmapped files exist, flag:
NOTE: Potential new system detected — the following changed files are not mapped in the architecture atlas:
- [file path] ([parent directory])
Consider running /architecture-audit --refresh to remap, or manually add these files to the appropriate system in tasks/architecture-atlas/.
If all changed files are mapped (or no changed files): Note: "Atlas file-index check: all changed files mapped."
/architecture-audit generates findings but grades only update when explicitly recorded. An unupdated grade after an audit is misleading.tools
Orient session — preflight, load context, choose work
documentation
Wrap up finished work — capture lessons, update docs
development
Triangulate plan-claim / code-reality / review oracles to classify each plan into DELIVERED+REVIEWED / DELIVERED-UNREVIEWED / PARTIAL / IN-FLIGHT / ABANDONED. Run after any crash or 'did we actually finish what we think we finished?' moment.
testing
Check for a published coordinator update and advise a preserve-by-default migration path — never a blind overwrite.