Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

code-review代码审查

Agent Skill

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

总安装

371

周安装

15

GitHub Stars

12

下载量

116
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/walletconnect/skills --skill code-review

简介

用于查找、检索和筛选相关信息。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 安装前需确认权限范围、维护状态,注意是否触发联网、命令执行或文件读写。
  • code-review 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Code Review

Review code changes using THREE (3) to FIVE (5) parallel subagents and correlate results into a summary ranked by severity.

Use the provided user guidance to steer the review and focus on specific code paths, changes, and/or areas of concern.

User Guidance: $ARGUMENTS

Default Behavior

  1. Review uncommitted changes by default (git diff and git diff --staged)
  2. If no uncommitted changes exist, review the last commit (git show HEAD)
  3. If the user provides a pull request number or link, use gh pr diff <number> to fetch changes

Workflow

  1. First, determine what to review based on the rules above
  2. Check if the changes include AWS infrastructure files:

- Terraform files (*.tf) containing AWS patterns (provider "aws", aws_ resources, or hashicorp/aws) - CDK files (TypeScript files containing aws-cdk, @aws-cdk, cdk.Stack, cdk.App, or Construct patterns)

  1. Check if the changes add new dependencies by looking for additions in:

- package.json (new entries in dependencies or devDependencies) - requirements.txt, pyproject.toml, setup.py, setup.cfg - Cargo.toml (new entries in [dependencies] or [dev-dependencies]) - go.mod (new require entries) - Gemfile, *.gemspec - composer.json - Any other language-specific dependency manifest - Only trigger on newly added dependencies, not version bumps of existing ones

  1. Launch parallel Task agents:

- THREE agents with subagent_type: general-purpose, each instructed to: - Read the full file context (not just diffs) to understand surrounding logic - Focus on different aspects: bugs/logic, security/auth, and patterns/structure - Follow the detailed review guidelines below - If AWS infrastructure detected: ONE additional agent with subagent_type: aws-limits to review AWS service quota violations in the changed infrastructure files - If new dependencies detected: ONE additional agent with subagent_type: general-purpose to verify license compliance: - Extract the list of newly added dependency names and versions from the diff - For each new dependency, determine its license (use the package registry API or repository metadata — e.g. npm view <pkg> license, pip show <pkg>, cargo info <pkg>, or check the project's GitHub repo) - Flag any dependency whose license is not in the permissive allowlist: MIT, ISC, BSD-2-Clause, BSD-3-Clause, Apache-2.0, 0BSD, Unlicense, CC0-1.0, BlueOak-1.0.0 - For flagged dependencies, report: package name, detected license, and why it may be problematic (e.g. copyleft, proprietary, unknown) - Severity: Critical for proprietary/unknown licenses, High for copyleft (GPL, AGPL, LGPL, MPL), Medium for weak copyleft or uncommon licenses

  1. Collect all findings and produce a consolidated summary
  2. Rank issues by severity: Critical > High > Medium > Low
  3. Include file paths and line numbers for each finding
  4. Suggest fixes where appropriate

Review Guidelines

Diffs alone are not enough. Read the full file(s) being modified to understand context. Code that looks wrong in isolation may be correct given surrounding logic.

What to Look For

Bugs — Primary focus

  • Logic errors, off-by-one mistakes, incorrect conditionals
  • Missing guards, unreachable code paths, broken error handling
  • Edge cases: null/empty inputs, race conditions
  • Security: injection, auth bypass, data exposure

Structure — Does the code fit the codebase?

  • Follows existing patterns and conventions?
  • Uses established abstractions?
  • Excessive nesting that could be flattened?

Performance — Only flag if obviously problematic

  • O(n²) on unbounded data, N+1 queries, blocking I/O on hot paths

Before You Flag Something

  • Be certain. Don't flag something as a bug if you're unsure — investigate first.
  • Don't invent hypothetical problems. If an edge case matters, explain the realistic scenario.
  • Don't be a zealot about style. Some "violations" are acceptable when they're the simplest option.
  • Only review the changes — not pre-existing code that wasn't modified.

Output Guidelines

  • Be direct about bugs and why they're bugs
  • Communicate severity honestly — don't overstate
  • Include file paths and line numbers
  • Suggest fixes when appropriate
  • Matter-of-fact tone, no flattery

Severity Levels

  • Critical: Security vulnerabilities, data loss, crashes in production
  • High: Bugs that will cause incorrect behavior, broken functionality
  • Medium: Code that works but has issues (poor error handling, edge cases)
  • Low: Style issues, minor improvements, suggestions

Output Format

## Code Review Summary

### Critical Issues
- [file:line] Description of critical bug/security issue

### High Priority
- [file:line] Description

### Medium Priority
- [file:line] Description

### Low Priority / Suggestions
- [file:line] Description

### AWS Service Limits (if applicable)
- [file:line] Description of limit concern

### License Compliance (if applicable)
- [package-name] License: <license> — Reason flagged

### Summary
Brief overall assessment of the changes.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

31.87%
按下载量换算37

Claude

32.04%
按下载量换算37

Cursor

18.61%
按下载量换算22

Gemini CLI

8.59%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills