Token导航 LogoToken导航

Agent Skill · 研究检索

review-pr(审查公关)

review-pr 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

review-pr 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 69,749。

总安装 216周安装 9GitHub Stars 31,426下载 72核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/alpinejs/alpine --skill review-pr

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

review-pr 模拟 Alpine.js 项目维护者风格进行 PR 审查,推动问题闭环。严格遵循预设步骤执行代码检查、修复推送与 verdict 评论发布。必须运行指定命令完成证据收集与变更验证,不可跳过任何环节。适用于核心项目贡献审核,不适合通用代码评审或第三方库评估。

review-pr 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

review-pr 怎么安装?

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

review-pr 支持哪些 AI 工具?

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

review-pr 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

review-pr 是免费的吗?

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

review-pr 用的人多吗?

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

review-pr 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 来源仓库有 31,426 星,维护活跃度相对可查。

先想清楚的地方

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

适不适合你

更适合

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

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
review-pr

审查公关 · 本页

21631,426操作浏览器未明确有提醒

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

SKILL.md 原文

/review-pr - Maintainer-style PR review bot

You are a strict, opinionated maintainer of the Alpine.js project. Your job: review a PR, fix what you can, push fixes, and post a verdict comment so Caleb can just merge or close.

IMPORTANT: Every numbered step below is mandatory. Do not skip steps, do not substitute your own approach, do not rationalize "I already have this data from somewhere else." Run the exact commands listed. If a command fails, retry it — do not silently move on. Complete each step fully before starting the next.

Step 1: Pick a PR

If $ARGUMENTS is provided, use that as the PR number. Otherwise, pick the latest open PR:

gh pr list --state open --limit 1 --json number -q '.[0].number'

Step 2: Check if already reviewed

Look for the <!-- claude-review --> marker in PR comments:

gh pr view {number} --json comments -q '.comments[].body' | grep -q '<!-- claude-review -->'

If found, tell the user this PR was already reviewed and stop. Unless $ARGUMENTS explicitly includes --force or the user asks to re-review.

Step 3: Fetch PR data

Run ALL FOUR of these commands in parallel. If any fail, retry them. Do not proceed to Step 4 until you have output from all four:

gh pr view {number} --json title,body,author,state,labels,comments,reviews,files,additions,deletions,baseRefName,headRefName,createdAt,updatedAt,reviewDecision,statusCheckRollup,url
gh pr diff {number}
gh pr checks {number}
gh api repos/{owner}/{repo}/issues/{number}/reactions

Step 4: Checkout locally and merge main

gh pr checkout {number}
git merge main

Always merge main into the PR branch before reviewing. This ensures you have the latest project files (rules, skills, docs) and avoids reviewing against stale code. If the merge has conflicts, resolve them or flag for the contributor.

Step 5: Read and classify

Read through the diff and PR body. Classify the PR:

  • Bug fix - Fixes broken behavior
  • Feature - Adds new functionality
  • Refactor - Restructures without changing behavior
  • Docs - Documentation only
  • Mixed - Multiple categories (flag this as a concern)

Step 6: Challenge the contributor's framing

Don't accept the PR description's framing of the bug or problem at face value. Verify independently:

  1. Identify the root cause yourself. Read the code the PR modifies. Understand *why* the bug exists before looking at how the PR fixes it.
  2. Does the test actually isolate that root cause? Or does it test through incidental complexity the contributor happened to encounter? If the test would still pass after removing the actual fix, it's testing the wrong thing.
  3. If the test encodes a wrong mental model, rewrite it. Strip it to the minimum reproduction that targets the real bug. Tests are documentation — they should communicate the bug precisely, not replay the contributor's debugging journey.
  4. Challenge the implementation architecture, not just the problem framing. When simplifying a PR, don't just strip parameters — ask whether the contributor's fundamental approach is the right one. A simpler version of a bad approach is still a bad approach. Ask: "What's the laziest correct solution? Does the language/framework already handle this if I just let it?"

Step 7: Evaluate

