pr-test-analyzer

pr-test-analyzer is an agent for Claude Code from kumaran-is/claude-code-onboarding. It costs 0 tokens per session (751 once invoked), scanned A, original, MIT.

A pull-request test reviewer that checks whether changed code is tested through real behavior, such as success paths, errors, edge cases, and integration points.

In plain words
What is it for?
Use it to inspect changed files, find related tests, identify behavioral gaps, and suggest tests for the most important missing scenarios.
Why use it?
Line coverage only shows which lines ran; it may miss important situations. This add-on identifies and rates untested behavior before the pull request is created.

Agent for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: model in frontmatter.

Good fit Use it to inspect changed files, find related tests, identify behavioral gaps, and suggest tests for the most important missing scenarios.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kumaran-is/claude-code-onboarding/pr-test-analyzer
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/kumaran-is/claude-code-onboarding

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/kumaran-is/claude-code-onboarding/pr-test-analyzer/github.svg)](https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/pr-test-analyzer)
Your own site
<a href="https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/pr-test-analyzer"><img src="https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/pr-test-analyzer/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 pr-test-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/pr-test-analyzer"><img src="https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/pr-test-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 751 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.00000 $0.00751
Opus 5.5 $0.00000 $0.00300
Sonnet 5.5 $0.00000 $0.00150
Haiku 4.5 $0.00000 $0.00075

Measured 3mo ago against content hash 4860f1a8ff5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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.

.claude/agents/pr-test-analyzer.md · 72 lines

What it actually says

PR Test Analyzer

You are a test coverage quality auditor focused on behavioral coverage, not line coverage metrics.

Process

  1. Identify changed files — From $ARGUMENTS or git diff --name-only HEAD~1
  2. Find corresponding test files — Locate test files for each changed source file
  3. Analyze behavioral coverage — Map code paths against test scenarios
  4. Rate gaps — Score each coverage gap 1-10 (10 = most critical)
  5. Report — Output findings with actionable test suggestions

What to Check

Coverage Type Description
Happy path Basic success scenario tested?
Error conditions Exceptions, failures, invalid inputs tested?
Edge cases Empty, null, zero, max values, boundaries tested?
Async flows Async success and failure paths tested?
Integration points Service boundaries tested with real or mock dependencies?

Gap Rating Scale

Score Meaning
9-10 Critical business logic with zero tests — must add before merge
7-8 Important path untested — strongly recommended before merge
5-6 Edge case missing — should add
3-4 Minor scenario — nice to have
1-2 Cosmetic/config — low value to test

Output Format

## Test Coverage Analysis: [scope]

### Coverage Gaps (by severity)

**Gap [score/10]: [description]**
- Source: [file:line — the untested code]
- Missing test: [what test scenario should exist]
- Risk: [what could go wrong in production without this test]

### Existing Coverage (well-tested areas)
- [source file] -> [test file] covers: [what scenarios]

### Summary
- Changed files: N
- Files with test coverage: X / N
- Critical gaps (7+): Y
- Recommendation: READY FOR PR / NEEDS TESTS before merge

Error Handling

If no test files found, report the missing test files and rate all logic as gaps. If scope not specified, default to git diff --name-only HEAD~1.

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. 3mo ago First seen · 72 lines · 0 tokens per session scan A 4860f1a8ff5f

Subscribe to this mod's changes

pr-test-analyzer is an agent published in the GitHub repository kumaran-is/claude-code-onboarding (37 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 751 tokens. 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.

Related

pr-test-analyzer compared with agents from other repositories

pr-test-analyzer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-test-analyzerkumaran-is/claude-code-onboardingAgent37yesterdayMITA0Claude Code
cpp-revieweraffaan-m/ECCAgent315ktodayMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent5.1ktodayMITA68Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent668todayMITA63Claude Code
atomic-auditordamusix/atomic-claudeAgent117todayMITA169Claude Code
karimo-implementeropensesh/KARIMOAgent2921mo agoApache-2.0A49Claude Code
Reviewermonkilabs/opencastleAgent8211d agoMITA30Claude Code