Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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:

  1. Git first-commit date:

    git log --follow --diff-filter=A --format='%ai' -- "openspec/changes/<name>/proposal.md" | tail -1
    

    Parse the date portion (first 10 chars: YYYY-MM-DD).

  2. 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)
  3. 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 Capabilities and ### New Capabilities
  • Assumptions: statements in Context sections, Non-Goals, and design decisions
  • Files touched: from ## Impact section 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 for BREAKING markers, Modified, Removed entries
  • ## 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 ## Impact section (look for src/... patterns and filenames like FooBar.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, autoFixable true
  • Description: "Referenced file <path> no longer exists"
  • Try to find where the functionality moved:
    rg -l "<key-term-from-filename>" src/ --type ts
    
    If a likely replacement is found, note it in the issue for auto-fix.

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:

  1. File overlap: Do the archive's Impact files intersect with the proposal's Impact files? If yes, the proposal may reference outdated file state.

  2. 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.

  3. BREAKING markers: Does the archive contain BREAKING in its Capabilities section for capabilities the proposal touches?

For each overlap found:

  • If BREAKING marker present: severity broken, autoFixable false
    • Description: "Archived change <archive-name> has BREAKING changes to <capability> which this proposal modifies. Specifically: <detail>"
  • If non-breaking file overlap: severity stale, autoFixable true
    • Description: "File <file> was modified by <archive-name> after this proposal was created. Impact section may be outdated."

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 -l
    

    Then 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 -l
    

    If 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
    
Полный SKILL.md на GitHub

Установить spec-coherence-check в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

SKILL.agent.mdreferences/proposal-queue-schema.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить spec-coherence-check с