← 返回 Skills 市场
harrylabsj

Code Review Checklist

作者 haidong · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
109
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install code-review-checklist
功能描述
代码审查清单 - A comprehensive code review checklist and guidance tool. Use when user asks about 代码审查、代码检查、PR review、代码质量, or wants to conduct or prepare for a cod...
使用说明 (SKILL.md)

Code Review Checklist (代码审查清单)

Overview

This skill provides a systematic approach to code reviews. It offers comprehensive checklist items across multiple dimensions of code quality, helps reviewers focus on high-impact areas, and guides developers in preparing code for review. Designed to make code reviews more efficient and thorough.

When to Use This Skill

  • Preparing code for pull request review
  • Conducting a code review as a reviewer
  • Self-reviewing own code before submission
  • Establishing code review standards for a team
  • Training new developers on review best practices
  • Auditing code quality in a codebase

What This Skill Provides

1. Predefined Checklists

Comprehensive checklist items organized by category:

  • Code correctness and logic
  • Code style and readability
  • Performance and efficiency
  • Security considerations
  • Error handling
  • Testing coverage
  • Documentation
  • Architecture and design patterns

2. Review Guidance

  • What to look for in each category
  • Red flags and common issues
  • Best practices specific to language/framework
  • Questions to ask the author

3. Review Workflow

  • Systematic approach to reviewing
  • Priority ordering of checks
  • Time allocation guidance
  • Documentation requirements

Checklist Categories

1. Correctness & Logic

  • Code produces expected output
  • Edge cases are handled
  • No off-by-one errors
  • Logic is sound and complete
  • No infinite loops or recursion issues
  • Proper use of data structures

2. Code Style & Readability

  • Follows project coding standards
  • Naming is clear and descriptive
  • Functions are appropriately sized
  • Code is not duplicated (DRY principle)
  • Complex logic has comments
  • Formatting is consistent

3. Performance & Efficiency

  • No unnecessary loops or iterations
  • Proper use of caching when applicable
  • Database queries are optimized
  • No memory leaks
  • Appropriate algorithmic complexity
  • Resources are properly released

4. Security

  • Input validation on all user inputs
  • No SQL injection vulnerabilities
  • No XSS vulnerabilities
  • Secrets not hardcoded
  • Proper authentication/authorization
  • Sensitive data properly protected
  • No security misconfigurations

5. Error Handling

  • Errors are caught and handled appropriately
  • Error messages are user-friendly
  • No empty catch blocks
  • Logging is appropriate
  • Graceful degradation where needed
  • No exposing internal error details

6. Testing

  • Unit tests exist for new code
  • Tests cover happy path and edge cases
  • Tests are maintainable
  • Mock usage is appropriate
  • Test coverage meets requirements
  • No flaky tests introduced

7. Documentation

  • Public APIs are documented
  • Complex logic has comments
  • README updated if needed
  • API changes are documented
  • Breaking changes are noted

8. Architecture & Design

  • Follows project architecture patterns
  • Single Responsibility Principle followed
  • Dependencies are properly injected
  • Coupling is minimized
  • Changes are localized appropriately
  • No tech debt introduced unnecessarily

Language-Specific Considerations

JavaScript/TypeScript

  • Proper async/await usage
  • TypeScript types are correct
  • No 'any' type abuse
  • ESLint rules followed

Python

  • PEP 8 compliance
  • Type hints where appropriate
  • Docstrings for public functions
  • No deprecated imports

Java

  • Null safety considerations
  • Resource management (try-with-resources)
  • Stream API usage
  • Concurrent access considerations

Go

  • Error handling conventions
  • Goroutine leak prevention
  • Context usage
  • Naming conventions

Review Workflow

Step 1: Context (2-3 min)

  • Read PR description and motivation
  • Understand what changed and why
  • Check related issues or docs

Step 2: Overview (3-5 min)

  • Scan changed files
  • Identify high-risk areas
  • Note files needing deep review

Step 3: Detailed Review (15-30 min)

  • Follow checklist by priority
  • Comment on issues found
  • Ask clarifying questions
  • Suggest improvements

Step 4: Summary (3-5 min)

  • Summarize findings
  • Categorize issues (Blocking/Suggestion/Question)
  • Approve or request changes

Usage Examples

As a Reviewer

"用代码审查清单检查这个PR"
"帮我审查这个函数的逻辑"
"检查这段代码有没有安全问题"
"看看这个文件有哪些可以改进的地方"

As a Developer

"帮我准备代码审查"
"自审查这份代码,有什么遗漏?"
"检查这段代码的测试覆盖"
"这个代码符合项目规范吗?"

