maintainer-review-test-coverage

maintainer-review-test-coverage is a command for Claude Code from coleam00/Archon. It costs 31 tokens per session (786 once invoked), scanned A, original, MIT.

A command that checks whether a pull request has enough automated tests for its code changes. Tests are programs that check whether software behaves as expected, including during unusual or failing inputs.

In plain words
What is it for?
Use it to review test coverage for source-code changes, including normal behavior, empty or malformed input, failures, and potentially conflicting test setup.
Why use it?
It helps reveal new behavior, edge cases, and error paths that are not actually checked. It also checks whether tests are reliable and assert the right results or side effects.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md.

Good fit Use it to review test coverage for source-code changes, including normal behavior, empty or malformed input, failures, and potentially conflicting test setup.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/coleam00/archon/maintainer-review-test-coverage
About the project

Archon is a workflow engine for AI coding agents that turns development processes into YAML-defined sequences with phases, validation gates, and artifacts. Developers use it to run repeatable processes such as planning, implementation, testing, code review, and pull-request creation across projects. The catalogue entries provide commands, agents, skills, hooks, instructions, and settings for working with Archon.

coleam00/Archon · 23,398 stars · on GitHub · archon.diy

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.

Clone the repo
git clone --depth 1 https://github.com/coleam00/Archon

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 maintainer-review-test-coverage

README.md
[![agentmods](https://agentmods.dev/badge/commands/coleam00/archon/maintainer-review-test-coverage.svg)](https://agentmods.dev/commands/coleam00/archon/maintainer-review-test-coverage)
Your own site
<a href="https://agentmods.dev/commands/coleam00/archon/maintainer-review-test-coverage"><img src="https://agentmods.dev/badge/commands/coleam00/archon/maintainer-review-test-coverage.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 786 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.00031 $0.00786
Opus 5 $0.00015 $0.00393
Sonnet 5 $0.00006 $0.00157
Haiku 4.5 $0.00003 $0.00079

Measured 8d ago against content hash aab859a8ef6f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

maintainer-review-test-coverage 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 8d 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.

.archon/commands/maintainer-review-test-coverage.md · 102 lines

How it starts

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

Maintainer Review — Test Coverage

You are a test-focused reviewer. Run only when the diff touches source code (not pure docs / config / tests). Your job: assess whether the new behavior is properly tested.

Workflow ID: $WORKFLOW_ID


Phase 1: LOAD

PR_NUMBER=$(cat $ARTIFACTS_DIR/.pr-number)
gh pr diff $PR_NUMBER

Read the project's testing conventions in CLAUDE.md:

  • Mock isolation rules (Bun mock.module is process-global; spyOn is preferred for internal modules)
  • Per-package test isolation (split bun test invocations to avoid mock pollution)
  • bun run test (not bun test from repo root)

Phase 2: ANALYZE

For each non-trivial code change, ask:

Behavioral coverage

  • Is the happy path covered?
  • Are edge cases covered? (Empty input, oversized input, malformed input, concurrent calls, etc.)
  • Are error paths covered? (Throws when expected, returns null when expected.)
  • Is the test asserting on the right thing? (Output value? Side effect? Both?)

Test quality

  • Are tests deterministic? No timing, no real network, no real filesystem unless intentional?
  • Mock pollution: does the file use mock.module() in a way that conflicts with other test files in the same package?
  • Test isolation: does each test set up and tear down its own state?

Coverage gaps to flag

  • New public function with no test → flag.
  • New conditional branch with no test → flag.
  • Bug fix without a regression test → flag (the test should fail before the fix).
  • New error path with no test → flag.

Don't flag

  • Trivial getters/setters with no logic.
  • Internal helpers tested transitively through public API tests.
  • Documentation-only or formatting-only changes.

Phase 3: WRITE FINDINGS

Write $ARTIFACTS_DIR/review/test-coverage-findings.md:

# Test Coverage Review — PR #<n>

## Summary
<1-2 sentences. Coverage: adequate / minor-gaps / significant-gaps.>

## Findings

### CRITICAL — bug fix without regression test
- **<file:line>**: <description>
  - **Suggested test**: <what to test, what assertion>

### HIGH — new behavior without coverage
- (same format)

### MEDIUM — edge cases / error paths missing
- (same format)

### LOW — improvements
- (same format)

## Mock isolation concerns
<bullet list of any cross-test mock pollution risks, or "None.">

## Notes for synthesizer
<which aspects this overlaps with — e.g., error-handling review may have flagged the same uncovered path.>

Read the full file on GitHub · 102 lines

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. 8d ago First seen · 102 lines · 31 tokens per session scan A aab859a8ef6f

Subscribe to this mod's changes

maintainer-review-test-coverage is a command published in the GitHub repository coleam00/Archon (23,398 stars, last pushed today), licensed MIT. It adds 31 tokens to every session and 786 once invoked, about $0.0002 per session on Opus 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-08-30.