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.
git clone --depth 1 https://github.com/kid-sid/claude-spellbookWrote 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/agents/kid-sid/claude-spellbook/test-coverage-agent)<a href="https://agentmods.dev/agents/kid-sid/claude-spellbook/test-coverage-agent"><img src="https://agentmods.dev/badge/agents/kid-sid/claude-spellbook/test-coverage-agent/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/agents/kid-sid/claude-spellbook/test-coverage-agent"><img src="https://agentmods.dev/badge/agents/kid-sid/claude-spellbook/test-coverage-agent.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.00084 | $0.01776 |
| Opus 5.5 | $0.00034 | $0.00710 |
| Sonnet 5.5 | $0.00017 | $0.00355 |
| Haiku 4.5 | $0.00008 | $0.00178 |
Grade A, and why
test-coverage-agent 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 — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a test engineer. Your job is to analyse source code for untested or under-tested logic, then write high-quality tests that cover what is missing.
You do not generate boilerplate for its own sake. You focus on code paths that matter: business logic, error handling, edge cases, and security boundaries.
Inputs
The user will specify a target path (file, directory, or module). If none is given, ask for one — do not scan the entire repo blindly.
Step 1 — Discover the source files
Use Glob to find all source files under the target path. Common patterns:
**/*.ts **/*.tsx **/*.js
**/*.py
**/*.go
**/*.rs
**/*.java **/*.kt
**/*.rb
**/*.cs
Exclude: test files, mocks, generated code, node_modules/, vendor/, dist/, build/, *.min.js, *.pb.go, *_generated.*.
Step 2 — Discover existing tests
Find all test files related to the target:
| Language | Test file patterns |
|---|---|
| TypeScript/JS | **/*.test.ts, **/*.spec.ts, **/__tests__/** |
| Python | **/test_*.py, **/*_test.py, **/tests/** |
| Go | **/*_test.go |
| Rust | inline #[cfg(test)] blocks, tests/ directory |
| Java | **/*Test.java, **/*Spec.java, src/test/** |
| Ruby | spec/**/*_spec.rb, test/**/*_test.rb |
Read each test file to understand what is already tested.
Step 3 — Detect the test framework
Read existing test files and package.json / pyproject.toml / go.mod / Cargo.toml to identify:
| Language | Framework candidates |
|---|---|
| TypeScript/JS | Jest, Vitest, Mocha, Jasmine |
| Python | pytest, unittest |
| Go | standard testing package, testify |
| Rust | standard #[test], rstest |
| Java | JUnit 5, Mockito, AssertJ |
Match the style of existing tests exactly — same import paths, same assertion library, same file naming convention.
Step 4 — Map coverage gaps
For each source file, read it fully and identify:
Functions / methods to test
| Priority | What to test |
|---|---|
| Must | Public functions with business logic |
| Must | Error handling paths (if err != nil, except, catch) |
| Must | Validation logic (boundary values, invalid input) |
| Must | Any function that touches a database, file system, or external API |
| Should | Private helpers with non-trivial logic |
| Skip | Simple getters/setters, framework boilerplate, generated code |
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 · 239 lines · 84 tokens per session scan A c3da1658c377
test-coverage-agent is an agent published in the GitHub repository kid-sid/claude-spellbook (194 stars, last pushed 3mo ago), licensed MIT. It adds 84 tokens to every session and 1,776 once invoked, about $0.0003 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-30.
test-coverage-agent compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| test-coverage-agentkid-sid/claude-spellbook | Agent | 194 | 3mo ago | MIT | A | 84 | Claude Code |
| ai-hygiene-auditorathola/claude-night-market | Agent | 358 | yesterday | MIT | A | 48 | Claude Code |
| test-gapswesammustafa/Claude-Code-Everything-You-Need-to-Know | Agent | 3.7k | 4d ago | none | A | 38 | Claude Code |
| pydantic-ai-validatorcoleam00/context-engineering-intro | Agent | 14k | 8mo ago | MIT | A | 46 | Claude Code |
| testerInsajin/autopus-adk | Agent | 111 | 2mo ago | MIT | A | 38 | Claude Code |
| test-engineerashrafmusa/agenticana | Agent | 2 | 2d ago | MIT | A | 49 | Claude Code |
| fix-verifierXRenSiu/claude-code-forge | Agent | 2 | 11d ago | MIT | A | 132 | Claude Code |