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

code-review代码审查

Agent Skill

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

总安装

194

周安装

8

GitHub Stars

公开资料未说明

下载量

63
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

code-review 采用双代理架构分离评审与实施职责,确保客观公正性。

  • 适用于追求极致代码质量的团队,特别关注简洁性与必要性判断。
  • 评审代理完全独立于原开发上下文,从零开始评估所有技术选择合理性。
  • 支持打分制质量门禁,低于阈值则阻止合并直至问题彻底解决。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Code Review

*"Simplicity is the ultimate sophistication."* — Leonardo da Vinci

Two roles: a reviewer (always a fresh subagent) judges the code, and the implementing agent (you) applies fixes.

When To Use

  • User asks for a review or code review.
  • User asks for feedback on code quality or design.
  • User asks to simplify code or remove unnecessary abstraction.
  • User asks for a scored quality gate before merge.

Workflow

  1. Spawn a dedicated reviewer subagent. Use runSubagent, spawn_agent, or whatever the platform provides (Claude, Codex, Copilot, etc.). The reviewer starts from fresh context, isolated from the implementation. Use fork_context: false unless missing context would invalidate the review. If delegation is unavailable, tell the user — do not silently self-review.
  2. Give the reviewer only the changed files and the minimum context to understand them.
  3. The reviewer scores against the rubric, applies the review rules, and returns the quality score block.
  4. Surface the reviewer's result verbatim before acting on it — the user must see reviewer findings separately from fixer actions.
  5. If the verdict is fail, the implementing agent treats minimal_fix_plan as a mandate and applies fixes with craft and care. Then resubmit to the reviewer.
  6. After two failed cycles, stop and surface the unresolved choice clearly instead of iterating blindly.
  7. Stop when the review passes or the user interrupts.

Quality Score

The reviewer returns:

score: X/100
verdict: pass|fail
metrics:
  simplicity: X/30
  abstraction_quality: X/30
  solid_design: X/15
  readability: X/25
findings:
  - [P0|P1|P2|P3] file:line — issue and why it matters
minimal_fix_plan:
  - fix 1
  - fix 2

No findings → findings: - none, minimal_fix_plan: - none.

For P0/P1 architectural findings, append:

decision_memo:
  current_design: ...
  root_flaw: ...
  smallest_better_structure: ...
  why_now: ...

Scoring

CategoryWeight
Simplicity and minimal code30
Abstraction necessity and cohesion30
SOLID and dependency direction15
Readability and naming clarity25

pass requires score ≥ 90 with no automatic fail triggered.

Severity

  • P0: incorrect architecture or behavior with regression risk.
  • P1: design flaw that should block merge.
  • P2: meaningful maintainability or clarity issue.
  • P3: minor issue that does not threaten the design.

Automatic Fail

Any of these forces fail regardless of score:

  • Abstraction added without present need.
  • More code, layers, or state than the feature requires.
  • Duplicate logic left when consolidation is straightforward.
  • Symptom-level patch that leaves the root design smell intact.
  • Tests do not cover changed behavior.
  • Review does not explain the central design tradeoff.

Review Rules

These govern the reviewer's judgment. Each principle stated once.

Scope: review only the current diff and the code quality of the behavior it implements. Do not invent future requirements or demand unrelated cleanup. Treat behavior changes as intentional unless they create internal contradictions, unnecessary complexity, unclear ownership, or broken code-level contracts inside the changed design. Prefer one root cause over multiple symptoms of the same flaw. A change is non-trivial when it touches multiple modules, reshapes a boundary, adds a shared abstraction, changes state ownership, or changes dependency direction — review architecture before implementation details for these.

Priorities: architectural and code-quality risks over style. Concrete file/line findings over general advice. Root-cause issues before surface-level ones.

Simplicity: treat added complexity as guilty until proven necessary. Penalize abstractions that don't remove real, present duplication or coupling. Prefer deletion over addition when behavior stays correct. Reward clarity and low maintenance cost, not cleverness. Apply SOLID only when it reduces coupling and cognitive load, not as ceremony.

Architecture: behavior belongs in the layer that owns the decision. Details depend on policies, never the reverse. Reject abstractions that mix orchestration with mechanics. One source of truth per decision, dependency, and state transition. Prefer the smallest coherent implementation that works today.

Fix plan: minimal and tied directly to findings. For architectural work, "minimal" means the smallest change that restores correct ownership and dependency direction — not the smallest diff. It is fine to state a flaw without knowing the perfect rewrite, but the finding must point toward the fix direction.

Calibration: review as if matching the user's instincts about code smell, not a generic style guide. Default to suspicion when code feels AI-shaped or prematurely generalized.

Implementing Agent Standards

When the review fails, the implementing agent applies fixes with:

  • Craft: every change leaves the codebase better than found.
  • Creativity: make the problem dissolve, don't just address symptoms.
  • Quality: no shortcuts — the fix reads as if written on a senior engineer's best day.
  • Ownership: internalize the reviewer's bar. Treat findings as your own standards.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.07%
按下载量换算24

Claude

28.8%
按下载量换算18

Cursor

21.03%
按下载量换算13

Gemini CLI

9.85%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

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

安装前确认

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

来源信息

继续浏览同类 Skills