Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add emaballarin/ccplugins/plugin install wsWrote 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/emaballarin/ccplugins/test-gate)<a href="https://agentmods.dev/skills/emaballarin/ccplugins/test-gate"><img src="https://agentmods.dev/badge/skills/emaballarin/ccplugins/test-gate/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/emaballarin/ccplugins/test-gate"><img src="https://agentmods.dev/badge/skills/emaballarin/ccplugins/test-gate.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.00128 | $0.01021 |
| Opus 5.5 | $0.00051 | $0.00408 |
| Sonnet 5.5 | $0.00026 | $0.00204 |
| Haiku 4.5 | $0.00013 | $0.00102 |
Grade A, and why
test-gate 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 1mo 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 — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/ws:test-gate — a test lands only if it earns its place
Applies while tests are being written. The bar itself — the value bar, the junk
patterns, the retention bar, and where concerns are noted — lives in
${CLAUDE_PLUGIN_ROOT}/references/test-value.md; read it before the first test of the session.
The gate is silent. A test that passes it gets nothing beyond the task's normal summary. Speak only when a test fails the gate, or when the survey in step 5 finds a concern.
1. Four questions
Before adding a test, answer four. A missing answer means the test is not added yet:
- What observable behaviour, invariant, or independent contract does it protect?
- What credible regression makes it fail?
- Why does existing coverage not already catch that failure? Each contract has one primary test owner at the strongest boundary; another layer needs its own distinct risk, such as a transport or lifecycle failure the owner cannot reach. Prefer a new row in an existing parametrised table, or an existing fixture reused as it is, over a near-duplicate test.
- Does it need a production seam — export, flag, wrapper, injection hook — that no production caller needs? If yes, move the test to the real boundary instead.
2. Junk check
Check the test against every junk pattern. A match fails the gate unless the retention bar names the contract it independently guards. A test that would break under behaviour-preserving refactoring asserts implementation; rewrite it at the owning boundary before landing it.
3. Regressions go red first
A bug regression test must fail on the pre-fix code for the intended reason, and pass after the repair at the owner boundary. See it red: write the test before the fix, or revert only the fix's production hunk, run the test, and restore the hunk byte for byte — the file must end identical to how it was before the revert. A regression test that never demonstrably failed proves the mock, not the fix.
One regression at the owner boundary covers the bug; one scenario gets one test, not one per layer it crosses.
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.
- 1mo ago Changed cb635cf8a7ff
- 2mo ago First seen · 91 lines · 128 tokens per session scan A 8f50c67099a5
test-gate is a skill published in the GitHub repository emaballarin/ccplugins (4 stars, last pushed 11d ago), licensed MIT. It adds 128 tokens to every session and 1,021 once invoked, about $0.0005 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-09-27.
test-gate compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| test-gateemaballarin/ccplugins | Skill | 4 | 11d ago | MIT | A | 128 | Claude Code |
| shipthoughtbot/rails-consultant | Skill | 39 | 10d ago | MIT | A | 20 | Claude Code |
| implement-with-tddthoughtbot/rails-consultant | Skill | 39 | 10d ago | MIT | A | 21 | Claude Code |
| laravel-testingfusengine/agents | Skill | 34 | 1mo ago | MIT | A | 46 | Claude Code |
| tddfusengine/agents | Skill | 34 | 1mo ago | MIT | A | 33 | Claude Code |
| recoup-internal-devrecoupable/skills | Skill | 10 | today | none | A | 118 | Claude Code |
| symfony-testingaligundogdu/symfony-hexagonal-skill | Skill | 36 | 1mo ago | none | A | 100 | Claude Code |