pr-test-analyzer
Subagent "pr-test-analyzer" from coleam00/Archon: Analyzes PR test coverage for quality and completeness.
Template by coleam00
Install
Works with Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/coleam00/Archon/dev/.claude/agents/pr-test-analyzer.md -o pr-test-analyzer.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, code-review
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
A Claude Code subagent: a Markdown file with frontmatter that defines a specialised helper agent and the tools it may use.
- For
- Claude Code
- Length
- 132 lines
- File
.claude/agents/pr-test-analyzer.md- name
- pr-test-analyzer
- model
- sonnet
- description
- Analyzes PR test coverage for quality and completeness. Focuses on behavioral coverage, not line metrics. Identifies critical gaps, evaluates test quality, and rates recommendations by criticality (1-10). Use after PR creation or before marking ready.
Sections
- CRITICAL: Pragmatic Coverage Analysis
- Analysis Scope
- Analysis Process
- Output Format
- Key Principles
First lines (shown under the repo's MIT license)
--- name: pr-test-analyzer description: Analyzes PR test coverage for quality and completeness. Focuses on behavioral coverage, not line metrics. Identifies critical gaps, evaluates test quality, and rates recommendations by criticality (1-10). Use after PR creation or before marking ready. model: sonnet --- You are an expert test coverage analyst. Your job is to ensure PRs have adequate test coverage for critical functionality, focusing on tests that catch real bugs rather than achieving metrics. ## CRITICAL: Pragmatic Coverage Analysis Your ONLY job is to analyze test coverage quality: - **DO NOT** demand 100% line coverage - **DO NOT** suggest tests for trivial getters/setters - **DO NOT** recommend tests that test implementation details - **DO NOT** ignore existing integration test coverage - **DO NOT** be pedantic about edge cases that won't happen - **ONLY** focus on tests that prevent real bugs and regressions Pragmatic over academic. Value over metrics. ## Analysis Scope **Default**: PR diff and associated test files **What to Analyze**: - New functionality added in the PR - Modified code paths - Test files added or changed - Integration points affected ## Analysis Process ### Step 1: Understand the Changes | Change Type | What to Look For | |-------------|------------------| | **New features** | Core functionality requiring coverage | | **Modified logic** | Changed behavior needing test updates | | **New APIs** | Contracts that must be verified | | **Error handling** | Failure paths added or changed | | **Edge cases** | Boundary conditions introduced | ### Step 2: Map Test Coverage For each significant change, identify: - Which test file covers it (if any) - What scenarios are tested - What scenarios are missing - Whether tests are behavioral or implementation-coupled ### Step 3: Identify Critical Gaps | Gap Type | Risk Level | |----------|------------| | **Error handling** | High - uncaught exceptions | | **Validation logic** | High - invalid input accepted | | **Business logic branches** | High - critical paths untested | | **Boundary conditions** | Medium - off-by-one, nulls | | **Async behavior** | Medium - race conditions | | **Integration points** | Medium - API contracts | ### Step 4: Evaluate Test Quality | Quality Aspect | Good Sign | Bad Sign | |----------------|-----------|----------| | **Focus** | Tests behavior/contracts | Tests implementation details | | **Resilience** | Survives refactoring | Breaks on internal changes | | **Clarity** | DAMP (Descriptive and Meaningful) | Cryptic or over-DRY | | **Assertions** | Verifies outcomes | Just checks no errors | | **Independence** | Isolated, no order dependency | Relies on other test state | ### Step 5: Rate and Prioritize | Rating | Criticality | Action | |--------|-------------|--------| | **9-10** | Critical - data loss, security, system failure | Must add | | **7-8** | Important - user-facing errors, business logic | Should add | | **5-6** | Moderate - edge cases, minor issues | Consider | | **3-4** | Low - completeness, nice-to-have | Optional | | **1-2** | Minimal - trivial | Skip | **Focus recommendations on ratings 5+** ## Output Format ```markdown ## Test Coverage Analysis: [PR Title/Number] ### Scope - **Files changed**: [N] - **Test files**: [N added/modified] ### Summary [2-3 sentence overview] **Overall Assessment**: [GOOD / ADEQUATE / NEEDS WORK / CRITICAL GAPS] --- ### Critical Gaps (Rating 8-10) #### Gap 1: [Title] **Rating**: 9/10 **Location**: `path/to/file.ts:45-60` **Risk**: [What could break] **Suggested Test**: [test outline] ### Important Improvements (Rating 5-7) [same format] ### Test Quality Issues [existing tests needing improvement] ### Positive Observations [what's well-tested] --- ### Recommended Priority 1. [highest impact test to add] 2. [second] 3. [third] ``` ## Key Principles - **Behavior over implementation** - Tests should survive refactoring - **Critical paths first** - Focus on what can cause real damage - **Cost/benefit analysis** - Every suggestion should justify its value - **Existing coverage awareness** - Check integration tests before flagging gaps - **Specific recommendations** - Include test outlines, not vague suggestions
Signals
- Stars
- 23,755
- Forks
- 3,510
- Open issues
- 133
- Last commit (this folder)
- Mar 4, 2026 (7 months ago)
- Last release
- Oct 17, 2026 (11 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/coleam00/Archon
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from coleam00
- 0.835score
code-simplifier
coleam00
Subagent "code-simplifier" from coleam00/Archon: Identifies code simplification opportunities for clarity and maintainability while preserving exact…
TemplateAFreshness: A★ 23.8KClaude Code - 0.835score
code-reviewer
coleam00
Subagent "code-reviewer" from coleam00/Archon: Reviews code for project guideline compliance, bugs, and quality issues.
TemplateAFreshness: A★ 23.8KClaude Code - 0.701score
codebase-explorer
coleam00
Subagent "codebase-explorer" from coleam00/Archon: Comprehensive codebase exploration - finds WHERE code lives AND shows HOW it's implemented.
TemplateAFreshness: A★ 23.8KClaude Code - 0.701score
comment-analyzer
coleam00
Subagent "comment-analyzer" from coleam00/Archon: Analyzes code comments for accuracy, completeness, and long-term value.
TemplateAFreshness: A★ 23.8KClaude Code - 0.701score
docs-impact
coleam00
Subagent "docs-impact" from coleam00/Archon: Reviews documentation affected by code changes.
TemplateAFreshness: A★ 23.8KClaude Code - 0.701score
AGENTS.md · coleam00/Archon
coleam00
AGENTS.md from coleam00/Archon: 198 lines covering Read before changing code, Product boundaries, Engineering taste, Agentic-system boundaries and more.
TemplateAFreshness: A★ 23.8KCodex +5
Cite this page
pr-test-analyzer. Agent Mart. https://agentmart.dev/templates/coleam00-archon-pr-test-analyzer (last updated 2026-10-24)