← 返回 Skills 市场
terrycarter1985

PR Auto-Check

作者 terrycarter1985 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
34
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (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
安全使用建议
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.
功能分析
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.
能力标签
requires-sensitive-credentials
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install pr-auto-check
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /pr-auto-check 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: automated PR review + health check + Discord notification pipeline
元数据
Slug pr-auto-check
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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

如何安装 PR Auto-Check?

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

PR Auto-Check 是免费的吗?

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

PR Auto-Check 支持哪些平台?

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

谁开发了 PR Auto-Check?

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

💬 留言讨论