Spec-anchored development workflow with automatic sequential/parallel orchestration using superpowers skills and git-spice.
This command executes a spec-anchored development plan with automatic sequential/parallel orchestration. Use it after generating a spec and plan to implement features with optimized workflow, code reviews, and git-spice branch management.
/plugin marketplace add arittr/spectacular/plugin install spectacular@spectacularSpec-anchored development workflow with automatic sequential/parallel orchestration using superpowers skills and git-spice.
# 0. First time? Initialize your environment
/spectacular:init
# 1. Generate comprehensive spec from requirements (generates runId: a1b2c3)
/spectacular:spec "magic link authentication with Auth.js"
# 2. Decompose into execution plan with automatic phase analysis
/spectacular:plan @specs/a1b2c3-magic-link-auth/spec.md
# 3. Execute with automatic sequential/parallel orchestration
/spectacular:execute @specs/a1b2c3-magic-link-auth/plan.md
Key Innovation: Automatic parallelization based on file dependency analysis. You don't choose - Claude analyzes and orchestrates.
/spectacular:initPurpose: Initialize spectacular environment and validate dependencies.
Checks:
Actions:
Example:
/spectacular:init
First-time setup:
✅ Environment ready for spectacular workflows!
Next steps:
1. Generate a spec: /spectacular:spec "your feature description"
2. Create a plan: /spectacular:plan @specs/{run-id}-{feature-slug}/spec.md
3. Execute: /spectacular:execute @specs/{run-id}-{feature-slug}/plan.md
/spectacular:spec {description}Purpose: Generate a complete feature specification from a brief description.
Uses:
brainstorming skill to refine requirementsOutput: specs/{run-id}-{feature-slug}/spec.md
Example:
/spectacular:spec "user picks wizard with category navigation"
# Generates: specs/d4e5f6-user-picks-wizard/spec.md
What it generates:
/spectacular:plan {spec-path}Purpose: Decompose spec into executable plan with automatic phase analysis.
Uses:
decomposing-tasks skill (custom spectacular skill)Output: {spec-directory}/plan.md
Example:
/spectacular:plan @specs/a1b2c3-magic-link-auth/spec.md
What it generates:
Automatic decisions:
Quality validation:
/spectacular:execute {plan-path}Purpose: Execute plan with automatic sequential/parallel orchestration.
Uses:
executing-sequential-phase skill for sequential phase orchestrationexecuting-parallel-phase skill for parallel phase orchestrationphase-task-verification skill for shared branch creation/verificationfinishing-a-development-branch skill for completionFlow:
executing-sequential-phase orchestrates tasks in shared worktreeexecuting-parallel-phase creates worktrees, spawns agents concurrentlyfinishing-a-development-branch skillExample:
/spectacular:execute @specs/a1b2c3-magic-link-auth/plan.md
Sequential phase execution:
Phase 1 (sequential):
Task 1 → fresh subagent → code review → commit
Task 2 → fresh subagent → code review → commit
Task 3 → fresh subagent → code review → commit
Parallel phase execution:
Phase 2 (parallel):
Worktree A: Task 4 → fresh subagent → code review → commit
Worktree B: Task 5 → fresh subagent → code review → commit
Worktree C: Task 6 → fresh subagent → code review → commit
↓
Merge all → feature branch → cleanup worktrees
Quality Gates (every task):
All commands enforce these patterns from the constitution (see @docs/constitutions/current/patterns.md):
// ✅ REQUIRED
export const submitPickAction = authenticatedAction
.schema(pickSchema)
.action(async ({ parsedInput, ctx }) => {
return pickService.submitPick(ctx.userId, parsedInput);
});
// ❌ FORBIDDEN
export async function submitPick(data: unknown) {
// Raw server action
}
// ✅ REQUIRED
return match(event.status)
.with("SETUP", () => false)
.with("OPEN", () => true)
.with("LIVE", () => false)
.with("COMPLETED", () => false)
.exhaustive(); // Compiler enforces completeness!
// ❌ FORBIDDEN
switch (event.status) {
case "SETUP":
return false;
case "OPEN":
return true;
// Missing cases - no error!
}
UI Components (src/components/)
↓ calls
Server Actions (src/lib/actions/) - next-safe-action only
↓ calls
Services (src/lib/services/) - business logic, no Prisma
↓ calls
Models (src/lib/models/) - Prisma only, no business logic
Rules:
executing-sequential-phase - Orchestrates sequential phase execution with natural stackingexecuting-parallel-phase - Orchestrates parallel phase execution with worktree isolationphase-task-verification - Shared branch creation and verification logicdecomposing-tasks - Analyzes dependencies and groups into phaseswriting-specs - Generates lean feature specificationsvalidating-setup-commands - Validates CLAUDE.md setup commandsunderstanding-cross-phase-stacking - Explains base branch inheritanceusing-git-spice - Git-spice command reference and patternstroubleshooting-execute - Error recovery for execution failuresbrainstorming - Refines requirements before spec generationrequesting-code-review - Dispatches code review after each phaseverification-before-completion - Evidence-based completion verificationfinishing-a-development-branch - Completes work and chooses next actionArchitecture: Orchestrator skills manage workflow lifecycle and dispatch Task tool with embedded execution instructions. Subagents receive focused ~150-line instructions (80% cognitive load reduction vs original 750-line monolithic skills).
# Initialize (first time only)
/spectacular:init
# Generate spec
/spectacular:spec "leaderboard with real-time updates via Socket.io"
# Review: specs/a1b2c3-leaderboard/spec.md
# Generate plan with phase analysis
/spectacular:plan @specs/a1b2c3-leaderboard/spec.md
# Review: specs/a1b2c3-leaderboard/plan.md
# Plan shows: 3 phases, all sequential (tasks share files)
# Execute
/spectacular:execute @specs/a1b2c3-leaderboard/plan.md
# Result: Sequential execution, no parallelization
# Generate spec
/spectacular:spec "user authentication with magic links"
# Generate plan
/spectacular:plan @specs/a1b2c3-auth/spec.md
# Review plan:
# - Phase 1 (sequential): Database + Models (share files)
# - Phase 2 (parallel): Magic link service + Email service (independent)
# - Phase 3 (sequential): Actions + UI (depend on Phase 2)
# Execute
/spectacular:execute @specs/a1b2c3-auth/plan.md
# Result:
# - Phase 1: Sequential execution
# - Phase 2: Parallel execution (significant time savings)
# - Phase 3: Sequential execution
# Overall: Faster than fully sequential execution
# Generate spec for complex feature
/spectacular:spec "admin category management with drag-reorder and live preview"
# Generate plan
/spectacular:plan @specs/a1b2c3-admin-categories/spec.md
# Plan auto-detects:
# - Phase 1 (sequential): 3 tasks - Database schema + models
# - Phase 2 (parallel): 4 tasks - Services (independent domains)
# - Phase 3 (sequential): 2 tasks - Admin actions
# - Phase 4 (parallel): 3 tasks - UI components (independent pages)
# - Phase 5 (sequential): 1 task - Integration + E2E tests
# Multiple parallel phases provide significant time savings
# Execute automatically orchestrates all phases
/spectacular:execute @specs/a1b2c3-admin-categories/plan.md
Cause: The superpowers plugin is required but not installed.
Fix:
/plugin install superpowers@superpowers-marketplace
Then restart Claude Code and run /spectacular:init again.
Cause: Git-spice is required for stacked branch management.
Fix:
# macOS
brew install git-spice
# Linux
# See https://github.com/abhinav/git-spice for install instructions
Then run /spectacular:init again.
Cause: Spec has quality issues (XL tasks, missing files, missing criteria).
Fix:
/spectacular:plan @spec-pathCause: One task in parallel phase hit an issue.
Fix:
cd {worktree-path}git merge {task-branch}git worktree remove {path}Cause: Tasks marked as independent actually modified same files.
Fix:
Cause: Implementation has bugs.
Fix: Code review runs after each phase, but bugs can slip through.
systematic-debugging skill to investigateSpec-Anchored Development:
Automatic Orchestration:
Task-Level Autonomy:
Time Optimization:
Without this workflow:
With this workflow: