exunit-code-review

exunit-code-review is a skill for Claude Code, Codex from existential-birds/beagle. It costs 45 tokens per session (1,195 once invoked), scanned A, original, Apache-2.0.

A review guide for ExUnit tests, the testing framework commonly used in Elixir. It covers test structure, Mox-based mocks for external services, and test adapters for tools such as email and job queues.

In plain words
What is it for?
Use it when reviewing Elixir test files or test configuration, especially tests using Mox, HTTP clients, email, background jobs, or database sandboxes.
Why use it?
It helps distinguish external dependencies that should be replaced in tests from internal code that should be tested directly. It also checks setup, asynchronous tests, expectations, and integration-test boundaries.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when reviewing Elixir test files or test configuration, especially tests using Mox, HTTP clients, email, background jobs, or database sandboxes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/existential-birds/beagle/exunit-code-review
Install

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.

Any agent
npx skills add existential-birds/beagle --skill exunit-code-review
Clone the repo
git clone --depth 1 https://github.com/existential-birds/beagle

Made for: Claude Code, Codex.

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 exunit-code-review

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/existential-birds/beagle/exunit-code-review"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/exunit-code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,195 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.00045 $0.01195
Opus 5.5 $0.00018 $0.00478
Sonnet 5.5 $0.00009 $0.00239
Haiku 4.5 $0.00005 $0.00120

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

Security

Grade A, and why

exunit-code-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.

skills/exunit-code-review/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ExUnit Code Review

Quick Reference

Issue Type Reference
Async pitfalls, Application.put_env, CaptureLog, setup_all references/exunit-patterns.md
Behavior-based mocking, $callers, Mox.allow references/mox-boundaries.md
Req.Test, Bypass, Swoosh, Oban testing references/test-adapters.md
What to mock vs real, Ecto Sandbox, fixtures references/integration-tests.md

Mock Boundary Philosophy

Mock at external boundaries:

  • HTTP clients, external APIs, third-party services (Req.Test for Req, Bypass / Mox for other clients)
  • Slow resources: file system, email (Swoosh.Adapters.Test), job queues (Oban.Testing)
  • Non-deterministic: DateTime.utc_now/0, :rand

DO NOT mock internal code:

  • Contexts, schemas, GenServers
  • Internal modules, PubSub
  • Anything you wrote

Review Checklist

Test Structure & Async Safety

  • Tests use async: true when isolated (including use MyApp.DataCase, async: true via Ecto Sandbox)
  • async: false used when mutating global state (Application.put_env/3, named singletons, {:shared, self()} sandbox, global CaptureLog)
  • setup_all does not leak sandbox connections or per-test state across tests

Mocking & HTTP Testing

  • Req.Test (stub/2, expect/3, json/2) used for Req-based HTTP clients (nimble_ownership supports async: true without ports)
  • Bypass or Mox used for non-Req external boundaries (behaviors defined for interfaces)
  • No mocking of internal modules (contexts, schemas, Repo)
  • verify_on_exit! in setup for strict Mox mocking; no Mox.allow race conditions after process spawn

Test Adapters

  • Req.Test or Bypass for HTTP endpoint mocking
  • Swoosh.Adapters.Test for email testing
  • Oban.Testing for background job assertions (asserting Oban.drain_queue return map %{success: _, failure: 0})

Read the full file on GitHub · 85 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · +1 lines · +7 tokens per session 2c4a7f8ef3f6
  2. 2mo ago First seen · 84 lines · 38 tokens per session scan A ba48590c718b

Subscribe to this mod's changes

exunit-code-review is a skill published in the GitHub repository existential-birds/beagle (91 stars, last pushed 4d ago), licensed Apache-2.0. It adds 45 tokens to every session and 1,195 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-09-16.

Related

exunit-code-review compared with skills from other repositories

exunit-code-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
exunit-code-reviewexistential-birds/beagleSkill914d agoApache-2.0A45Claude Code, Codex
write-testsGoldziher/ai-rulezSkill1826d agoMITA28Claude Code
Unit Test Scaffold (Python/pytest)s977043/river-reviewSkill8todayMITA19Claude Code
pythonUnique-Divine/jiyuuSkill7todayMITA30Claude Code, Codex
coding-standardsSimon-Hwang/gg-pluginsSkill24mo agononeA34Claude Code
codex-rule-routerSimon-Hwang/gg-pluginsSkill24mo agononeA39Claude Code
golang-testingaffaan-m/ECCSkill313k7d agoMITA37Claude Code, Kiro