
Skill · AI & Development
TDD Loop Master
Enforce strict Red-Green-Refactor discipline to build robust software with 100% meaningful coverage. Install in 30 seconds.
- Category
- AI & Development
- Deliverable
- 1 .skill bundle
- Outputs
- —
- Last updated
- 13 Jun 2026
- Works in Claude Pro, Team, and Enterprise
- Lifetime access to updates
- Refundable for 30 days via the marketplace
StrategistKit Affiliate. Purchase happens on the marketplace, which handles payment, delivery and refunds.
Overview
What TDD Loop Master does.
TDD Loop Master enforces the Red-Green-Refactor cycle as a strict gate system, not a suggestion. It opens every session by turning your requirement into a ranked test list — degenerate null cases first, complex edge cases last — before any code exists. From there it controls the pace: one failing test, the minimum production code to make it pass, then a refactor window only once the suite is green. It also audits any mocks you bring in, checking whether they could conceal a real failure.
A typical session starts with something like: 'I need to build a discount-calculation function in Python using PyTest. The rules are tiered by order value and customer status.' The skill asks four short context questions — stack, goal, constraints, audience — then generates the opening test list and writes the first forcing test in PyTest syntax, explaining exactly why it must fail before you touch production code.
The output for that first cycle might look like: Test List (excerpt): – [ ] calculate_discount(0, 'standard') returns 0.0 – [ ] calculate_discount(100, 'standard') returns 0.0 – [ ] calculate_discount(100, 'vip') returns 10.0 – [ ] calculate_discount(-1, 'standard') raises ValueError Red Phase — Forcing Test: def test_zero_order_returns_no_discount(): assert calculate_discount(0, 'standard') == 0.0 # Function does not exist yet — this must fail to proceed. Green Phase instruction: implement the narrowest code that passes only this assertion.
Who it's for
Software developers and engineering teams who want AI assistance that respects TDD discipline rather than generating untested code blocks — especially those working in Python, JavaScript, Java, or Go who have been burned by after-the-fact tests that mirror implementation rather than verify behaviour.
How it works
Three steps. About two minutes.
Install
Add the .skill file to your Claude app. ~10 seconds.
Run it on your work
Invoke the skill and paste in your material.
Apply the output
Review, keep what works, and use it.
In depth
Why a Claude skill beats a prompt template.
A copy-paste prompt runs one static pass and stops. A skill is a bundled program — instructions, examples, and a workflow Claude runs as a unit: it asks for the right input, applies the same pattern every time, and returns the structured outputs above.
FAQ
Common questions.
What input do I need to provide to get started?
At minimum, describe the feature or function you want to build and name your test framework (e.g. Jest, PyTest, JUnit, Go Test). The skill will ask four short follow-up questions to calibrate its output to your stack and constraints.
Will this work for bug fixes, or only new features?
Both. For a bug fix, the skill first writes a failing test that reproduces the defect, then guides you through the minimum change to make it pass — ensuring the bug cannot silently regress.
What does the mock audit actually check?
It examines whether your mock substitutions could produce a passing test even if the real dependency were broken — a common source of false confidence. It flags those cases and suggests alternative designs or integration test boundaries.
Does the skill write all the production code for me?
No, and deliberately so. It writes the forcing test and specifies what the minimum passing implementation must achieve, but intentionally keeps production code suggestions minimal to prevent over-engineering before the next test drives the next requirement.
Can I use this if I already have a partially written test suite?
Yes. Bring your existing tests and the skill will audit them for tautology — identifying any test that cannot fail for a meaningful reason — then resume the Red-Green-Refactor loop from the correct point in your test list.
More in AI & Development
Skills used with this one.


Verification-Before-Done

Technical Spec Writer

UI Design Taste Critic
Part of these collections