| name | superspec |
|---|---|
| description | Orchestrates specification-driven development by combining spec-kit project governance (constitution, specs, plans, tasks) with obra/superpowers capabilities (brainstorming, writing-plans, TDD, subagent-driven-development, code-review). Use when the user wants to create project constitutions, write feature specifications, brainstorm edge cases, plan implementations, decompose tasks, execute with TDD discipline, or request code reviews within a structured development workflow. |
| description_zh | 通过结合 spec-kit 项目治理(宪章、规格、计划、任务)与 obra/superpowers 能力 (头脑风暴、计划编写、TDD、子代理驱动开发、代码审查)来编排规格驱动开发。 当用户需要创建项目宪章、编写功能规格、头脑风暴边界情况、规划实现方案、 拆解任务、以 TDD 纪律执行开发或请求代码审查时使用。 |
Superspec unifies spec-kit specification-driven development with obra/superpowers agent capabilities into a single workflow. Spec-kit provides the document structure and governance; superpowers provides deep clarification, task decomposition, and engineering execution discipline.
Required: None. Superspec works standalone with built-in fallback protocols.
Optional (enhanced): Install obra/superpowers
skills to ~/.agents/skills/ or .agents/skills/ for richer brainstorming,
planning, and execution capabilities. See superpowers-bridge.md
for detection and integration details.
When initialized, superspec creates a .specify/ directory in the project root:
.specify/
├── memory/
│ └── constitution.md # Project governance principles
├── specs/
│ └── NNN-feature-name/
│ ├── spec.md # Feature specification
│ └── progress.yml # Phase progress tracker (auto-managed)
├── superpowers.yml # Superpowers detection status (auto-managed)
├── plan.md # Implementation plan
├── tasks.md # Task breakdown
└── templates/ # Document templates (copied on init)
| Command | Purpose |
|---|---|
/superspec.status |
Show current progress and suggest next step (resumable) |
/superspec.constitution |
Create or update project governance principles |
/superspec.specify |
Create a feature specification with user stories |
/superspec.brainstorm |
Deep-dive edge cases and refine a spec document |
/superspec.plan |
Create a technical implementation plan |
/superspec.tasks |
Generate a phased task breakdown |
/superspec.execute |
Orchestrate implementation with TDD + subagents |
/superspec.review |
Run code review against spec requirements |
/superspec.checklist |
Generate a contextual checklist |
Superspec is designed to be fully resumable across sessions. All state is persisted
in the .specify/ directory as markdown files. When a session is interrupted (agent
timeout, user leaves, CLI crash), no progress is lost.
Each feature spec directory contains a progress.yml file that records phase status:
# .specify/specs/NNN-feature-name/progress.yml
feature: feature-name
created: 2026-04-22
current_phase: brainstorm
phases:
constitution: { status: done, updated: 2026-04-22 }
specify: { status: done, updated: 2026-04-22 }
brainstorm: { status: in_progress, updated: 2026-04-22, sessions: 1 }
plan: { status: pending }
tasks: { status: pending }
execute: { status: pending }
review: { status: pending }Status values: pending, in_progress, done, skipped
Every command updates progress.yml when it starts (in_progress) and finishes (done).
A project-level file .specify/superpowers.yml records which superpowers skills
are available. This makes the superpowers integration visible in the project docs
and persistent across sessions — no need to re-detect on every command.
# .specify/superpowers.yml
last_checked: 2026-04-22T14:30:00
skills:
brainstorming:
detected: true
path: ~/.agents/skills/brainstorming/SKILL.md
writing-plans:
detected: true
path: ~/.agents/skills/writing-plans/SKILL.md
executing-plans:
detected: false
subagent-driven-development:
detected: false
test-driven-development:
detected: true
path: .agents/skills/test-driven-development/SKILL.md
requesting-code-review:
detected: falseWhen this file is updated:
- On
/superspec.constitution(initial creation) - On
/superspec.status(re-check) - On any command that needs a superpowers skill (lazy re-check if missing)
- User can manually edit this file to override detection results
Why persist this: So that project documentation reflects which superpowers are
in use. A new team member reading .specify/ can immediately see the project's
enhanced capabilities without running any command.
When ANY superspec command is invoked, the agent MUST first run the resume check:
- Check if
.specify/directory exists - If yes, scan for
progress.ymlfiles in each spec directory - Read the most recent
progress.ymlto determinecurrent_phase - Read
.specify/superpowers.ymlto determine which superpowers are available. If the file does not exist, run superpowers detection and create it. - Report to user: "Detected existing progress for [feature]: [phase] is [status]. Superpowers: [list detected skills]. Resuming from this point." or "No previous progress found, starting fresh."
- For
in_progressphases: re-read all existing artifacts for that phase and continue where the agent left off (e.g., resume brainstorming from the last logged session, resume execution from the first unchecked task)
| Phase | Resume Signal | Resume Behavior |
|---|---|---|
constitution |
constitution.md exists but incomplete |
Re-read and ask about missing sections |
specify |
spec.md exists with [NEEDS CLARIFICATION] markers |
Continue interview for unresolved items |
brainstorm |
Brainstorm Log has entries, Open Questions has Open items |
Skip already-explored categories, continue from open questions |
plan |
plan.md exists with NEEDS CLARIFICATION fields |
Fill in missing technical context |
tasks |
tasks.md exists |
Verify completeness, add missing tasks |
execute |
tasks.md has mix of [x] and [ ] checkboxes |
Skip completed tasks, resume from first unchecked task in current phase |
review |
Review checklist partially completed | Continue from unchecked review items |
Input: Optional spec number or "all" via $ARGUMENTS. Defaults to showing all features.
Output: Progress report printed to user.
Process:
- Scan
.specify/directory structure - Check if
constitution.mdexists - Run superpowers detection: Check for all superpowers skills at
.agents/skills/and~/.agents/skills/. Update.specify/superpowers.ymlwith current detection results. - For each spec directory, read
progress.yml(or infer progress from existing files) - Display a status summary:
Superspec Project Status
========================
Constitution: Done (2026-04-22)
Superpowers: brainstorming (detected), writing-plans (not found)
Features:
001-user-auth [####------] execute (Phase 5/6) — T012/T019 tasks done
002-photo-upload [##--------] brainstorm (Phase 2/6) — 2 open questions
003-settings [#---------] specify (Phase 1/6) — draft
Suggested next step: /superspec.execute 001
- If no
.specify/exists, suggest: "No superspec project found. Run/superspec.constitutionto get started."
File inference fallback: If progress.yml does not exist, infer progress from
which files are present:
spec.mdexists → specify is donespec.mdhas Brainstorm Log entries → brainstorm was runplan.mdexists → plan is donetasks.mdexists → tasks are donetasks.mdhas[x]checkboxes → execute is in progress (count checked vs total)
Input: Project name and optional description via $ARGUMENTS.
Output: .specify/memory/constitution.md
Process:
- Create
.specify/directory structure if it does not exist - Copy all files from this skill's
templates/directory into.specify/templates/ - Read the template at
.specify/templates/constitution-template.md - Interview the user about core principles, technology stack, design system, quality gates
- Generate
constitution.mdfrom template, filling in user responses - Write to
.specify/memory/constitution.md
Gate: Constitution must exist before any other command can run.
Input: Feature name and description via $ARGUMENTS.
Output: .specify/specs/NNN-feature-name/spec.md
Process:
- Verify
.specify/memory/constitution.mdexists (abort with guidance if not) - Determine the next spec number NNN (scan existing
.specify/specs/directories) - Read the template at
.specify/templates/spec-template.md - Read the constitution to understand project principles and constraints
- Interview the user about user scenarios, requirements, success criteria
- Generate
spec.mdfrom template with user responses - Write to
.specify/specs/NNN-feature-name/spec.md
Next step suggestion: Run /superspec.brainstorm on the new spec to discover edge cases.
Input: Path to a spec file (e.g., .specify/specs/001-auth/spec.md) and an optional
focus topic via $ARGUMENTS.
Output: Updated spec file with refined edge cases, resolved open questions, and
brainstorm log entries.
Process:
- Read the target spec file
- Read the constitution for project constraints
- Superpowers detection: Check for
brainstormingskill (see superpowers-bridge.md)- If found: Read the brainstorming SKILL.md and follow its questioning protocol, adapting all outputs to the target spec file
- If not found: Use the built-in questioning protocol (see workflow-guide.md Phase 2)
- Ask questions one at a time, focusing on:
- Boundary conditions and edge cases
- Error scenarios and failure modes
- Scale and performance implications
- Security and privacy concerns
- User confusion and UX pitfalls
- After each answer, update the spec's "Open Questions" section (mark resolved items)
- When the user confirms the spec is ready, update the "Brainstorm Log" with a dated summary of insights discovered
Iteration: This command can be run multiple times on the same spec. Each session appends to the brainstorm log.
Input: Optional spec number or path via $ARGUMENTS. Defaults to the latest spec.
Output: .specify/specs/NNN-feature-name/plan.md
Process:
- Read the target spec file and constitution
- Read the template at
.specify/templates/plan-template.md - Perform a constitution check — verify the plan aligns with all governance principles
- Research the codebase to determine technical context (language, dependencies, storage, testing framework, project type)
- Design the project structure and identify files to create or modify
- Determine the execution strategy: which tasks need TDD, which support parallel subagent execution, where human checkpoints are needed
- Generate
plan.mdfrom template - Write to
.specify/specs/NNN-feature-name/plan.md
Superpowers bridge: If writing-plans skill is detected, read it and use its
blueprint generation process to enhance the plan's task structure section. See
superpowers-bridge.md.
Input: Optional spec number or path via $ARGUMENTS. Defaults to the latest spec.
Output: .specify/specs/NNN-feature-name/tasks.md
Process:
- Read the spec, plan, and constitution for the target feature
- Read the template at
.specify/templates/tasks-template.md - Superpowers detection: Check for
writing-plansskill- If found: Read the writing-plans SKILL.md and follow its task decomposition process, adapting outputs to the tasks template structure
- If not found: Decompose directly from the plan using the template
- Organize tasks by phase: Setup → Foundational → User Stories (by priority) → Polish
- Apply execution markers to each task:
[P]— can run in parallel (different files, no dependencies)[TDD]— must follow RED-GREEN-REFACTOR discipline[REVIEW]— requires code review before proceeding[SUBAGENT]— can be delegated to a subagent
- Define phase dependencies and checkpoint gates
- Write to
.specify/specs/NNN-feature-name/tasks.md
Input: Optional spec number or path via $ARGUMENTS. Defaults to the latest spec.
Output: Code changes in the project, updated task checkboxes.
Process:
- Read the tasks file for the target feature
- Read the plan and constitution for context
- Superpowers detection: Check for
executing-plans,subagent-driven-development, andtest-driven-developmentskills - Walk through tasks phase by phase:
[TDD]tasks: If TDD skill found, follow its RED-GREEN-REFACTOR process. Otherwise: write test → verify it fails → implement → verify it passes[SUBAGENT]tasks: If subagent-driven-development skill found, follow its dispatch protocol. Otherwise: implement sequentially in-session[P]tasks: Launch parallel tasks where possible using the Task tool[REVIEW]tasks: Pause and run review protocol (see/superspec.review)
- At each phase checkpoint: Summarize completed work, run tests if applicable, ask user for approval before proceeding to next phase
- Update task checkboxes in
tasks.mdas each task completes
Human checkpoints: The agent MUST pause at every phase boundary and wait for explicit user approval. Never skip a checkpoint.
Input: Optional scope (file paths or "all changes") via $ARGUMENTS.
Output: Review findings reported to user, optionally written to a checklist file.
Process:
- Read the spec and plan for the feature being reviewed
- Superpowers detection: Check for
requesting-code-reviewskill- If found: Read the skill and follow its pre-evaluation checklist and review dispatch protocol
- If not found: Use the built-in review protocol below
- Built-in review protocol:
- Spec compliance: Verify each acceptance scenario from the spec is implemented
- Edge case coverage: Verify brainstormed edge cases are handled
- Constitution compliance: Check all governance principles are respected
- Code quality: Check for bugs, security issues, error handling
- Test coverage: Verify tests exist for critical paths
- Report findings with confidence scores (0-100, only report issues >= 80)
- Group findings by severity: Critical > Important > Suggestion
Input: Checklist type and optional context via $ARGUMENTS.
Output: .specify/specs/NNN-feature-name/checklist-{type}.md
Process:
- Read the template at
.specify/templates/checklist-template.md - Read the spec, plan, and tasks for context
- Generate a checklist appropriate to the requested type (e.g., "launch readiness", "security audit", "accessibility review", "code review")
- Write to
.specify/specs/NNN-feature-name/checklist-{type}.md
The recommended end-to-end workflow:
Phase 0: /superspec.constitution → Establish project governance
Phase 1: /superspec.specify → Define feature requirements
Phase 2: /superspec.brainstorm → Clarify edge cases (iterate)
Phase 3: /superspec.plan → Design technical approach
Phase 4: /superspec.tasks → Decompose into executable tasks
Phase 5: /superspec.execute → Implement with TDD + subagents
Phase 6: /superspec.review → Verify against spec
Each phase has an explicit gate — the agent verifies prerequisites before proceeding.
Run /superspec.brainstorm multiple times until the spec is solid. The user controls
when to advance to the next phase.
- Detailed phase-by-phase guide: workflow-guide.md
- Superpowers integration details: superpowers-bridge.md
- End-to-end example: sample-workflow.md
