Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

code-review代码审查

Agent Skill

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

总安装

192

周安装

8

GitHub Stars

2

下载量

64
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/bang9/claude-code-settings --skill code-review

简介

code-review 发起三人小组协作式代码审查,分析当前分支变更并提出改进建议。

  • 它收集 diff 与 commit 历史,分派不同专长审查员分别关注逻辑、风格与架构层面。
  • 适用于团队开发中的质量保障,促进知识共享与最佳实践传播。
  • 使用前应确保 git 仓库状态干净,并明确审查范围与合并标准。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Code Review

A team-based code review workflow that spawns three specialized reviewers to analyze the current branch's changes.

When This Skill Activates

  • User asks to review current branch or PR
  • User mentions "code review", "review changes", "review branch"
  • User wants feedback before merging

Workflow

Step 1: Gather Branch Context

Before spawning reviewers, collect the diff and context:

  1. Run git log main..HEAD --oneline to get the list of commits on this branch
  2. Run git diff main...HEAD to get the full diff against the base branch
  3. Identify all changed files with git diff main...HEAD --name-only

If the diff is too large (> 5000 lines), summarize per-file changes and have reviewers focus on their specific areas.

Step 2: Create Review Team

Create a team named code-review and spawn three reviewer agents in parallel:

Reviewer 1: Security Reviewer (security-reviewer)

  • Agent type: general-purpose
  • Focus: Security implications of the changes
  • Checklist:

- Input validation and sanitization - Authentication/authorization changes - Sensitive data exposure (secrets, tokens, PII) - Injection vulnerabilities (SQL, XSS, command injection) - Dependency security (new packages, known CVEs) - Error handling that may leak internal details - CORS, CSP, or other security header changes

  • Output format: List findings with severity (Critical / High / Medium / Low / Info)

Reviewer 2: Performance Reviewer (performance-reviewer)

  • Agent type: general-purpose
  • Focus: Performance impact of the changes
  • Checklist:

- Algorithm complexity (time/space) - Unnecessary re-renders or recomputations - Memory leaks (event listeners, subscriptions, timers not cleaned up) - Bundle size impact (new dependencies, large imports) - N+1 queries or redundant API calls - Caching opportunities missed - Lazy loading and code splitting considerations

  • Output format: List findings with impact level (High / Medium / Low / Negligible)

Reviewer 3: Test Coverage Reviewer (test-reviewer)

  • Agent type: general-purpose
  • Focus: Test quality and coverage
  • Checklist:

- New code has corresponding tests - Edge cases and error paths are tested - Test descriptions are clear and meaningful - Mocks are appropriate (not over-mocked) - Integration/E2E coverage for critical paths - Existing tests updated for changed behavior - Missing negative test cases

  • Output format: List findings with priority (Must Have / Should Have / Nice to Have)

Step 3: Assign Review Tasks

Create tasks for each reviewer and assign them. Each reviewer should:

  1. Read the full diff (or their relevant subset for large diffs)
  2. Analyze changes against their specific checklist
  3. Report findings with clear file paths, line references, and severity/priority
  4. Mark their task as completed when done

Step 4: Compile Review Report

After all three reviewers complete, compile their findings into a unified report:

## Code Review Summary

**Branch**: {branch_name}
**Commits**: {commit_count} commits
**Files Changed**: {file_count}

---

### Security Review
{security findings, grouped by severity}

### Performance Review
{performance findings, grouped by impact}

### Test Coverage Review
{test coverage findings, grouped by priority}

---

### Action Items
{consolidated list of items that should be addressed before merge}

Step 5: Shutdown

After presenting the report to the user, gracefully shutdown all reviewers and clean up the team.

Important Notes

  • Reviewers should read actual code, not guess based on file names
  • Each finding must reference specific file paths and line numbers
  • Do not report style/formatting issues unless they affect readability significantly
  • Focus on substance: bugs, risks, and missing coverage
  • If no issues found in a category, explicitly state "No issues found" rather than omitting the section

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.26%
按下载量换算24

Claude

30.11%
按下载量换算19

Cursor

19.53%
按下载量换算12

Gemini CLI

9.08%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills