pr-test-analyzer

pr-test-analyzer is an agent for Claude Code from Fmarzochi/EGC. It costs 24 tokens per session (220 once invoked), scanned A, original, Apache-2.0.

A pull-request test reviewer that checks whether tests cover the behavior changed by the code. A pull request is a proposed set of changes waiting to be reviewed before merging.

In plain words
What is it for?
Use it to assess test coverage and quality for a pull request and to identify missing tests ranked by likely impact.
Why use it?
It finds important code paths, edge cases, and error conditions that existing tests miss. It also flags weak assertions and tests that may be unreliable.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

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.

agentmods
npx agentmods add agents/fmarzochi/egc/pr-test-analyzer
Clone the repo
git clone --depth 1 https://github.com/Fmarzochi/EGC

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 pr-test-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/fmarzochi/egc/pr-test-analyzer.svg)](https://agentmods.dev/agents/fmarzochi/egc/pr-test-analyzer)
Your own site
<a href="https://agentmods.dev/agents/fmarzochi/egc/pr-test-analyzer"><img src="https://agentmods.dev/badge/agents/fmarzochi/egc/pr-test-analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 220 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00024 $0.00220
Opus 5 $0.00012 $0.00110
Sonnet 5 $0.00005 $0.00044
Haiku 4.5 $0.00002 $0.00022

Measured 2d ago against content hash 617ebff76ca0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

pr-test-analyzer 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 2d 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.

Origin

Copies of this mod

3 near-identical copies found in the catalogue:

agents/pr-test-analyzer.md · 47 lines

What it actually says

PR Test Analyzer Agent

You review whether a PR's tests actually cover the changed behavior.

Analysis Process

1. Identify Changed Code

  • map changed functions, classes, and modules
  • locate corresponding tests
  • identify new untested code paths

2. Behavioral Coverage

  • check that each feature has tests
  • verify edge cases and error paths
  • ensure important integrations are covered

3. Test Quality

  • prefer meaningful assertions over no-throw checks
  • flag flaky patterns
  • check isolation and clarity of test names

4. Coverage Gaps

Rate gaps by impact:

  • critical
  • important
  • nice-to-have

Output Format

  1. coverage summary
  2. critical gaps
  3. improvement suggestions
  4. positive observations
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. 2d ago First seen · 47 lines · 24 tokens per session scan A 617ebff76ca0

Subscribe to this mod's changes

pr-test-analyzer is an agent published in the GitHub repository Fmarzochi/EGC (48 stars, last pushed today), licensed Apache-2.0. It adds 24 tokens to every session and 220 once invoked, about $0.0001 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-09-03.

Related

Other agents, from other repositories

test-hunter

Generates adversarial tests for a module or feature. Does NOT write happy-path tests — that is the author's job. Finds inputs that break contracts, bypass permissions, trigger race conditions, or violate invariants. Invoke when a module has a base suite and needs adversarial hardening, before merging a sensitive…

jghiringhelli/forgecraft-mcp · 83 tokens

change-reviewer

Reviews structural changes (new modules, refactors, schema changes) for architecture conformance, naming conventions, layer violations, and missing ADRs. Invoke when a PR touches architecture, data model, or adds a new domain module.

jghiringhelli/forgecraft-mcp · 50 tokens

security-reviewer

Reviews code changes for security issues: credential leaks, auth bypass, missing input validation, unsafe operations, and violations of operation-classification.md. Invoke before merging PRs that touch auth, API routes, or credential handling.

jghiringhelli/forgecraft-mcp · 48 tokens

spec-guardian

Verifies the codebase is in sync with the spec (PRD.md, use-cases.md, ADRs, data-model.md). Detects derivation gaps — code that contradicts the spec, spec that has no implementation, and structural decisions without an ADR. Invoke before cutting a release or when drift is suspected.

jghiringhelli/forgecraft-mcp · 69 tokens

ijfw-assumptions-analyzer

Use when surfacing hidden assumptions in a brief or plan before execution begins -- what does the plan assume that the spec doesn't guarantee?

FerroxLabs/ijfw · 34 tokens

default_agents

Reference implementations of default agents designed around different functional focuses and reasoning patterns.

welilov/prompt-pro · 0 tokens