Логотип 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

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем pimenov. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Spec Driven Development у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

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. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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

Увімкніть навичку Spec Driven Development в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Spec Driven Development, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Spec Driven Development не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл 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.

Поширені запитання

Що робить навичка ШІ 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".

Навіщо використовувати Spec Driven Development у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Spec Driven Development — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Spec Driven Development у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/pimenov/codex-first-skills-pack/tree/main/skills/spec-driven-development. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Spec Driven Development?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Spec Driven Development?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Spec Driven Development — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Spec Driven Development?

Навичку опубліковано на GitHub: pimenov. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