agentsclimarketplace

Tdd

Skill yimwoo/hotl-plugin/skills/tdd

Use before writing any implementation code — enforces RED-GREEN-REFACTOR cycle.From its SKILL.md

Install
npx -y skills add yimwoo/hotl-plugin --skill tdd

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

0.9 KB, as published. Nobody here has run it

Test-Driven Development

The Cycle

RED → GREEN → REFACTOR

Never skip RED. Never write code before a failing test exists.

Steps

  1. Write the failing test — specific, tests one behavior
  2. Run it and confirm it fails — with the right error message
  3. Write minimal code to make it pass — no more than needed
  4. Run it and confirm it passes
  5. Refactor if needed — tests still pass after refactor
  6. Commit — small, frequent commits

Anti-Patterns to Avoid

  • Writing implementation before tests
  • Tests that pass without any implementation (false green)
  • Testing implementation details instead of behavior
  • One giant test instead of small focused tests
  • Skipping the refactor step

Verification Command

Always show the exact command to run tests and expected output at each RED/GREEN step.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.