Reference
rn-pr-qa
The PR QA agent takes a GitHub pull request, pins that head in an isolated copy, installs through rn-dev-agent, exercises the change on real targets, and reports a per-target pass/fail with screenshots and repro steps.
Overview
Section titled “Overview”| Property | Value |
|---|---|
| Model | Opus |
| Color | Orange |
| Skills | rn-workflow, rn-device-control, rn-testing, rn-debugging |
| Tools | Bash, Read, Write, Edit, Glob, Grep, all MCP session/CDP/device tools |
When triggered
Section titled “When triggered”- “QA this PR”
- “test this pull request on the simulator”
- “verify PR 812 on Android”
- “run the PR on a physical device”
/rn-dev-agent:qa-pr(Claude) or$rn-dev-agent:qa-pr(Codex)
Invocation constraint
Section titled “Invocation constraint”Like rn-tester, this protocol needs MCP tools. Do not spawn it via the Task tool (GH #31). Run /rn-dev-agent:qa-pr so the parent session executes the steps.
Protocol
Section titled “Protocol”- Resolve the PR with
gh pr view(URL,owner/repo#n, or number). - Classify the changed files. Docs-only PRs skip the device. Plugin MCP/device changes run against the workspace test-app (or the declared candidate app), never against the plugin checkout as Metro’s serving root.
- Pin the head in a disposable git worktree. Never mutate the primary checkout.
- Inventory through
rn-workflowsteps 0–2, thenrn_session(action="status").device_listdiagnoses; it does not choose. - Per selected target (
ios,android,device, orall): exactbind_device→ reversible integration → managed<pm> run ios|androidfrom the app root →pin_dev_client→ artifact-first exercise (cdp_run_action,cdp_login_prologuefor auth). - Cleanup in reverse: runner close →
stop_metro→restore_integration→release. - Report a per-target table. Missing hardware is SKIP with the exact remaining setup, not FAIL. Host screenshots and videos with
gh pr comment --attach, then rewrite screenshots to<img … width="720">.
Circuit breaker
Section titled “Circuit breaker”After 3 failures of the same category on one target, that target stops. Do not switch devices mid-target.
Safety
Section titled “Safety”- No
clearState: trueagainst Expo Dev Client - No simulator erase /
pm clear - Never steal a live device claim
- Never use raw
xcrun simctl/adbfor taps or screenshots