← 返回 Skills 市场
Smart PR Review
作者
fullstackcrew-alpha
· GitHub ↗
· v1.0.1
· MIT-0
136
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install smart-pr-review
功能描述
Opinionated AI code reviewer — not a yes-machine. 6-layer deep review (logic, edge cases, performance, security, maintainability, architecture) with Devil's...
安全使用建议
What to check before installing or running this skill:
- Metadata vs code mismatch: The registry says 'no env vars required' but README/index.ts expect GITHUB_TOKEN and GITHUB_WEBHOOK_SECRET (and possibly ANTHROPIC_API_KEY). Treat those as required if you plan to run the provided webhook server.
- If you only want ad-hoc local reviews via the agent/gh CLI path, you do not need to run the server, but the skill will run gh/git commands and read repository files and diffs — ensure you run it in the intended repo and understand it may send diffs to an external model endpoint.
- Inspect index.ts (complete file) before running: search for any network endpoints beyond api.github.com and your configured AI provider (Anthropic/OpenAI). Confirm the code only sends review content to those expected endpoints.
- Principle of least privilege: If you run the webhook, give GITHUB_TOKEN the minimum scope needed (repo:status/repo:pulls as applicable) and keep the webhook secret private. Run the service in an isolated environment.
- Sensitive-data handling: The skill will transmit code and diffs to external AI services if configured (e.g., ANTHROPIC_API_KEY). Do not expose proprietary or secrets-containing diffs to external models unless you accept that risk.
- If you plan to self-host: follow README's npm/install steps (they are not in registry metadata). Audit dependencies and run in a controlled environment.
- If you expect a purely instruction-only skill, be cautious — the presence of index.ts and webhook instructions means there is optional server behavior that requires credentials. Ask the publisher or inspect the full code to confirm exactly where data is sent and what is persisted.
If you want, I can: (1) scan the full index.ts for outgoing endpoints and model API usage, (2) highlight every place environment variables are read, or (3) list concrete minimal GitHub token scopes needed for safe operation.
功能分析
Type: OpenClaw Skill
Name: smart-pr-review
Version: 1.0.1
The 'smart-pr-review' skill is a legitimate AI-powered code analysis tool designed to perform deep technical reviews of GitHub Pull Requests and local git diffs. It utilizes standard system tools (git, gh CLI) and external APIs (GitHub, Anthropic) to fetch code and generate structured feedback. The implementation in 'index.ts' includes proper security practices such as HMAC-SHA256 signature verification for webhooks and timing-safe comparisons. While the skill requires significant permissions (Bash, WebFetch) and sensitive API keys to function, all code logic and markdown instructions are strictly aligned with its stated purpose of code quality and security auditing, with no evidence of malicious intent or data exfiltration.
能力评估
Purpose & Capability
The skill claims to be an opinionated code reviewer (PR/diff/commit/file modes) which matches the instructions and reference files. However the registry metadata lists no required environment variables or install steps while the README and index.ts clearly expect GITHUB_TOKEN, GITHUB_WEBHOOK_SECRET and optionally an ANTHROPIC_API_KEY (for AI calls) and Node dependencies. That mismatch (no declared creds vs code requiring them) is disproportionate and inconsistent.
Instruction Scope
SKILL.md instructs the agent to run git/gh commands, read the three references, chunk diffs, write temporary findings to /tmp, and use web fetch/agent tools. Those actions are coherent for a reviewer. It does not instruct reading unrelated system files, but it will access repository contents, run CLI commands, and write temp files — expected but worth noting because sensitive diffs may be sent to external AI endpoints.
Install Mechanism
There is no install spec (instruction-only), which is lower risk, but README and index.ts include a self-hosting path that requires npm dependencies (hono, tsx) and environment variables. The absence of an install spec in registry metadata vs explicit self-host instructions in README/index.ts is an inconsistency to be aware of.
Credentials
Registry metadata claims 'required env vars: none', yet index.ts and README expect GITHUB_TOKEN and GITHUB_WEBHOOK_SECRET (and README also suggests ANTHROPIC_API_KEY). Those credentials are necessary for webhook automation and posting reviews; the skill should declare them. Requiring a GitHub token and an AI API key is proportionate to a webhook/auto-reviewer, but the omission in metadata is an incoherence and increases risk of accidental credential exposure if users assume none are needed.
Persistence & Privilege
always:false (normal). The skill includes a webhook/self-hosting server (index.ts) that, if run, will persistently accept GitHub events and post reviews using a GitHub token. Autonomous invocation by the agent is allowed by default; combined with the credential issues above this increases blast radius if misconfigured, but there is no explicit request for system-wide modification or other skills' configs.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install smart-pr-review - 安装完成后,直接呼叫该 Skill 的名称或使用
/smart-pr-review触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Bilingual description (EN primary, CN secondary)
v1.0.0
Initial release: opinionated AI code reviewer
元数据
常见问题
Smart PR Review 是什么?
Opinionated AI code reviewer — not a yes-machine. 6-layer deep review (logic, edge cases, performance, security, maintainability, architecture) with Devil's... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 136 次。
如何安装 Smart PR Review?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install smart-pr-review」即可一键安装,无需额外配置。
Smart PR Review 是免费的吗?
是的,Smart PR Review 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Smart PR Review 支持哪些平台?
Smart PR Review 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Smart PR Review?
由 fullstackcrew-alpha(@fullstackcrew-alpha)开发并维护,当前版本 v1.0.1。
推荐 Skills