Spec Driven Developmentのロゴ

Spec Driven Development

コミュニティ
pimenov
spec-driven-development

Defines the implementation contract before planning or coding so work is built against explicit goals, users, scope, non-goals, assumptions, acceptance criteria, and verification. Use when creating or changing a feature, product workflow, API, integration, migration, user-facing behavior, cross-team handoff, or any task where Codex could implement the wrong thing correctly; when the user asks for a spec, requirements, PRD, contract, acceptance criteria, or "what exactly are we building".

概要

公開者pimenov
リポジトリcodex-first-skills-pack
スキル名spec-driven-development
スター
28
フォーク
5
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    pimenovがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルSpec Driven DevelopmentをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/pimenov/codex-first-skills-pack/tree/main/skills/spec-driven-development
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pimenov/codex-first-skills-pack.git /tmp/codex-first-skills-pack
mkdir -p .claude/skills
cp -r /tmp/codex-first-skills-pack/skills/spec-driven-development .claude/skills/spec-driven-development
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSpec Driven Developmentを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にSpec Driven Developmentを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Spec Driven Developmentは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Spec-Driven Development

Overview

Use this skill before planning or implementation when the contract is not already explicit. The output should make it clear what is being built, why, for whom, what counts as done, and what is intentionally out of scope.

Spec-driven development is a guard against technically clean work that solves the wrong problem.

Relationship To Other Skills

  • Use context-engineering first when the source of truth or current project state is unclear.
  • Use planning-and-task-breakdown after the spec is accepted or the contract is clear.
  • Use incremental-implementation after planning to execute the work in verified slices.
  • Use test-driven-development to turn acceptance criteria into failing checks.
  • Use source-driven-development when spec choices depend on current external API, SDK, framework, or platform behavior.
  • Use doubt-driven-review before high-stakes specs involving production, auth, data, billing, security, or irreversible operations.

Do Not Use

  • Tiny implementation tasks with clear requirements and low risk.
  • Pure bug reproduction where expected behavior is already obvious; use debugging-and-error-recovery and test-driven-development.
  • Emergency incident stabilization before safe state is restored.
  • Pure writing/copy tasks unless the acceptance criteria are unclear.
  • Creating a durable spec artifact when a short chat contract is enough.

Core Loop

text
INTENT -> CONTRACT -> BOUNDARIES -> ACCEPTANCE -> STORAGE -> HANDOFF

1. INTENT: Name The Problem And Audience

Before writing tasks or code, answer:

  • who is this for;
  • what problem or job-to-be-done it addresses;
  • what current pain or failure it removes;
  • what will be different when it works;
  • which source artifacts support this intent.

If the user intent is ambiguous, ask the smallest clarifying question or run read-only discovery. Do not fill product gaps with implementation guesses.

2. CONTRACT: Define The Desired Behavior

Write the behavior contract in concrete terms:

  • primary scenarios;
  • inputs and outputs;
  • user/system actions;
  • states and transitions;
  • data or API contracts;
  • permissions and roles;
  • error and empty states;
  • performance or reliability requirements when relevant;
  • compatibility and migration expectations.

Prefer observable behavior over internal implementation details.

3. BOUNDARIES: State Scope And Non-Goals

A good spec says what not to do.

Include:

  • in scope;
  • explicitly out of scope;
  • assumptions;
  • dependencies;
  • constraints;
  • stop-lines;
  • approval gates;
  • risks and open questions.

If a hidden product decision appears, stop and mark it as an open question. Do not bury it inside implementation.

4. ACCEPTANCE: Make Done Testable

Acceptance criteria should be observable and verifiable.

Use this shape:

text
Acceptance criteria:
- Given <state>, when <action>, then <observable result>.
- <System/API/data behavior> is true and verified by <test/check/smoke>.
- <Non-goal or excluded behavior> remains unchanged.

Map acceptance to proof:

  • unit/integration/component test;
  • typecheck/build/lint;
  • browser/manual smoke;
  • read-only live check;
  • screenshots or artifacts;
  • human approval when automation cannot verify the outcome.

If acceptance cannot be tested, the spec is not ready for implementation.

5. STORAGE: Choose The Right Artifact

Do not default to SPEC.md.

Choose the smallest durable layer that will actually be used:

SituationArtifact
Small clear changeChat contract or issue comment
New product/user workflowMini-PRD
Implementation-ready project workWork Packet
Execution across chats/peopleLinear document or issue
Human/client-facing explanationNotion
Technical contract owned by codeRepo docs / ADR / spec file
Local sandbox or reusable processLocal RUNBOOK.md / SESSION_NOTES.md

For user-facing durable prose, match the user's language. Keep commands, paths, package names, API identifiers, env vars, issue keys, and canonical product names exact.

