/ssot-audit:ssot-auditfrom ssot-audit
Finds where a fact, value, or decision is duplicated or contradicted across files, identifies the single source of truth (read-only), and consolidates copies after user approval. Useful for deduplication and resolving conflicting information in any artifact.
Ships in ssot-audit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
One fact often lives in several artifacts (docs, code, config, tickets, notes) and the copies drift or contradict each other. This skill finds where the fact lives and how many copies exist, names one source of truth (Phase A, read-only), and after user approval brings the other copies in line with it (Phase B).
doc-drift only checks the instruction docs Claude Code loads into context (CLAUDE.md, MEMORY.md, skills, agents, commands, plugins) for stale claims. This skill works on any artifact in a repo or notes folder.
Dominant variable: is the chosen source of truth really the most authoritative location and the one updated most often? A wrong pick makes consolidation distort the fact instead of fixing it.
Discard if: the fact already lives in exactly one place (no duplication), or the job is only a stale-claim check of the loaded instruction docs (use doc-drift).
Run only on explicit request: this skill edits files in Phase B, so it does not start on its own; run it only when the user asks for it.
Verify before acting: every artifact found in Phase A is a snapshot from the time of the audit. Before Phase B edits anything, re-check the current state with Glob/Grep. "I saw it during the audit, so it must still be right" is not allowed.
/ssot-auditEdit is listed in tools: (the tool list is descriptive metadata, nothing enforces it), so keeping this phase read-only is a rule you follow.
glob or type filter to text files, and exclude __pycache__ and build output (for example glob !**/__pycache__/**), otherwise compiled-file matches have to be filtered by hand.git rm <file>; this skill has no tool to delete files)Review it for narrowing, merging or removal if any of these is observed:
If the files, command output or source text a result relied on look different when re-checked (the target changed or was misread), treat that result as invalid and run it again. A result is valid only for the point in time its inputs were read.
| Risky action | Reversibility | Layers |
|---|---|---|
| Phase B edit (dedupe/reference) | medium | prompt rules + user approval (recoverable through git, approval still required) |
Phase B approval is valid for the current session only. Re-running in a new session needs fresh approval.
| Does | Does NOT |
|---|---|
| [READ] enumerate every occurrence with Grep/Glob | edit files without user approval |
| [READ] designate a source-of-truth candidate and propose actions | resolve contradictions (reconcile) on its own |
| [EDIT] apply only approved dedupe/reference actions | delete a copy before preserving its unique details, or delete a whole file (propose it instead) |
| [READ] report Phase A and Phase B separately | the stale-claim check of the loaded instruction docs (that is doc-drift) |
| Rationalization | Rebuttal |
|---|---|
| "It's obvious which one is right, I'll just merge them" | Violates Invariant 2. "Obvious" is the auditor's opinion, not a verified fact. Reconcile goes to a human. |
| "While auditing I might as well fix what I found" | Violates Invariant 1. The A/B split exists to stop edits that cannot be undone before approval. |
| "Saying there are no duplicates feels weak, let me find something" | Violates Invariant 3. Forced findings cause needless edits. |
| "doc-drift already covers this project" | doc-drift only checks the loaded instruction docs for stale claims. One fact's duplicates across a whole repo or notes folder, and consolidating them, are this skill. |
| Failure type | Recovery |
|---|---|
| input_error | No fact to track, or one too broad (for example "consolidate the duplicated content"): do not start; ask the user to name the fact (a value, spec or decision) in one line. |
| missing_data (Phase A) | Grep/Glob cannot find the scope: report "scope unclear" and ask the user to confirm it. |
| tool_failure (Phase A) | Retry a failed Grep/Glob once, then report which searches failed and mark the occurrence list as incomplete. Do not start Phase B on an incomplete list. |
| tool_failure (Phase B) | Retry a failed Edit once, then stop. Report which items were applied and which were not; do not continue with the remaining items. |
| logic_inconsistency | Two or more equally authoritative source-of-truth candidates: classify as reconcile, never pick one. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
audit, consolidation, source-of-truth, dedupe, fact-checking
npx claudepluginhub alexzio00/sovereign-skills --plugin ssot-auditOther plugins' skills for the same job