Review pull request test coverage with Claude
PR Test Analyzer reviews the tests associated with a change. Give it the implementation diff, the changed tests, and a short description of the behavior the pull request adds. Ask it to identify missing cases and rank them by what could break for a user.
Ask for specific missing cases
For a bulk update, ask whether tests cover an empty input, an invalid record among valid ones, and the behavior when saving fails. A useful finding describes one case, the expected result, and which assertion would catch it. Check existing tests before adding coverage so you can avoid duplication.
Install it as part of PR Review Toolkit
Anthropic distributes this subagent inside its PR Review Toolkit plugin. The toolkit also includes reviewers for implementation and other concerns, so the test review can be scoped to coverage.