PR Auto-Check
/install pr-auto-check
PR Auto-Check
Automated pipeline that runs on every new PR submission:
- Code Review — systematic review via the
code-reviewskill - Service Health Check — infrastructure validation via the
healthcheckskill - Discord Notification — post consolidated results to a team channel
Prerequisites
ghCLI authenticated (for PR info and CI/CD status)curlavailable (for health checks)- Discord webhook URL set in environment variable
DISCORD_WEBHOOK_URL - Healthcheck script accessible at the
healthcheckskill path
Pipeline
Run the orchestration script:
bash {baseDir}/scripts/pr_auto_check.sh \x3Cpr-number> [--reviewer \x3Cname>]
The script:
- Fetches PR diff and CI status via
gh - Runs the healthcheck script (
--jsonmode) - Formats a consolidated report
- POSTs the report to
$DISCORD_WEBHOOK_URL
Environment Variables
| Variable | Required | Description |
|---|---|---|
DISCORD_WEBHOOK_URL |
Yes | Discord channel webhook for posting results |
HEALTHCHECK_SCRIPT |
No | Override path to healthcheck.sh (default: auto-detected) |
Output
The script writes a JSON report to stdout and posts a Markdown summary to Discord:
{
"pr": 42,
"ci_status": "pass",
"review_summary": { "critical": 0, "warnings": 2, "suggestions": 3 },
"health": { "max_severity": 0, "services_checked": 10 },
"discord_status": 204
}
Manual Step-by-Step
If the script is unavailable, run each phase manually:
1. Code Review
gh pr view \x3CPR> --json title,body,headRefName,statusCheckRollup
gh pr diff \x3CPR>
# Follow code-review skill guidelines for systematic review
2. Health Check
bash \x3Chealthcheck-path>/healthcheck.sh --json
3. Discord Notification
curl -X POST "$DISCORD_WEBHOOK_URL" \
-H "Content-Type: application/json" \
-d '{"content": "## PR #\x3CPR> Auto-Check Results\
..."}'
Error Handling
- If CI fails: include failure details in review, still proceed with health check and notification
- If health check returns critical (exit 2): flag as blocker in Discord message
- If Discord POST fails: log error, output report to stdout as fallback
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install pr-auto-check - After installation, invoke the skill by name or use
/pr-auto-check - Provide required inputs per the skill's parameter spec and get structured output
What is PR Auto-Check?
Automated PR submission pipeline: code review + service health check + Discord notification. Triggers when a new PR is submitted and runs a full review, vali... It is an AI Agent Skill for Claude Code / OpenClaw, with 34 downloads so far.
How do I install PR Auto-Check?
Run "/install pr-auto-check" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is PR Auto-Check free?
Yes, PR Auto-Check is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does PR Auto-Check support?
PR Auto-Check is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created PR Auto-Check?
It is built and maintained by terrycarter1985 (@terrycarter1985); the current version is v1.0.0.