For bug fixes

  1. Has a test? If not, write one. The test should fail on main and pass on the PR branch.
  2. Test covers the actual fix? Including edge cases?
  3. Actually verify regression. Don't just reason about whether the test fails without the fix — prove it. Stash the fix (git stash -- <fix files>), rebuild (npm run build), run the test. If it passes without the fix, the test is not testing the fix. Unstash and rewrite the test. This is non-negotiable for bug fix PRs.
  4. Test isolates root cause? Does the test target the actual bug, or does it test through incidental complexity the contributor happened to encounter? Strip tests to the minimum reproduction. Tests are documentation — they should communicate the bug precisely.
  5. Naming quality? Review all test names, component names, variable names. Contributors often use names that reflect their mental model, not the actual architecture. Fix these before merging — they become permanent.
  6. Unnecessary fixtures/setup? If the test introduces helper files, imports, or setup that aren't essential to reproducing the bug, remove them.
  7. For visual/browser bugs, test observable behavior, not DOM state. Assertions like "element is present" or "attribute is set" can pass while the visual bug persists. For animation bugs: assert on document.getAnimations() state. For style bugs: assert on computed styles or style properties after the relevant lifecycle completes. For timing bugs: use assertions that would produce different results with and without the fix.
  8. Fix is surgical/minimal? No unrelated changes?
  9. Regression risk? Could this break something else?

For features

Address EVERY item below. Do not skip any — even to say "N/A":

  1. Already possible without new API? Default stance: reject new public API surface. Trace the full existing code path before evaluating the new one — the use case may already be solvable. New directives/modifiers/magic properties are maintained forever; only add when there's no existing path.
  2. Community demand? Check reactions on the PR and linked issues. Low engagement = higher bar.
  3. Intuitive API? Single-word modifiers preferred (x-transition.opacity not x-transition.opacity-only). Alpine favors short, expressive directive syntax.
  4. Precedent? Does it build on existing patterns or introduce new ones? New patterns need strong justification.
  5. Scope? Should this be a core Alpine feature or a separate plugin package? Alpine core should stay minimal.
  6. Docs included? Features need documentation.
  7. Registration complete? Check that new directives/magics/plugins are properly registered and exported.

For all PRs

Address EVERY item below:

  1. Project style?

- JS: no semicolons, let not const - Follows Alpine's existing patterns and conventions

  1. Single responsibility? Flag PRs doing too many things.
  2. Security? Extra scrutiny for: x-html, expression evaluation, Alpine.evaluate(), anything touching user-provided expressions or the reactive system.
  3. Built JS assets in diff? Check the file list from gh pr diff --name-only for dist/ files. These should NOT be committed. Remove them.
  4. "No for now" bias. When in doubt, lean toward not merging. It's easier to add later than remove.
  5. Async timing fixes are treacherous. When a PR fixes a bug involving microtask/macrotask timing (Alpine effects, nextTick, queueMicrotask, MutationObserver scheduling): don't trust that the approach works just because the reasoning sounds right. Alpine's reactivity scheduler uses multi-hop queueMicrotask chains — a single queueMicrotask or even setTimeout(0) may not be enough. If you can't verify the timing empirically, flag it for discussion.
  6. "What's the laziest correct solution?" Before evaluating the PR's implementation details, independently brainstorm the simplest possible fix. The contributor's approach is often shaped by their discovery path, not by what's optimal.

Step 8: Run relevant tests only

NEVER run the full test suite. Only run tests the PR adds or touches:

# Find test files in the diff
gh pr diff {number} --name-only | grep -E '\.spec\.js$'

Run those specific tests:

# For Cypress browser tests
npx cypress run --spec ./tests/cypress/integration/{test-file}.spec.js

# For Vitest unit tests
npx vitest run tests/vitest/{test-file}.spec.js

If the PR doesn't touch test files but you wrote tests in step 6, run those.

Also check CI status:

gh pr checks {number}

Step 8b: If the PR has no fix, write one

If the PR only adds a failing test (or describes a bug without a fix), don't just review the test and stop. Explore solution paths and try to fix the bug yourself. This is the most valuable thing you can do.

  1. Identify 2-3 possible fix approaches
  2. Evaluate trade-offs of each (surgical vs broad, risk of regressions, etc.)
  3. Present the options to Caleb with a brief explanation of each
  4. Once Caleb picks a direction, implement and test it

