jpskill.com
📦 その他 コミュニティ

Spec Kit ドリフト調整

spec-kit-reconcile

仕様書と設計書、タスクリストといった既存のドキュメントに変更が生じた際、新たな開発ブランチを作成せずに、その場で内容を調整し、整合性を保つように修正作業を支援するSkill。

📜 元の英語説明(参考)

Use when specification drift is discovered at any stage and existing Spec Kit artifacts (`spec.md`, `plan.md`, `tasks.md`) must be reconciled in-place without creating a new feature branch.

🇯🇵 日本人クリエイター向け解説

一言でいうと

仕様書と設計書、タスクリストといった既存のドキュメントに変更が生じた際、新たな開発ブランチを作成せずに、その場で内容を調整し、整合性を保つように修正作業を支援するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o spec-kit-reconcile.zip https://jpskill.com/download/10651.zip && unzip -o spec-kit-reconcile.zip && rm spec-kit-reconcile.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/10651.zip -OutFile "$d\spec-kit-reconcile.zip"; Expand-Archive "$d\spec-kit-reconcile.zip" -DestinationPath $d -Force; ri "$d\spec-kit-reconcile.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して spec-kit-reconcile.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → spec-kit-reconcile フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Spec Kit Reconcile

既存の Spec Kit アーティファクトをその場で更新することで、仕様のずれを解消します。

どのような時に使うか

  • 仕様のずれをどの段階(specify, clarify, plan, tasks, analyze, implement)で発見した場合でも、作業を続ける前にアーティファクトを再調整する必要がある場合。
  • コードは存在するものの、動作が期待されるフロー(ルーティング/ナビゲーションの配線、統合の引き渡し、バリデーションの UX、カバレッジのギャップ)を満たしていない場合。
  • spec-kit-analyzespec.mdplan.mdtasks.md 全体で調整された編集を必要とする問題を発見した場合。
  • 新しいフィーチャーブランチを作成せずに、的を絞った修正計画が必要な場合。

どのような時に使わないか

  • まったく新しいフィーチャースペックが必要な場合(最初に spec-kit-specify)。
  • 承認されたスペックから最初の設計分解が必要な場合(最初に spec-kit-plan)。
  • 読み取り専用の監査のみが必要な場合(spec-kit-analyze)。
  • すでに正しいタスクのみを実行する場合(spec-kit-implement)。

ルーターの適合性

  • 開発者がどの段階でずれを特定した場合でも、第一級のスタンドアロン修正ルート。
  • また、spec-kit-analyze および spec-kit-implement からのデフォルトの修正ハンドオフとしても機能します。
  • 更新されたアーティファクトの状態に基づいて、調整されたアーティファクトと次のステップのルーティングを生成します。

重要な制約

  • 新しいフィーチャーブランチを絶対に作成せず、フィーチャー作成スクリプトを絶対に実行しないこと。
  • 編集は的を絞り、アーティファクトの構造と見出しの順序を維持すること。
  • tasks.md に対しては、追記のみの更新を優先し、既存のタスクの番号を振り直さないこと。
  • 最大で1回の明確化ラウンド(最大5つの質問)を実行すること。
  • 未解決の NEEDS CLARIFICATION マーカーを3つ以下に保つこと。

前提条件

  • リポジトリのルート(またはその中のサブディレクトリ)から実行すること。
  • アクティブなフィーチャーコンテキストが、1つの specs/<feature>/ ディレクトリに解決されること。
  • ユーザーが具体的なギャップレポート(症状、不一致、不足している配線、および plan-onlytasks-only のようなスコープのヒント)を提供すること。

ワークフロー

  1. 調整入力の検証:

    • ギャップレポートが提供されていない場合は、ERROR: No gap report provided で停止します。
    • ユーザーのスコープ制約(たとえば、spec-onlyplan-onlytasks-only)を解析し、全体を通して保持します。
  2. アーティファクトパスを正確に1回解決します。

    • scripts/check-prerequisites.sh --json --paths-only --include-tasks を正確に1回実行します。
    • 以下を解析します。
      • REPO_ROOT
      • BRANCH
      • FEATURE_DIR
      • FEATURE_SPEC
      • IMPL_PLAN
      • TASKS
    • 必要なファイルを検証します。
      • FEATURE_SPEC が見つからない場合は、spec-kit-specify にルーティングします。
      • IMPL_PLAN が見つからない場合は、spec-kit-plan にルーティングします。
  3. 調整コンテキストをロードします。

    • 必須:spec.mdplan.md
    • オプション(存在する場合):tasks.mddata-model.mdcontracts/research.mdquickstart.md
    • memory/constitution.md をロードし、その MUST レベルの制約を適用します。
    • memory/constitution.md が見つからない場合は、停止して spec-kit-constitution にルーティングします。
  4. ギャップレポートを実行可能な項目に正規化します。

    • 各ギャップについて、以下をキャプチャします。
      • Title
      • Category
      • Evidence
      • Desired Outcome
      • Severity (HIGH|MEDIUM|LOW)
    • 推奨されるカテゴリ:
      • Navigation/Wiring
      • Integration/Contracts
      • Validation & UX
      • Authorization/Permissions
      • Test Coverage
      • Non-Functional
      • Docs
  5. 必要に応じて1回明確化します。

    • 回答がスコープ、UX の動作、受け入れ基準、または修正コストを変更する場合にのみ質問します。
    • 1ラウンドで最大5つの質問をし、その後続行します。
    • 現在のランタイムに askQuestions スタイルのツールが存在する場合は、このステップでそれを優先して、すべての複数選択式の回答を1回の高速なインタラクションで収集します。
    • askQuestions を使用する場合は、質問ごとに2〜5個の相互に排他的なオプションを提供し、推奨されるオプションを最初に置き、短いカスタム応答パスを許可します。
    • askQuestions ツールが存在しない場合は、以下の markdown プロンプト形式にフォールバックします。
    • 各質問に次の形式を使用します。
