pr-automate-check

Automated PR submission pipeline: code review, service health validation, and Discord notification. Use when a new PR is submitted and needs automated checks before merge. Triggers on "PR check", "PR automation", "auto review", "pre-merge check", "PR提交检查", "自动化评审".

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pr-automate-check" with this command: npx skills add terrycarter1985/pr-automate-check

PR Automate Check

Automated pipeline that runs on every new PR submission:

  1. Code Review — diff analysis via gh pr diff, CI/CD status check
  2. Health Check — service health validation (reuses the healthcheck skill)
  3. Discord Notification — posts structured embed to a team channel

Quick Start

# Full pipeline (review + health + Discord)
bash {baseDir}/scripts/pr-check.sh <PR_URL> <DISCORD_WEBHOOK_URL>

# Review + health only (no Discord)
bash {baseDir}/scripts/pr-check.sh <PR_URL>

Workflow

Step 1: Trigger

When a new PR is submitted, run the script with the PR URL. The PR URL must be a GitHub pull request URL (https://github.com/owner/repo/pull/123).

Step 2: Code Review

The script extracts the PR number, fetches the diff and CI status via gh, and writes them to a temp directory. The agent then reads the diff and performs a structured review following the code-review skill's guidelines (quality, security, performance, test coverage).

Step 3: Health Check

Runs the healthcheck skill (healthcheck.sh --json) if installed; otherwise emits a stub. The JSON output includes per-service status and a severity level:

SeverityMeaning
0All healthy
1Warnings
2Critical

Step 4: Discord Notification

If a Discord webhook URL is provided, the script posts a color-coded embed:

  • 🟢 Green: all services healthy
  • 🟡 Yellow: warnings
  • 🔴 Red: critical issues

The embed includes the health summary and PR link.

Step 5: Report

A JSON report is written containing timestamp, PR metadata, and health results. The agent uses this to compose a final summary.

Configuration

VariableRequiredDescription
PR_URLYesGitHub PR URL
DISCORD_WEBHOOKNoDiscord webhook URL for notifications

Dependencies

  • gh (GitHub CLI) — authenticated
  • jq — JSON processing
  • curl — Discord webhook
  • python3 — health summary formatting
  • healthcheck skill (optional) — for full service checks

Integration with OpenClaw Cron

To run automatically on PR events, set up a cron job or webhook that calls:

bash {baseDir}/scripts/pr-check.sh <PR_URL> <WEBHOOK>

Or use the agent directly:

Run the PR automate check for <PR_URL> and post results to Discord.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

cairn

Local hybrid index for things you intentionally collect — code, docs, web pages, PDFs, raw text. FTS5 + vector embeddings + AST knowledge graph in a single s...

Registry SourceRecently Updated
Coding

cairn

Local hybrid index for things you intentionally collect — code, docs, web pages, PDFs, raw text. FTS5 + vector embeddings + AST knowledge graph in a single s...

Registry SourceRecently Updated
880Profile unavailable
Coding

GOG Sync

Sync GOG game library, save files, and custom configs across devices

Registry SourceRecently Updated
1160Profile unavailable
Coding

Baoyu Format Markdown

Formats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks. Use when user asks to "format markdown", "b...

Registry SourceRecently Updated
1.7K0Profile unavailable