/beagle-elixir:exunit-code-reviewfrom beagle-elixir
Reviews ExUnit test code for proper patterns, boundary mocking with Mox, and test adapter usage. Useful when reviewing _test.exs files or test helper configurations.
Ships in beagle-elixir. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Issue Type | Reference |
|---|---|
| Async tests, setup, describe, tags | references/exunit-patterns.md |
| Behavior-based mocking, expectations | references/mox-boundaries.md |
| Bypass, Swoosh, Oban testing | references/test-adapters.md |
| What to mock vs real, Ecto sandbox | references/integration-tests.md |
Mock at external boundaries:
DO NOT mock internal code:
async: true unless sharing database state| Issue | Flag ONLY IF |
|---|---|
| Not async | Test actually needs shared state |
| Missing mock | External call exists AND no mock/bypass |
| Mock internal | Module being mocked is internal code |
Complete in order. Do not emit a finding until the prior step passes for that issue.
Evidence from the file — Open the test module (or helper) and tie the claim to concrete lines.
[FILE:LINE] and a one-line factual description of what is on that line (or an adjacent line you name), not a generic style complaint.ExUnit false-positive veto — Check this skill’s Valid Patterns and Context-Sensitive Rules for the case.
Cross-protocol verification — Apply review-verification-protocol (e.g. read full function/block, search usages before “unused” claims) to that same finding.
Use [FILE:LINE] ISSUE_TITLE per finding after Gates (sequence) and the linked protocol are satisfied.
What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/elixir-code-reviewReviews Elixir code for idiomatic patterns, OTP basics, and documentation. Use when reviewing .ex/.exs files, checking pattern matching, GenServer usage, or module documentation./elixir-docs-reviewReviews Elixir documentation for completeness, quality, and ExDoc best practices. Use when auditing @moduledoc, @doc, @spec coverage, doctest correctness, and cross-reference usage in .ex files./elixir-performance-reviewReviews Elixir code for performance issues including GenServer bottlenecks, memory usage, and concurrency patterns. Use when reviewing high-throughput code or investigating performance issues./elixir-security-reviewReviews Elixir code for security vulnerabilities including code injection, atom exhaustion, and secret handling. Use when reviewing code handling user input, external data, or sensitive configuration./elixir-writing-docsGuides writing Elixir documentation with @moduledoc, @doc, @typedoc, doctests, cross-references, and metadata. Use when adding or improving documentation in .ex files./exdoc-configConfigures ExDoc for Elixir projects including mix.exs setup, extras, groups, cheatsheets, and livebooks. Use when setting up or modifying ExDoc documentation generation.npx claudepluginhub existential-birds/beagle --plugin beagle-elixirOther plugins' skills for the same job