← Back to Skills Marketplace
terrycarter1985

PR Auto-Review

by terrycarter1985 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
73
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install pr-auto-review
Description
Automated PR review pipeline: code review + service health check + Discord notification. Trigger when a new PR is submitted or when running post-merge valida...
README (SKILL.md)

PR Auto-Review

Automated pipeline that runs when a new PR is submitted:

  1. Code Review — fetch PR diff, check CI/CD status, scan for secrets, list changed files
  2. Health Check — verify service availability (uses healthcheck skill if present, falls back to curl probes)
  3. 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 gh CLI
  • 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 healthcheck skill is installed, runs healthcheck.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

  • gh CLI (authenticated) — for PR data
  • git — for branch diffs
  • curl — for health probes and Discord webhook
  • jq — 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
Usage Guidance
Before installing or running, make sure gh is authenticated to the intended repository, provide only a trusted Discord webhook, review the report content that may be posted, and only enable cron or the optional healthcheck integration if you want recurring automated checks.
Capability Analysis
Type: OpenClaw Skill Name: pr-auto-review Version: 1.0.0 The skill bundle implements a standard PR review pipeline using the GitHub CLI and Discord webhooks. It includes features for diff analysis, secret scanning, and local service health checks (e.g., Nginx, Ollama) as described in SKILL.md. The implementation in scripts/pr-auto-review.sh is functional and lacks any indicators of malicious intent, data exfiltration, or obfuscation.
Capability Tags
requires-walletrequires-sensitive-credentials
Capability Assessment
Purpose & Capability
The SKILL.md and script align: they review a PR or branch diff, check CI status, scan for obvious secret patterns, run service health checks, and optionally send a Discord summary.
Instruction Scope
The main examples are user-invoked, while cron and webhook triggering are documented as optional integrations rather than installed automatically.
Install Mechanism
There is no install spec and metadata lists no required binaries, although the documentation and script rely on gh, git, curl, jq, and optionally another installed healthcheck skill.
Credentials
Authenticated GitHub access, localhost health probes, and outbound Discord posting are proportionate to the stated PR-review and notification workflow.
Persistence & Privilege
No persistence is created by the script itself, but SKILL.md includes an optional OpenClaw cron example for repeated PR polling.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install pr-auto-review
  3. After installation, invoke the skill by name or use /pr-auto-review
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: automated PR review pipeline with code review, health check, and Discord notification
Metadata
Slug pr-auto-review
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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.

💬 Comments