Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

code-review代码审查

Agent Skill

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

总安装

722

周安装

31

GitHub Stars

1

下载量

253
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/pixel-process-ug/superkit-agents --skill code-review

简介

code-review 用于查找、检索和筛选相关信息,适合快速定位候选结果。

  • 适用于需要根据关键词或任务场景从来源线索中筛选信息的场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用该技能。
  • 安装前需确认权限范围和维护状态,注意可能触发联网或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Code Review

Overview

Comprehensive code review against the original plan, coding standards, and learned project patterns. This skill dispatches a dedicated code-reviewer agent for thorough analysis, ensuring every change is evidence-based, plan-aligned, and convention-aware before it reaches the main branch.

Announce at start: "I'm using the code-review skill to review the implementation."


Phase 1: Gather Context

Goal: Identify what changed, what the plan required, and what conventions apply.

Actions

  1. Retrieve the changes to review:
git diff HEAD~N..HEAD          # or specific commit range
git log --oneline HEAD~N..HEAD # what was done
  1. Locate the plan document:
ls docs/plans/*.md | tail -1
  1. Load project conventions from memory/learned-patterns.md
  2. Identify:

- What files were changed - What the plan/spec required - What conventions apply

STOP — Do NOT proceed to Phase 2 until:

  • All changed files are identified
  • The plan or spec requirements are loaded
  • Relevant conventions from memory are loaded
  • You can state what was supposed to be built

Phase 2: Dispatch Code Reviewer

Goal: Send structured review request to the code-reviewer agent.

Review Prompt Template

Review the following changes against:
1. Plan: [plan document or requirements]
2. Conventions: [learned patterns from memory]
3. Standards: [CLAUDE.md rules]

Changes:
[git diff output or file list]

Check for:
- Plan alignment (did we build what was specified?)
- Code quality (DRY, YAGNI, naming, structure)
- Error handling (edge cases, failure modes)
- Security (injection, XSS, auth issues)
- Test coverage (are changes tested?)
- Performance (obvious bottlenecks)
- Documentation (are public APIs documented?)

STOP — Do NOT proceed to Phase 3 until:

  • Review request has been dispatched
  • Reviewer agent has returned findings

Phase 3: Categorize and Resolve Issues

Goal: Classify findings and fix all Critical issues.

Issue Categorization Table

CategoryDefinitionAction Required
CriticalBugs, security issues, data loss risk, plan violationsMust fix before merge
ImportantCode quality, missing tests, convention violationsShould fix before merge
SuggestionsStyle, naming, minor improvementsNice to have, fix if time allows

Fix Loop

For Critical and Important issues:

  1. Fix the issue
  2. Run tests to verify the fix
  3. Re-dispatch code-reviewer agent for the specific fix
  4. Repeat until no Critical issues remain

STOP — Do NOT proceed to Phase 4 until:

  • All Critical issues are resolved
  • All Important issues are resolved or explicitly deferred with justification
  • Test suite passes after all fixes

Phase 4: Self-Learning Integration

Goal: Persist patterns discovered during review for future sessions.

Actions

  1. If new patterns were identified, update memory/learned-patterns.md
  2. If a common mistake was found, note it for future reference
  3. If the plan needed adjustment, update memory/decisions-log.md

Review Output Format

## Code Review Summary

**Scope:** [files/components reviewed]
**Plan alignment:** [aligned / minor deviations / major deviations]

### Critical Issues (N)
1. **[Issue title]** — `file:line`
   Problem: [description]
   Fix: [specific recommendation]

### Important Issues (N)
1. **[Issue title]** — `file:line`
   Problem: [description]
   Fix: [specific recommendation]

### Suggestions (N)
1. **[Suggestion]** — `file:line`

### What Was Done Well
- [Positive observations]

Decision Table: Review Depth

Change TypeReview DepthReviewer
New feature (>100 lines)Full review: plan alignment + quality + security + testscode-reviewer agent
Bug fix (<50 lines)Focused review: regression test + root cause + fix correctnesscode-reviewer agent
Refactor (no behavior change)Behavior preservation: all tests pass + no regressionscode-reviewer agent
Config/infra changeSecurity + correctness: no secrets exposed, valid syntaxcode-reviewer agent
Documentation onlyAccuracy + completeness: matches current code behaviorInline review

Anti-Patterns / Common Mistakes

Anti-PatternWhy It Is WrongCorrect Approach
Skipping review for "small fixes"Small changes cause production outagesReview everything
Reviewing without the planCannot verify correctness without requirementsAlways load the plan first
Fixing issues without re-running testsFixes can introduce new bugsRun full test suite after every fix
Generic feedback ("looks good")Not actionable, misses real issuesCite specific code lines with fix recommendations
Reviewing your own code aloneAuthor blindness misses defectsAlways dispatch code-reviewer agent
Deferring Critical issuesCritical issues become production incidentsMust fix before merge, no exceptions

Rationalizations — STOP If You Think These

ExcuseReality
"It's just a typo fix"Typo fixes can break APIs. Review it.
"I'm confident in this code"Confidence does not equal correctness. Review it.
"The tests pass"Tests can miss bugs. Review it.
"It's just styling/formatting"Style changes can introduce bugs. Review it.
"Nobody will notice"That is exactly when bugs ship. Review it.
"I'll review it later"Later never comes. Review it now.
"The deadline is tight"Shipping bugs costs more than reviewing. Review it.

Subagent Dispatch Opportunities

Task PatternDispatch ToWhen
Reviewing multiple independent files/modulesAgent tool with subagent_type="Explore"When review scope spans multiple unrelated modules
Security-focused review passAgent tool invoking security-review skillWhen changes touch auth, input handling, or external APIs
Performance impact assessmentAgent tool invoking performance-optimization skillWhen changes affect hot paths or data-heavy operations

Follow the dispatching-parallel-agents skill protocol when dispatching.


Integration Points

SkillRelationship
planningReview checks implementation against the approved plan
test-driven-developmentReview verifies test coverage and TDD compliance
verification-before-completionReview is a prerequisite for verification
self-learningReview findings feed into learned patterns
acceptance-testingReview checks that acceptance tests exist for all criteria
systematic-debuggingIf review reveals a bug, switch to debugging skill
security-reviewSecurity findings during review trigger deeper security analysis

Iron Law

┌─────────────────────────────────────────────────────────────────┐
│  HARD-GATE: NO MERGE WITHOUT REVIEW                            │
│                                                                 │
│  Every change gets reviewed. No exceptions for "small fixes"   │
│  or "obvious changes." If you are about to merge without       │
│  review, STOP immediately.                                     │
└─────────────────────────────────────────────────────────────────┘

Skill Type

RIGID — The four-phase process is mandatory. Every change must be reviewed by the code-reviewer agent. No merge without review. No exceptions.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.93%
按下载量换算88

Claude

30.55%
按下载量换算77

Cursor

16.74%
按下载量换算42

Gemini CLI

7.89%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

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

安装前确认

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

来源信息

继续浏览同类 Skills