Token导航 LogoToken导航

Agent Skill · 研究检索

code-review(代码审查)

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

code-review 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 6,922。

总安装 20,494周安装 601GitHub Stars 33下载 8,318核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/zapier/zapier-mcp --skill 'Code Review'

这个 Skill 是做什么的

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

code-review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。它支持基于任务场景或来源线索的信息聚合,适用于代码审查相关的研究工作流。

通过 npx skills add 命令从指定 GitHub 仓库安装,具体用法需结合 README 确认。安装前应检查权限范围、维护状态,并留意是否涉及联网或文件操作。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

code-review 怎么安装?

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

code-review 支持哪些 AI 工具?

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

code-review 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

code-review 是免费的吗?

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

code-review 用的人多吗?

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

code-review 安全吗?

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

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

值得选的地方

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

先想清楚的地方

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

适不适合你

更适合

  • 已经在用 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调用外部服务未明确有提醒
code-review

代码审查 · 本页

20,49433调用外部服务未明确有提醒

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

SKILL.md 原文

Code Review

Perform comprehensive code reviews of a branch against the base branch, providing actionable feedback on code quality, security, performance, and best practices.

When to Use This Skill

Activate this skill when:

  • The user types "review" or "code review" (with or without slash command)
  • The user types "review BRANCH-NAME" to review a specific branch
  • The user types "review TICKET-ID" (e.g., "review AGP-123" or "review AICC-456") to review the branch associated with a Jira ticket
  • The user asks to review a branch, pull request, or merge request
  • Analyzing code changes before merging
  • Performing code quality assessments
  • Checking for security vulnerabilities or performance issues
  • Reviewing branch diffs

Branch Selection

Jira Ticket ID Detection

If a Jira ticket ID is provided (e.g., "review AGP-123" or "review AICC-456"):

A Jira ticket ID matches the pattern: uppercase letters followed by a hyphen and numbers (e.g., AGP-123, AICC-456).

  1. Fetch latest from origin: git fetch origin
  2. Find the branch containing the ticket ID: git branch -r | grep -i "<TICKET-ID>" | head -1
  3. If a matching branch is found, extract the branch name (remove origin/ prefix)
  4. Set up a git worktree for isolated review (see Worktree Setup below)
  5. Proceed with the review in the worktree
  6. Clean up the worktree after review is complete

Worktree Setup for Non-Disruptive Reviews

When reviewing a branch that isn't the current branch (either from a ticket ID or explicit branch name), use a git worktree to avoid disturbing the current working state:

  1. Create a worktree directory at <repo-root>/.worktrees/<branch-name>: git worktree add.worktrees/<branch-name> origin/<branch-name>
  2. Perform all review operations within the worktree directory
  3. After the review is complete, remove the worktree: git worktree remove.worktrees/<branch-name>

Important: Always use the worktree path when reading files or running git commands during the review. This ensures the user's current work remains untouched.

Dependency Installation in Worktrees

When setting up a worktree, install dependencies if you need to run checks (tests, type checking, linting):

  1. Detect package manager: Check for pnpm-lock.yaml in the worktree
  2. Install dependencies: cd <worktree-path> && pnpm install
  3. Run checks (optional, if needed for thorough review): cd <worktree-path> && pnpm check

When to install dependencies:

  • When you need to run tests, type checking, or linting
  • When reviewing changes that affect build or compilation
  • When the review requires verifying the code actually works

When to skip dependency installation:

  • Simple reviews that only need to examine diffs
  • Quick reviews of documentation or config changes
  • When the user only wants a high-level code review

Branch Name Provided

If a branch name is provided (e.g., "review AGP-738-show-manage-admins-button"):

  1. Fetch latest from origin: git fetch origin
  2. Set up a git worktree for the branch (see Worktree Setup above)
  3. Proceed with the review in the worktree
  4. Clean up the worktree after review

No Branch Specified

If no branch name is provided (e.g., just "review"):

  1. Review the current branch as-is in the current directory
  2. Do not create a worktree or switch branches

Worktree Error Handling

If the worktree already exists:

# Remove existing worktree first
git worktree remove .worktrees/<branch-name> --force 2>/dev/null || true
git worktree add .worktrees/<branch-name> origin/<branch-name>

If no matching branch is found for a ticket ID:

  • Inform the user that no branch containing the ticket ID was found
  • List available branches that might be related (partial matches)
  • Ask the user to provide the exact branch name

Always clean up worktrees:

  • Even if the review encounters errors, attempt to clean up the worktree
  • Use git worktree list to verify cleanup was successful

.gitignore Recommendation

The .worktrees directory should be added to .gitignore if not already present. Check and suggest adding it if missing:

# Code review worktrees
.worktrees/

Analyze Branch Context

First, gather essential information about the branch to review:

  • Identify the current branch name
  • Determine the appropriate base branch (staging, main, or master)
  • Check for any uncommitted changes that should be reviewed
  • Find the merge-base to isolate only commits made in this branch
  • Get the list of commits and changed files

Finding Branch-Specific Changes (CRITICAL)

You MUST use git merge-base to find the common ancestor. This ensures you only review commits that were made in THIS branch, not commits from other branches that happened to be merged into main.

# 1. Find the merge-base (common ancestor)
MERGE_BASE=$(git merge-base origin/main HEAD)

