Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add ao92265/claude-code-playbook --skill test-loopgit clone --depth 1 https://github.com/ao92265/claude-code-playbookWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ao92265/claude-code-playbook/test-loop)<a href="https://agentmods.dev/skills/ao92265/claude-code-playbook/test-loop"><img src="https://agentmods.dev/badge/skills/ao92265/claude-code-playbook/test-loop/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ao92265/claude-code-playbook/test-loop"><img src="https://agentmods.dev/badge/skills/ao92265/claude-code-playbook/test-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00152 | $0.01261 |
| Opus 5.5 | $0.00061 | $0.00504 |
| Sonnet 5.5 | $0.00030 | $0.00252 |
| Haiku 4.5 | $0.00015 | $0.00126 |
Grade A, and why
test-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test Loop
One shared skeleton, two modes. Eliminates wrong-approach / buggy-first-pass friction and regression-on-refactor risk by forcing tests-before-code and CI parity before shipping.
Shared skeleton
- Write tests (mode-specific — see below)
- Commit the tests as a baseline, separate from any behavior change
- Change code in small increments
- Keep tests green after every increment
- Full CI parity gate before PR:
tsc -b && npm test && npm run lint
Mode selection
- Bug report, issue number, "fix X is broken" → bugfix mode
- Rename/restructure/extract/split/upgrade with no intended behavior change → refactor mode
- Ambiguous → ask the user which one before writing anything
Mode: bugfix (failing-test-first)
Phase 1 — RED
- Read issue, reproduce bug locally.
- Write a test that captures expected behavior. Test MUST fail.
- Run
tsc -b && npm test— confirm the test fails for the RIGHT reason (not a compile error, not a wrong assertion). - Commit failing test alone:
test: failing case for #N.
Phase 2 — GREEN
- Implement MINIMAL fix. No refactor, no adjacent cleanup.
- After every edit run full CI parity:
tsc -b && npm test && npm run lint - Loop until all three pass. NEVER skip a step.
- 3 failed attempts → STOP, explain blocker, ask user.
Phase 3 — SHIP
- Commit fix separate from test:
fix: <one line> (#N). git branch --show-currentbefore push.gh pr createreferencing issue.
Mode: refactor (characterization-first)
For refactors with no intended behavior change: renaming/restructuring, splitting a god component, extracting a hook/util, deduping logic, migrating styles/theme without altering rendered output, or a contained library/version upgrade.
Not for: bug fixes (use bugfix mode above), feature adds, or a mechanical rename across files already covered by existing tests.
Step 1 — Identify target + capture surface
Ask the user (if not stated) for:
- Target file/dir
- Public surface to preserve: rendered output, network calls, exposed API, side effects
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 118 lines · 152 tokens per session scan A 37b7ddb0156b
test-loop is a skill published in the GitHub repository ao92265/claude-code-playbook (13 stars, last pushed 17d ago), licensed MIT. It adds 152 tokens to every session and 1,261 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
test-loop compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| test-loopao92265/claude-code-playbook | Skill | 13 | 17d ago | MIT | A | 152 | Claude Code |
| autonomous-tdd-debuggerroedyrustam/vibes-plug | Skill | 132 | today | MIT | A | 43 | Cursor |
| shipnaimkatiman/continuous-improvement | Skill | 11 | yesterday | MIT | A | 158 | Claude Code |
| superpowersnaimkatiman/continuous-improvement | Skill | 11 | yesterday | MIT | B | 134 | Claude Code |
| lfe-tddStChiotis/Library-First-Engineering | Skill | 44 | 4mo ago | MIT | A | 32 | Claude Code, Codex |
| test-driven-developmentnaimkatiman/continuous-improvement | Skill | 11 | yesterday | MIT | A | 50 | Claude Code |
| tdd-workflownaimkatiman/continuous-improvement | Skill | 11 | yesterday | MIT | A | 117 | Claude Code |