From prr
Add a review agent to the active agent list. Supported agents are claude, codex, gemini, and opencode.
How this skill is triggered — by the user, by Claude, or both
Slash command
/prr:prr-add-agent <agent-name><agent-name>This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Agent name: $ARGUMENTS
Agent name: $ARGUMENTS
Supported agents: claude, codex, gemini, opencode
Read ~/.prr/config.yml. If it does not exist, tell the user: "PRR has not been set up yet. Run /prr:setup first." Then stop.
Before adding the agent, run a quick smoke test to confirm the CLI tool is available and working.
If agent is claude:
Claude is already running (you are Claude). Skip the smoke test — just add it.
If agent is codex:
Run:
echo "Say hello" | codex -a never exec -s read-only --ephemeral --color never -
If agent is gemini:
Read ~/.prr/config.yml to get gemini_model (default: gemini-2.5-flash), then run:
echo "Say hello" | gemini -p "" -m <model> -o text --approval-mode yolo
If agent is opencode:
Run:
printf 'Reply with exactly: HELLO\n' | timeout 30 opencode run --model openai/gpt-5.5 --format json | jq -r 'select(.type == "text") | .part.text'
opencode reads OPENAI_API_KEY from the environment. If the smoke test fails with an auth error, remind the user to either export OPENAI_API_KEY=sk-... in their shell rc or run opencode auth.
If the smoke test succeeded (exit code 0 and produced output): Proceed to Step 3.
If the command was not found or failed: Tell the user the agent CLI is not installed or not working. Provide install instructions:
npm install -g @openai/codex. Then try running codex --version to verify."npm install -g @anthropic-ai/gemini-cli. Then try running gemini --version to verify."npm install -g opencode-ai. Then try opencode --version to verify, and make sure OPENAI_API_KEY is exported in your shell."Ask the user if they want to proceed with adding the agent anyway (they may plan to install it later), or cancel.
${CLAUDE_PLUGIN_ROOT}/bin/prr-darwin-universal agents add $ARGUMENTS
List active agents:
${CLAUDE_PLUGIN_ROOT}/bin/prr-darwin-universal agents list
npx claudepluginhub cfactolerin/prr --plugin prrCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.