/agent-team:test-reviewfrom agent-team
Enforces project-specific testing policy during code review: checks test placement against design docs, pyramid ratios, coverage, mocking, and naming conventions. Language-agnostic.
Ships in agent-team. 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.
None: SKILL.md is the whole skill.
The policy values this review enforces are project-owned and live in docs/testing-principles.md: the test pyramid ratios (§ Test Pyramid), the coverage measure (§ Coverage), the mocking policy (§ Mocking Policy), and the naming school (§ Test Naming). Read them before reviewing and enforce what the brief says, not remembered defaults — the brief is the contract that survives harness upgrades. If the brief contradicts itself or the code under review reveals a gap in it, raise a clarify finding against the brief instead of silently substituting your own values.
The brief's pyramid section is a placement rule, not a ratio to eyeball. The design doc's assignment governs. For every new or changed rule in the diff, find the component docs/system-design.md assigns it to, then check where its tests landed:
A rule the design doc assigns below the boundary (a domain or service seam) has a unit test at that seam. Covering it only through a framework-booted test (a web-layer slice, a container-backed integration test) is a blocked finding, severity per impact, carrying bar_clause: "tested-as-spec". Green coverage does not excuse it.
A rule the design doc assigns to the boundary layer — request binding, normalization, response shaping — is correctly exercised at that layer. That its arithmetic could be extracted is never a finding by itself; the pyramid's question applies to rules the design assigns below the boundary.
When the design doc assigns a lower seam and the rule landed in a handler, controller, or adapter instead, the cause is placement, not testing. Raise the finding against the test location and name the placement cause; the code-quality-reviewer's Design Placement check owns the landing layer.
A production helper widened so a framework test can reach a rule the design assigns to the boundary is a blocked finding. The rule is tested where the design places it, never widened for the test.
A client's suite that repeats a collaborator's case table is a finding carrying bar_clause: "tested-as-spec". The cases belong in the collaborator's own suite; the client keeps one representative path. A rule reachable through no public seam is a placement cause, not a testing gap; name it and leave the landing layer to the code-quality-reviewer's Design Placement check.
A test no plausible change to the code would fail is a finding with the same weight as a missing test. It costs reading time on every change and catches nothing. A missing-test finding names the change it would catch.
A suite reaches a unit through the module a client imports, never through the file that holds a helper. A test coupled to a file layout moves with every refactor, and that coupling is the finding.
On a delta that preserves behavior, more test lines rewritten than source lines changed is a finding against the tests, with the weight of a missing test.
Judge placement against the components docs/system-design.md assigns first and docs/testing-principles.md § Test Pyramid second, never a remembered ratio. A brief sentence that reads unconditionally yields to the design doc's assignment; a conflict between the two briefs is a clarify to the system-design-expert. Every placement finding cites the assignment it enforces.
The principles below are language-agnostic. Each Stack-specific rules slot is where this project records the test conventions its framework imposes.
tdd-principles § Fit for the Workload)clarify to product-requirements-expert on changes_requested, never approved through (review-workflow tag rule). A bullet the slice does not carry has no test to reviewblocked at the severity the gap earns, never autofix (review-workflow tag rule)tested-as-spec)test_name_pattern floor in scripts/layout.tomlpython3 scripts/grading.py coverage-map --feature <req_id> lists the PRD group's numbered cases and the declared tests; cite the map in the finding. A listed case is a prompt to read the tests, never a finding by itself; the finding is a case the slice's requirement owns that no test coverstested-as-spec)tested-as-spec)legible-cold)with copies, an irrelevant instance behind the suite's named default; the suite's existing helpers, fixtures, and defaults are reused before new ones are added; a brief that still prescribes test-owned factories binds until it changes. Run python3 scripts/grading.py conventions-map and judge every construction row it lists; the stack's constructor syntax is the layout's [conventions] table. With no construction pattern the listing has no construction rows: list them by hand with the stack's syntax and say so in the citation. It also lists the literal-bearing lines. The record cites the rows (review-workflow § Claims Carry Their Evidence): a finding quotes its row, a clearance names the counts it walked. Each with unnamed arguments, or one filling mandatory parameters inline where a named default exists, is an autofix finding, severity fixableconsistent-with-codebase)design-block or a later consultation-response names for that boundary; one neither names is an autofix finding, severity fixableThe policy is the brief's (§ Mocking Policy). Apply its boundary rule: mock at system boundaries, use real implementations within them.
| Collaborator | Mock? | Why |
|---|---|---|
| External service / network client | Yes | System boundary |
| Internal types | No | Use the real implementation |
| Clock / time / randomness | Yes | Deterministic testing |
The governing principle is tested-as-spec: a test asserts observable outcomes, and a mock interaction is asserted only where the interaction itself is the contract. Each interaction assertion in the changed tests is cleared by naming the behavioral assertion it does not duplicate, or is an autofix finding, severity fixable.
Run the test verb through the gate (scripts/gate.sh test); static analysis rides the gate's lint verb, which the reviewer never re-runs. Where the stack offers stronger dynamic tools, bind them into the relevant verb and require them:
scripts/gate.sh lint)scripts/layout.tomlvalid_input, malformed_response, empty)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub woditschka/agentic-coding-reference --plugin agent-team-generic26 skills in this plugin
/adr-templateArchitecture Decision Record format, naming conventions, and when to create ADRs. Load when making or documenting architectural decisions./audit-agentsAudit the agentic configuration for consistency, coherence, and conciseness. Load when modifying agent definitions, skills, or pipeline structure, or to verify cross-tool parity./audit-docsAudit the project's docs/ briefs against the high bar — each document on its own (principle form, enforceability) and in combination (cross-document coherence, contradictions, brief-vs-data agreement). Runs the doctor (deterministic structural gate) first, then the advisory judgment review, and reports both. Load when you want to check the docs hold up — at onboarding, after a harness upgrade, or on request. The judgment half is advisory: it judges form, never philosophical direction./change-gradingGrade a passing change for how much human attention it deserves before merge. Load when running the change-grader after the reviewer roster approves. Holds the full grading protocol: the five facets, worst-facet aggregation, the facets-rationale-verdict order, persistence, and scope/non-goals./code-quality-gateBuild, test, format, and lint requirements that must pass before code review. Load when checking implementation completeness or running the quality gate./code-quality-reviewCode-quality checklist — language-agnostic principles, design placement and workload fit against the project's recorded briefs, and the per-section slots a stack fills in. Load when conducting code quality reviews.2 plugins in one repository ship this exact skill · first indexed Nov 14, 2026
Other plugins' skills for the same job