Token导航 LogoToken导航

Agent Skill · 开发

pr-review(公关审查)

pr-review 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

pr-review 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描有未通过项,按安装量在开发类的 21,746 个 Skill 里排第 10,554。

总安装 2,182周安装 78GitHub Stars 234下载 715核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pr-review(公关审查)
来源仓库:https://github.com/openshift/oc
仓库路径:skills/pr-review
安装命令:
npx skills add https://github.com/openshift/oc --skill 'PR Review'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/openshift/oc --skill 'PR Review'

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

pr-review 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适用于 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理的场景。

通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。该技能归类为开发,适合 Pull Request 审查相关的协作支持。

来源仓库内路径:skills/pr-review

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/openshift/oc --skill 'PR Review';命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

pr-review 怎么安装?

在终端执行 npx skills add https://github.com/openshift/oc --skill 'PR Review'。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

pr-review 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

pr-review 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/openshift/oc --skill 'PR Review' 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

pr-review 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

pr-review 用的人多吗?

公开数据是累计安装 2,182 次,近一周安装 78 次,下载 715 次,GitHub 234 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

pr-review 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
pr-review

公关审查 · 本页

2,182234执行命令未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

PR Review

Perform a comprehensive review of pull requests for the oc repository, which is a CLI tool based on kubectl that provides kubectl commands plus OpenShift-specific functionality.

When to Apply

Use this skill when:

  • Reviewing a pull request
  • User asks to review code changes
  • User requests /pr-review or similar commands

Review Process

Follow these steps in order:

1. Dependencies Verification

Ensure Go dependencies are consistent by running:

  • go mod tidy -diff

- This command ensures that go.mod and go.sum are consistent and match the source code in the module.

2. Build Verification

Run the build to ensure code compiles:

make oc
  • If build fails, report errors and stop the review
  • If build succeeds, proceed to testing
  • Note: Use make oc instead of make build to avoid building for all architectures (faster)

3. Code Verification

Run verification checks to catch style and potential issues:

make verify

This runs multiple verification targets including:

  • verify-gofmt - Go formatting checks
  • verify-golint - Linting checks
  • verify-govet - Go vet checks
  • verify-cli-conventions - CLI-specific conventions
  • verify-generated-completions - Generated code verification
  • Report any verification errors or warnings
  • Note any patterns that need addressing

4. Test Execution

Run the test suite to verify functionality:

make test
  • Report any test failures with details
  • If critical tests fail, flag for immediate attention
  • Proceed even if some tests fail (document them)
  • Known Issue: Test failure in github.com/openshift/oc/pkg/cli (kubeconfig error) can be ignored

5. Code Review & Go Style Application

After running the above checks, review the changed code and apply Go best practices. Start by:

  • Load changes against the base branch by using git diff. The base branch is main by default, but it can be overwritten by [base-git-branch] argument when this skill is invoked using pr-review command directly.
  • Understand the scope of the changes.

Then proceed to review. Follow these steps:

  • Effective Go Principles: Apply the Effective Go skill automatically

- Use gofmt for formatting - Follow Go naming conventions (MixedCaps/mixedCaps, no underscores) - Ensure proper error handling (no ignored errors) - Check for idiomatic Go patterns

  • oc-Specific Considerations:

- Ensure kubectl compatibility is maintained - Verify OpenShift-specific commands follow existing patterns - Check that CLI output follows consistent formatting - Validate flag definitions match kubectl conventions where applicable

  • Breaking Changes:

- Ensure that the command line API is backwards-compatible - Check for CLI flag removals or renames - Check for changes in command line arguments

  • Code Quality:

- Look for potential race conditions - Check for resource leaks (unclosed files, connections, goroutine leaks) - Goroutine leak patterns to watch: - Goroutines without context cancellation handling - Missing select with ctx.Done() case - Unbounded channel operations without timeouts - go func() without proper lifecycle management - Use errgroup or sync.WaitGroup for coordinated goroutines - Verify proper context propagation - Ensure appropriate logging levels

  • Documentation:

- All exported functions/types should have doc comments - CLI command help text should be clear and complete - Complex logic should have explanatory comments

6. Apply Fixes

Based on the review:

  • Fix any linting issues automatically where safe
  • Apply gofmt and goimports formatting
  • Suggest or implement idiomatic Go improvements
  • Document any issues that require manual review

7. Summary

Provide a structured summary:

  • ✅ Build status
  • ✅ Test results (pass/fail counts)
  • ✅ Linting status
  • 📝 Code quality observations
  • 🔧 Changes applied (if any)
  • ⚠️ Issues requiring attention

Key Checks for oc

Since oc is built on kubectl:

  • Verify upstream kubectl compatibility
  • Check for proper use of kubectl libraries
  • Ensure OpenShift-specific features are clearly separated
  • Validate that CLI behavior matches kubectl conventions

References

平台分布

Codex

36.28%
按下载量换算259

Claude

29.16%
按下载量换算208

Cursor

17.18%
按下载量换算123

Gemini CLI

9.51%
按下载量换算68

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/openshift/oc --skill 'PR Review' 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills