← Back to Skills Marketplace
terrycarter1985

PR Auto-Check

by terrycarter1985 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
34
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install pr-auto-check
Description
Automated PR submission pipeline: code review + service health check + Discord notification. Triggers when a new PR is submitted and runs a full review, vali...
README (SKILL.md)

PR Auto-Check

Automated pipeline that runs on every new PR submission:

  1. Code Review — systematic review via the code-review skill
  2. Service Health Check — infrastructure validation via the healthcheck skill
  3. Discord Notification — post consolidated results to a team channel

Prerequisites

  • gh CLI authenticated (for PR info and CI/CD status)
  • curl available (for health checks)
  • Discord webhook URL set in environment variable DISCORD_WEBHOOK_URL
  • Healthcheck script accessible at the healthcheck skill path

Pipeline

Run the orchestration script:

bash {baseDir}/scripts/pr_auto_check.sh \x3Cpr-number> [--reviewer \x3Cname>]

The script:

  1. Fetches PR diff and CI status via gh
  2. Runs the healthcheck script (--json mode)
  3. Formats a consolidated report
  4. 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
Usage Guidance
Install only if you are comfortable with this being a heuristic PR pre-check rather than a full code review. Before use, configure least-privilege GitHub access, protect the Discord webhook, verify the external healthcheck script, and consider changing the Discord message to disclose the limited review scope.
Capability Analysis
Type: OpenClaw Skill Name: pr-auto-check Version: 1.0.0 The skill implements a legitimate automated PR review pipeline that integrates with the GitHub CLI and Discord webhooks. The primary script, `scripts/pr_auto_check.sh`, performs basic code heuristics (such as detecting hardcoded secrets and debug statements), executes a local health check script, and posts a summary to a user-provided Discord URL. No evidence of malicious intent, unauthorized data exfiltration, or obfuscation was found.
Capability Tags
requires-sensitive-credentials
Capability Assessment
Purpose & Capability
The PR health-check and Discord notification behavior matches the stated purpose, but the code-review capability is overstated: SKILL.md describes a full/systematic review via a code-review skill, while the script only performs a few grep-based heuristics and can still post a green “LOOKS GOOD” result.
Instruction Scope
The skill is intended to run on new PRs and posts to Discord as part of one command. That automation is purpose-aligned, but users should understand it does not include a human confirmation step before notifying the channel.
Install Mechanism
There is no install spec and the registry metadata declares no required binaries or environment variables, but the artifacts require gh, curl, jq, DISCORD_WEBHOOK_URL, and a local healthcheck script. Users must verify these manually.
Credentials
Authenticated GitHub access and a Discord webhook are proportionate for PR review notifications, but they are sensitive integrations and should be scoped to the intended repository and channel.
Persistence & Privilege
The skill does not show background persistence or self-propagation, but it uses existing CLI authentication and can execute an external healthcheck helper at runtime.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install pr-auto-check
  3. After installation, invoke the skill by name or use /pr-auto-check
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: automated PR review + health check + Discord notification pipeline
Metadata
Slug pr-auto-check
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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.

💬 Comments