What problem does it solve?
Teams often write production code before agreeing on expected behavior, producing tests that merely mirror existing code and miss real requirements. This Skill enforces a behavior-first workflow so features and bug fixes are driven by concrete, executable specifications.
Core Features & Use Cases
- Gherkin Scenario Authoring: Guides writing declarative Given/When/Then scenarios stored in .feature files as living documentation, with bdd-specs.md as the planning-stage artifact.
- Red-Green-Refactor Enforcement: Applies the Iron Law that no production code is written without a failing test first, including rules for deleting pre-existing untested code.
- Testing Anti-Pattern Detection: Identifies mocking pitfalls, vacuous assertions, and implementation-coupled tests that pass without verifying real behavior.
- Use Case: When asked to implement a login feature, the Skill first formulates scenarios like "Given a registered user, When they log in with valid credentials, Then they reach the dashboard", then drives implementation through failing tests.
Quick Start
Ask the assistant to implement a new feature using behavior-driven development with Gherkin scenarios and test-first implementation.