🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

OC PR Review

by @penghang1223

PR 审查技能 — 完整的 Pull Request 审查流程,集成 GitHub CLI,支持安全分析、测试覆盖、性能评估、代码质量检查,并可推送飞书通知。Use when: (1) 审查 PR,(2) 检查 PR 安全性,(3) 分析测试覆盖,(4) 评估代码质量,(5) 生成审查报告。触发词:'review...

Versionv1.0.0
When to Use
TriggerAction
- 审查 Pull Request 的代码变更
- 检查 PR 的安全漏洞和风险
- 分析测试覆盖情况
- 评估代码变更的性能影响
- 生成审查报告并通知到飞书
❌ **DON'T use this skill when:**
- 本地 git 操作(commit、push、pull)→ 直接用 `git`
- 非 GitHub 仓库(GitLab、Bitbucket)→ 不同的 CLI
- 简单查看 PR 状态 → 直接用 `gh pr view`
- 写代码或修复 → 用 `coding-agent` skill
⚙️ Configuration

# 确认 gh 已认证
gh auth status

如果未认证,执行

gh auth login

📋 Tips & Best Practices

Q: gh 未认证怎么办?

gh auth login

或设置 token

export GITHUB_TOKEN="your_token"

Q: 私有仓库无权限?

# 确认 gh 有仓库权限
gh auth status

重新授权

gh auth refresh -s repo

Q: PR diff 太大怎么办?

  • 使用 --stat 先看概览
  • 分文件审查,重点关注安全和核心逻辑文件
  • 跳过 lock 文件、生成代码等
  • View on ClawHub
    TERMINAL
    clawhub install oc-pr-review

    🧪 Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    🔍 Can't find the right skill?

    Search 60,000+ AI agent skills — free, no login needed.

    Search Skills →