All skills
tdd
Write a failing test first, then minimal code to pass it, one seam at a time.
- Part of mattpocock/skills
- 1.3M installs
- Developer Tools · Coding skills
When to use it
You have a feature or bug fix to build and want tests written before the code, starting by agreeing which public seams to test.
For example
You say
Use the tdd skill to build a cart checkout feature. Start by proposing the seams we should test, then work through the red-green loop one slice at a time.
You get
- Confirmed seam list
- Failing test per slice
- Minimal passing implementation
How it works
- Tests target public interfaces, not internals, so refactors don't break them.
- Expected values must come from an independent source, not recomputed the way the code does.
- Work in vertical slices: one test, one implementation, repeat, rather than writing all tests up front.
More Coding skills
See all- lark-skill-maker486kTurns Lark API operations into reusable custom skills for the CLI.
- brainstorming438kGuides you through brainstorming before any creative work, whether a feature, a talk or a renovation.
- writing-plans312kTurns a spec or requirements into a step-by-step implementation plan before any code is written.
- higgsfield-websites174kBuilds, edits and deploys full-stack websites, apps and multiplayer games to Cloudflare.
Also in this pack
- grill-me1.6MInterviews you relentlessly to sharpen a plan or design before you commit to it.
- grill-with-docs1.4MInterviews you hard about a plan while also writing decision records and a glossary as you go.
- improve-codebase-architecture1.3MScans a codebase for structural improvement opportunities, shows them in an HTML report, then digs into your pick.
- handoff1.2MCompacts the current conversation into a handoff document another agent can pick up.