From superpowers
Applies BDD with Gherkin scenarios and TDD Red-Green-Refactor to implement features, fix bugs, and write executable specs/tests before production code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers:behavior-driven-developmentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill provides a comprehensive guide to applying Behavior-Driven Development principles to your coding tasks. BDD is not just about tools; it's a methodology for shared understanding and high-quality implementation.
This skill provides a comprehensive guide to applying Behavior-Driven Development principles to your coding tasks. BDD is not just about tools; it's a methodology for shared understanding and high-quality implementation.
When the user asks for a feature, bug fix, or refactor, apply the following mindset:
The process flows from requirements to code:
See BDD Best Practices for a detailed guide.
Scenarios are your "Executable Specifications".
See Cucumber Gherkin Guide for syntax and storage structure.
The engine of implementation:
"No production code is written without a failing test first."
If you write code before the test:
npx claudepluginhub fradser/dotclaude --plugin superpowersProvides BDD patterns using Given-When-Then, Gherkin feature files, scenario outlines, and step definitions for business-readable tests and specifications.
Enforces test-driven development for features, bug fixes, and refactoring. Requires failing tests before any production code, with guidance on test types and spec-to-test mapping.
Guides Red-Green-Refactor cycles for test-first feature implementation and bug fixes. Requires /optimus:init and working test infrastructure.