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

Spec Kit タスク分解

spec-kit-tasks

承認されたSpec Kit(計画と仕様)に基づき、依存関係を考慮してタスクを分解し、タスクリストを作成・更新することで、計画や変更後のタスク管理を効率化するSkill。

📜 元の英語説明(参考)

Use when an approved Spec Kit `plan.md` + `spec.md` must be decomposed into dependency-ordered `tasks.md`, or when `tasks.md` is missing/stale after planning or reconciliation changes.

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

一言でいうと

承認されたSpec Kit(計画と仕様)に基づき、依存関係を考慮してタスクを分解し、タスクリストを作成・更新することで、計画や変更後のタスク管理を効率化するSkill。

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

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

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

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

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

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して spec-kit-tasks.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → spec-kit-tasks フォルダができる
  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 Tasks

Spec Kit の設計成果物から、実装準備が整った tasks.md を生成します。

どのような時に使うか

  • plan.mdspec.md が存在し、実装のための実行可能なタスクが必要な場合。
  • tasks.md が存在しない、古い、または現在の plan/spec 成果物(spec-kit-reconcile 後の更新を含む)と整合していない場合。
  • ユーザーストーリーのスコープを持つタスクフェーズを、明確な依存関係と並列化のシグナルとともに必要とする場合。

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

  • 機能仕様書が存在しない場合(最初に spec-kit-specify を実行)。
  • 影響の大きい曖昧さが、設計上の決定を依然として妨げている場合(最初に spec-kit-clarify を実行)。
  • 技術設計の成果物が最終決定されていない場合(最初に spec-kit-plan を実行)。
  • タスクを生成するのではなく、実行している場合(spec-kit-implement を実行)。

ルーターの適合性

  • spec-kit-plan 後の spec-kit からの主要なルート。
  • spec-kit-implement の前に完了する必要があります。
  • 構造化された実装意図を生成することにより、spec-kit-analyze および spec-kit-reconcile をサポートします。

前提条件

  • リポジトリのルート(またはその中のサブディレクトリ)から実行します。
  • アクティブな機能コンテキストが、1つの specs/<feature>/ ディレクトリに解決されること。
  • plan.md が存在し、最新の承認された設計を反映していること。