For Team Standards

"生成一个代码审查检查清单"
"我们团队的代码审查标准是什么?"
"前端代码审查有什么特殊要求?"

Output Format

For each review, output:

## Code Review: [PR/Change Title]

### Summary
- Files changed: X
- Lines added/removed: +X/-X
- Risk level: [Low/Medium/High]

### Findings

#### 🔴 Blocking Issues
- [Issue description] - [File:Line] - [Suggestion]

#### 🟡 Suggestions
- [Suggestion] - [File:Line]

#### 🟢 Good Practices Noted
- [Positive observation]

### Checklist Status
- [x] Correctness
- [x] Style
- [ ] Security (needs work)
- [x] Performance

### Recommendation
[Approve / Request Changes / Discuss]

### Action Items
- [ ] Item 1
- [ ] Item 2

Integration with Development Workflow

This skill integrates with:

  • github — For reviewing PRs directly
  • coding-agent — For automated code quality checks
  • opencli — For running linters and formatters

Limitations

  • Cannot execute code to verify correctness
  • Cannot know full system context
  • Best practices may vary by project
  • Language-specific items may be incomplete for niche languages

Acceptance Criteria

  1. ✓ Provides comprehensive checklist coverage
  2. ✓ Can customize for different languages/frameworks
  3. ✓ Identifies common issues efficiently
  4. ✓ Helps categorize issue severity
  5. ✓ Provides actionable feedback
  6. ✓ Saves time in review process
  7. ✓ Helps developers learn and improve
安全使用建议
This skill appears to be a straightforward checklist/guidance tool implemented as a small Python handler and an instruction document. It asks for no credentials and has no network or file I/O, so it does not present obvious exfiltration or privilege concerns. If you plan to integrate it with GitHub or CI tools, confirm how those integrations are implemented (they are only mentioned in SKILL.md and no API usage is present) and avoid supplying credentials unless a separate, trusted integration module explicitly requires them.
功能分析
Type: OpenClaw Skill Name: code-review-checklist Version: 1.0.0 The code-review-checklist skill is a purely informational tool designed to provide systematic checklists and workflows for code reviews. The handler.py script uses basic keyword detection to return predefined markdown content, and the SKILL.md provides clear, non-malicious instructions for the AI agent. There are no network calls, file system operations, or suspicious data handling behaviors present in the code.
能力评估
Purpose & Capability
Name, description, SKILL.md, and handler.py are aligned: the skill provides checklists and guidance for code review across languages and workflows. There are no unexpected environment variables, binaries, or install steps requested that would be inconsistent with a checklist tool.
Instruction Scope
SKILL.md and handler.py confine behavior to producing checklists and review guidance. The SKILL.md mentions integration with 'github', 'coding-agent', and 'opencli' but does not include instructions that would access GitHub APIs or require credentials; this is a documentation/usage note rather than active behavior. No instructions ask the agent to read arbitrary files, env vars, or transmit data externally.
Install Mechanism
No install spec is provided (instruction-only plus a small handler script). Nothing is downloaded or installed, and no archives or third-party package pulls are present.
Credentials
The skill requires no environment variables, credentials, or config paths. There are no requests for secrets or unrelated credentials, so requested access is proportional to the stated purpose.
Persistence & Privilege
Flags show default invocation (always: false) and no special persistence. The skill does not modify system or other-skill configurations and does not request elevated privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install code-review-checklist
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /code-review-checklist 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of code-review-checklist skill. - Provides a systematic, multi-category code review checklist covering correctness, style, performance, security, error handling, testing, documentation, and architecture. - Offers reviewer and developer guidance, including review workflow, red flag identification, and best practices. - Includes language-specific considerations for JavaScript/TypeScript, Python, Java, and Go. - Defines a standard review output format and example prompts for various team and individual scenarios. - Designed for integration with github, coding-agent, and opencli.
元数据
Slug code-review-checklist
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Code Review Checklist 是什么?

代码审查清单 - A comprehensive code review checklist and guidance tool. Use when user asks about 代码审查、代码检查、PR review、代码质量, or wants to conduct or prepare for a cod... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 109 次。

如何安装 Code Review Checklist?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install code-review-checklist」即可一键安装,无需额外配置。

Code Review Checklist 是免费的吗?

是的,Code Review Checklist 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Code Review Checklist 支持哪些平台?

Code Review Checklist 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Code Review Checklist?

由 haidong(@harrylabsj)开发并维护,当前版本 v1.0.0。

💬 留言讨论