agentsclimarketplace

Test driven development

Skill gustavo-meilus/superpipelines/skills/test-driven-development

Enforces a test-first implementation cycle ensuring code correctness, maintainability, and regression safety. Use when implementing any feature or bugfix, before writing production code, or when authoring any architectural refactor.From its SKILL.md

Install
npx -y skills add gustavo-meilus/superpipelines --skill test-driven-development

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

One thing to look at

  • 4 stars4 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

3.8 KB, 824 tokens by cl100k_base, as published. Nobody here has run it

Test-Driven Development (TDD) — Quality Protocol

<overview> TDD is governed by the Iron Law: **NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST**. Watching a test fail before implementing a solution proves the test is valid and that the resulting code satisfies a specific, verified requirement rather than an assumed implementation. </overview> <glossary> <term name="Red Phase">The stage where a minimal, failing test is authored and verified to fail for the expected reason.</term> <term name="Green Phase">The stage where the minimal amount of code is written to satisfy the failing test.</term> <term name="Refactor Phase">The stage where code is cleaned and optimized while ensuring all tests remain green.</term> </glossary>

The TDD Cycle

<protocol> ### 1. RED — WRITE FAILING TEST - Write a single, minimal test describing the desired behavior or bug reproduction. - <invariant>Use real code and avoid mocks unless interacting with external, non-deterministic systems.</invariant> - **Verify RED**: Run the test and confirm it fails. If it passes, the test is invalid or testing existing behavior.

2. GREEN — MINIMAL IMPLEMENTATION

  • Write the simplest possible code to make the test pass.
  • <invariant>Avoid adding unrequested features (YAGNI) or "while-I'm-here" refactors.</invariant>
  • Verify GREEN: Run the test and confirm it passes alongside all existing tests.

3. REFACTOR — CLEAN UP

  • Improve names, remove duplication, and extract helpers.
  • Ensure the tests stay green throughout the refactoring process. </protocol>
<EXTREMELY-IMPORTANT> If production code was written before the test: **DELETE IT**. Start over from Step 1. Do not adapt existing code; the ritual of failure is what guarantees the validity of the test suite. </EXTREMELY-IMPORTANT>

Verification Checklist

<verification_checklist>

  • Every new function/method has a corresponding test.
  • Each test was observed failing before implementation began.
  • Failure was due to missing logic, not typos or configuration errors.
  • Minimal code was written to achieve a green state.
  • No unrequested logic (over-build) was introduced.
  • Output is pristine with no warnings or silent errors. </verification_checklist>

Red Flags — STOP

  • "I'll write the tests after to verify it works." → STOP. Tests-after prove nothing; they only verify what was built, not what was required.
  • "The test passed immediately." → STOP. The test is invalid or testing logic that already exists.
  • "Deleting this code is wasteful." → STOP. Sunk cost fallacy. Keeping unverified code is technical debt.
  • "I manually tested it, so it's fine." → STOP. Manual testing is non-deterministic and non-reproducible.

Rationalization Table

<rationalization_table>

ExcuseReality
"Too simple to test."Simple code is the most frequent source of silent failures. Tests take seconds.
"Already manually tested."Ad-hoc testing provides no record and cannot prevent future regressions.
"Keep as reference."Keeping "reference" code leads to adapting it, which is just testing-after. Delete it.
"TDD slows me down."TDD is faster than the inevitable debugging cycle caused by untested code.
</rationalization_table>

Reference Files

  • systematic-debugging/SKILL.md — Root cause protocol.
  • verification-before-completion/SKILL.md — Final verification gate.
  • sk-write-review-isolation/SKILL.md — Review isolation rules.
  • testing-anti-patterns.md — Common TDD pitfalls.

What ships with it: 1 file

8.1 KB alongside SKILL.md

Gives 3 of the 12 instructions most tdd skills give in 824 tokens

Counted across 594 of the 695 authors here whose files we hold, read 2026-09-06

  • Write minimal code to pass the testhere, and in 356 of 594, across 332 files
  • Write a failing test before writing production codehere, and in 240 of 594, across 221 files
  • Refactor code only after tests passin 184 of 594, across 169 files
  • Refactor code while keeping tests greenhere, and in 140 of 594, across 133 files
  • Verify the test fails for the expected reasonin 133 of 594, across 121 files
  • Run tests after each refactor stepin 108 of 594, across 102 files
  • Use real code instead of mocks whenever possiblein 97 of 594, across 85 files
  • Reproduce bugs with a failing test before fixingin 90 of 594, across 81 files
  • Write tests before implementing codein 88 of 594, across 70 files
  • Verify the test passes after writing codein 71 of 594, across 61 files
  • Write one test for one behaviorin 71 of 594, across 63 files
  • Run the full test suitein 63 of 594, across 56 files

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 325,949. 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.