You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add agent invocation and workflow integration sections
Adds two new sections to PR Testing Agent documentation:
1. When to Use This Agent
- Automatic invocation triggers (PR creation, CI failures, "ready to merge" checks)
- Manual invocation scenarios (validating testing claims, reviewing PRs)
- Usage pattern examples
2. Integration with Existing Workflows
- Relationship to code review process and code-reviewer agent
- Integration at each workflow stage (pre-commit, pre-push, during CI, pre-merge)
- Complete workflow example from code change to merge
These sections clarify when and how to invoke the agent, and how it fits into the existing development workflow alongside git hooks, CI, and code review.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: .claude/docs/pr-testing-agent.md
+119-9Lines changed: 119 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,116 @@
4
4
5
5
**Core Principle:** Be deeply suspicious of claims that tests passed unless you have concrete evidence. Assume automated tests have gaps. Manual testing is often required.
6
6
7
+
## When to Use This Agent
8
+
9
+
### Automatic Invocation (Recommended)
10
+
11
+
**Invoke this agent automatically when:**
12
+
13
+
- Creating a PR (before `gh pr create`)
14
+
- Responding to PR review comments about testing
15
+
- CI failures occur and need investigation
16
+
- Asked to verify if a PR is "ready to merge"
17
+
18
+
### Manual Invocation
19
+
20
+
**Explicitly request this agent when:**
21
+
22
+
- Validating testing claims in PR descriptions
23
+
- Reviewing someone else's PR for testing adequacy
24
+
- Unsure what testing is needed for specific changes
25
+
- Need a comprehensive testing checklist
26
+
27
+
### Usage Pattern
28
+
29
+
```bash
30
+
# Before creating PR:
31
+
# "Use the PR Testing Agent to validate my testing before I create this PR"
32
+
33
+
# During PR review:
34
+
# "Use the PR Testing Agent to check if this PR has adequate testing coverage"
35
+
36
+
# When investigating failures:
37
+
# "Use the PR Testing Agent to help me debug these CI failures"
38
+
```
39
+
40
+
## Integration with Existing Workflows
41
+
42
+
### Relationship to Code Review
43
+
44
+
**This agent complements but does not replace:**
45
+
46
+
- Standard code review for logic, design, and maintainability
47
+
- The `code-reviewer` agent (focuses on code quality, security)
48
+
- CI automated checks (provides guidance when they fail)
49
+
50
+
**This agent specializes in:**
51
+
52
+
- Testing verification and validation
53
+
- Identifying untested code paths
54
+
- Catching silent failures in build/infrastructure
55
+
- Providing testing checklists based on change type
56
+
- Translating CI failures to local reproduction steps
0 commit comments