← 返回 Skills 市场
terrycarter1985

PR Automate Check

作者 terrycarter1985 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
68
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

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 \x3CPR_URL> \x3CDISCORD_WEBHOOK_URL>

# Review + health only (no Discord)
bash {baseDir}/scripts/pr-check.sh \x3CPR_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:

Severity Meaning
0 All healthy
1 Warnings
2 Critical

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

Variable Required Description
PR_URL Yes GitHub PR URL
DISCORD_WEBHOOK No Discord 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 \x3CPR_URL> \x3CWEBHOOK>

Or use the agent directly:

Run the PR automate check for \x3CPR_URL> and post results to Discord.
安全使用建议
Review this skill before installing. It is not clearly malicious, but you should make sure it runs in the correct GitHub repository, uses only the intended GitHub account, and posts only to a trusted Discord webhook. Be especially careful before wiring it into cron or PR-event automation.
能力评估
Purpose & Capability
The PR-checking purpose is coherent, but the script extracts only the PR number from the URL and runs GitHub CLI commands without binding them to the owner/repo in the supplied PR URL, so it may act on the current local repository instead of the intended PR.
Instruction Scope
The instructions are user-directed and disclose the main workflow, including optional Discord notification and optional cron/webhook automation.
Install Mechanism
There is no install spec, but the skill relies on local tools and an optional external healthcheck skill that are not captured in the registry requirements.
Credentials
Authenticated GitHub CLI access is purpose-aligned for PR review, but it is undeclared in metadata and not clearly scoped to the repository in the provided PR URL.
Persistence & Privilege
The skill does not install persistence itself, but the documentation suggests users may wire it into cron or a webhook for automatic PR-event execution.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install pr-automate-check
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /pr-automate-check 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: automated PR code review + health check + Discord notification pipeline
元数据
Slug pr-automate-check
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 68 次。

如何安装 PR Automate Check?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install pr-automate-check」即可一键安装,无需额外配置。

PR Automate Check 是免费的吗?

是的,PR Automate Check 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

PR Automate Check 支持哪些平台?

PR Automate Check 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 PR Automate Check?

由 terrycarter1985(@terrycarter1985)开发并维护,当前版本 v1.0.0。

💬 留言讨论