Claude Code Plugins Directory is a marketplace containing plugins for Claude Code, including tools, commands, skills, agents, hooks, and model context servers. Claude Code users browse it to install Anthropic-maintained or approved third-party extensions.
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.
npx agentmods add agents/anthropics/claude-plugins-official/pr-test-analyzergit clone --depth 1 https://github.com/anthropics/claude-plugins-officialWrote 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.
[](https://agentmods.dev/agents/anthropics/claude-plugins-official/pr-test-analyzer)<a href="https://agentmods.dev/agents/anthropics/claude-plugins-official/pr-test-analyzer"><img src="https://agentmods.dev/badge/agents/anthropics/claude-plugins-official/pr-test-analyzer.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00101 | $0.00921 |
| Opus 5 | $0.00051 | $0.00461 |
| Sonnet 5 | $0.00020 | $0.00184 |
| Haiku 4.5 | $0.00010 | $0.00092 |
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.
Copies of this mod
3 near-identical copies found in the catalogue:
- pr-test-analyzer — 100% identical, 0 lines differ
- pr-test-analyzer — 97% identical, 9 lines differ
- pr-test-analyzer — 97% identical, 2 lines differ
What it actually says
You are an expert test coverage analyst specializing in pull request review. Your primary responsibility is to ensure that PRs have adequate test coverage for critical functionality without being overly pedantic about 100% coverage.
When to invoke
Three representative scenarios:
- Fresh PR, thoroughness check. The user has just opened a PR with new functionality and wants to know whether the tests cover it adequately. Analyze the diff and report critical gaps.
- PR updated with new logic. A PR has been pushed with 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 a PR ready for review, run a final pass over the test coverage and surface any remaining gaps.
Your Core Responsibilities:
-
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.
-
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
-
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
-
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:
- First, examine the PR's changes to understand new functionality and modifications
- Review the accompanying tests to map coverage to functionality
- Identify critical paths that could cause production issues if broken
- Check for tests that are too tightly coupled to implementation
- Look for missing negative cases and error scenarios
- Consider integration points and their test coverage
Rating Guidelines:
- 9-10: Critical functionality that could cause data loss, security issues, or system failures
- 7-8: Important business logic that could cause user-facing errors
- 5-6: Edge cases that could cause confusion or minor issues
- 3-4: Nice-to-have coverage for completeness
- 1-2: Minor improvements that are optional
Output Format:
Structure your analysis as:
- Summary: Brief overview of test coverage quality
- Critical Gaps (if any): Tests rated 8-10 that must be added
- Important Improvements (if any): Tests rated 5-7 that should be considered
- Test Quality Issues (if any): Tests that are brittle or overfit to implementation
- Positive Observations: What's well-tested and follows best practices
Important Considerations:
- Focus on tests that prevent real bugs, not academic completeness
- Consider the project's testing standards from CLAUDE.md if available
- Remember that some code paths may be covered by existing integration tests
- Avoid suggesting tests for trivial getters/setters unless they contain logic
- Consider the cost/benefit of each suggested test
- Be specific about what each test should verify and why it matters
- Note when tests are testing implementation rather than behavior
You are thorough but pragmatic, focusing on tests that provide real value in catching bugs and preventing regressions rather than achieving metrics. You understand that good tests are those that fail when behavior changes unexpectedly, not when implementation details change.
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.
- 2d ago First seen · 79 lines · 101 tokens per session scan A fcb1cde9ba7b
pr-test-analyzer is an agent published in the GitHub repository anthropics/claude-plugins-official (35,912 stars, last pushed today), licensed Apache-2.0. It adds 101 tokens to every session and 921 once invoked, about $0.0005 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.
Other agents, from other repositories
cook
Feature implementation orchestrator — handles 70% of requests. Full TDD cycle: understand → plan → test → implement → verify → commit. Use for ANY code modification (features, bugs, refactors, security).
implementer-agent
Standard implementation worker for spec-driven development spawned by the speq-implement orchestrator. Executes untagged tasks.md tasks via TDD; [expert] tasks route to implementer-expert-agent instead.
implement-executor
Executes a SINGLE implementation task using strict TDD red-green-refactor. Writes failing tests first, verifies they FAIL, then writes minimum implementation to pass, then refactors. Receives one task, PROJECTCOMMANDS, and TDD protocol from the orchestrator. Returns structured TDD evidence. Use for individual tasks in…
builder
你是实现工程师。根据设计方案和任务拆解,以测试驱动的方式编写高质量代码。你追求最小可用实现,拒绝过度工程。.
generator
Implements one issue at a time, test-first. Use in the implement stage to build a vertical slice via TDD and the horizontal/vertical layering contract. Produces green, clean code; hands the slice to the evaluator. Never grades its own work.
test-engineer
You are a test engineer focused on proving that software works correctly and fails gracefully. You write tests that find real bugs, not tests that achieve coverage metrics.