spec
БесплатноБез исполняемых скриптовНе проверенSpec-then-plan workflow (/spec): turns a vague idea into an agreed spec via structured questioning, writes docs/specs/<NNN>-<slug>.md for /scaffold and /tdd…
от codewithmukesh★ 858 звёзд на GitHubОб этом скилле
/spec — Specification, Then Plan
What
One workflow in two phases. Phase 1 converts an idea into a written, versioned specification that the developer and Claude explicitly agree on. Phase 2 turns the approved spec into an architecture-aware implementation plan. No code before both. The contract:
- Never assume. Every gap in the idea becomes a question. If Claude catches itself thinking "probably", "presumably", or "the usual way" — that thought is a question to ask, not a decision to make.
- Relentless, but structured. Questions come in focused rounds (3–5 at a time) across nine dimensions — not one overwhelming dump, and not a single polite round that stops early.
- Agreement is explicit. Specs have a status lifecycle: Draft → In Review → Approved. Implementation never starts from a Draft. Approval requires the developer to read the final document and say so.
- Specs are files, not chat. Output persists to
docs/specs/<NNN>-<slug>.mdand survives the session. The plan, tests, and commits reference it.
When
- Any feature too big to describe completely in one sentence
- New product or module ideas ("I want to add team workspaces")
- Any non-trivial task of 3+ steps or with architectural decisions (new module, cross-cutting concern): "plan", "let's plan", "design this"
- When requirements feel fuzzy mid-implementation: stop,
/spec, re-plan - Trigger phrases: "spec", "requirements", "PRD", "define the feature", "acceptance criteria"
Skip the spec phase (go straight to a short plan) when the task fits in one sentence. Skip both for bug fixes, typos, config tweaks, and single-endpoint CRUD where the entity is obvious.
How
Step 1: Capture and Restate
Take the raw idea and restate it in one paragraph: what Claude understood, in its own words. End with: "Is this the idea? What did I get wrong?" Do not begin questioning until the developer confirms the restatement — questioning the wrong idea wastes everyone's time.
Step 2: Questioning Rounds
Work through the nine dimensions in order. Each round: pick the 3–5 most load-bearing unanswered questions (answers that reshape later questions come first). Where the harness supports selectable options, present choices with trade-offs — and a recommendation — but the developer chooses; a recommendation is never silently applied.
| # | Dimension | What to pin down |
|---|---|---|
| 1 | Problem & users | Who hurts today, how they work around it, what success looks like |
| 2 | Scope | What is IN this iteration, what is explicitly OUT, where the MVP line sits |
| 3 | Domain & data | Entities, relationships, lifecycle (create→archive→delete?), retention |
| 4 | API contract | Resources, endpoints, request/response shapes, pagination, versioning |
| 5 | Authorization | Who can do what, role/claim model, tenant boundaries |
| 6 | Edge cases & failure modes | Concurrency, duplicates, idempotency, partial failure, limits |
| 7 | Non-functionals | Expected volume, latency budget, growth assumptions |
| 8 | Integrations | External services, published events, webhooks, side effects |
| 9 | Acceptance criteria | Testable Given/When/Then for every behavior in scope |
Rules of relentless questioning:
- Record every answer in the draft spec immediately — answers are requirements, not conversation.
- Challenge contradictions on the spot: "In round 1 you said X; this answer implies not-X. Which wins?"
- "I don't know" is a legal answer → moves to Deferred Decisions with an explicit fallback the developer chooses now ("default to soft-delete until decided"). Silent deferral is forbidden.
- A dimension is done when a follow-up round generates zero new questions for it.
- The questioning phase is done when ALL nine dimensions are done. Do not stop because the conversation feels long — stopping early is how assumptions sneak in.
Step 3: Draft the Spec File
Determine the next number from existing files in docs/specs/ (create the
directory if missing). Write docs/specs/<NNN>-<slug>.md:
# Spec NNN: <Title>
**Status:** Draft
**Date:** <today>
## Problem <!-- who hurts, why now -->
## Scope <!-- ### In / ### Out — both explicit -->
## Domain Model <!-- entities, relationships, lifecycle -->
## API Contract <!-- endpoints table: verb, route, request, response, errors -->
## Authorization <!-- who can do what -->
## Edge Cases & Failure Modes
## Non-Functional Requirements
## Integrations
## Acceptance Criteria <!-- Given/When/Then, numbered AC-1, AC-2, ... -->
## Deferred Decisions <!-- decision, chosen fallback, revisit trigger -->
## Open Questions <!-- MUST be empty before approval -->
Step 4: Review Loop
Set status to In Review. Present the complete spec and ask: "Read this end-to-end. What is wrong, missing, or over-engineered?" Fold corrections in and re-present. Repeat until the developer has no
Установить spec в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл spec?
Spec-then-plan workflow (/spec): turns a vague idea into an agreed spec via structured questioning, writes docs/specs/<NNN>-<slug>.md for /scaffold and /tdd, then a plan. Use for "spec", "requirements", "PRD", "user stories", "acceptance criteria", "let's plan". Do NOT use for bug fixes, tweaks, obvious single-endpoint CRUD (just build it), or choosing an architecture (use architecture-advisor).
Как установить скилл spec?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл spec запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic