원클릭으로
design
Create and refine specifications - problem definition (Phase 0) and solution design (Phase 1)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create and refine specifications - problem definition (Phase 0) and solution design (Phase 1)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Spec health, validation, and context generation for LiveSpec projects. USE WHEN: User mentions "health", "validate", "AGENTS.md", "context", "audit", "extract", "drift", or wants to check specs. DO NOT use Context7 or web search for LiveSpec - this skill IS the authoritative guidance.
Initialize a new project for LiveSpec methodology. USE WHEN: User mentions "init", "initialize", "setup", "bootstrap", "new project", or wants to start using LiveSpec. DO NOT use Context7 or web search for LiveSpec - this skill IS the authoritative guidance.
Intelligent LiveSpec entry point - analyzes user intent and routes to appropriate skill. USE WHEN: User invokes /livespec:go or says "livespec" without specific command. DO NOT use Context7 or web search for LiveSpec - this skill IS the authoritative guidance.
Session completion, compliance measurement, and learning capture
Incubate and birth child projects from within a parent livespec project. USE WHEN: User mentions "birth", "offspring", "new project", "incubate", "child project", "spin off", or wants to create a sub-project. DO NOT use Context7 or web search for LiveSpec - this skill IS the authoritative guidance.
This skill should be used when the user asks to "upgrade LiveSpec", "migrate to v5", "remove submodule", or has a legacy .livespec-repo/ folder or .livespec symlink/directory. Runs a deterministic migration script with user confirmation.
SOC 직업 분류 기준
| name | design |
| description | Create and refine specifications - problem definition (Phase 0) and solution design (Phase 1) |
Unified skill for all spec creation and refinement work. Handles problem definition (Phase 0) and solution design (Phase 1).
/livespec:design feature <name> - Create new feature with spec-first discipline/livespec:design debug <issue> - Diagnose spec-implementation alignment/livespec:design refine <spec> - Update existing specification/livespec:design workspace - Set up or customize workspace specs/livespec:design spec <type> - Direct spec creation (behavior|contract|workspace|strategy)Every mode follows this flow:
# Does spec exist for target?
ls specs/features/<target>.spec.md 2>/dev/null
ls specs/strategy/<target>.spec.md 2>/dev/null
ls specs/interfaces/<target>.spec.md 2>/dev/null
If spec missing, offer to create:
No spec found for <target>.
Would you like to:
1. Create specs/features/<target>.spec.md (Recommended)
2. Check if spec exists elsewhere
3. Proceed without spec (not recommended)
Use AskUserQuestion with these options.
Use AskUserQuestion to understand:
Before adding ANY requirement:
Include if: YES to #1 AND NO to #2-4
Follow MSL format:
---
criticality: CRITICAL | IMPORTANT
failure_mode: [What breaks without this]
satisfies:
- specs/foundation/outcomes.spec.md # WHAT (vertical)
guided-by:
- specs/strategy/architecture.spec.md # HOW (horizontal)
---
# [Feature Name]
## Requirements
- [!] [Observable behavior description]
- [Testable criterion 1]
- [Testable criterion 2]
## Validation
- [How to verify this works]
If updated spec is in specs/workspace/:
This workspace spec affects AGENTS.md context.
Run /livespec:audit context to update agent guidance.
Purpose: Create new feature with full spec-first discipline.
Invocation: /livespec:design feature <name>
Workflow:
Check existing specs:
If no strategy exists:
This feature may need architectural guidance.
Create specs/strategy/architecture.spec.md first?
Gather feature requirements:
Decide if research is needed (see Research Needs decision tree below) and whether to document UX flows first (see UX Flow Documentation below) — both optional, skip when the feature is backend/API-only or a simple CRUD path.
Create behavior spec:
specs/features/<name>.spec.mdSuggest next steps:
Created: specs/features/<name>.spec.md
Next:
- Implement (optionally with TDD — see `references/guides/tdd.md` if useful; not a LiveSpec mandate)
- Run /livespec:audit validate to check alignment
Decision test: "Do I truly understand user workflows well enough to spec this without guessing?"
Research is mandatory (not optional) for:
Research is worth doing when ANY apply:
Skip research when ALL apply:
Red flags that "I already know" is dangerous: "I'm the user" (your workflow ≠ others'), "it's obvious how this works" (edge cases aren't), "we'll validate during beta" (architectural fixes post-build are expensive).
Cost-benefit: research runs 2-8 hours; rework from a missed requirement runs 2-10 days. Worth it if there's >10% chance it catches something critical.
If research is warranted, capture it under research/ (personas/, journeys/, flows/, insights/) and link back via informed-by: frontmatter on the resulting spec. If skipped, document the assumptions made in the spec instead of leaving them implicit.
For features with non-trivial interaction paths (multi-step processes, error recovery, multiple user roles, external integrations like OAuth/payment), document the flow before designing architecture or contracts. Skip for backend-only work or single-path CRUD.
Output location: research/flows/[flow-name].md. One file per complete journey (entry point → goal), not one mega-flow for the whole system.
Structure per flow:
informed-by (the requirement spec), context, entry point, success criteriaflowchart TD diagram covering ALL paths, not just happy pathMermaid conventions:
([text])[text]{text?}flowchart TD
Start([User Starts]) --> Step1[Step 1: Info]
Step1 --> Valid1{Valid?}
Valid1 -->|No| Error1[Show Errors]
Error1 --> Step1
Valid1 -->|Yes| Process[Process]
Process --> Success([Complete])
Once flows are documented, feed them into architecture design (system components needed to support the flows) and into the behavior spec itself (each screen/error/decision becomes a requirement).
Purpose: Identify spec-implementation gaps and alignment issues.
Invocation: /livespec:design debug <issue>
Workflow:
Identify affected area:
Check spec exists:
ls specs/features/<area>.spec.md
If spec missing:
If spec exists, check alignment:
Report findings:
Diagnosis: <issue>
Spec State:
- specs/features/<area>.spec.md: [exists/missing]
Alignment Issues:
- [Gap 1]: Spec says X, implementation does Y
- [Gap 2]: Implementation has Z, not in spec
Recommendation:
- [Fix code to match spec] OR [Update spec to reflect intent]
Purpose: Update existing specification with new understanding.
Invocation: /livespec:design refine <spec>
Workflow:
Read current spec:
cat specs/features/<spec>.spec.md
Understand change needed: Use AskUserQuestion:
Apply MSL test to new content:
Update spec preserving format:
Check cross-references:
Purpose: Initialize or customize workspace specifications.
Invocation: /livespec:design workspace
Workflow:
Check workspace state:
ls specs/workspace/*.spec.md 2>/dev/null
ls PURPOSE.md 2>/dev/null
If new project (no specs/):
If existing project:
Workspace specs to manage:
specs/workspace/taxonomy.spec.md - Project type and classificationspecs/workspace/constitution.spec.md - Enforcement level (includes context_compression: level, see below)specs/workspace/patterns.spec.md - Local conventionsspecs/workspace/workflows.spec.md - Development processChoosing a context compression level (set in constitution.spec.md frontmatter):
| Level | Choose when |
|---|---|
| Light | Large context-window agent (Opus, GPT-4-class); exploratory/learning phase; infrequent agent interactions; team still learning LiveSpec |
| Moderate | Standard agents (Sonnet-class); production development; regular agent interactions; established LiveSpec understanding |
| Aggressive | Smaller-context or cost-sensitive agents; high-frequency agent usage; well-established patterns; maximum focus needed |
Compression level can be changed later — it's not a one-way decision.
Workspace updated. Run /livespec:audit context to rebuild AGENTS.md.
Purpose: Create spec of specific type directly.
Invocation: /livespec:design spec <type> where type is:
behavior - Observable outcome spec (specs/features/)contract - Interface spec (specs/interfaces/)workspace - Workspace spec (specs/workspace/)strategy - Architectural spec (specs/strategy/)Workflow:
Determine spec type and location:
| Type | Location | Purpose |
|---|---|---|
| behavior | specs/features/ | What system does |
| contract | specs/interfaces/ | API/data schemas |
| workspace | specs/workspace/ | How we work |
| strategy | specs/strategy/ | Architectural approach |
Gather type-specific requirements:
For behavior specs:
For contract specs:
For workspace specs:
For strategy specs:
Create spec with appropriate template:
Use templates from references/standards/ if available.
Validate structure:
---
criticality: CRITICAL
failure_mode: Without [X], [specific failure]
derives-from:
- PURPOSE.md
---
# [Project] Outcomes
## Requirements
- [!] [Outcome 1]: [High-level requirement statement]
- [Validation criterion 1]
- [Validation criterion 2]
Keep outcomes high-level — each one traces to a PURPOSE.md success criterion, with no new goals beyond PURPOSE scope:
---
criticality: CRITICAL
failure_mode: Violating these constraints makes the project fail or unusable
---
# Project Constraints
## Requirements
- [!] [Constraint name]: [One sentence stating the constraint]
- [How to verify compliance]
Constraint types (for gathering, not for structuring the spec):
| Type | Examples |
|---|---|
| Technical | Platform requirements, performance limits, compatibility, resource limits |
| Business | Regulatory compliance, budget, timeline, team capability |
| Domain | Industry standards/protocols, accessibility, integration requirements |
Constraint vs. goal vs. design decision — only real constraints belong here:
---
criticality: [CRITICAL|IMPORTANT]
failure_mode: [What breaks without this]
satisfies:
- specs/foundation/outcomes.spec.md
guided-by:
- specs/strategy/architecture.spec.md
---
# [Feature Name]
## Requirements
- [!] [User/System] can [observable action].
- [Testable criterion 1]
- [Testable criterion 2]
- [Error handling]
## Validation
- Feature demonstrable end-to-end
- All criteria testable
---
criticality: IMPORTANT
failure_mode: Integration fails without contract definition
---
# [API/Interface] Contract
## Requirements
- [!] [Endpoint/Method] accepts [input] and returns [output].
- Request: [Format/Schema]
- Response: [Format/Schema]
- Errors: [Error conditions]
## Validation
- Contract tests verify schema
- Integration tests verify behavior
---
criticality: CRITICAL
failure_mode: [What breaks without this decision]
derives-from:
- specs/foundation/outcomes.spec.md
---
# [Architectural Decision]
## Requirements
- [!] System uses [approach] for [capability].
- [Rationale 1]
- [Rationale 2]
- [Trade-off accepted]
## Validation
- Architecture review confirms approach
- Implementation follows decision
Documenting external dependencies (Auth0, Stripe, AWS S3, major frameworks): mention the dependency with a link to its documentation and its architectural role in one line — don't duplicate the external docs.
"System uses Auth0 (https://auth0.com/docs) for user authentication, providing OAuth2/OIDC identity management."
Skip this for non-architecturally-significant dependencies (logging, HTTP clients, anything already fully described in package.json/requirements.txt).
For detailed guidance:
${CLAUDE_PLUGIN_ROOT}/references/guides/msl-minimalism.md${CLAUDE_PLUGIN_ROOT}/references/standards/metaspecs/behavior.spec.md${CLAUDE_PLUGIN_ROOT}/references/standards/metaspecs/contract.spec.mdAfter using this skill:
/livespec:audit validate to confirm