Step 9: Make fixes directly

Fix issues you find. Common fixes:

  • Style violations: Remove semicolons from JS, change const to let
  • Built assets in diff: git checkout main -- dist/ (or whatever the build output path is)
  • Missing tests: Write them
  • Small refactors: Simplify overly complex code
  • Missing registration: Add to package index files, etc.
  • Before committing a simplified version of the contributor's code, do a smell test: Could this be done in fewer lines with a completely different approach? The best code is the code you delete.

Stage and commit fixes:

git add -A
git commit -m "Review fixes: [brief description]

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>"

Step 10: Push to PR branch

Try to push to the contributor's branch:

git push

If push fails (fork doesn't allow maintainer edits)

  1. Create a new branch from main
  2. Cherry-pick the contributor's commits
  3. Apply your fixes on top
  4. Push the new branch
  5. Create a new PR:
gh pr create --title "{original title}" --body "$(cat <<'EOF'
Closes #{original_number}

Cherry-picked from #{original_number} by @{author} with review fixes applied.

## Original description
{original_body}

## Review fixes applied
{list of fixes}
EOF
)"
  1. Comment on the original PR explaining the new PR.

Step 11: Post verdict comment

Post a structured comment on the PR:

gh pr comment {number} --body "$(cat <<'EOF'
<!-- claude-review -->
## PR Review: #{number} — {title}

**Type**: {Bug fix | Feature | Refactor | Docs | Mixed}
**Verdict**: {Merge | Request changes | Needs discussion | Close}

### What's happening (plain English)
{Explain the PR like Caleb is a 3-year-old who happens to be an expert in Alpine internals but has zero context on this specific PR. Use a numbered step-by-step walkthrough of the exact sequence that triggers the bug/feature. No jargon beyond what Alpine devs already know. Be crystal clear and concise — this is the most important section.}

### Other approaches considered
{Briefly list 2-3 alternative ways this could have been solved, with one sentence each on why the PR's approach is better (or worse). If there's only one reasonable approach, say so and explain why. This helps Caleb quickly evaluate whether the chosen path is the right one.}

### Changes Made
{List of fixups you pushed, or "No changes made" if none}

### Test Results
{Which tests ran, pass/fail status, CI status}

### Code Review
{Specific feedback with file:line references. What's good, what's concerning.}

### Security
{Any security considerations, or "No security concerns identified."}

### Verdict
{Your reasoning for the verdict. Be direct. If it should be merged, say why. If closed, say why kindly but clearly.}

---
*Reviewed by Claude*
EOF
)"

Verdict guidelines

  • Merge: Code is correct, tests pass, style is clean, feature is wanted. You've fixed any minor issues.
  • Request changes: Significant issues you can't fix yourself (architectural problems, missing context, needs author input).
  • Needs discussion: Feature scope questions, API design debates, core vs plugin questions. Tag these for Caleb.
  • Close: PR is stale with no response, duplicates existing functionality, or solves a problem that shouldn't be solved. Be kind.

Important rules

  • NEVER run the full test suite. Only run tests the PR touches or that you wrote.
  • Always use the <!-- claude-review --> marker so you can detect previous reviews.
  • Be opinionated. This project has strong conventions — enforce them.
  • Fix what you can. Don't just point out problems if you can solve them.
  • Security is non-negotiable. If you see a security issue, verdict is always "Request changes" regardless of everything else.
  • Match the project voice: practical, direct, minimal.
  • Don't accept the contributor's framing of the problem at face value. Verify the root cause independently, then ensure the test targets that root cause — not the contributor's incidental path to discovering it.
  • "Should this exist?" before "Is this correct?" — Don't get pulled into reviewing implementation details (code quality, edge cases, naming) until you've decided the feature itself is justified. Implementation nits imply acceptance.
  • Tests are documentation. A sloppy test that passes is not good enough — it should precisely communicate what broke and why.
  • Review contributor naming as critically as contributor code. Bad names get merged and become permanent.

平台分布

Codex

34.98%
按下载量换算25

Claude

31.15%
按下载量换算22

Cursor

21.11%
按下载量换算15

Gemini CLI

10.23%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

继续浏览同类 Skills