Borrowing it
Nothing to install: this file belongs to drujensen/aiagent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/drujensen/aiagent/main/.claude/skills/write-tests/SKILL.mdgit clone --depth 1 https://github.com/drujensen/aiagentWrote 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/drujensen/aiagent/write-tests)<a href="https://agentmods.dev/skills/drujensen/aiagent/write-tests"><img src="https://agentmods.dev/badge/skills/drujensen/aiagent/write-tests/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/drujensen/aiagent/write-tests"><img src="https://agentmods.dev/badge/skills/drujensen/aiagent/write-tests.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.00035 | $0.00389 |
| Opus 5.5 | $0.00014 | $0.00156 |
| Sonnet 5.5 | $0.00007 | $0.00078 |
| Haiku 4.5 | $0.00003 | $0.00039 |
Grade A, and why
write-tests 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 2mo 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.
What it actually says
Write Tests
Write tests for:
Instructions
Use the Agent tool with subagent_type: "tester" to write tests.
Pass it:
- What to test (file path, function name, or feature description)
- Acceptance criteria (if available — each criterion should map to at least one test)
The tester will:
- Read the code under test thoroughly
- Read existing test files in the same package for style reference
- Write tests using testify (assert + mock)
- Cover: happy paths, all error paths, edge cases
- Mock only at domain interface boundaries
- Run
go test ./... -raceto verify tests pass
Test Patterns in This Project
- Domain service tests: mock repositories implementing domain interfaces via
testify/mock - Tool tests: real behavior,
t.TempDir()for file isolation - Integration tests: guarded with
if os.Getenv("API_KEY") == "" { t.Skip(...) } - Test names:
TestXxx_scenarioDescription - Table-driven: preferred for multiple input/output scenarios
Output
The tester will report:
- Test files written/modified
- Coverage result:
go test ./pkg -cover - Race detection result:
go test ./pkg -race - List of acceptance criteria covered
Important
- This is a standalone skill — use
/test-reviewfor the full test + review loop - All new tests must pass with
-raceflag
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.
- 2mo ago First seen · 48 lines · 35 tokens per session scan A a009e95c3d1e
write-tests is a skill published in the GitHub repository drujensen/aiagent (5 stars, last pushed 4mo ago), licensed MIT. It adds 35 tokens to every session and 389 once invoked, about $0.0001 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-10-03.
write-tests compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| write-testsdrujensen/aiagent | Skill | 5 | 4mo ago | MIT | A | 35 | Claude Code |
| test-masterJeffallan/claude-skills | Skill | 13k | 2d ago | MIT | A | 104 | Claude Code |
| migrate-xunit-to-xunit-v3dotnet/skills | Skill | 6.4k | today | MIT | A | 149 | Claude Code |
| go-testingGentleman-Programming/gentle-ai | Skill | 9.7k | yesterday | MIT | A | 26 | Claude Code, Codex |
| dart-testdartsim/dart | Skill | 1.2k | today | BSD-2-Clause | A | 18 | Claude Code, Codex |
| restore-internals-seams-in-finally-blocks-after-each-testZaxbyHub/opencode-swarm | Skill | 551 | yesterday | MIT | A | 26 | OpenCode |
| test-generatorrshankras/claude-code-apple-skills | Skill | 924 | 24d ago | MIT | A | 33 | Claude Code |