agentsclimarketplace

Test driven development

Skill gencberke/cost-oriented-agentic-workflow/skills/test-driven-development

Use in production mode, or when the human asks for TDD, before writing implementation code — write the failing test first, watch it fail, write minimal code to pass, then refactor.From its SKILL.md

Install
npx -y skills add gencberke/cost-oriented-agentic-workflow --skill test-driven-development

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

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.4 KB, as published. Nobody here has run it

Test-Driven Development

Mode note: This discipline is for production work, or when the human explicitly asks for it. In standard mode, write only the tests that genuinely protect the change (execution-routing decides) — do not impose full TDD on every small task.

The Iron Law

NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST

Wrote code before the test? In production, that's a violation — the test written after just asserts "what the code does", not "what it should do".

RED — GREEN — REFACTOR

  1. RED: write one test for the next behavior. Run it. Watch it fail, and confirm it fails for the right reason (not a typo, not a missing import). A test you never saw fail proves nothing.
  2. GREEN: write the minimal code to make it pass. No extra features (YAGNI). Run it — see it pass.
  3. REFACTOR: clean up names, duplication, structure while the test stays green. Re-run.

Repeat per behavior. Record each green checkpoint with its test evidence. A plugin implementer never commits; the controller owns controlled commits after review and verification.

What a good test verifies

  • Real behavior, not mocks. A test that only asserts a mock was called proves nothing about the system.
  • The edge cases the task cares about — not every theoretical input.
  • Pristine output — no stray warnings or noise; warnings are findings.

Red flags — STOP

  • "I'll write the test after" — tests-after rationalize the code that exists.
  • "Too simple to test" — simple code breaks; the test is 30 seconds.
  • "I already manually tested it" — manual ≠ a repeatable regression test.
  • A regression test you never watched fail — revert the fix, run it, confirm it goes red, restore.

Verification

Claiming the tests pass requires running them and reading the output this turn — see verification-before-completion.

In production, the implementer's report must show the RED evidence (the failing test first, failing for the right reason) and the GREEN evidence (passing after the minimal implementation) — not just a final green. That RED→GREEN trail is the auditable proof TDD was actually followed; a test only ever seen passing proves nothing about the order.

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.