6. HANDOFF: Prepare For Planning Or Implementation

A spec is ready to hand off when:

  • intent is clear;
  • scenarios are concrete;
  • non-goals are explicit;
  • acceptance criteria are testable;
  • source of truth is named;
  • risks and approval gates are visible;
  • unresolved questions are separated from ready work.

Then route:

  • ready implementation -> planning-and-task-breakdown;
  • behavior tests -> test-driven-development;
  • thin execution -> incremental-implementation;
  • risky decision -> doubt-driven-review;
  • unclear product intent -> keep in discovery or mini-PRD refinement.

Mini-PRD Shape

Use when the work is product-new, UX/operationally new, or could be technically right but product-wrong.

text
Mini-PRD:
- Audience:
- Problem:
- Current state:
- Target state:
- Key scenarios:
- Success criteria:
- Non-goals:
- Risks/dependencies:
- Open questions:
- Next safe step:

Mini-PRD answers "what and why", not full implementation detail.

Technical Spec Shape

Use when behavior and product intent are clear, but the implementation contract needs precision.

text
Technical spec:
- Goal:
- Existing behavior:
- Desired behavior:
- Contract/API/schema/state changes:
- Edge cases:
- Compatibility/migration:
- Security/data considerations:
- Acceptance criteria:
- Verification plan:
- Rollback/stop-lines:

Technical specs should be close to code when they define durable code-owned contracts.

Work Packet Bridge

After the spec is accepted, a Work Packet can answer "how to execute the next chunk safely".

Do not mix the two:

  • Spec: what, why, for whom, success, non-goals.
  • Work Packet: scope, tasks, approach, checks, approval gates, Definition of Done.

If both are needed, keep the spec concise and let planning-and-task-breakdown create the execution plan.

Production And External Systems

Specs touching production, live data, auth, billing, DNS, routing, webhooks, migrations, external SaaS, VPS, Cloudflare, Linear, Notion, GitHub, Gmail, Calendar, Drive, or similar systems must include:

  • read-only discovery first, unless exact mutation approval already exists;
  • explicit no-touch systems;
  • data classification and secret-handling assumptions;
  • backup/evidence/rollback expectation;
  • dry-run or staging path where available;
  • live approval gate before mutation.

Do not let a spec imply permission to mutate production.

Output Shape

For compact specs:

text
Spec:
- Goal:
- Audience:
- Scenarios:
- Scope:
- Non-goals:
- Acceptance:
- Verification:
- Open questions:
- Next safe step:

For specs that should become durable artifacts, use Russian headings by default and state where the artifact belongs.

If the spec is not ready, do not pretend it is:

text
Spec readiness:
- Ready:
- Not ready:
- Blocking questions:
- Safe next step:

Common Rationalizations

RationalizationReality
"The feature is obvious."Obvious features still hide audience, edge cases, and non-goals.
"We can clarify while coding."Coding turns unclear requirements into accidental architecture.
"A task list is enough."A task list without a contract can execute the wrong intent efficiently.
"We'll write acceptance later."Acceptance after implementation often blesses what was built, not what was needed.
"It is internal, so no spec needed."Internal operational work can still touch real systems and needs boundaries.

Red Flags

  • No named audience or operator.
  • No non-goals.
  • Acceptance criteria are subjective or untestable.
  • Product decisions are hidden in technical tasks.
  • API/schema/state changes are vague.
  • Production/data/auth behavior is implied but not approved.
  • Spec duplicates Linear, Notion, and repo docs without purpose.
  • The next step is implementation while open questions still block correctness.

Verification

Before handing off a spec, confirm:

  • Intent and audience are explicit.
  • Desired behavior is observable.
  • Scope and non-goals are clear.
  • Assumptions, dependencies, risks, and approval gates are named.
  • Acceptance criteria are testable.
  • Verification plan matches the risk.
  • Artifact location is correct, or chat-only contract is enough.
  • Ready work is separated from open questions.

よくある質問

AIスキル「Spec Driven Development」では何ができますか?

Defines the implementation contract before planning or coding so work is built against explicit goals, users, scope, non-goals, assumptions, acceptance criteria, and verification. Use when creating or changing a feature, product workflow, API, integration, migration, user-facing behavior, cross-team handoff, or any task where Codex could implement the wrong thing correctly; when the user asks for a spec, requirements, PRD, contract, acceptance criteria, or "what exactly are we building".

TypingMindでSpec Driven Developmentを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Spec Driven Developmentはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSpec Driven Developmentをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/pimenov/codex-first-skills-pack/tree/main/skills/spec-driven-developmentを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Spec Driven Developmentを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Spec Driven Developmentは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSpec Driven Developmentを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Spec Driven Development」は無料ですか?

pimenovがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