# 2. List only commits IN THIS BRANCH (not in main)
git log --oneline $MERGE_BASE..HEAD

# 3. Show files changed ONLY BY THIS BRANCH
git diff --name-status $MERGE_BASE..HEAD

# 4. Show the actual diff ONLY FOR THIS BRANCH
git diff $MERGE_BASE..HEAD

Why this matters:

  • git diff origin/main..HEAD shows ALL differences between main and HEAD, which includes changes from OTHER branches that were merged into main after this branch was created
  • git diff $(git merge-base origin/main HEAD)..HEAD shows ONLY the changes introduced in THIS branch

Example:

main:    A---B---C---D---E  (where D and E are from other merged branches)
              \
feature:       X---Y---Z  (this is what we want to review)

# WRONG: git diff origin/main..HEAD
# Shows: differences from E to Z (includes D and E changes we don't care about)

# CORRECT: git diff $(git merge-base origin/main HEAD)..HEAD
# Shows: only X, Y, Z changes (merge-base is B)

Always use the merge-base approach for:

  • git log - to list commits
  • git diff - to see changes
  • git diff --stat - for change statistics
  • git diff --name-status - for file list

Perform Comprehensive Code Review

Conduct a thorough review of only the changes introduced in this branch (using merge-base as described above).

1. Change Analysis

  • Use git diff $(git merge-base origin/main HEAD)..HEAD -- <file> to review each modified file
  • Examine commits using git show <commit-hash> for individual commits in the branch
  • Identify patterns across changes
  • Check for consistency with existing codebase
  • Only comment on code that was changed in THIS branch's commits

2. Code Quality Assessment

  • Code style and formatting consistency
  • Variable and function naming conventions
  • Code organization and structure
  • Adherence to DRY (Don't Repeat Yourself) principles
  • Proper abstraction levels

3. Technical Review

  • Logic correctness and edge cases
  • Error handling and validation
  • Performance implications
  • Security considerations (input validation, SQL injection, XSS, etc.)
  • Resource management (memory leaks, connection handling)
  • Concurrency issues if applicable

4. Best Practices Check

  • Design patterns usage
  • SOLID principles adherence
  • Testing coverage implications
  • Documentation completeness
  • API consistency
  • Backwards compatibility

5. Dependencies and Integration

  • New dependencies added
  • Breaking changes to existing interfaces
  • Impact on other parts of the system
  • Database migration requirements

6. Fetch Jira Ticket Details

Use the MCP Zapier tool to fetch the ticket:

mcp__zapier-frontend__jira_software_cloud_find_issue_by_key({
  instructions: "Get details for ticket [TICKET_ID]",
  key: "[TICKET_ID]",
  fields: "summary,description,issuetype,priority,status"
})

Extract from response:

  • Summary (title)
  • Description
  • Issue type
  • Status
  • Any other relevant context

Generate Review Report

Create a structured code review report with:

  1. Executive Summary: High-level overview of changes and overall assessment
  2. Statistics:

- Files changed, lines added/removed - Commits reviewed - Critical issues found

  1. Strengths: What was done well
  2. Issues by Priority:

- 🔴 Critical: Must fix before merging (bugs, security issues) - 🟡 Important: Should address (performance, maintainability) - 🟢 Suggestions: Nice to have improvements

  1. Detailed Findings: For each issue include:

- File and line reference - A question framing the concern (e.g., "Could this cause X?" or "Would it help to Y?") - Context explaining why you're asking - Code example if helpful

  1. Security Review: Specific security considerations
  2. Performance Review: Performance implications
  3. Testing Recommendations: What tests should be added
  4. Documentation Needs: What documentation should be updated

User Interaction

After completing the review:

  1. Display the complete review report in markdown format
  2. Provide actionable next steps based on findings
  3. If critical issues found, highlight them prominently

Feedback Style: Questions, Not Directives

Frame all feedback as questions, not commands. This encourages dialogue and respects the author's context.

Examples

❌ Don't write:

  • "You should use early returns here"
  • "This needs error handling"
  • "Extract this into a separate function"
  • "Add a null check"

✅ Do write:

  • "Could this be simplified with an early return?"
  • "What happens if this API call fails? Would error handling help here?"
  • "Would it make sense to extract this into its own function for reusability?"
  • "Is there a scenario where this could be null? If so, how should we handle it?"

Why Questions Work Better

  • The author may have context you don't have
  • Questions invite explanation rather than defensiveness
  • They acknowledge uncertainty in the reviewer's understanding
  • They create a conversation rather than a checklist

Important Notes

  • CRITICAL: Only review changes from THIS branch's commits - use git merge-base to isolate branch-specific changes. Never comment on code that was changed in other branches.
  • Frame feedback as questions to encourage dialogue
  • Be constructive and specific in feedback
  • Provide code examples for suggested improvements
  • Acknowledge good practices and improvements
  • Prioritize issues clearly
  • Consider the context and purpose of changes
  • Review not just code but also architectural decisions
  • Check for potential impacts on other systems
  • Ensure review is actionable and helpful
  • Verify code review is within the acceptance criteria of the Jira Ticket

平台分布

Codex

33.1%
按下载量换算2,753

Claude

28.66%
按下载量换算2,384

Cursor

20.63%
按下载量换算1,716

Gemini CLI

10.32%
按下载量换算858

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

继续浏览同类 Skills