Use to execute bd tasks iteratively - executes one task, reviews learnings, creates/refines next task, then STOPS for user review before continuing
/plugin marketplace add withzombies/hyperpowers/plugin install withzombies-hyper@withzombies-hyperThis skill inherits all available tools. When active, it can use any tool Claude has access to.
<skill_overview> Execute bd tasks one at a time with mandatory checkpoints: Load epic → Execute task → Review learnings → Create next task → Run SRE refinement → STOP. User clears context, reviews implementation, then runs command again to continue. Epic requirements are immutable, tasks adapt to reality. </skill_overview>
<rigidity_level> LOW FREEDOM - Follow exact process: load epic, execute ONE task, review, create next task with SRE refinement, STOP.
Epic requirements are immutable. Tasks adapt to discoveries. Do not skip checkpoints, SRE refinement, or verification. STOP after each task for user review. </rigidity_level>
<quick_reference>
| Step | Command | Purpose |
|---|---|---|
| Load Epic | bd show bd-1 | Read immutable requirements once at start |
| Find Task | bd ready | Get next ready task to execute |
| Start Task | bd update bd-2 --status in_progress | Mark task active |
| Track Substeps | TodoWrite for each implementation step | Prevent incomplete execution |
| Close Task | bd close bd-2 | Mark task complete after verification |
| Review | Re-read epic, check learnings | Adapt next task to reality |
| Create Next | bd create "Task N" | Based on learnings, not assumptions |
| Refine | Use sre-task-refinement skill | Corner-case analysis with Opus 4.1 |
| STOP | Present summary to user | User reviews, clears context, runs command again |
| Final Check | Use review-implementation skill | Verify all success criteria before closing epic |
Critical: Epic = contract (immutable). Tasks = discovery (adapt to reality). STOP after each task for user review.
</quick_reference>
<when_to_use> Use after hyperpowers:writing-plans creates epic and first task.
Symptoms you need this:
<the_process>
This skill supports explicit resumption. When invoked:
bd list --type epic --status open # Find active epic
bd ready # Check for ready tasks
bd list --status in_progress # Check for in-progress tasks
Fresh start: No in-progress tasks, proceed to Step 1.
Resuming: Found ready or in-progress tasks:
Why resumption matters:
Do not ask "where did we leave off?" - bd state tells you exactly where to resume.
Before executing ANY task, load the epic into context:
bd list --type epic --status open # Find epic
bd show bd-1 # Load epic details
Extract and keep in mind:
Why: Requirements prevent watering down when blocked.
bd ready # Find next task
bd update bd-2 --status in_progress # Start it
bd show bd-2 # Read details
CRITICAL - Create TodoWrite for ALL substeps:
Tasks contain 4-8 implementation steps. Create TodoWrite todos for each to prevent incomplete execution:
- bd-2 Step 1: Write test (pending)
- bd-2 Step 2: Run test RED (pending)
- bd-2 Step 3: Implement function (pending)
- bd-2 Step 4: Run test GREEN (pending)
- bd-2 Step 5: Refactor (pending)
- bd-2 Step 6: Commit (pending)
Execute steps:
test-driven-development when implementing featurestest-runner agent for verificationsPre-close verification:
bd close bd-2 # After ALL substeps done
CRITICAL: After each task, adapt plan based on reality.
Review questions:
Re-read epic:
bd show bd-1 # Keep requirements fresh
Three cases:
A) Next task still valid → Proceed to Step 2
B) Next task now redundant (plan invalidation allowed):
bd delete bd-4 # Remove wasteful task
# Or update: bd update bd-4 --title "New work" --design "..."
C) Need new task based on learnings:
bd create "Task N: [Next Step Based on Reality]" \
--type feature \
--design "## Goal
[Deliverable based on what we learned]
## Context
Completed bd-2: [discoveries]
## Implementation
[Steps reflecting current state, not assumptions]
## Success Criteria
- [ ] Specific outcomes
- [ ] Tests passing"
bd dep add bd-N bd-1 --type parent-child
bd dep add bd-N bd-2 --type blocks
REQUIRED - Run SRE refinement on new task:
Use Skill tool: hyperpowers:sre-task-refinement
SRE refinement will:
Do NOT skip SRE refinement. New tasks need the same rigor as initial planning.
bd show bd-1 # Check success criteria
Present summary to user:
## Task bd-N Complete - Checkpoint
### What Was Done
- [Summary of implementation]
- [Key learnings/discoveries]
### Next Task Ready
- bd-M: [Title]
- [Brief description of what's next]
### Epic Progress
- [X/Y success criteria met]
- [Remaining criteria]
### To Continue
Run `/hyperpowers:execute-plan` to execute the next task.
Why STOP is mandatory:
Do NOT rationalize skipping the stop:
When all success criteria appear met:
Run full verification (tests, hooks, manual checks)
REQUIRED - Use review-implementation skill:
Use Skill tool: hyperpowers:review-implementation
Review-implementation will:
finishing-a-development-branch</the_process>
<examples> <example> <scenario>Developer closes task without completing all substeps, claims "mostly done"</scenario> <code> bd-2 has 6 implementation steps.TodoWrite shows:
Developer thinks: "Function works, I'll close bd-2 and move on" Runs: bd close bd-2 </code>
<why_it_fails> Steps 4-6 skipped:
"Mostly done" = incomplete task = will cause issues later. </why_it_fails>
<correction> **Pre-close verification checkpoint:**Before closing ANY task:
Result: Task actually complete, tests passing, code committed. </correction> </example>
<example> <scenario>Developer discovers planned task is redundant, executes it anyway "because it's in the plan"</scenario> <code> bd-4 says: "Implement token refresh middleware"While executing bd-2, developer discovers:
Developer thinks: "bd-4 is in the plan, I should do it anyway" Proceeds to implement duplicate middleware </code>
<why_it_fails> Wasteful execution:
Why it happens: Treating tasks as immutable instead of epic. </why_it_fails>
<correction> **Plan invalidation is allowed:**# Check existing code
cat auth/middleware/refresh.ts
# Confirm it works
npm test -- refresh.spec.ts
bd delete bd-4
bd update bd-2 --design "...
Discovery: Token refresh middleware already exists (auth/middleware/refresh.ts).
Verified working with tests. bd-4 deleted as redundant."
Result: Plan adapts to reality. No wasted work. </correction> </example>
<example> <scenario>Developer hits blocker, waters down epic requirement to "make it easier"</scenario> <code> Epic bd-1 anti-patterns say: "FORBIDDEN: Using mocks for database integration tests. Must use real test database."Developer encounters:
Developer thinks: "This is too hard, I'll use mocks just for now and refactor later"
Adds TODO: // TODO: Replace mocks with real DB later </code>
<why_it_fails> Violates epic anti-pattern:
Why it happens: Rationalizing around blockers instead of solving them. </why_it_fails>
<correction> **When blocked, re-read epic:**bd show bd-1
Option A - Research:
bd create "Research: Real DB test setup for [project]" \
--design "Find how this project sets up test databases.
Check existing test files for patterns.
Document setup process that meets anti-pattern requirements."
Option B - Ask user: "Blocker: Test DB setup complex. Epic forbids mocks for integration. Is there existing test DB infrastructure I should use?"
Result: Epic requirements maintained. Blocker solved properly. </correction> </example>
<example> <scenario>Developer skips STOP checkpoint to "maintain momentum"</scenario> <code> Just completed bd-2 (authentication middleware). Created bd-3 (rate limiting endpoint). Ran SRE refinement on bd-3.Developer thinks: "Good context loaded, I'll just do bd-3 quickly then stop. User approved the epic, they trust me to execute it. Stopping now is inefficient."
Continues directly to execute bd-3 without STOP checkpoint. </code>
<why_it_fails> Multiple failures:
The rationalization trap:
What actually happens:
## Task bd-2 Complete - Checkpoint
### What Was Done
- Implemented JWT middleware with validation
- Added token refresh handling
### Next Task Ready
- bd-3: Implement rate limiting
- Adds rate limiting to auth endpoints
### Epic Progress
- 2/4 success criteria met
- Remaining: password reset, rate limiting
### To Continue
Run `/hyperpowers:execute-plan` to execute the next task.
Result: User can review, clear context, adjust next task. Each task completes with full oversight. </correction> </example>
</examples><critical_rules>
STOP after each task → Present summary, wait for user to run command again
SRE refinement for new tasks → Never skip corner-case analysis
Epic requirements are immutable → Never water down when blocked
All substeps must be completed → Never close task with pending substeps
Plan invalidation is allowed → Delete redundant tasks
Review before closing epic → Use review-implementation skill
All of these mean: Re-read epic, STOP as required, ask for help:
</critical_rules>
<verification_checklist>
Before closing each task:
After closing each task:
Before closing epic:
</verification_checklist>
<integration>This skill calls:
This skill is called by:
Agents used:
Workflow pattern:
/hyperpowers:execute-plan → Execute task → STOP
[User clears context, reviews]
/hyperpowers:execute-plan → Execute next task → STOP
[Repeat until epic complete]
</integration>
<resources>
bd command reference:
When stuck:
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.