Token导航 LogoToken导航

Agent Skill · 开发

code-review(代码审查)

code-review 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

code-review 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 71。

总安装 436,476周安装 17,487GitHub Stars 14下载 141,295核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install code-review

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

系统的代码审查模式涵盖安全性、性能、可维护性、正确性和测试——具有严重性级别、结构化反馈指导、审查流程和要避免的反模式。Use when reviewing PRs, establishing review standards, or improving review quality.

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install code-review;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

code-review 怎么安装?

在终端执行 openclaw skills install code-review。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

code-review 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

code-review 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

code-review 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

code-review 用的人多吗?

公开数据是累计安装 436,476 次,近一周安装 17,487 次,下载 141,295 次,GitHub 14 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

code-review 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
code-review

代码审查 · 本页

436,47614接触敏感数据MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
code-review
model
reasoning
category
testing
description
Systematic code review patterns covering security, performance, maintainability, correctness, and testing — with severity levels, structured feedback guidance, review process, and anti-patterns to avoid. Use when reviewing PRs, establishing review standards, or improving review quality.
version
1.0

Code Review Checklist

Thorough, structured approach to reviewing code. Work through each dimension systematically rather than scanning randomly.

Installation

OpenClaw / Moltbot / Clawbot

npx clawhub@latest install code-review

Review Dimensions

DimensionFocusPriority
SecurityVulnerabilities, auth, data exposureCritical
PerformanceSpeed, memory, scalability bottlenecksHigh
CorrectnessLogic errors, edge cases, data integrityHigh
MaintainabilityReadability, structure, future-proofingMedium
TestingCoverage, quality, reliability of testsMedium
AccessibilityWCAG compliance, keyboard nav, screen readersMedium
DocumentationComments, API docs, changelog entriesLow

Security Checklist

Review every change for these vulnerabilities:

  • [ ] SQL Injection — All queries use parameterized statements or an ORM; no string concatenation with user input
  • [ ] XSS — User-provided content is escaped/sanitized before rendering; dangerouslySetInnerHTML or equivalent is justified and safe
  • [ ] CSRF Protection — State-changing requests require valid CSRF tokens; SameSite cookie attributes are set
  • [ ] Authentication — Every protected endpoint verifies the user is authenticated before processing
  • [ ] Authorization — Resource access is scoped to the requesting user's permissions; no IDOR vulnerabilities
  • [ ] Input Validation — All external input (params, headers, body, files) is validated for type, length, format, and range on the server side
  • [ ] Secrets Management — No API keys, passwords, tokens, or credentials in source code; secrets come from environment variables or a vault
  • [ ] Dependency Safety — New dependencies are from trusted sources, actively maintained, and free of known CVEs
  • [ ] Sensitive Data — PII, tokens, and secrets are never logged, included in error messages, or returned in API responses
  • [ ] Rate Limiting — Public and auth endpoints have rate limits to prevent brute-force and abuse
  • [ ] File Upload Safety — Uploaded files are validated for type and size, stored outside the webroot, and served with safe Content-Type headers
  • [ ] HTTP Security Headers — Content-Security-Policy, X-Content-Type-Options, Strict-Transport-Security are set

Performance Checklist

  • [ ] N+1 Queries — Database access patterns are batched or joined; no loops issuing individual queries
  • [ ] Unnecessary Re-renders — Components only re-render when their relevant state/props change; memoization is applied where measurable
  • [ ] Memory Leaks — Event listeners, subscriptions, timers, and intervals are cleaned up on unmount/disposal
  • [ ] Bundle Size — New dependencies are tree-shakeable; large libraries are loaded dynamically; no full-library imports for a single function
  • [ ] Lazy Loading — Heavy components, routes, and below-the-fold content use lazy loading / code splitting
  • [ ] Caching Strategy — Expensive computations and API responses use appropriate caching (memoization, HTTP cache headers, Redis)
  • [ ] Database Indexing — Queries filter/sort on indexed columns; new queries have been checked with EXPLAIN
  • [ ] Pagination — List endpoints and queries use pagination or cursor-based fetching; no unbounded SELECT *
  • [ ] Async Operations — Long-running tasks are offloaded to background jobs or queues rather than blocking request threads
  • [ ] Image & Asset Optimization — Images are properly sized, use modern formats (WebP/AVIF), and leverage CDN delivery

Correctness Checklist

  • [ ] Edge Cases — Empty arrays, empty strings, zero values, negative numbers, and maximum values are handled
  • [ ] Null/Undefined Handling — Nullable values are checked before access; optional chaining or guards prevent runtime errors
  • [ ] Off-by-One Errors — Loop bounds, array slicing, pagination offsets, and range calculations are verified
  • [ ] Race Conditions — Concurrent access to shared state uses locks, transactions, or atomic operations
  • [ ] Timezone Handling — Dates are stored in UTC; display conversion happens at the presentation layer
  • [ ] Unicode & Encoding — String operations handle multi-byte characters; text encoding is explicit (UTF-8)
  • [ ] Integer Overflow / Precision — Arithmetic on large numbers or currency uses appropriate types (BigInt, Decimal)
  • [ ] Error Propagation — Errors from async calls and external services are caught and handled; promises are never silently swallowed
  • [ ] State Consistency — Multi-step mutations are transactional; partial failures leave the system in a valid state
  • [ ] Boundary Validation — Values at the boundaries of valid ranges (min, max, exactly-at-limit) are tested

