spec-coherence-check
БесплатноБез исполняемых скриптовНе проверенSweep all active OpenSpec proposals for staleness, conflicts, and obsolescence against the current codebase and archived changes. Use when proposals may be…
от BlackBeltTechnology★ 357 звёзд на GitHubОб этом скилле
Analyze active OpenSpec proposals against the current codebase state, detect staleness / conflicts / obsolescence, and orchestrate updates.
Input: Optional --proposal <name> for single-proposal mode.
No arguments = full sweep of all active proposals.
Phase 1: Sweep Report
Step 1 — Gather context
a) Get all active proposals:
openspec list --json
If --proposal <name> was provided, filter to just that proposal.
b) List all archived changes:
ls openspec/changes/archive/
Parse archive directory names to extract dates. Format is YYYY-MM-DD-<name>.
Extract the first 10 characters as the date string.
c) Date each active proposal using this fallback chain:
Git first-commit date:
git log --follow --diff-filter=A --format='%ai' -- "openspec/changes/<name>/proposal.md" | tail -1Parse the date portion (first 10 chars:
YYYY-MM-DD).If empty (file is untracked), use filesystem birthtime:
- macOS:
stat -f "%SB" -t "%Y-%m-%d" "openspec/changes/<name>/proposal.md" - Linux:
stat -c "%W" "openspec/changes/<name>/proposal.md"(convert epoch to date)
- macOS:
If still unknown, use the oldest archive date as a floor estimate.
d) Read artifacts for each active proposal.
Read only the files that exist — not all proposals have all artifacts:
openspec/changes/<name>/proposal.md(always exists)openspec/changes/<name>/design.md(if exists)openspec/changes/<name>/tasks.md(if exists)openspec/changes/<name>/specs/directory (if exists)
From each proposal, extract and note:
- Referenced files: paths matching
src/...in Impact and body text - Referenced capabilities: from
### Modified Capabilitiesand### New Capabilities - Assumptions: statements in Context sections, Non-Goals, and design decisions
- Files touched: from
## Impactsection specifically
e) Read relevant archived changes.
For each active proposal, identify archives dated after its creation date.
For each such archive, read its proposal.md and extract:
## What Changes— summary of modifications## Capabilities— look forBREAKINGmarkers,Modified,Removedentries## Impact— files and components touched
Keep only archives whose Impact or Capabilities overlap with the proposal being analyzed (same files or same capabilities).
Step 2 — File existence detection
For each active proposal, extract all file paths from:
- The
## Impactsection (look forsrc/...patterns and filenames likeFooBar.tsx) - The body text of proposal.md and design.md
For each extracted path:
find src/ -path "*<filename>" -o -name "<filename>" 2>/dev/null
If a referenced file does not exist anywhere in the codebase:
- Record issue: severity
stale, autoFixabletrue - Description: "Referenced file
<path>no longer exists" - Try to find where the functionality moved:
If a likely replacement is found, note it in the issue for auto-fix.rg -l "<key-term-from-filename>" src/ --type ts
Step 3 — Archive impact analysis
For each archived change that is dated after the proposal's creation:
Compare the archive's data against the proposal:
File overlap: Do the archive's Impact files intersect with the proposal's Impact files? If yes, the proposal may reference outdated file state.
Capability overlap: Does the archive modify or remove capabilities that the proposal lists under Modified Capabilities? If yes, the proposal's assumptions about those capabilities may be invalid.
BREAKING markers: Does the archive contain
BREAKINGin its Capabilities section for capabilities the proposal touches?
For each overlap found:
- If BREAKING marker present: severity
broken, autoFixablefalse- Description: "Archived change
<archive-name>has BREAKING changes to<capability>which this proposal modifies. Specifically:<detail>"
- Description: "Archived change
- If non-breaking file overlap: severity
stale, autoFixabletrue- Description: "File
<file>was modified by<archive-name>after this proposal was created. Impact section may be outdated."
- Description: "File
Step 4 — Concept validity check
For each proposal that has Context, Non-Goals, or Design assumptions sections, extract key statements and verify them against the current codebase.
What to check:
"Currently X does Y" statements — Read the relevant source file to confirm X still does Y.
rg "<key pattern>" src/ --type ts -lThen read the file to verify the claim.
Non-Goals that state "not doing Z" — Check if Z has been implemented:
rg "<Z-related-pattern>" src/ --type ts -lIf Z now exists, the Non-Goal is invalidated.
Protocol message references — Verify messages still exist:
rg "<message_type>" <protocol-source-files>Component references — Verify components still exist:
find <components-dir>/ -name "<Com
Установить spec-coherence-check в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл spec-coherence-check?
Sweep all active OpenSpec proposals for staleness, conflicts, and obsolescence against the current codebase and archived changes. Use when proposals may be outdated, when checking cross-proposal conflicts, or before starting a batch of implementations. Produces a gap-analysis report, updates a priority queue file, and can auto-fix trivial issues or guide conversations for complex ones.
Как установить скилл spec-coherence-check?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл spec-coherence-check запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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