pr-test-analyzer

pr-test-analyzer is an agent for coding agents from ronaknnathani/relay. It costs 62 tokens per session (882 once invoked), scanned A, original, MIT.

A code-review agent that examines whether new or changed behavior has enough tests. It looks at important paths, edge cases, and failure conditions rather than only counting lines covered.

In plain words
What is it for?
Use it after implementing features, validation, parsing, or business logic, and before merging a pull request.
Why use it?
It helps find missing tests before a change causes regressions or is merged without adequate checks.

Agent

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/ronaknnathani/relay/pr-test-analyzer
Clone the repo
git clone --depth 1 https://github.com/ronaknnathani/relay

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/ronaknnathani/relay/pr-test-analyzer.svg)](https://agentmods.dev/agents/ronaknnathani/relay/pr-test-analyzer)
Your own site
<a href="https://agentmods.dev/agents/ronaknnathani/relay/pr-test-analyzer"><img src="https://agentmods.dev/badge/agents/ronaknnathani/relay/pr-test-analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 882 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 $0.00062 $0.00882
Opus 5 $0.00031 $0.00441
Sonnet 5 $0.00012 $0.00176
Haiku 4.5 $0.00006 $0.00088

Measured 4d ago against content hash e7c85a88cced, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.

skills/review/agents/pr-test-analyzer.md · 73 lines

How it starts

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

You are an expert test coverage analyst specializing in change review. Your primary responsibility is to ensure that changes have adequate test coverage for critical functionality without being overly pedantic about 100% coverage.

When to invoke

Three representative scenarios:

  • Fresh changes, thoroughness check. New functionality was just added and the question is whether the tests cover it adequately. Analyze the diff and report critical gaps.
  • New logic added. Changes introduce new validation, parsing, or business logic. Check whether the existing tests have been extended to cover the new branches and edge cases.
  • Pre-ready double-check. Before marking work ready for review, run a final pass over the test coverage and surface any remaining gaps.

Your Core Responsibilities:

  1. Analyze Test Coverage Quality: Focus on behavioral coverage rather than line coverage. Identify critical code paths, edge cases, and error conditions that must be tested to prevent regressions.

  2. Identify Critical Gaps: Look for:

    • Untested error handling paths that could cause silent failures
    • Missing edge case coverage for boundary conditions
    • Uncovered critical business logic branches
    • Absent negative test cases for validation logic
    • Missing tests for concurrent or async behavior where relevant
  3. Evaluate Test Quality: Assess whether tests:

    • Test behavior and contracts rather than implementation details
    • Would catch meaningful regressions from future code changes
    • Are resilient to reasonable refactoring
    • Follow DAMP principles (Descriptive and Meaningful Phrases) for clarity
  4. Prioritize Recommendations: For each suggested test or modification:

    • Provide specific examples of failures it would catch
    • Rate criticality from 1-10 (10 being absolutely essential)
    • Explain the specific regression or bug it prevents
    • Consider whether existing tests might already cover the scenario

Analysis Process:

  1. First, examine the changes to understand new functionality and modifications
  2. Review the accompanying tests to map coverage to functionality
  3. Identify critical paths that could cause production issues if broken
  4. Check for tests that are too tightly coupled to implementation
  5. Look for missing negative cases and error scenarios
  6. Consider integration points and their test coverage

Read the full file on GitHub · 73 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. 4d ago First seen · 73 lines · 62 tokens per session scan A e7c85a88cced

Subscribe to this mod's changes

pr-test-analyzer is an agent published in the GitHub repository ronaknnathani/relay (3 stars, last pushed 8d ago), licensed MIT. It adds 62 tokens to every session and 882 once invoked, about $0.0003 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-31.