From superpowers
Enforces BDD task granularity: splits scenarios into Red (failing test) + Green (impl) tasks, one per .md file with strict naming, verification steps, and agent execution handoff.
npx claudepluginhub fradser/dotclaude --plugin superpowerswriting-plans/references/# Task Granularity & Verification ## BDD Granularity **Preferred: 1 Scenario = 2 Tasks (Red + Green).** To strictly enforce BDD, split work into: 1. **Task A (Red)**: Create failing test for Scenario X. 2. **Task B (Green)**: Implement Scenario X to pass test. **Alternative (Single Task)**: If using a single task, the steps MUST be strictly ordered: 1. Create Test -> 2. Verify Fail (Red) -> 3. Implement -> 4. Verify Pass (Green). Do not group multiple scenarios into one task unless they are trivial variations. ## File Structure (MANDATORY) **ONE TASK PER FILE** - Each task must be i...
/tasksOrchestrates two-agent workflow to generate task mappings and detailed tasks from feature specs, with Devil's Advocate validation and report outputs.
/planGenerates structured TDD implementation plan for a task: goal, acceptance criteria, incremental RED-GREEN-REFACTOR steps, complexity ratings, and pre-PR quality gate. Writes to Markdown file.
Share bugs, ideas, or general feedback.
Preferred: 1 Scenario = 2 Tasks (Red + Green).
To strictly enforce BDD, split work into:
Alternative (Single Task): If using a single task, the steps MUST be strictly ordered:
Do not group multiple scenarios into one task unless they are trivial variations.
ONE TASK PER FILE
.md filetask-<NNN>-<feature>-<type>.mdtask-001-setup.md, task-002-login-test.md, task-002-login-impl.md_index.md file contains overview and references to all task filesVerification is strictly tied to the BDD Scenario.
Red (Failing Test):
AssertionError: Expected X, got None, not ImportError).Green (Passing Test):
Refactor:
Every task in the plan must result in:
tests/).src/).Task 01: [TEST] 'Feature behavior' (RED)
BDD Scenario:
Scenario: [concise scenario title] Given [context or precondition] When [action or event occurs] Then [expected outcome] And [additional conditions or outcomes]Steps:
- Create
tests/path/to/test_file.ext.- Implement test case mapping to Given/When/Then above.
- Verify: Run
<test-command>-> MUST FAIL (Red).Task 02: [IMPL] 'Feature behavior' (GREEN)
BDD Scenario:
Scenario: [concise scenario title] Given [context or precondition] When [action or event occurs] Then [expected outcome] And [additional conditions or outcomes]Steps:
- Update
src/path/to/file.ext.- Implement the functionality to satisfy the scenario above.
- Verify: Run
<test-command>-> MUST PASS (Green).
After saving the plan, offer execution choice via Agent Teams:
"Plan complete and saved to docs/plans/<filename>.md. Execution options:
1. Orchestrated Execution (Recommended) - Load superpowers:executing-plans skill using the Skill tool to manage execution (it will spawn an Agent Team for parallel work).
2. Direct Agent Team - Load superpowers:agent-team-driven-development skill using the Skill tool to spawn a team immediately (Architecture/Implementation/Review).
3. Manual / Serial - Execute tasks one by one in this session (slower)."