A portable review spec for auditing one or more related GitHub PRs using gh (without local checkout).
Enables you and your AI Agents to systematically review PRs for code quality, correctness, migrations, edge cases, and more, all based on PR data and GitHub API access instead of local code checkout.
Important
This is a review checklist, not an auto-fix tool. It is designed to identify issues and risks, not to automatically resolve them. And it can make false positives/negatives, so human judgment is still required for the final verdict.
This workflow reviews all provided PRs as one work unit and checks:
- Changes in existing files
- Tests added/missing
- Whether migration is needed
- Whether migration is correct vs code + schema/models
- Edge cases/regressions
- Code quality
- UI confirmation steps for each issue
- Branch names for every PR (
base,head)
Default mode is full.
- Install the skill:
npx skills add AgencyHandy/ahr --skill "ahr"- Install slash commands/prompts (global by default):
curl -fsSL https://raw.githubusercontent.com/AgencyHandy/ahr/main/scripts/install-commands.sh -o /tmp/ahr-install-commands.sh && chmod +x /tmp/ahr-install-commands.sh && /tmp/ahr-install-commands.shThe installer auto-detects Codex, Claude, and OpenCode from your system and installs only for detected tools.
It also respects CODEX_HOME, CLAUDE_CONFIG_DIR, and OPENCODE_CONFIG_DIR when set.
To pin to a release tag, pass AHR_REF (example: AHR_REF=v0.2.1 /tmp/ahr-install-commands.sh).
- Run:
Codex: /prompts:ahr PRS="https://github.com/org/repo/pull/1 https://github.com/org/repo/pull/2" CONTEXT="..." MODE=full
Claude/OpenCode: /ahr PRS="https://github.com/org/repo/pull/1 https://github.com/org/repo/pull/2" CONTEXT="..." MODE=full
You can run these slash commands in terminal and desktop app environments for the corresponding tool. Examples: Codex desktop app, Claude Code app/CLI, and OpenCode UI/TUI.
To install command files into the current project instead of home directories:
curl -fsSL https://raw.githubusercontent.com/AgencyHandy/ahr/main/scripts/install-commands.sh -o /tmp/ahr-install-commands.sh && chmod +x /tmp/ahr-install-commands.sh && /tmp/ahr-install-commands.sh --project- PR links (one or more)
- Context (intended fix/behavior)
Optional:
- Mode (
fullorblockers-only)
Use this structure:
## PR Review
### Scope
- PRs reviewed: <links>
- Branches:
- <pr link>: base=<baseRefName>, head=<headRefName>
- Mode: full | blockers-only
### Changes in Existing Files
- <file/path>: <what changed and why it matters>
### Findings (ordered by severity)
1. [severity] <issue>
- Evidence: <file + diff observation>
- Why it matters: <risk>
- UI confirmation steps:
1. <step>
2. <step>
### Tests
- Added/updated:
- Missing/high-risk gaps:
### Migration
- Migration needed: yes/no
- Migration present: yes/no
- Correctness vs code+schema/models: valid/invalid/partial
- Notes:
### Edge Cases
- <case + status>
### Overall
- Verdict: approve | request changes | discuss
- Residual risks:Use this prompt in any assistant/tool:
Using gh CLI, review the provided PR(s) without pulling/checking out locally.
Inputs:
- PRS: <space-separated PR URLs>
- Context: <intended fix>
- Mode: <full|blockers-only> (default full)
Rules:
- Use gh / GitHub API data only.
- Review each PR individually, then do cross-PR analysis for overlap/divergence/conflicting assumptions/order dependencies.
- Always validate migrations when model/schema-impacting changes exist.
- Report branch names (base/head) for each PR.
- If something cannot be verified from PR/repo data, mark as unconfirmed.
Required checks:
1) existing-file changes
2) tests
3) migration needed or not
4) migration correctness vs code+schema/models
5) edge cases/regressions
6) code quality
7) UI confirmation steps per issue
Return output in the documented PR Review format.
skills/ahr/SKILL.md- skill package fornpx skills add.codex/prompts/ahr.md- Codex prompt command source.claude/commands/ahr.md- Claude command source.opencode/commands/ahr.md- OpenCode command sourcescripts/install-commands.sh- helper installer for command files
- Keep the Core Prompt as a reusable template.
- Provide
PRS,CONTEXT, and optionalMODE. - Ensure
ghaccess (or equivalent GitHub API access) is available.
- This workflow is intentionally review-focused, not auto-fix focused.
- It is optimized for related PR batches in one work unit.
blockers-onlyis for fast triage;fullis default and recommended.