validate-consistency
БесплатноЗапускает вложенные скриптыНе проверенUniversal document consistency auditor. Runs deterministic drift checks across docs, code, tests, and CI, resolves conflicts through a per-fact-class…
от jeremylongshore★ 2 961 звезда на GitHubОб этом скилле
Universal Document Consistency Auditor v3.0
Table of Contents
- Overview
- Truth Invariant
- Examples
- Instructions — Steps 0–6
- Severity Assignment Rules
- Bootstrap: Drafting Registry Rows
- Integration with /release
- Output
- Error Handling
- Resources
Overview
Runs deterministic drift checks across all documentation artifacts, resolves conflicts through a per-fact-class authority registry (sot-map.yaml), and produces a structured report with actionable findings grouped by category and severity. Deterministic checks and LLM-judged checks are structurally separated: judged findings are advisory-only and never block anything.
Truth Invariant
The governed brain arbitrates asserted company/doctrine claims and the rules of arbitration — never generated facts. This validator never reads the brain as ground truth for generated facts: authority for a generated fact lives only in a registry row a human has adjudicated. The brain ingests only human-adjudicated findings — raw findings from this skill are candidate evidence, not truth, until a human adjudicates them.
Examples
Basic audit:
/validate-consistency
Runs the full audit on the current working directory. Loads the authority registry and produces a categorized report.
Targeted check after refactor:
I just renamed a bunch of modules — check consistency
Detects that code changed, runs all 9 checks, surfaces broken cross-references (deterministic) and stale capability claims (advisory).
Pre-release gate (via /release):
/release
Phase 1.6 automatically invokes this skill. Deterministic Critical findings block the release; advisory findings are surfaced for review and never block.
Prerequisites
- Must be run from inside a git repository (or directory with recognizable project structure)
- Read access to all project files
- An authority registry (
sot-map.yaml) — optional; without one the skill runs in bootstrap mode (see Step 1)
Instructions
Step 0: Announce
echo "════════════════════════════════════════════════════════════════"
echo " DOCUMENT CONSISTENCY AUDIT"
echo "════════════════════════════════════════════════════════════════"
Step 1: Load the Authority Registry
The source of truth is a per-fact-class authority registry declared as data — never a global ranking, never auto-detected at runtime.
- Resolve the registry path: the path supplied by the invoker (argument or explicit instruction) if given; otherwise the default
~/000-projects/intent-os/sot-map.yaml. - Read and parse the registry. Print what was loaded:
echo "Authority registry: [path]"
echo "Fact classes registered: [n] — [list of class names]"
- If the registry is missing or unparseable, announce bootstrap mode: every fact class is unowned. Conflicts are still detected and reported, but no winner is ever named — each is emitted as
unowned fact-class — human adjudication needed, and the report includes drafted registry rows for a human to adjudicate (see Bootstrap).
Registry row shape:
version: 1
fact_classes:
version: # key = fact_class (snake_case / dotted)
owner: package-manifest # required — the ONE producing surface
mirrors: # surfaces expected to restate the fact;
- readme # each diffed against the owner only
- changelog # (star topology — never pairwise N×N)
determinism: deterministic # deterministic | llm-judged
depth_tier: T1 # T1 value-equality | T2 judged/semantic
staleness_bound: 0 # days a mirror may lag before lag = drift
criticality: high # critical | high | medium (severity ceiling)
volatile: false # true = mirrors expected to trail (Info-level
# replication lag inside the bound)
adjudicated_by: jeremy # optional provenance — who made the call
adjudicated_on: YYYY-MM-DD # optional provenance — when
license:
owner: license-file
mirrors: [readme]
determinism: deterministic
depth_tier: T1
staleness_bound: 0
criticality: high
volatile: false
Resolution rule: when two artifacts disagree on a fact of class F — if the registry has a row for F, the artifact belonging to that row's owner class is correct and the finding is filed against the other artifact. If the registry has no row for F, emit the finding as unowned fact-class — human adjudication needed: list both values and locations, name no winner, never guess.
Reference: See references/sot-registry.md for
Установить validate-consistency в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGlobGrepBash(echo:*)Bash(git:*)Bash(diff:*)Bash(python3:*)Вложенные файлы
FAQ
Что делает скилл validate-consistency?
Universal document consistency auditor. Runs deterministic drift checks across docs, code, tests, and CI, resolves conflicts through a per-fact-class authority registry (sot-map.yaml), and produces reports that structurally separate deterministic findings from advisory LLM-judged findings. Each local run attempts disclosure-approved report and index writes in the caller’s separate Intent OS checkout; unavailable or rejected filing is reported as HELD. Use when checking documentation accuracy before a release, after major refactors, or when onboarding to a new codebase. Also invoked automatically by /release Phase 1.6. Trigger with "/validate-consistency", "check consistency", "validate docs", "audit documentation", "doc drift check".
Как установить скилл validate-consistency?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл validate-consistency запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic