원클릭으로
spec
Define what we build: goal, user stories, edge cases, BDD acceptance criteria.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Define what we build: goal, user stories, edge cases, BDD acceptance criteria.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when a request will produce frontend UI, a visual asset, an image prompt, or a video prompt, AND the intent/style is not already fully specified by the user or an existing design system in the repo. Forces a minimal, checkable design-context object to exist before generation so output does not default to generic/templated. Do NOT use for: single-property edits (color, spacing, copy tweak) with no ambiguity; bug fixes; refactors; or when the user already gave complete visual specs and you only need to execute. For those, just do the work.
Root orchestrator. Reads durable state, routes to one phase, dispatches fresh workers.
Pre-implementation alignment gate. Checks spec / plan / tasks consistency and plan vs codebase reality before code is written.
Define the goal: what problem we solve, for whom, and what success looks like. The directional anchor that architecture and specs must serve.
RED-GREEN-REFACTOR implementation per task. Each task passes before next. Produces handoff.md with reproducible evidence.
Design architecture: components, API schema, DB model, impact analysis, test strategy.
| name | spec |
| description | Define what we build: goal, user stories, edge cases, BDD acceptance criteria. |
Translate vague intent into a precise, verifiable specification. You define what we build — not how, not with what technology, not with what file structure.
# Spec: [Brief Title]
**Workstream ID:** `<id>`
## Core Goal
### Problem
[What problem does this solve? Why does it matter?]
### Solution Intent
[High-level approach — 2-3 sentences max]
## User Stories
### US-001: [Title]
**As a** [who]
**I want** [what action/scenario]
**So that** [why — value delivered]
### US-002: ...
...
## Edge Cases
Edge cases are pre-identified here — not deferred to QA or implementation. Name them now.
### EC-001: [Name]
- **Scenario:** [What happens at the boundary]
- **Expected behavior:** [How the system must respond]
### EC-002: [Name]
- **Scenario:** [Failure mode / extreme input / concurrency condition]
- **Expected behavior:** [How the system must respond]
### Error Output Contract Rule
For every component that produces output consumed by a downstream phase or task,
you MUST define error output explicitly. Each error state must name its consumer.
### EC-00X: [Component] returns error state [State]
- **Error output format:** [exact type/fields — e.g. `TaskResult(status="blocked", reason="empty_output")`]
- **Consumed by:** [downstream phase/task — e.g. P10 Session Lifecycle → `end_session(reason)`]
...
## BDD Acceptance Criteria
Every AC must be verifiable without reading source code. Use Given-When-Then format.
### AC-001: [Title — maps to US-001 if possible]
**Given** [precondition / starting state]
**When** [action / trigger]
**Then** [observable outcome]
### AC-002: ...
...
### Failure-Path Coverage Rule
For every happy-path AC describing a successful outcome, you MUST define at least one
failure-path AC describing what happens when the precondition fails, the action fails,
or the system is in an unexpected state. A happy-path AC without a corresponding
failure-path AC is incomplete.
## Out of Scope
- [Explicitly excluded: feature X]
- [Explicitly excluded: non-goal Y]
- [Reason for exclusion]
- Any known workaround or stub implementation must be called out here:
- [Stub/workaround: what was simplified, under what condition it breaks]
CONSTITUTION.md for governing rules and constraintsgoal.md — understand the problem, success criteria, non-goals, and constraints.agents-stack/tracked-work.json for the active workstream IDspec.md to .agents-stack/workstream/<ws-id>_{YYYYMMDD}/spec.mdstatus.json: set phase: "spec"spec.md exists with verifiable BDD acceptance criteria, pre-identified edge cases, and clear out-of-scope declarations. status.json reflects spec phase.