## Question [N]: [Topic]

**Context**: [Relevant spec/plan/tasks excerpt or summary]
**Decision Needed**: [Single-sentence decision]
**Suggested Answers**:

| Option | Answer | Implications |
|--------|--------|--------------|
| A | [Option A] | [Impact] |
| B | [Option B] | [Impact] |
| C | [Option C] | [Impact] |
| Custom | Provide your own | [How it changes scope] |

**Your choice**: _[Wait for user response]_
  1. アーティファクトごとの影響をマッピングします。

    • spec.md: ユーザーストーリー、受け入れ基準、ユーザーに見えるシナリオ、エッジの動作。
    • plan.md: アーキテクチャ/モジュール、ルーティング/ナビゲーション、統合コントラクト、テスト戦略。
    • tasks.md: 正確なファイルパスと順序での修正作業。
    • スコープの制約を尊重し、スキップされたアーティファクトを明示的にマークします。
  2. ターゲットを絞った編集を適用します。

    • spec.md:
      • 影響を受けるセクションのみを更新します。
      • 簡潔な Revisions ノート(タイムスタンプ + 理由)を追加します。
    • plan.md:
      • 調整に必要なセクションのみを更新します。
      • 設計レベルの詳細を維持し、実装パッチの指示を追加しないでください。
    • tasks.md:
      • 存在する場合は、NextID = max(T###) + 1 を使用して修正タスクを追加します。
      • 既存のフェーズを保持します。クロス カッティング タスクが必要な場合は、Remediation: Gaps フェーズを追加します。
      • 存在しない場合は、以下から最小限の修正に焦点を当てた tasks.md を作成します。
        1. {REPO_ROOT}/templates/tasks-template.md
        2. {REPO_ROOT}/.specify/templates/tasks-template.md
        3. フォールバック: {REPO_ROOT}/skills/spec-kit-tasks/assets/tasks-template.md
    • 配線/フローのギャップについては、常に統合テストタスクを含めます。
  3. 出力を検証します。

    • ブランチの変更やフィーチャー作成アクションは発生しませんでした。
    • 更新されたアーティファクトは、構造的に有効で、内部的に一貫性があります。
    • タスクのフォーマットは厳密なままです: - [ ] T### [P?] [US#?] Action with exact file path
  4. 調整結果を報告します。

    • 以下を含む同期影響レポートを提供します。
      • 変更されたファイル(絶対パス)
      • アーティファクトごとの編集の概要
      • 新しいタスク ID
      • スコープの制約によりスキップされたアーティファクト
      • 未解決の `NEEDS CLARIFICATI
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Spec Kit Reconcile

Close specification drift by updating existing Spec Kit artifacts in-place.

When to Use

  • You discover specification drift at any stage (specify, clarify, plan, tasks, analyze, or implement) and need artifacts realigned before continuing.
  • Code exists, but behavior still misses expected flows (routing/navigation wiring, integration handoff, validation UX, coverage gaps).
  • spec-kit-analyze found issues that require coordinated edits across spec.md, plan.md, and tasks.md.
  • You need targeted remediation planning without creating a new feature branch.

When Not to Use

  • You need a brand-new feature spec (spec-kit-specify first).
  • You need first-pass design decomposition from an approved spec (spec-kit-plan first).
  • You only need a read-only audit (spec-kit-analyze).
  • You are only executing already-correct tasks (spec-kit-implement).

Router Fit

  • First-class standalone remediation route when the developer identifies drift at any stage.
  • Also serves as the default remediation handoff from spec-kit-analyze and spec-kit-implement.
  • Produces reconciled artifacts and next-step routing based on the updated artifact state.

Critical Constraints

  • Never create a new feature branch and never run feature-creation scripts.
  • Keep edits targeted; preserve artifact structure and heading order.
  • Prefer append-only updates for tasks.md; do not renumber existing tasks.
  • Run at most one clarification round (maximum 5 questions).
  • Keep unresolved NEEDS CLARIFICATION markers to 3 or fewer.

Preconditions

  • Run from repository root (or a subdirectory inside it).
  • Active feature context resolves to one specs/<feature>/ directory.
  • User provides a concrete gap report (symptoms, mismatches, missing wiring, and/or scope hints like plan-only or tasks-only).

Workflow

  1. Validate reconcile input:

    • If no gap report is provided, stop with ERROR: No gap report provided.
    • Parse user scope constraints (for example spec-only, plan-only, tasks-only) and preserve them throughout.
  2. Resolve artifact paths exactly once:

    • Run scripts/check-prerequisites.sh --json --paths-only --include-tasks exactly once.
    • Parse:
      • REPO_ROOT
      • BRANCH
      • FEATURE_DIR
      • FEATURE_SPEC
      • IMPL_PLAN
      • TASKS
    • Validate required files:
      • If FEATURE_SPEC is missing, route to spec-kit-specify.
      • If IMPL_PLAN is missing, route to spec-kit-plan.
  3. Load reconcile context:

    • Required: spec.md, plan.md.
    • Optional (when present): tasks.md, data-model.md, contracts/, research.md, quickstart.md.
    • Load memory/constitution.md and enforce its MUST-level constraints.
    • If memory/constitution.md is missing, stop and route to spec-kit-constitution.
  4. Normalize the gap report into actionable items:

    • For each gap, capture:
      • Title
      • Category
      • Evidence
      • Desired Outcome
      • Severity (HIGH|MEDIUM|LOW)
    • Preferred categories:
      • Navigation/Wiring
      • Integration/Contracts
      • Validation & UX
      • Authorization/Permissions
      • Test Coverage
      • Non-Functional
      • Docs
  5. Clarify once when needed:

    • Ask questions only when answers change scope, UX behavior, acceptance criteria, or remediation cost.
    • Ask at most 5 total questions in one round, then proceed.
    • If an askQuestions-style tool exists in the current runtime, prefer it for this step to collect all multiple-choice answers in one fast interaction.
    • When using askQuestions, provide 2-5 mutually exclusive options per question, put the recommended option first, and allow a short custom response path.
    • If no askQuestions tool exists, fall back to the markdown prompt format below.
    • Use this format for each question:
## Question [N]: [Topic]

**Context**: [Relevant spec/plan/tasks excerpt or summary]
**Decision Needed**: [Single-sentence decision]
**Suggested Answers**:

| Option | Answer | Implications |
|--------|--------|--------------|
| A | [Option A] | [Impact] |
| B | [Option B] | [Impact] |
| C | [Option C] | [Impact] |
| Custom | Provide your own | [How it changes scope] |

**Your choice**: _[Wait for user response]_
  1. Map impact per artifact:

    • spec.md: user stories, acceptance criteria, user-visible scenarios, edge behaviors.
    • plan.md: architecture/modules, routing/navigation, integration contracts, testing strategy.
    • tasks.md: remediation work with exact file paths and ordering.
    • Respect scope constraints and explicitly mark skipped artifacts.
  2. Apply targeted edits:

    • spec.md:
      • Update only impacted sections.
      • Add a concise Revisions note (timestamp + reason).
    • plan.md:
      • Update only sections needed for reconciliation.
      • Keep design-level detail; do not add implementation patch instructions.
    • tasks.md:
      • If it exists, append remediation tasks using NextID = max(T###) + 1.
      • Preserve existing phases; add Remediation: Gaps phase when cross-cutting tasks are needed.
      • If it does not exist, create a minimal remediation-focused tasks.md from:
        1. {REPO_ROOT}/templates/tasks-template.md
        2. {REPO_ROOT}/.specify/templates/tasks-template.md
        3. fallback: {REPO_ROOT}/skills/spec-kit-tasks/assets/tasks-template.md
    • For wiring/flow gaps, always include integration test tasks.
  3. Validate outputs:

    • No branch changes or feature-creation actions occurred.
    • Updated artifacts remain structurally valid and internally consistent.
    • Task formatting stays strict: - [ ] T### [P?] [US#?] Action with exact file path.
  4. Report reconciliation result:

    • Provide a Sync Impact Report with:
      • changed files (absolute paths)
      • summary of edits by artifact
      • new task IDs
      • skipped artifacts due to scope constraints
      • outstanding NEEDS CLARIFICATION markers (maximum 3)
      • confirmation that constitution constraints were respected
    • Recommend next step based on gates (spec-kit-plan, spec-kit-tasks, or spec-kit-implement).

Output

  • Updated reconciliation artifacts (spec.md, plan.md, and/or tasks.md) in the active feature directory.
  • New remediation tasks ready for execution.
  • Sync Impact Report for traceability.

Key Rules

  • Keep reconciliation incremental and focused on stated gaps.
  • Prefer appending over rewriting existing artifacts.
  • Never reorder existing task IDs.
  • Do not silently expand feature scope beyond the gap report and answered clarifications.

Common Mistakes

  • Running reconcile without a concrete gap report.
  • Rewriting whole artifacts instead of targeted updates.
  • Creating a new feature branch for remediation work.
  • Adding vague remediation tasks without exact file paths or acceptance intent.
  • Ignoring constitution MUST constraints while patching artifacts.

References

  • scripts/check-prerequisites.sh
  • references/spec-kit-workflow.dot
  • https://github.com/github/spec-kit/issues/1063
  • https://github.com/user-attachments/files/23166782/reconcile.md