Extract Ssot
Deduplicate repeated markdown (rule files, skill bodies, ADRs, docs) into one source of truth, migrating call sites to cite it by exact heading; below Rule of…
от melodic-software★ 34 звезды на GitHub
Установить Extract Ssot в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Extract SSOT
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> ...]
Scope
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 `c
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- actions/batch.md
- actions/identify.md
- actions/verify.md
- context/anti-patterns.md
- context/citation-form.md
- context/decision-framework.md
- context/execution-checklist.md
- context/lessons.md
- context/orchestrated-mode.md
- evals/evals.json
- scripts/emit-verify-facts.sh
- scripts/emit-verify-facts.test.sh
FAQ
Что делает скилл Extract Ssot?
Deduplicate repeated markdown (rule files, skill bodies, ADRs, docs) into one source of truth, migrating call sites to cite it by exact heading; below Rule of Three, offers non-abstracting remedies and refuses a new SSOT artifact. Use when prose, literals, or concepts recur: 'DRY this prose', 'extract a shared rule', 'single source of truth for X'. Load it before planning one place for text copied into files. Load it too when a rule pasted into several files should change in one place, or a user proposes a new shared file for it.
Как установить скилл Extract Ssot?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Extract Ssot запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
agent-skill-stack
GitHubFind, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
build-evidence-map
GitHubBuild an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
pinecone-rag
GitHubBuild production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
qdrant-monitoring-debugging
GitHubDiagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…