skills/superplan/SKILL.md
Use when starting significant features, epics, or complex tasks. Creates multi-phase implementation plans with parallelizable phases, poker estimates, TDD-first acceptance criteria, and quality gates. Detects tech stack from CLAUDE.md/AGENTS.md (bypassing internet research if complete) or via codebase scan.
npx skillsauth add asteroid-belt-llc/skills superplanInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Superplan creates detailed, executable implementation plans that enable parallel agent execution. Each plan includes everything needed to implement a feature: requirements, architecture, code changes, tests, and acceptance criteria.
┌─────────────────────────────────────────────────────────────────────┐
│ SUPERPLAN WORKFLOW │
├─────────────────────────────────────────────────────────────────────┤
│ 1. INTAKE → Gather story/requirements from user │
│ 2. DETECT → Check CLAUDE.md/AGENTS.md, then scan │
│ 3. INTERVIEW → Ask clarifying questions │
│ 4. RESEARCH → Look up best practices (BYPASS if docs OK) │
│ 5. EXPLORE → Understand existing codebase patterns │
│ 6. REFACTOR ASSESS → Evaluate if refactoring should precede work │
│ 7. ARCHITECT → Design solution with diagrams │
│ 8. PHASE → Break into parallelizable phases + ESTIMATES │
│ 9. DETAIL → Specify code deltas per phase │
│ 10. TEST → Define failing tests per phase (TDD) │
│ 11. DOCUMENT → Write plan to plans/NNN-feature/plan.md │
└─────────────────────────────────────────────────────────────────────┘
References are loaded on demand. Read BEFORE starting the relevant phase.
| When | Reference | What You Get | |------|-----------|--------------| | Before ANY parallel operation | Sub-Agent Syntax | Exact prompts for launching parallel agents | | Phase 3: Interview | Interview Guide | Question templates by feature size | | Phase 5: Explore | Explore Prompts | Exact prompts for codebase exploration agents | | Phase 6: Refactor | Refactoring Research | Mikado, Strangler Fig, Branch by Abstraction | | Phase 7: Architect | Architecture Templates | API, data model, component tree templates | | Phase 9: Detail | Task Micro-Structure | 5-step TDD format for each task | | Phase 10: Test | TDD Discipline | TDD rules, rationalizations, red flags | | Phase 10: Test | Testing Pyramid | Unit/integration/E2E examples | | Phase 10: Test | Command Outputs | Expected test output format | | Phase 11: Document | Plan Template | Complete plan file structure |
DO NOT SKIP REFERENCES. They contain exact prompts, templates, and formats that are NOT duplicated here.
YOU MUST USE SUB-AGENTS for parallelizable operations.
STOP. Read Sub-Agent Syntax NOW before launching any parallel operation.
| Operation | Action | |-----------|--------| | Independent file reads | Multiple Read tasks in single message | | Code searches | Parallel Explore agents | | Parallel phases (1A, 1B, 1C) | Parallel general-purpose agents |
All phases MUST include Fibonacci estimates: 1, 2, 3, 5, 8, 13, 21
| Size | Meaning | Example | |------|---------|---------| | 1 | Trivial | Config value, typo fix | | 2 | Small | Single file, simple function | | 3 | Medium | Multi-file, new component | | 5 | Large | Feature module, API endpoint | | 8 | X-Large | Complex feature with dependencies | | 13 | Epic chunk | Major subsystem change | | 21 | Too big | Split into smaller tasks |
Ask the user to provide their story/requirements:
Output: Source, Type (User Story/Technical Task/Bug Fix/Epic), Raw Requirements, Initial Understanding.
If found AND complete (all boxes checked), BYPASS codebase scan AND Phase 4 Research.
Completeness checklist:
Launch parallel Explore agents to detect: Languages, Frameworks, Build Tools, Quality Tools, Testing Tools.
Output: Tech stack summary, bootstrap requirements, research bypass status.
Ask 3-5 questions, then WAIT FOR ANSWERS.
Required Questions:
STOP. Read Interview Guide NOW for question templates before asking.
BYPASS if DETECT found complete tech stack in CLAUDE.md/AGENTS.md.
Otherwise, launch parallel web searches:
[Language] [YEAR] best practices[Framework] [YEAR] patterns[Framework] security guidelinesOutput: Sources consulted, key findings, specific recommendations.
STOP. Read Explore Prompts NOW for exact agent prompts before launching.
Launch 3 parallel Explore agents:
Output: Similar implementations table, integration points table, technical debt table.
Evaluate if refactoring should precede feature work.
STOP. Read Refactoring Research NOW for methodologies before assessing.
| Level | Description | Action | |-------|-------------|--------| | LOW | Code is clean | Proceed to ARCHITECT | | MEDIUM | Some smells present | Note debt, ask user preference | | HIGH | Significant issues | Recommend refactor phases | | CRITICAL | Major rewrite needed | Propose Mikado/Strangler Fig |
If HIGH or CRITICAL, ask permission to add refactoring phases.
STOP. Read Architecture Templates NOW for templates before designing.
For each component, answer:
Required outputs:
Break work into phases with poker estimates that can be executed in parallel.
EVERY phase MUST end with a CHECKPOINT instruction. This enables /superbuild to run /compact automatically in BUILD-ALL mode, preserving context across long implementations.
- [ ] **CHECKPOINT: Run `/compact focus on: [Phase N] complete, [key artifacts], [Phase N+1] goals`**
The focus directive tells /compact what to preserve:
## Phase 1: Authentication System
- [ ] Task 1.1: Create auth models in `src/models/auth.ts`
- [ ] Task 1.2: Implement JWT handling in `src/services/jwt.ts`
- [ ] Task 1.3: Add auth middleware in `src/middleware/auth.ts`
- [ ] **CHECKPOINT: Run `/compact focus on: Phase 1 complete, auth models and JWT service created, Phase 2 needs API endpoints`**
## Phase 2: API Endpoints
- [ ] Task 2.1: Create `/api/auth/login` endpoint
...
Output: Phase dependency diagram + table with estimates:
| Phase | Name | Depends On | Parallel With | Estimate | Status | |-------|------|------------|---------------|----------|--------|
STOP. Read Task Micro-Structure NOW for 5-step TDD format before detailing tasks.
path/to/file.ts (CREATE) - new file with full contentpath/to/file.ts:45-67 (MODIFY) - existing file with line range and diffNEVER use pseudocode, // ... rest of file, or vague descriptions.
STOP. Read Command Outputs NOW for expected output format before writing tests.
For each task:
Also read Testing Pyramid for unit/integration/E2E examples.
Every phase MUST include this checklist:
### Definition of Done
- [ ] Code passes linter
- [ ] Code passes formatter
- [ ] Code passes type checker
- [ ] All new tests pass
- [ ] All existing tests pass
- [ ] Test coverage >= 80% for new code
- [ ] No new warnings introduced
At the end of EVERY phase, output (but do not commit):
PHASE [X] COMPLETE - Conventional Commit Message:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
<type>(<scope>): <short summary>
<body - detailed description>
Files changed:
- path/to/file.ts (CREATE/MODIFY/DELETE)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DO NOT COMMIT - User will handle git operations
Plans live in numbered subdirectories under plans/:
plans/
001-auth-system/
plan.md
002-user-dashboard/
plan.md
003-api-caching/
plan-1.md # Large plan split across files
plan-2.md
To determine the next number:
plans/plans/ exists, start at 001Slug format: lowercase, hyphen-separated short name (e.g., 001-auth-system, 002-add-search)
mkdir -p plans/NNN-feature-short-name/
Write the complete plan to plans/NNN-feature-short-name/plan.md.
STOP. Read Plan Template NOW for complete structure before writing.
After saving, present options:
PLAN COMPLETE: plans/NNN-feature-short-name/plan.md
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EXECUTION OPTIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Option 1: Execute Now (This Session)
Run `/superbuild plans/NNN-feature-short-name/plan.md`
Option 2: Execute in Fresh Session
Start new session and run `/superbuild plans/NNN-feature-short-name/plan.md`
Option 3: Review First
Read through the plan, suggest modifications, then execute
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Which option would you like?
If plan exceeds ~4,000 lines, split into files within the same directory:
plan-1.md: Overview, Requirements, Architectureplan-2.md: Implementation Phasesplan-N.md: Remaining phases, AppendixSee Reference Index at top of this document for when to read each reference.
| Phase | Key Action | Must Read Before Starting | |-------|------------|---------------------------| | 1-2 | Gather requirements, detect stack | - | | 3 | Interview (WAIT for answers) | Interview Guide | | 4 | Research (if needed) | - | | 5 | Explore codebase | Explore Prompts | | 6 | Refactor assessment | Refactoring Research | | 7 | Architecture design | Architecture Templates | | 8-9 | Phase breakdown + code deltas | Task Micro-Structure | | 10 | TDD tests | TDD Discipline, Testing Pyramid, Command Outputs | | 11 | Write plan + handoff | Plan Template | | ANY | Parallel operations | Sub-Agent Syntax |
development
Transforms technical documents into rigorous learning journeys with collegiate-level mastery requirements. Uses Bloom's taxonomy progression, 80%+ mastery thresholds, and multi-level verification before advancing. Treats learning as a high school to college graduation progression. Use when user wants deep understanding, not surface familiarity.
development
Generates a docs/ directory of markdown files giving AI and humans deep context on WHAT a codebase is, HOW it works, and WHY decisions were made. Scans any codebase, produces structured documentation. Re-runnable — detects existing docs, monorepos, and git-based staleness. Runs automatically without user interaction.
development
Weekly codebase hygiene skill that identifies and fixes AI-generated code problems ("slop") using Martin Fowler's refactoring techniques. Scans for 15 common issues, prioritizes by severity, and generates superplan-compatible plans for systematic improvement.
development
Use when executing implementation plans phase-by-phase with strict enforcement of quality gates, tests, and Definition of Done. Triggers on "build this plan", "execute plan", "implement phases", or when user provides a plan document to execute.