Spec Kit ドリフト調整
仕様書と設計書、タスクリストといった既存のドキュメントに変更が生じた際、新たな開発ブランチを作成せずに、その場で内容を調整し、整合性を保つように修正作業を支援する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本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
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
$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. 下の青いボタンを押して
spec-kit-reconcile.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
spec-kit-reconcileフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
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-analyzeがspec.md、plan.md、tasks.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-onlyやtasks-onlyのようなスコープのヒント)を提供すること。
ワークフロー
-
調整入力の検証:
- ギャップレポートが提供されていない場合は、
ERROR: No gap report providedで停止します。 - ユーザーのスコープ制約(たとえば、
spec-only、plan-only、tasks-only)を解析し、全体を通して保持します。
- ギャップレポートが提供されていない場合は、
-
アーティファクトパスを正確に1回解決します。
scripts/check-prerequisites.sh --json --paths-only --include-tasksを正確に1回実行します。- 以下を解析します。
REPO_ROOTBRANCHFEATURE_DIRFEATURE_SPECIMPL_PLANTASKS
- 必要なファイルを検証します。
FEATURE_SPECが見つからない場合は、spec-kit-specifyにルーティングします。IMPL_PLANが見つからない場合は、spec-kit-planにルーティングします。
-
調整コンテキストをロードします。
- 必須:
spec.md、plan.md。 - オプション(存在する場合):
tasks.md、data-model.md、contracts/、research.md、quickstart.md。 memory/constitution.mdをロードし、その MUST レベルの制約を適用します。memory/constitution.mdが見つからない場合は、停止してspec-kit-constitutionにルーティングします。
- 必須:
-
ギャップレポートを実行可能な項目に正規化します。
- 各ギャップについて、以下をキャプチャします。
TitleCategoryEvidenceDesired OutcomeSeverity (HIGH|MEDIUM|LOW)
- 推奨されるカテゴリ:
Navigation/WiringIntegration/ContractsValidation & UXAuthorization/PermissionsTest CoverageNon-FunctionalDocs
- 各ギャップについて、以下をキャプチャします。
-
必要に応じて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]_
-
アーティファクトごとの影響をマッピングします。
spec.md: ユーザーストーリー、受け入れ基準、ユーザーに見えるシナリオ、エッジの動作。plan.md: アーキテクチャ/モジュール、ルーティング/ナビゲーション、統合コントラクト、テスト戦略。tasks.md: 正確なファイルパスと順序での修正作業。- スコープの制約を尊重し、スキップされたアーティファクトを明示的にマークします。
-
ターゲットを絞った編集を適用します。
spec.md:- 影響を受けるセクションのみを更新します。
- 簡潔な
Revisionsノート(タイムスタンプ + 理由)を追加します。
plan.md:- 調整に必要なセクションのみを更新します。
- 設計レベルの詳細を維持し、実装パッチの指示を追加しないでください。
tasks.md:- 存在する場合は、
NextID = max(T###) + 1を使用して修正タスクを追加します。 - 既存のフェーズを保持します。クロス カッティング タスクが必要な場合は、
Remediation: Gapsフェーズを追加します。 - 存在しない場合は、以下から最小限の修正に焦点を当てた
tasks.mdを作成します。{REPO_ROOT}/templates/tasks-template.md{REPO_ROOT}/.specify/templates/tasks-template.md- フォールバック:
{REPO_ROOT}/skills/spec-kit-tasks/assets/tasks-template.md
- 存在する場合は、
- 配線/フローのギャップについては、常に統合テストタスクを含めます。
-
出力を検証します。
- ブランチの変更やフィーチャー作成アクションは発生しませんでした。
- 更新されたアーティファクトは、構造的に有効で、内部的に一貫性があります。
- タスクのフォーマットは厳密なままです:
- [ ] T### [P?] [US#?] Action with exact file path。
-
調整結果を報告します。
- 以下を含む同期影響レポートを提供します。
- 変更されたファイル(絶対パス)
- アーティファクトごとの編集の概要
- 新しいタスク 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-analyzefound issues that require coordinated edits acrossspec.md,plan.md, andtasks.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-specifyfirst). - You need first-pass design decomposition from an approved spec (
spec-kit-planfirst). - 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-analyzeandspec-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 CLARIFICATIONmarkers 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-onlyortasks-only).
Workflow
-
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.
- If no gap report is provided, stop with
-
Resolve artifact paths exactly once:
- Run
scripts/check-prerequisites.sh --json --paths-only --include-tasksexactly once. - Parse:
REPO_ROOTBRANCHFEATURE_DIRFEATURE_SPECIMPL_PLANTASKS
- Validate required files:
- If
FEATURE_SPECis missing, route tospec-kit-specify. - If
IMPL_PLANis missing, route tospec-kit-plan.
- If
- Run
-
Load reconcile context:
- Required:
spec.md,plan.md. - Optional (when present):
tasks.md,data-model.md,contracts/,research.md,quickstart.md. - Load
memory/constitution.mdand enforce its MUST-level constraints. - If
memory/constitution.mdis missing, stop and route tospec-kit-constitution.
- Required:
-
Normalize the gap report into actionable items:
- For each gap, capture:
TitleCategoryEvidenceDesired OutcomeSeverity (HIGH|MEDIUM|LOW)
- Preferred categories:
Navigation/WiringIntegration/ContractsValidation & UXAuthorization/PermissionsTest CoverageNon-FunctionalDocs
- For each gap, capture:
-
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
askQuestionstool 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]_
-
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.
-
Apply targeted edits:
spec.md:- Update only impacted sections.
- Add a concise
Revisionsnote (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: Gapsphase when cross-cutting tasks are needed. - If it does not exist, create a minimal remediation-focused
tasks.mdfrom:{REPO_ROOT}/templates/tasks-template.md{REPO_ROOT}/.specify/templates/tasks-template.md- fallback:
{REPO_ROOT}/skills/spec-kit-tasks/assets/tasks-template.md
- If it exists, append remediation tasks using
- For wiring/flow gaps, always include integration test tasks.
-
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.
-
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 CLARIFICATIONmarkers (maximum 3) - confirmation that constitution constraints were respected
- Recommend next step based on gates (
spec-kit-plan,spec-kit-tasks, orspec-kit-implement).
- Provide a Sync Impact Report with:
Output
- Updated reconciliation artifacts (
spec.md,plan.md, and/ortasks.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.shreferences/spec-kit-workflow.dothttps://github.com/github/spec-kit/issues/1063https://github.com/user-attachments/files/23166782/reconcile.md