ワークフロー

  1. 機能パスと前提条件ゲートを解決します。

    • scripts/check-prerequisites.sh --json を正確に1回実行します。
    • FEATURE_DIRAVAILABLE_DOCS を解析します。
    • 以下を導出します。
      • FEATURE_SPEC = FEATURE_DIR/spec.md
      • IMPL_PLAN = FEATURE_DIR/plan.md
      • TASKS = FEATURE_DIR/tasks.md
    • spec.md が存在しない場合は、停止して spec-kit-specify にルーティングし、次に spec-kit-plan にルーティングします。
  2. 生成入力をロードします。

    • 必須: plan.md, spec.md
    • オプション(存在する場合): research.md, data-model.md, contracts/, quickstart.md
    • テンプレートの優先順位:
      • {REPO_ROOT}/templates/tasks-template.md
      • {REPO_ROOT}/.specify/templates/tasks-template.md
      • フォールバック: assets/tasks-template.md
  3. 計画コンテキストを抽出します。

    • plan.md から: スタック、アーキテクチャ、制約、プロジェクト構造。
    • spec.md から: 優先順位付けされたユーザーストーリー、受け入れ基準、独立したテスト意図。
    • オプションのドキュメントから: 共有エンティティ、外部インターフェース、およびセットアップの決定。
  4. タスクフェーズを構築します。

    • フェーズ 1: セットアップ。
    • フェーズ 2: すべてのストーリーをブロックする基礎的な前提条件。
    • フェーズ 3+: 優先順位順にユーザーストーリーごとに1つのフェーズ。
    • 最終フェーズ: 仕上げ/横断的な懸念事項。
  5. 厳密なチェックリスト形式でタスクを生成します。

    • 必須パターン: - [ ] T### [P?] [US#?] Action with file path
    • [US#] は、ユーザーストーリーフェーズのみに含めます。
    • [P] は、タスクが安全に並行して実行できる場合にのみ含めます。
    • すべての実装/テストタスクの説明に、正確なファイルパスを含めます。
    • テストタスクは、spec/user によって明示的に要求された場合にのみ追加します。
  6. 書き込み前に、カバレッジと順序を検証します。

    • すべてのユーザーストーリーには、独立してテスト可能なタスクがあります。
    • 依存関係は明示的であり、フェーズの順序を尊重します。
    • すべてのタスクが、形式要件(チェックボックス、ID、ラベル、ファイルパス)を満たしています。
    • マップされたタスクのない孤立したエンティティ/コントラクトはありません。
  7. tasks.md を書き込みます。

    • 選択したテンプレートの見出しの順序を保持します。
    • テンプレートのプレースホルダーとサンプルコンテンツを、具体的な機能タスクに置き換えます。
  8. 完了を報告します。

    • 絶対 tasks.md パス。
    • 合計タスク数とストーリーごとの数。
    • 並列化の機会。
    • 推奨される MVP スライス(通常は最初の優先順位のストーリー)。
    • spec-kit-implement のための準備完了の引き渡し。

タスク形式のガイダンス

形式の構成要素

  1. チェックボックス: 常に - [ ] (markdown チェックボックス) で開始します。
  2. タスク ID: 実行順の連番 (T001, T002, T003, ...)。
  3. [P] マーカー: タスクが並列化可能な場合にのみ含めます(異なるファイル、未完了のタスクへの依存関係がない)。
  4. [Story] ラベル: ユーザーストーリーフェーズのタスクにのみ必須。
    • 形式: [US1], [US2], [US3], など (spec.md のユーザーストーリーにマップされます)。
    • セットアップフェーズ: ストーリーラベルなし
    • 基礎フェーズ: ストーリーラベルなし
    • ユーザーストーリーフェーズ: ストーリーラベルが必須
    • 仕上げフェーズ: ストーリーラベルなし
  5. 説明: 正確なファイルパスを含む明確なアクション。

  • 正しい: - [ ] T001 実装計画に従ってプロジェクト構造を作成する
  • 正しい: - [ ] T005 [P] src/middleware/auth.py に認証ミドルウェアを実装する
  • 正しい: - [ ] T012 [P] [US1] src/models/user.py に User モデルを作成する
  • 正しい: - [ ] T014 [US1] src/services/user_service.py に UserService を実装する
  • 間違い: - [ ] User モデルを作成する (タスク ID とストーリーラベルがありません)
  • 間違い: T001 [US1] モデルを作成する (チェックボックスがありません)
  • 間違い: - [ ] [US1] User モデルを作成する (タスク ID がありません)
  • 間違い: - [ ] T001 [US1] モデルを作成する (ファイルパスがありません)

出力

  • 依存関係で順序付けられた、ストーリーのスコープを持つタスクを含む、アクティブな機能ディレクトリ下の tasks.md
  • タスク数、依存関係のハイライト、および MVP の推奨事項を含む完了サマリー。

主要なルール

  • 各ストーリーを独立して実装および検証できるように、ユーザーストーリーごとにタスクを整理します。
  • タスクの粒度を実装準備が整うように保ちます。曖昧な一行記述や巨大な包括的なタスクは避けてください。
  • ID と依存関係の順序で実行の真実を保持します (T001, T002, ...)。
  • 基礎的な作業は、明示的に独立していて並列処理が安全でない限り、ブロックするものとして扱います。
  • デフォルトでテストを考案しないでください。テスト作業は要求された場合にのみ含めます。

よくある間違い

  • plan.md の制約を使用せずに、spec.md のみからタスクを生成する。
  • テンプレートからサンプルタスクをコピーする代わりに、置き換えない。
  • ユーザーストーリーフェーズでファイルパスまたはストーリーラベルが欠落している。
  • 同じファイル/依存関係に触れるにもかかわらず、競合するタスクを [P] としてマークする。
  • 各ストーリーの独立したテスト基準を満たすことができないタスクを生成する。

参考文献

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Spec Kit Tasks

Generate an implementation-ready tasks.md from Spec Kit design artifacts.

When to Use

  • plan.md and spec.md exist and you need executable tasks for implementation.
  • tasks.md is missing, stale, or not aligned with current plan/spec artifacts (including post-spec-kit-reconcile updates).
  • You need user-story-scoped task phases with clear dependency and parallelization signals.

When Not to Use

  • The feature spec is missing (spec-kit-specify first).
  • High-impact ambiguity still blocks design decisions (spec-kit-clarify first).
  • Technical design artifacts are not finalized (spec-kit-plan first).
  • You are executing tasks rather than generating them (spec-kit-implement).

Router Fit

  • Primary route from spec-kit after spec-kit-plan.
  • Must complete before spec-kit-implement.
  • Supports spec-kit-analyze and spec-kit-reconcile by producing structured implementation intent.

Preconditions

  • Run from repository root (or a subdirectory inside it).
  • Active feature context resolves to one specs/<feature>/ directory.
  • plan.md exists and reflects the latest approved design.

Workflow

  1. Resolve feature paths and prerequisite gate:

    • Run scripts/check-prerequisites.sh --json exactly once.
    • Parse FEATURE_DIR and AVAILABLE_DOCS.
    • Derive:
      • FEATURE_SPEC = FEATURE_DIR/spec.md
      • IMPL_PLAN = FEATURE_DIR/plan.md
      • TASKS = FEATURE_DIR/tasks.md
    • If spec.md is missing, stop and route to spec-kit-specify then spec-kit-plan.
  2. Load generation inputs:

    • Required: plan.md, spec.md.
    • Optional (when present): research.md, data-model.md, contracts/, quickstart.md.
    • Template preference:
      • {REPO_ROOT}/templates/tasks-template.md
      • {REPO_ROOT}/.specify/templates/tasks-template.md
      • fallback: assets/tasks-template.md
  3. Extract planning context:

    • From plan.md: stack, architecture, constraints, project structure.
    • From spec.md: prioritized user stories, acceptance criteria, independent test intent.
    • From optional docs: shared entities, external interfaces, and setup decisions.
  4. Build task phases:

    • Phase 1: Setup.
    • Phase 2: Foundational prerequisites blocking all stories.
    • Phase 3+: one phase per user story in priority order.
    • Final phase: Polish/cross-cutting concerns.
  5. Generate tasks in strict checklist format:

    • Required pattern: - [ ] T### [P?] [US#?] Action with file path.
    • Include [US#] only for user-story phases.
    • Include [P] only when tasks can run safely in parallel.
    • Include exact file paths in every implementation/test task description.
    • Add test tasks only when explicitly requested by spec/user.
  6. Validate coverage and ordering before writing:

    • Every user story has independently testable tasks.
    • Dependencies are explicit and respect phase order.
    • Every task matches format requirements (checkbox, ID, labels, file path).
    • No orphaned entities/contracts without mapped tasks.
  7. Write tasks.md:

    • Preserve heading order from the selected template.
    • Replace template placeholders and sample content with concrete feature tasks.
  8. Report completion:

    • Absolute tasks.md path.
    • Total task count and per-story counts.
    • Parallel opportunities.
    • Suggested MVP slice (typically first priority story).
    • Readiness handoff for spec-kit-implement.

Task Format Guidance

Format Components

  1. Checkbox: ALWAYS start with - [ ] (markdown checkbox).
  2. Task ID: Sequential number (T001, T002, T003, ...) in execution order.
  3. [P] marker: Include ONLY if the task is parallelizable (different files, no dependencies on incomplete tasks).
  4. [Story] label: REQUIRED for user story phase tasks only.
    • Format: [US1], [US2], [US3], etc. (maps to user stories from spec.md)
    • Setup phase: no story label
    • Foundational phase: no story label
    • User story phases: MUST have story label
    • Polish phase: no story label
  5. Description: Clear action with exact file path.

Examples

  • CORRECT: - [ ] T001 Create project structure per implementation plan
  • CORRECT: - [ ] T005 [P] Implement authentication middleware in src/middleware/auth.py
  • CORRECT: - [ ] T012 [P] [US1] Create User model in src/models/user.py
  • CORRECT: - [ ] T014 [US1] Implement UserService in src/services/user_service.py
  • WRONG: - [ ] Create User model (missing Task ID and Story label)
  • WRONG: T001 [US1] Create model (missing checkbox)
  • WRONG: - [ ] [US1] Create User model (missing Task ID)
  • WRONG: - [ ] T001 [US1] Create model (missing file path)

Output

  • tasks.md under the active feature directory with dependency-ordered, story-scoped tasks.
  • Completion summary with task counts, dependency highlights, and MVP recommendation.

Key Rules

  • Organize tasks by user story so each story can be implemented and validated independently.
  • Keep task granularity implementation-ready: no vague one-liners and no giant umbrella tasks.
  • Preserve execution truth in IDs and dependency order (T001, T002, ...).
  • Treat foundational work as blocking unless it is explicitly independent and parallel-safe.
  • Never invent tests by default; include test work only when requested.

Common Mistakes

  • Generating tasks from spec.md alone without using plan.md constraints.
  • Copying sample tasks from the template instead of replacing them.
  • Missing file paths or story labels in user-story phases.
  • Marking conflicting tasks as [P] even though they touch the same files/dependencies.
  • Producing tasks that cannot satisfy each story's independent test criteria.

References

  • references/spec-kit-workflow.dot for where task generation fits in the full Spec Kit sequence.
  • scripts/check-prerequisites.sh
  • assets/tasks-template.md
  • https://github.com/github/spec-kit/blob/9111699cd27879e3e6301651a03e502ecb6dd65d/templates/commands/tasks.md