Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计异常

code-review代码审查

Agent Skill

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

总安装

188

周安装

8

GitHub Stars

3

下载量

66
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

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

简介

code-review 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装,需结合 README 确认具体用法。
  • 安装前建议核实权限范围、维护状态及是否涉及联网或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Code Review

Expert code reviewer with automated pre-review checks (tests, linting, formatting) and optional auto-fix capabilities.

Parameters

The skill accepts different modes and options:

  • mode: changes | target

- changes: Review uncommitted changes (git diff + status) - target: Review specific files/directories matching glob pattern

  • target: File path or glob pattern (required if mode=target)

- Examples: src/auth, **/*.ts, lib/utils.ts

  • intent: Optional description or file reference

- Plain text: "add OAuth2 authentication" - File reference (example): @docs/requirements.md (placeholder - replace with actual requirements file) - Used for Requirements Alignment section

  • save: Boolean flag (--save)

- If true: write review to docs/CODE_REVIEW.md - Default: show in chat only

Process Workflow

1. Gather Code

changes mode:

git status
git diff HEAD

target mode:

  • Use Glob to find files matching target pattern
  • Read matched files
  • Exit gracefully if nothing found

2. Load Intent (if provided)

  • If starts with @: Read file at path
  • Otherwise: use string as-is
  • Store for Requirements Alignment section

3. Pre-Review Checks

Run scripts/pre-review.sh to check tests, linting, formatting:

bash scripts/pre-review.sh

Exit codes (bitwise OR):

  • 0: All passed → proceed to review
  • 1: Lint failed → auto-fix
  • 2: Format failed → auto-fix
  • 4: Tests failed → auto-fix
  • 8: No package.json → skip to review

Handle failures:

Exit code 8 (no package.json):

  • Skip all checks
  • Proceed directly to review

Exit code 1 (lint failed):

  • Spawn Task with fix-eslint skill
  • Wait for completion
  • If auto-fix fails or times out, note the failure and proceed to review anyway
  • Re-run pre-review.sh once. If still failing after the second run, proceed to review and note failures in output

Exit code 2 (format failed):

  • Run pnpm format directly
  • Re-run pre-review.sh once. If still failing after the second run, proceed to review and note failures in output

Exit code 4 (tests failed):

  • Spawn Task: "Fix failing tests - review test output and fix the code to make tests pass"
  • Wait for completion
  • If auto-fix fails or times out, note the failure and proceed to review anyway
  • Re-run pre-review.sh once. If still failing after the second run, proceed to review and note failures in output

Multiple failures (e.g., 7 = lint + format + tests):

  • Handle in sequence: format first, then lint, then tests
  • Re-run checks after each fix

Max attempts:

  • Limit to 2 full pre-review cycles (1 initial run + 1 retry)
  • If checks still fail after second run, proceed to review anyway
  • Note failures in review output

4. Execute Review

Follow methodology.md for complete review process and output format.

Process:

  1. Scan for critical safety/security issues
  2. Verify tests & edge cases
  3. If intent provided: validate implementation accomplishes goals
  4. Note improvements & positives
  5. Summarize decision with next steps

Output format: Use exact headings from methodology.md:

  • Critical Issues - with line numbers (L42, L42-47, file.ts:42)
  • Functional Gaps - missing tests/handling
  • Requirements Alignment - only if intent provided
  • Improvements Suggested
  • Positive Observations
  • Overall Assessment - Approve | Request Changes | Comment Only

5. Present Review

Always show review in chat, formatted with markdown headings.

6. Save (if requested)

If save=true:

  • Use Write tool to create/overwrite docs/CODE_REVIEW.md
  • Include all sections with exact headings
  • Preserve markdown formatting

Examples

Review uncommitted changes:

mode: changes
intent: null
save: false

Review with intent:

mode: changes
intent: "Implement OAuth2 authentication with secure token storage"
save: false

Review specific files:

mode: target
target: "src/auth/**/*.ts"
intent: "security review"
save: true

Review with file-based requirements:

mode: changes
intent: "@docs/requirements/auth.md"  # Example: replace with actual requirements file path
save: true

Notes

  • Use this skill immediately after writing or modifying code
  • Gracefully handles projects without package.json (skips checks)
  • Auto-fixes: delegates to fix-eslint skill for lint errors, runs pnpm format for format errors
  • Intent can be plain text or file reference with @ prefix
  • Re-runs checks after auto-fixes, max 2 cycles
  • Pre-review script (scripts/pre-review.sh) returns bitwise exit codes: 1=lint, 2=format, 4=test, 8=no package.json

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

27.86%
按下载量换算18

windsurf

21.23%
按下载量换算14

trae

17.8%
按下载量换算12

OpenCode

11.27%
按下载量换算7

Codex

7.22%
按下载量换算5

Antigravity

3.16%
按下载量换算2

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

执行命令

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills