qa-pr

qa-pr is a command for Claude Code from Lykhoyda/rn-dev-agent. It costs 40 tokens per session (874 once invoked), scanned A, original, MIT.

A command for testing a React Native GitHub pull request on an iOS simulator, Android emulator, or physical device. It installs the proposed change, runs the relevant device checks, and reports results with evidence.

In plain words
What is it for?
Use it to test a pull request by URL, repository and number, or number alone, with an optional platform selection.
Why use it?
It provides a repeatable way to check mobile changes without changing the main checkout, and identifies missing device setup separately from test failures.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Part of the rn-dev-agent plugin — 11 skills, 17 commands, 6 agents, 6 hooks shipped together

Good fit Use it to test a pull request by URL, repository and number, or number alone, with an optional platform selection.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/lykhoyda/rn-dev-agent/qa-pr
Install

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.

Clone the repo
git clone --depth 1 https://github.com/Lykhoyda/rn-dev-agent

Made for: Claude Code.

Or install rn-dev-agent, the plugin that ships this one along with the rest of its 11 skills, 17 commands, 6 agents, 6 hooks.

Wrote 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.

agentmods badge for qa-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/lykhoyda/rn-dev-agent/qa-pr/github.svg)](https://agentmods.dev/commands/lykhoyda/rn-dev-agent/qa-pr)
Your own site
<a href="https://agentmods.dev/commands/lykhoyda/rn-dev-agent/qa-pr"><img src="https://agentmods.dev/badge/commands/lykhoyda/rn-dev-agent/qa-pr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for qa-pr

Your own site · 80×15
<a href="https://agentmods.dev/commands/lykhoyda/rn-dev-agent/qa-pr"><img src="https://agentmods.dev/badge/commands/lykhoyda/rn-dev-agent/qa-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 874 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00874
Opus 5 $0.00020 $0.00437
Sonnet 5 $0.00008 $0.00175
Haiku 4.5 $0.00004 $0.00087

Measured today against content hash 2c5eb5c86133, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

qa-pr 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 today.

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.

packages/claude-plugin/commands/qa-pr.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

QA this React Native pull request: $ARGUMENTS

Run the rn-pr-qa protocol INLINE (parent session)

Important (GH #31): Do NOT spawn the rn-pr-qa agent via the Task tool. MCP tools (rn_session, cdp_*, device_*) are not available in spawned subagents. Execute the protocol in this parent session.

Load rn-workflow, rn-testing, rn-device-control, and capturing-proof. Follow agents/rn-pr-qa.md in this session. Summary:

  1. Parse $ARGUMENTS. Require a GitHub PR URL, owner/repo#n, or number. Optional --platform ios|android|device|all (default all). If the PR identity is missing, ask once and stop.
  2. Fetch with gh pr view. Stop on auth or lookup failure.
  3. Classify the changed files. Docs-only → SKIP device, report files. Plugin MCP/device changes → exercise the workspace test-app (or the declared candidate app), never Metro-bind the plugin checkout.
  4. Pin the head in a disposable git worktree. Do not mutate the primary checkout.
  5. Inventory with rn-workflow steps 0–2, then rn_session(action="status"). device_list diagnoses; it does not choose. Missing requested hardware is SKIP with the exact setup gap.
  6. Per selected target: bind_device (exact id) → preview_integrationapply_integration confirmed=true → run the rewritten <pm> run ios|android from the app root → poll until metroBound and installBoundpin_dev_client → exercise the PR change (artifact-first; cdp_login_prologue for auth).
  7. Cleanup reverse-order: runner close → stop_metrorestore_integrationrelease. Remove only the worktree you added.
  8. Report on the PR with gh pr comment --body-file plus --attach for every screenshot and video (GitHub CLI attaching-files flow). Then rewrite screenshot markdown to <img src="…" alt="…" width="720"> via --edit-last. In-session, print the verdict table and the comment URL. Never leave unhosted /tmp paths as the reviewer-visible proof.

Read the full file on GitHub · 70 lines

Changes

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.

  1. today First seen · 70 lines · 40 tokens per session scan A 2c5eb5c86133

Subscribe to this mod's changes

qa-pr is a command published in the GitHub repository Lykhoyda/rn-dev-agent (11 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 874 once invoked, about $0.0002 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-12.