Arguments. [identify|verify|plan|execute|batch|unwind] [<cluster>] [--fix] [--dry-run] [--repo <repo> ...]. Full form: [identify|verify|plan|execute|batch|unwind] [<cluster-name>] [--min-instances=<N>] [--buckets=<list>] [--fix] [--dry-run] [--yes] [--inline] [--parallel-waves] [--commit-mode=<per-wave|single|none>] [--repo <repo> ...|--repos-from <file|->|--owner <owner>|--fleet] [--skip <entry> ...]
Extract SSOT
Why this skill exists
Codifies the markdown-SSOT-extraction pattern as a repeatable workflow. Each invocation targets one cluster of repeated markdown content and resolves it to a single named source of truth, consolidating into an existing SSOT home when one already owns the concept, otherwise creating a new artifact (e.g. a rule file or a new skill), plus migration of all call sites to cite by exact heading.
The principle is the coding Rule of Three / DRY, applied to markdown text. If the same unit of prose appears 3+ times, changes together, and has an identity that can be named, collapse to one definition and reference by name. Below 3 instances, minting a new SSOT artifact is premature abstraction, the dominant failure mode, and the skill refuses it.
Refusing to create is not refusing to report. A lone consumer that recaps an SSOT it should be citing, and a pair of files asserting the same contract with no declared owner, are real defects that drift. Both are rostered in their own multiplicity bucket and remedied in place, with no new artifact.
Typical markdown extraction shapes the workflow handles:
- A vocabulary of CLI/API verbs that many prompts, skills, and rules invoke inline. Collapsed into one rule file with stable headings the call sites cite
- A constraint or guardrail repeated across multiple skills (e.g. "always run X before Y"). Promoted to a single always-loaded rule
- A workflow primitive appearing across several skills. Extracted to a shared primitive doc that skills cite by name
Extraction is dangerous, for the reason the record in context/decision-framework.md, "The SkillsBench record", points at. This skill encodes the guardrails (Rule of Three, categorical-shape test, the size bound and one-level depth rule /playbooks:skill-authoring (if enabled) ## Body and ## Reference files record, Metz unwind procedure) so each invocation is reversible and reviewable.
Code / config escape-hatch. Repeated string literals, magic constants, helper functions in source code, or repeated CI / settings / MCP stanzas in config files are also extractable in principle (Rule of Three applies). This skill flags such clusters during identify but does not ship a citation contract for them, the caller uses the language-idiomatic form (import / using / source, YAML anchor, JSON $ref, build-tool include) and language-aware refactoring tools. Markdown is the only file class with no language-level rename safety net. That is where the contract here adds value.
Evidence discipline
Every extraction decision must be grounded in direct evidence captured this session. Grep output or file reads you performed yourself. This skill calls such evidence Tier 0. Recall ("I remember seeing this repeated"), a subagent's survey summary, or any other synthesized claim is not Tier 0. Promote it via your own grep before it drives a plan or an edit. A subagent roster is a lead list, never proof.
Scope: markdown SSOT
In-scope: repeated content across the consuming repository's tracked markdown. Instruction files (CLAUDE.md, AGENTS.md, README.md), rule files (.claude/rules/), skill bodies (.claude/skills/), agent definitions (.claude/agents/), automation/routine prompts, ADRs, and docs. Markdown is the file class with no compiler or IDE refactor to catch a broken reference, the citation contract here is what closes that gap.
| Citation target | Form |
|-----------------|------|
| Rule-file H3 heading | ` per <file>.md "<exact heading>" ` |
| New skill | /<skill-name> invocation (skill internals not cited externally. See /docs-hygiene:audit-encapsulation) |
Out-of-scope, but flagged during identify:
- Code clusters (
.cs,.ts,.py,.sh,.ps1, …). Repeated literal, magic constant, regex, helper function. Use language-idiomatic extraction (constants file, shared module, language-aware rename refactor). Compiler + lint catch missed call sites. Citation rot is structurally prevented. - Config clusters (
.yml,.json,.toml,.editorconfig). Repeated CI step, MCP entry, settings stanza. Use the tooling's native include / anchor /$refmechanism. Schema validation catches mismatches. - Mixed clusters spanning markdown + code + config. Pick the canonical owner (usually code/schema where runtime authority lives), then each file class cites in its native form. This skill handles the markdown half; the code/config half follows that file class's own conventions.
The 6-test extraction gate (Rule of Three, namable, stable, self-contained, bounded, one level deep) generalizes to all file classes, and context/decision-framework.md annotates each test with code/config equivalents. The how (citation contract, rename sweep, encapsulation rule) is markdown-specific.
Across repositories. A target form (--repo <repo> and the others) widens the scope to those repositories' tracked markdown, per