
Review Agent Setup
- 2.9k installs
- 38.3k repo stars
- Updated July 22, 2026
- wshobson/agents
review-agent-setup is a skill for Cedar-gated human approval of AI agent PR reviews, merges, and CI edits with signed receipts.
About
Review Agent Governance gates AI agent review-surface actions behind explicit human approval with Ed25519-signed receipts for every allow or deny decision. Install the wshobson/agents review-agent-governance plugin, copy review-governance.cedar policy to the project, and create a gitignored review-receipts directory plus signing key. Cedar policy denies review actions unconditionally until a human opens an approval window via touch .review-approved or the /approve-review slash command, then closes it immediately after. Covered actions include gh pr review, gh pr merge, issue triage, release publish, CI workflow edits, protected branch pushes, and external notification webhooks. Dry-run mode with REVIEW_APPROVAL_FLAG=./.never-approve forces full policy evaluation with no bypass for audit runs. Receipt chains verify offline via npx @veritasacta/verify and /list-pending surfaces recent denials inside Claude Code. The skill composes alongside protect-mcp with stacked PreToolUse hooks requiring both policies to pass.
- Cedar policy denies PR review and merge until human approval.
- Ed25519 signed receipt chain for every tool attempt.
- approve-review slash command and .review-approved flag window.
- Offline chain verification with veritasacta verify.
- Composable PreToolUse hooks alongside protect-mcp policies.
Review Agent Setup by the numbers
- 2,872 all-time installs (skills.sh)
- +158 installs in the week ending Jul 28, 2026 (Skillselion tracking)
- Ranked #184 of 2,209 Security skills by installs in the Skillselion catalog
- Security screen: MEDIUM risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
review-agent-setup capabilities & compatibility
- Capabilities
- cedar review surface deny by default · human approval flag and slash command window · ed25519 signed receipt generation · offline receipt chain verification · denial listing via list pending · stacked protect mcp hook composition
- Works with
- github
- Use cases
- code review · security audit · ci cd
- Pricing
- Free
What review-agent-setup says it does
Every attempt, approved or denied, produces an Ed25519-signed receipt.
touch ./.review-approved
npx @veritasacta/verify ./review-receipts/*.json
npx skills add https://github.com/wshobson/agents --skill review-agent-setupAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 2.9k |
|---|---|
| repo stars | ★ 38.3k |
| Security audit | 2 / 3 scanners passed |
| Last updated | July 22, 2026 |
| Repository | wshobson/agents ↗ |
How do I let an agent review PRs while keeping a cryptographically auditable human approval gate?
Configure Cedar-gated human approval for AI agent PR reviews, merges, CI edits, and protected branch pushes with signed receipts.
Who is it for?
Teams using Claude Code agents on repos where PR reviews, merges, or CI edits need human gates.
Skip if: Skip for local-only file edits and tests without GitHub review or merge actions.
When should I use this skill?
User sets up review agent governance, PR approval gates, or signed receipt audit trails.
What you get
Configured Cedar policy, receipt chain, and approval workflow for gated review-surface actions.
- Cedar policy configuration
- Human approval gate setup
- Signed action receipts
By the numbers
- Signs receipts with Ed25519 for every approved or denied agent attempt
Files
review-agent-governance — Setup
Gate AI agent review actions (PR reviews, comments, merges, CI edits) behind explicit human approval. Every attempt, approved or denied, produces an Ed25519-signed receipt.
When to use this plugin
Install it in projects where a Claude Code agent:
- Reviews, comments on, or merges pull requests (
gh pr review,gh pr merge) - Triages issues (
gh issue comment,gh issue close) - Publishes releases (
gh release create) - Modifies CI configuration (
.github/workflows/,.gitlab-ci.yml) - Pushes to protected branches (
main,master,release,production) - Posts to external notification surfaces (Slack webhooks, Discord)
If the agent is only doing local file edits and running tests, this plugin is overkill. Use protect-mcp for general tool-call policy enforcement and skip this one.
One-time setup
1. Install the plugin
claude plugin install wshobson/agents/review-agent-governance2. Copy the default policy to your project
cp .claude/plugins/review-agent-governance/policies/review-agent-governance.cedar \
./review-governance.cedarYou can edit this file to match your project's specific rules. See ../agents/review-policy-author.md for guidance on authoring review policies.
3. Create a receipts directory and sign key
mkdir -p ./review-receipts
echo "./review-receipts/" >> .gitignore
echo "./review-governance.key" >> .gitignore
echo "./.review-approved" >> .gitignoreThe first invocation of protect-mcp sign will create the key. Commit the public key from the first receipt so auditors can verify later.
Per-session workflow
The Cedar policy denies review-surface actions unconditionally. To approve a specific action, open an approval window before it and close it after.
Flag file (simplest)
# Before the action you want to approve
touch ./.review-approved
# Let Claude Code run the review / comment / merge
# Immediately after
rm ./.review-approvedSlash command (from within Claude Code)
/approve-review "Reviewing PR #123 authored by contributor X"This creates ./.review-approved with the given reason embedded as a note, and writes a human-approved receipt to the chain. A follow-up rm is still needed to close the window.
Dry-run everything (force full policy evaluation)
If you want every tool call to go through Cedar with no approval bypass:
export REVIEW_APPROVAL_FLAG=./.never-approveAny tool call matching a forbid rule will be denied; approved windows have no effect. Useful for CI or for a locked-down audit run.
Verifying the chain
List all receipts:
ls -la ./review-receipts/Verify the entire chain offline:
npx @veritasacta/verify ./review-receipts/*.jsonExit 0 means every receipt is authentic and the chain is intact. Exit 1 means one receipt has been tampered with. Exit 2 means a receipt is malformed.
Look at recent denials:
/list-pendingWithin Claude Code this slash command walks the receipt chain and prints any recent decision: deny entries with the tool name, command pattern, and timestamp.
Example: approving a PR review
# 1. Human reviews the agent's proposed comment
$ /list-pending
Recent denials:
- 2026-04-17T14:23:01Z Bash "gh pr review 42 --approve --body 'LGTM'"
- 2026-04-17T14:23:02Z Bash "gh pr comment 42 --body 'Looking good'"
# 2. Human decides the first one is appropriate, approves it
$ /approve-review "Approving LGTM on PR 42 after visual inspection"
./.review-approved created
# 3. Agent retries the action; this time it succeeds
$ agent: gh pr review 42 --approve --body "LGTM"
[receipt: rec_XXX, decision=allow, reason=human_approved]
# 4. Human closes the window
$ rm ./.review-approvedEvery step is in the receipt chain. The chain is offline-verifiable for regulators, counterparties, or downstream auditors who want to confirm that no review action bypassed the human gate.
Composing with protect-mcp
If both plugins are installed, run them side by side:
{
"hooks": {
"PreToolUse": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx protect-mcp@0.5.5 evaluate --policy ./protect.cedar --tool \"$TOOL_NAME\" --input \"$TOOL_INPUT\" --fail-on-missing-policy false"
}
]
},
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "if [ -f ./.review-approved ]; then exit 0; fi; npx protect-mcp@0.5.5 evaluate --policy ./review-governance.cedar --tool \"$TOOL_NAME\" --input \"$TOOL_INPUT\" --fail-on-missing-policy false"
}
]
}
]
}
}Both hooks must pass for the tool call to proceed. Cedar deny in either policy blocks it.
Standards
- Ed25519 — RFC 8032 (digital signatures)
- JCS — RFC 8785 (deterministic JSON canonicalization)
- Cedar — AWS's open authorization policy language
- IETF draft — draft-farley-acta-signed-receipts
Related skills
How it compares
Pick review-agent-setup over generic code-review skills when the requirement is agent action governance with signed audit receipts, not review comment quality.
FAQ
How approve one PR review action?
Run /approve-review with a reason or touch .review-approved, let the agent retry, then remove the flag.
How verify receipts offline?
Run npx @veritasacta/verify on review-receipts JSON files; exit 0 means intact chain.
When is this plugin overkill?
When the agent only edits local files and runs tests without GitHub review surfaces.
Is Review Agent Setup safe to install?
skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.