Loops through fixing a failing test and rerunning it until green, with a marker file to control iteration. Pairs with the cooking Stop hook for automatic retries.
How this skill is triggered — by the user, by Claude, or both
Slash command
/v1truv1us-ai-eng-system:test-fix-loopThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Smallest cooking-routines skill. Hand the agent a failing test (or a set of them) and a marker file; the cooking Stop hook will keep the agent looping through fix-and-rerun cycles until either the tests pass or the iteration counter hits 10. Marker file is the trust boundary; remove it to end the loop.
Smallest cooking-routines skill. Hand the agent a failing test (or a set of them) and a marker file; the cooking Stop hook will keep the agent looping through fix-and-rerun cycles until either the tests pass or the iteration counter hits 10. Marker file is the trust boundary; remove it to end the loop.
cross-repo-refactor handles branch+push; this skill only edits the working treecross-repo-refactor insteadgit status --short returns no output, OR you accept that the loop will edit working-tree files.npm test -- failing-test.spec.ts, bun test path/to/test, pytest tests/foo.py::test_bar).mkdir -p ~/.claude/cooking
PID=$$
START_EPOCH=$(ps -p $PID -o lstart= | sed 's/^ *//;s/ *$//')
printf '{"start_epoch": "%s"}' "$START_EPOCH" > ~/.claude/cooking/active-$PID
<failing test command> in cook mode. Fix the test until it passes."finally-equivalent path (whether the loop terminates cleanly or aborts).Stop when ANY of these are true:
When termination triggers:
rm -f ~/.claude/cooking/active-$PID ~/.claude/cooking/iter-$PID
investigation-loop instead and reason about the failure first./cook-status should show this loop's marker as active while running, and as gone after termination. The iteration counter file (~/.claude/cooking/iter-<pid>) should be ≤ 10 at any observation point.
hooks/cooking/stop-hook.sh/cook-statusinvestigation-loop, cross-repo-refactor, dreaming-consolidatorCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
2plugins reuse this skill
First indexed Jul 8, 2026
npx claudepluginhub v1truv1us/ai-eng-system