Maintainability Checklist

  • [ ] Naming Clarity — Variables, functions, and classes have descriptive names that reveal intent
  • [ ] Single Responsibility — Each function/class/module does one thing; changes to one concern don't ripple through unrelated code
  • [ ] DRY — Duplicated logic is extracted into shared utilities; copy-pasted blocks are consolidated
  • [ ] Cyclomatic Complexity — Functions have low branching complexity; deeply nested chains are refactored
  • [ ] Error Handling — Errors are caught at appropriate boundaries, logged with context, and surfaced meaningfully
  • [ ] Dead Code Removal — Commented-out code, unused imports, unreachable branches, and obsolete feature flags are removed
  • [ ] Magic Numbers & Strings — Literal values are extracted into named constants with clear semantics
  • [ ] Consistent Patterns — New code follows the conventions already established in the codebase
  • [ ] Function Length — Functions are short enough to understand at a glance; long functions are decomposed
  • [ ] Dependency Direction — Dependencies point inward (infrastructure to domain); core logic does not import from UI or framework layers

Testing Checklist

  • [ ] Test Coverage — New logic paths have corresponding tests; critical paths have both happy-path and failure-case tests
  • [ ] Edge Case Tests — Tests cover boundary values, empty inputs, nulls, and error conditions
  • [ ] No Flaky Tests — Tests are deterministic; no reliance on timing, external services, or shared mutable state
  • [ ] Test Independence — Each test sets up its own state and tears it down; test order does not affect results
  • [ ] Meaningful Assertions — Tests assert on behavior and outcomes, not implementation details
  • [ ] Test Readability — Tests follow Arrange-Act-Assert; test names describe the scenario and expected outcome
  • [ ] Mocking Discipline — Only external boundaries (network, DB, filesystem) are mocked
  • [ ] Regression Tests — Bug fixes include a test that reproduces the original bug and proves it is resolved

Review Process

Work through the code in three passes. Do not try to catch everything in one read.

PassFocusTimeWhat to Look For
FirstHigh-level structure2-5 minArchitecture fit, file organization, API design, overall approach
SecondLine-by-line detailBulkLogic errors, security issues, performance problems, edge cases
ThirdEdge cases & hardening5 minFailure modes, concurrency, boundary values, missing tests

First Pass (2-5 minutes)

  1. Read the PR description and linked issue
  2. Scan the file list — does the change scope make sense?
  3. Check the overall approach — is this the right solution to the problem?
  4. Verify the change does not introduce architectural drift

Second Pass (bulk of review time)

  1. Read each file diff top to bottom
  2. Check every function change against the checklists above
  3. Verify error handling at every I/O boundary
  4. Flag anything that makes you pause — trust your instincts

Third Pass (5 minutes)

  1. Think about what could go wrong in production
  2. Check for missing tests on the code paths you flagged
  3. Verify rollback safety — can this change be reverted without data loss?
  4. Confirm documentation and changelog are updated if needed

Severity Levels

Classify every comment by severity so the author knows what blocks merge.

LevelLabelMeaningBlocks Merge?
Critical[CRITICAL]Security vulnerability, data loss, or crash in productionYes
Major[MAJOR]Bug, logic error, or significant performance regressionYes
Minor[MINOR]Improvement that would reduce future maintenance costNo
Nitpick[NIT]Style preference, naming suggestion, or trivial cleanupNo

Always prefix your review comment with the severity label. This removes ambiguity about what matters.


Giving Feedback

Principles

  • Be specific — Point to the exact line and explain the issue, not just "this is wrong"
  • Explain why — State the risk or consequence, not just the rule
  • Suggest a fix — Offer a concrete alternative or code snippet when possible
  • Ask, don't demand — Use questions for subjective points: "What do you think about...?"
  • Acknowledge good work — Call out clean solutions, clever optimizations, or thorough tests
  • Separate blocking from non-blocking — Use severity labels so the author knows what matters

Example Comments

Bad:

This is wrong. Fix it.

Good:

[MAJOR] This query interpolates user input directly into the SQL string (line 42), which is vulnerable to SQL injection. Consider using a parameterized query: ``sql SELECT * FROM users WHERE id = $1 ``

Bad:

Why didn't you add tests?

Good:

[MINOR] The new calculateDiscount() function has a few branching paths — could we add tests for the zero-quantity and negative-price edge cases to prevent regressions?

Bad:

I would have done this differently.

Good:

[NIT] This works well. An alternative approach could be extracting the retry logic into a shared withRetry() wrapper — but that's optional and could be a follow-up.

Review Anti-Patterns

Avoid these common traps that waste time and damage team trust:

Anti-PatternDescription
Rubber-StampingApproving without reading. Creates false confidence and lets bugs through.
BikesheddingSpending 30 minutes debating a variable name while ignoring a race condition.
Blocking on StyleRefusing to approve over formatting that a linter should enforce automatically.
GatekeepingRequiring your personal preferred approach when the submitted one is correct.
Drive-by ReviewsLeaving one vague comment and disappearing. Commit to following through.
Scope Creep ReviewsRequesting unrelated refactors that should be separate PRs.
Stale ReviewsLetting PRs sit for days. Review within 24 hours or hand off to someone else.
Emotional Language"This is terrible" or "obviously wrong." Critique the code, not the person.

NEVER Do

  1. NEVER approve without reading every changed line — rubber-stamping is worse than no review
  2. NEVER block a PR solely for style preferences — use a linter; humans review logic
  3. NEVER leave feedback without a severity level — ambiguity causes wasted cycles
  4. NEVER request changes without explaining why — "fix this" teaches nothing
  5. NEVER review more than 400 lines in one sitting — comprehension drops sharply; break large PRs into sessions
  6. NEVER skip the security checklist — one missed vulnerability outweighs a hundred style nits
  7. NEVER make it personal — review the code, never the coder; assume good intent

平台分布

OpenClaw

95.01%
按下载量换算134,244

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

继续浏览同类 Skills