PR Auto-Review for Openclaw

Automate code reviews, service health checks, and Discord notifications for every pull request in your development pipeline.

terrycarter1985
v1.0.0
May 12, 2026
0
566
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install pr-auto-review

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install pr-auto-review using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is PR Auto-Review?

The PR Auto-Review skill is a robust automation pipeline designed to streamline the code review process. As a core component of Openclaw Skills, it automates the evaluation of pull requests by combining code analysis, security scanning, and infrastructure health checks into a single workflow.

By using this tool within the Openclaw Skills ecosystem, developers can ensure that every change is not only syntactically correct but also safe and deployment-ready. The skill provides immediate feedback to teams via Discord, reducing the manual overhead of monitoring PR statuses and service availability.

PR Auto-Review Use Cases

  • Automated code review and diff analysis for new GitHub pull requests.
  • Triggering post-merge validation to ensure services remain healthy after integration.
  • Scanning PR diffs for accidental exposure of secrets like passwords or API tokens.
  • Sending real-time structured reports to Discord channels to keep the team informed.
  • Scheduling periodic checks on open PRs via cron jobs to prevent stale code.

How PR Auto-Review Works

  1. The skill identifies the target PR or branch diff using the GitHub CLI or provided URLs.
  2. It performs a comprehensive code review by fetching diffs, checking CI/CD status, and identifying changed files.
  3. A security scan is executed to look for sensitive patterns such as hardcoded credentials or tokens.
  4. Service health is verified by either calling the healthcheck skill or performing direct curl probes against local services.
  5. A formatted Markdown report is generated containing metadata, security results, and service status.
  6. The final summary is sent to a Discord webhook and optionally saved to a local file for documentation.

PR Auto-Review Setup

To use this within the Openclaw Skills framework, ensure you have the necessary dependencies like the GitHub CLI, git, curl, and jq installed and authenticated.

# Review a specific 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/.../...

PR Auto-Review Data Schema & Taxonomy

The skill organizes data into a structured report with the following taxonomy:

Field Description
PR Metadata Includes Title, Author, and a list of all files modified in the diff.
CI/CD Status A summary of GitHub Actions or other CI checks status.
Security Scan Identifies potential secret leaks (API keys, tokens) found in the diff.
Service Health Real-time status (OK, Degraded, or Down) of services like Nginx or APIs.
Discord Payload A JSON-formatted string optimized for Discord's 2000-character limit.

PR Auto-Review Advanced Features

  • Integration with the Openclaw Skills cron system for automated polling of open pull requests.
  • Support for external webhooks to enable real-time triggering upon GitHub events.
  • Modular health checking that prioritizes existing healthcheck skills for more deep-level probing.
  • Customizable report output paths for integration into larger documentation pipelines.
  • Automatic truncation of Discord messages to handle large diffs while maintaining readability.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*