aiagent: Skill for Claude Code

.claude/skills/test-review/SKILL.md

test-review is a skill for Claude Code from drujensen/aiagent. It costs 54 tokens per session (518 once invoked), scanned A, original, MIT.

A test-writing and review workflow that writes unit and integration tests, then has another agent assess their coverage and quality. It repeats the work when the tests do not meet the review target, up to three rounds.

In plain words
What is it for?
Use it after describing a feature or changed files to create tests, run coverage and race checks, and address missing success, failure, or edge-case scenarios.
Why use it?
It removes the need to judge test quality from test existence alone and helps close gaps found during review.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

This is drujensen/aiagent's own configuration. It tells Claude Code how to work on aiagent itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything aiagent configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/drujensen/aiagent/main/.claude/skills/test-review/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/drujensen/aiagent

Made for: Claude Code.

Wrote 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.

agentmods badge for test-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/drujensen/aiagent/test-review/github.svg)](https://agentmods.dev/skills/drujensen/aiagent/test-review)
Your own site
<a href="https://agentmods.dev/skills/drujensen/aiagent/test-review"><img src="https://agentmods.dev/badge/skills/drujensen/aiagent/test-review/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.

agentmods 80×15 button for test-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/drujensen/aiagent/test-review"><img src="https://agentmods.dev/badge/skills/drujensen/aiagent/test-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 518 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00518
Opus 5.5 $0.00022 $0.00207
Sonnet 5.5 $0.00011 $0.00104
Haiku 4.5 $0.00005 $0.00052

Measured 4d ago against content hash 21e9917411c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-review 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.

.claude/skills/test-review/SKILL.md · 54 lines

What it actually says

Test Review

Write and review tests for:

Instructions

You are orchestrating a Test Writing and Review cycle for the aiagent project.

Phase 1: Test Writing

  1. Use the Agent tool with subagent_type: "tester" to write the tests
  2. Pass it:
    • What to test (feature description or list of files changed)
    • The refined story's acceptance criteria (if available)
  3. The tester will:
    • Read existing test files in the same packages for style reference
    • Write tests using testify (assert + mock)
    • Mock only at domain interface boundaries
    • Cover happy paths, failure paths, and edge cases
    • Run go test ./... -race to verify all tests pass

Phase 2: Review 4. Use the Agent tool with subagent_type: "tester-reviewer" to review the tests 5. Pass the tester's output (test files written, coverage results) 6. The reviewer will run go test ./... -cover -race and score against the 6 pillars

Phase 3: Iterate 7. If overall score >= 8/10 (APPROVED): Report the test results and scores 8. If overall score < 8/10 (REVISE):

  • Extract Critical Issues from the reviewer
  • Send issues back to the tester with specific gaps to fill
  • Re-review with the tester-reviewer
  • Repeat until APPROVED or 3 iterations maximum

Phase 4: Report 9. Present:

  • List of test files written/modified
  • Coverage report by package
  • Final pillar scores table
  • Acceptance criteria coverage: which criteria have tests, which don't

Important

  • Maximum 3 review iterations
  • The tester WRITES TESTS; the reviewer only READS and SCORES
  • Tests must use t.TempDir() for file-based tests, not hardcoded paths
  • All tests must pass with -race flag
Changes

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.

  1. 4d ago First seen · 54 lines · 54 tokens per session scan A 21e9917411c1

Subscribe to this mod's changes

test-review is a skill published in the GitHub repository drujensen/aiagent (5 stars, last pushed 2mo ago), licensed MIT. It adds 54 tokens to every session and 518 once invoked, about $0.0002 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.