PR Auto-Review
/install pr-auto-review
PR Auto-Review
Automated pipeline that runs when a new PR is submitted:
- Code Review — fetch PR diff, check CI/CD status, scan for secrets, list changed files
- Health Check — verify service availability (uses healthcheck skill if present, falls back to curl probes)
- Discord Notification — post structured results to a team channel
Quick Start
# Review a GitHub PR and notify Discord
bash scripts/pr-auto-review.sh \
--pr-url https://github.com/org/repo/pull/123 \
--discord-webhook https://discord.com/api/webhooks/.../...
# Review a branch diff
bash scripts/pr-auto-review.sh \
--branch feature/new-api \
--discord-webhook https://discord.com/api/webhooks/.../...
# Review last commit, skip health check
bash scripts/pr-auto-review.sh --skip-healthcheck
# Save report to file
bash scripts/pr-auto-review.sh --pr-url ... --report ./review-report.md
Options
| Flag | Description |
|---|---|
--pr-url \x3Curl> |
GitHub PR URL (extracts PR number automatically) |
--branch \x3Cname> |
Branch to diff against main/master |
--discord-webhook \x3Curl> |
Discord webhook URL for notification |
--skip-healthcheck |
Skip service health probes |
--report \x3Cpath> |
Save markdown report to file |
Pipeline Steps
1. Code Review
- Fetches PR diff via
ghCLI - Reports PR title, author, changed files
- Checks CI/CD status (
gh pr checks) - Scans diff for potential hardcoded secrets (password, token, api_key patterns)
2. Service Health Check
- If the
healthcheckskill is installed, runshealthcheck.sh --json - Otherwise, probes common local services via curl (nginx, api, ollama)
- Reports status per service: ✅ OK / 🟡 Degraded / 🔴 Down
3. Discord Notification
- Posts the report summary to the configured webhook
- Content truncated to 2000 chars (Discord limit)
- For richer embeds, see references/discord-formats.md
Dependencies
ghCLI (authenticated) — for PR datagit— for branch diffscurl— for health probes and Discord webhookjq— for JSON payload construction
Integration with Cron
Set up automatic PR review on a schedule:
# Example: check open PRs every 30 minutes
openclaw cron add --name "pr-review-poll" --every 30m \
--message "Run pr-auto-review on any new open PRs and notify Discord"
Integration with GitHub Webhooks
For real-time triggering, configure a GitHub webhook to call an endpoint that invokes this skill. The pipeline script accepts --pr-url to target the specific PR.
Output
The script outputs a markdown report to stdout and optionally saves it to a file. The report includes:
- PR metadata (title, author, files)
- CI/CD status summary
- Security scan results
- Service health status
- Actionable summary
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install pr-auto-review - After installation, invoke the skill by name or use
/pr-auto-review - Provide required inputs per the skill's parameter spec and get structured output
What is PR Auto-Review?
Automated PR review pipeline: code review + service health check + Discord notification. Trigger when a new PR is submitted or when running post-merge valida... It is an AI Agent Skill for Claude Code / OpenClaw, with 73 downloads so far.
How do I install PR Auto-Review?
Run "/install pr-auto-review" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is PR Auto-Review free?
Yes, PR Auto-Review is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does PR Auto-Review support?
PR Auto-Review is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created PR Auto-Review?
It is built and maintained by terrycarter1985 (@terrycarter1985); the current version is v1.0.0.