Logo de Spec Driven Development

Spec Driven Development

Comunidade
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".

Visão geral

Publicado porpimenov
Repositóriocodex-first-skills-pack
Nome da habilidadespec-driven-development
Estrelas
28
Forks
5
Arquivos incluídos
Somente instruções
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Completa em si mesma

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por pimenov no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Spec Driven Development no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/pimenov/codex-first-skills-pack/tree/main/skills/spec-driven-development
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Spec Driven Development em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Spec Driven Development automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Spec Driven Development não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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.

Perguntas frequentes

O que a habilidade de IA Spec Driven Development faz?

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".

Por que usar Spec Driven Development no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Spec Driven Development é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Spec Driven Development no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/pimenov/codex-first-skills-pack/tree/main/skills/spec-driven-development. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Spec Driven Development?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Spec Driven Development?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Spec Driven Development com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Spec Driven Development é gratuita?

A habilidade é publicada no GitHub por pimenov. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