Install any skill in seconds. Free to start, no credit card required.
Get Started Free →alinaqi/iterative-development
TDD iteration loops using Claude Code Stop hooks - runs tests after each response, feeds failures back automatically
Passed 25 of 25 test cases with the skill, and 11 of 25 without it.
and 17 more in the full report
14 fixed11 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 14 test cases the skill fixed. Same model, same prompt, with and without the skill.
What hidden file path inside the repository is used by the TDD check script to track current loop iteration counts between Claude responses?
| Checked | Without skill | With skill |
|---|---|---|
| Uses .claude/.tdd-iteration-count as the tracking file path | Missed | Passed |
The instructions your model reads when the skill loads.
Concept: Claude Code's Stop hook fires right before Claude finishes a response. Exit code 2 feeds stderr back to the model and continues the conversation. This creates a real TDD loop without any plugins.
Claude Code has a Stop hook that runs when Claude is about to conclude its response. If the hook script exits with code 2, its stderr is shown to the model and the conversation continues automatically.
┌─────────────────────────────────────────────────────────────┐
│ 1. User asks Claude to implement a feature │
├─────────────────────────────────────────────────────────────┤
│ 2. Claude writes tests + implementation │
├─────────────────────────────────────────────────────────────┤
│ 3. Claude finishes its response │
├─────────────────────────────────────────────────────────────┤
│ 4. Stop hook runs: executes tests, lint, typecheck │
├─────────────────────────────────────────────────────────────┤
│ 5a. All pass (exit 0) → Claude stops, work is done │
│ 5b. Failures (exit 2) → stderr fed back to Claude │
├─────────────────────────────────────────────────────────────┤
│ 6. Claude sees failures, fixes code, response ends │
├─────────────────────────────────────────────────────────────┤
│ 7. Stop hook runs again → repeat until green or max tries │
└─────────────────────────────────────────────────────────────┘
Key insight: No fake plugins, no /ralph-loop command. The hook is real Claude Code infrastructure that runs automatically.
Add this to your project's .claude/settings.json:
{
test cases passed, vs 11 / 25 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.