Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Drives code test-first through a BDD-framed red-green-refactor loop with an enforced observed-failure gate.
65% 52%−13 ptsof test cases passed
Passed 12 of 23 test cases with the skill, and 15 of 23 without it.
3 of 3 safety checks passed
Not used yet
BDD is the reason this skill frames every test as a behavior. Dan North started replacing the word "test" with
"behaviour" because almost every misunderstanding of TDD traced back to the word "test" — where to start, what to test,
how much, what to name it, why a failure matters. The framing below is how /tdd answers those questions mechanically.
A test name describes an observable behavior of the unit, not a method or an implementation detail. North's diagnostic: if you cannot phrase the name as a sentence about what the thing should do, the behavior may belong elsewhere. "should" also keeps the premise challengeable — when a behavior test fails, ask "should it? really?": is the code wrong, or is the asserted behavior now out of date?
Surface syntax follows the project, not a literal "should". BDD governs the focus (observable behavior), not the
spelling. If the project uses it("..."), test_..., describe/it, xUnit TestXxx, Go TestXxx with
t.Run("when ..."), or a discovered coding standard that mandates a naming pattern, use that. The discovered convention
and any coding standard always win over the word "should". What does not change: the name states a behavior and an
expected outcome, never an implementation step.
A scenario is one test. The three clauses are the three phases of that test:
Keep scenarios declarative, not imperative. "When the customer requests cash" is a behavior. "When the user clicks #submit then waits 200ms" is an implementation procedure that will break on every UI change without the behavior changing. Declarative scenarios survive refactoring; imperative ones do not.
BDD-framed TDD is two nested loops:
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.