spec-workflow
Use when planning, running, or resuming curdx-flow spec-driven workflows.
- License 许可
- MIT
- 最近更新
- 2026-08-19
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- spec-workflow
- version
- 0.2.0
- description
- Use when planning, running, or resuming curdx-flow spec-driven workflows.
- when_to_use
- Use when user asks to build, implement, plan, triage, decompose, resume, inspect status, or run any curdx-flow research/requirements/design/tasks/implementation phase.
- argument-hint
- [intent-or-spec]
- user-invocable
- false
02 资源文件 3
- 参考文档references/entrypoints.md2.2 KB
- 参考文档references/phase-transitions.md2.5 KB
- 参考文档references/skill-quality-patterns.md2.3 KB
03 SKILL.md 正文
Spec Workflow
Spec-driven development transforms feature requests into structured specs through sequential phases, then executes them task-by-task.
Skills-First Architecture
This skill is the canonical workflow guidance. curdx-flow is now skills-only at the plugin surface: every /curdx-flow:* entry point is a namespaced skill under skills/<name>/SKILL.md.
- Keep public invocation names stable (
/curdx-flow:start,/curdx-flow:tasks,/curdx-flow:implement, etc.). - Keep direct workflow entry points user-invocable and explicit; shared/background rules live in support skills such as
curdx-coreandinterview-framework. - Put long procedures in skill-local
references/or plugin-global${CLAUDE_PLUGIN_ROOT}/references/files instead of bloating frontmatter descriptions. - See
references/entrypoints.mdfor the skills-only entry point policy. - See
references/skill-quality-patterns.mdbefore adding or changing curdx-flow skills.
Decision Tree: Where to Start
| Situation | Slash Skill |
|---|---|
| New feature, want guidance | /curdx-flow:start <name> <goal> |
| New feature, skip interviews | /curdx-flow:start <name> <goal> --quick |
| Large feature needing decomposition | /curdx-flow:triage <goal> |
| Resume existing spec | /curdx-flow:start (auto-detects) |
| Jump to specific phase | /curdx-flow:<phase> |
Single Spec Flow
start/new -> research -> requirements -> design -> tasks -> implement
Each phase produces a markdown artifact in ./specs/<name>/. Normal mode pauses for approval between phases. Quick mode runs all phases then auto-starts execution.
Phase Skills
| Slash Skill | Agent | Output | Purpose |
|---|---|---|---|
/curdx-flow:research |
research-analyst | research.md | Explore feasibility, patterns, context |
/curdx-flow:requirements |
product-manager | requirements.md | User stories, acceptance criteria |
/curdx-flow:design |
architect-reviewer | design.md | Architecture, components, interfaces |
/curdx-flow:tasks |
task-planner | tasks.md | POC-first task breakdown |
/curdx-flow:implement |
spec-executor | commits | Autonomous task-by-task execution |
Epic Flow (Multi-Spec)
For features too large for a single spec, use epic triage to decompose into dependency-aware specs.
triage -> [spec-1, spec-2, spec-3...] -> implement each in order
Entry points:
/curdx-flow:triage <goal>-- create or resume an epic/curdx-flow:start-- detects active epics, suggests next unblocked spec
File structure:
specs/
_epics/<epic-name>/
epic.md # Triage output (vision, specs, dependency graph)
research.md # Exploration + validation research
.epic-state.json # Progress tracking across specs
.progress.md # Learnings and decisions
Management Skills
| Slash Skill | Purpose |
|---|---|
/curdx-flow:status |
Show all specs and progress |
/curdx-flow:switch <name> |
Change active spec |
/curdx-flow:cancel |
Cancel active execution |
/curdx-flow:refactor |
Update spec files after execution |
Common Workflows
Quick prototype
/curdx-flow:start my-feature "Build X" --quick
# Runs all phases automatically, starts execution
Guided development
/curdx-flow:start my-feature "Build X"
# Interactive interviews at each phase
# Review and approve each artifact
/curdx-flow:implement
Large feature
/curdx-flow:triage "Build entire auth system"
# Decomposes into: auth-core, auth-oauth, auth-rbac
/curdx-flow:start # Picks next unblocked spec
References
references/phase-transitions.md-- Detailed phase flow, state transitions, quick mode behavior, phase skippingreferences/entrypoints.md-- Skills-only public entry point policy
04 同仓库更多 Skills
help
Fixture help skill
verification-before-completion
Use when checking fixes, phase exits, completion evidence, or mock-heavy tests before claiming success.
triage
Use when a large feature should be decomposed into dependency-aware specs.
tasks
Use when a spec has design.md and needs implementation tasks.
switch
Use when changing the active spec by name or path.
status
Use when inspecting curdx-flow specs, active state, progress, or index status.