Skip to content

実装準備フェーズ: plan, tasks, analyze

spec.md を受けて、技術的な実装計画を作成します。How を扱うフェーズです。

/speckit.plan [技術スタック・アーキテクチャ上の指示]

任意です。技術スタック、制約、アーキテクチャ方針を自然言語で追加できます。引数なしでも実行できますが、情報が多いほど plan.md は安定します。

/speckit.plan Use FastAPI for backend services, PostgreSQL for storage, and React for the frontend. Prioritize simple deployment and a small number of dependencies.
/speckit.plan The application uses Vite with minimal libraries. Use vanilla HTML, CSS, and JavaScript as much as possible. Metadata is stored in a local SQLite database.
/speckit.plan WebSocket for real-time messaging, PostgreSQL for history, Redis for presence.
/speckit.plan Use Next.js for the web app, Supabase for authentication and storage, and background jobs for asynchronous notifications. Optimize for low operational overhead.
  • 言語、フレームワーク、主要ライブラリ
  • データストレージ
  • システム構成
  • APIスタイル
  • テスト方針
  • パフォーマンス目標や制約
  • spec.md と constitution.md を読み込む
  • Technical Context を埋める
  • Constitution Check を行う
  • research.md を作る
  • data-model.md を作る
  • contracts/ を作る
  • quickstart.md を作る
  • Phase 1 設計後に再度 constitution 整合を確認する
specs/[###-feature-name]/
plan.md
research.md
data-model.md
quickstart.md
contracts/
  • 前: /speckit.specify、必要に応じて /speckit.clarify
  • 後: /speckit.tasks、必要に応じて /speckit.checklist
  • Constitution Check が通っている
  • NEEDS CLARIFICATION が残っていない
  • Project Structure のテンプレート残骸が消えている
  • research、data model、contracts、quickstart の間に矛盾がない
  • spec.md の繰り返しではなく、技術意思決定を書く
  • 先回りの投機的な設計を増やしすぎない
  • エラーケースや制約も plan に含める

plan.md と spec.md を、実装可能なタスク一覧に分解します。AIや開発者がそのまま実装できる粒度の tasks.md を作るフェーズです。

/speckit.tasks
/speckit.tasks Please include test tasks using TDD approach.
/speckit.tasks We have 3 developers. Please maximize parallel task opportunities.

任意です。引数なしなら標準的なタスク分解、引数ありなら TDD、MVP 範囲、並列化、story の絞り込みなどを指定できます。

/speckit.tasks
/speckit.tasks Please include test tasks using TDD approach. Write tests first before implementation.
/speckit.tasks Focus on User Story 1 only for the MVP. Skip User Stories 2 and 3 for now.
/speckit.tasks We have 3 developers. Please maximize parallel task opportunities.
/speckit.tasks Generate tasks that keep the API contract work separate from the UI work.
  • spec.md
  • plan.md
  • data-model.md
  • contracts/
  • quickstart.md
  • research.md
  • Setup フェーズを作る
  • Foundational フェーズを作る
  • User Storyごとのフェーズを P1、P2、P3 順で作る
  • Polish フェーズを作る
  • 依存関係を整理する
  • 並列実行可能なタスクに [P] を付ける
  • tasks.md
Phase 1: Setup
Phase 2: Foundational
Phase 3: User Story 1 (P1)
Phase 4: User Story 2 (P2)
Phase 5: User Story 3 (P3)
Phase N: Polish & Cross-Cutting Concerns
Dependencies & Execution Order
Parallel Opportunities
Implementation Strategy
  • 前: /speckit.plan
  • 後: /speckit.analyze または /speckit.implement
  • plan.md と spec.md の内容が全タスクに反映されている
  • Phase 2 の共通基盤が十分に定義されている
  • ファイルパスが具体的である
  • [P] の付け方が妥当である
  • ユーザーストーリーごとの独立テスト基準が書かれている
  • サンプルタスクやプレースホルダーを残さない
  • 曖昧な作業名ではなく、ファイル単位まで具体化する
  • TDDをしたい場合は引数で明示する

spec.md、plan.md、tasks.md の3つを横断的に読み、矛盾、曖昧さ、重複、カバレッジ不足、constitution 違反を検出します。

/speckit.analyze
/speckit.analyze Focus on security and performance requirements.

任意です。引数なしなら全体監査、引数ありなら security / performance / terminology / task coverage など重点観点を指定できます。

/speckit.analyze
/speckit.analyze Focus on security and performance requirements.
/speckit.analyze Check if all non-functional requirements have corresponding tasks.
/speckit.analyze Review terminology drift between spec, plan, and tasks.
  • 完全に read-only
  • ファイルを自動修正しない
  • 実装前の最終チェックとして使う
  • duplication
  • ambiguity
  • underspecification
  • constitution alignment
  • coverage gaps
  • inconsistency
  • CRITICAL
  • HIGH
  • MEDIUM
  • LOW
  • 前: /speckit.tasks 完了後
  • 後: 問題修正、または /speckit.implement
  • 最も早く実行できるのは tasks.md 作成直後
  • 最も遅くて implement の直前
  • CRITICAL 問題がない
  • HIGH 問題について対応方針がある
  • タスクが全要件をカバーしている
  • 任意だが、実質的には実装前の品質ゲートとして使うべき
  • 修正を提案してもらうことはできるが、自動適用はしない
flowchart TD
    A[constitution.md] --> B[spec.md]
    B --> C[plan.md]
    B --> D[checklists/requirements.md]
    C --> E[research.md]
    C --> F[data-model.md]
    C --> G[contracts/]
    C --> H[quickstart.md]
    C --> I[tasks.md]
    B --> I
    I --> J[implementation]
    C --> J
    F --> J
    G --> J
    H --> J
constitution.md
基準と原則
spec.md
何を作るか
checklists/requirements.md
spec.md の品質自己点検
plan.md
どう作るか
research.md
技術判断の根拠
data-model.md
データ設計
contracts/
APIやイベントの境界定義
quickstart.md
検証手順
tasks.md
実装の作業単位

関係は次のように整理できます。

  • constitution.md はすべての判断基準になる
  • spec.md は plan.md の入力になる
  • plan.md は tasks.md の入力になる
  • research.md、data-model.md、contracts/、quickstart.md は plan を補強する設計成果物であり、tasks と implement の補助入力でもある
  • analyze は spec、plan、tasks の3者関係を点検する
  • implement は上記成果物をまとめて実装に変換する