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 4d 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.
- 4d 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 2mo 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.
Other skills, from other repositories
test-master
Generates test files, creates mocking strategies, analyzes code coverage, designs test architectures, and produces test plans and defect reports across functional, performance, and security testing disciplines. Use when writing unit tests, integration tests, or E2E tests; creating test strategies or automation…
migrate-xunit-to-xunit-v3
Migrate .NET test projects from xUnit.net v2 to xunit.v3 and fix v3 breaks. Use for package/CPM conversion, OutputType=Exe, preserving the VSTest or MTP runner (including projects currently using YTest.MTP.XUnit2), incompatible TFMs, async void tests, string-to-Type attributes, custom Fact/Theory/BeforeAfterTest…
go-testing
Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.
dart-test
DART Test: unit tests, integration tests, CI validation, and debugging.
principle-test-behavior-not-implementation
Apply when you write, change, or keep a test. Identify a relevant defect and check that the test detects it. Assert the required result or observable effect, including absence when the contract requires it.
restore-internals-seams-in-finally-blocks-after-each-test
When delegating a task affected by this skill, include.