Token导航 LogoToken导航

Agent Skill · 开发

code-reviewer(代码审查员)

code-reviewer 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

code-reviewer 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 20,764。

总安装 212周安装 9GitHub Stars 9下载 74核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/autumnsgrove/claudeskills --skill code-reviewer

这个 Skill 是做什么的

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

code-reviewer 系统化分析代码安全问题、质量指标与性能瓶颈,提供自动化与专家结合审查流程。适用于 Pull Request 审查、安全审计与技术债务识别。覆盖 OWASP Top 10、圈复杂度、重复代码与依赖漏洞检测。使用前需指定代码路径与语言类型,避免扫描敏感配置文件。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/code-reviewer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/autumnsgrove/claudeskills --skill code-reviewe…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

code-reviewer 怎么安装?

在终端执行 npx skills add https://github.com/autumnsgrove/claudeskills --skill code-reviewer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

code-reviewer 支持哪些 AI 工具?

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

code-reviewer 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

code-reviewer 是免费的吗?

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

code-reviewer 用的人多吗?

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

code-reviewer 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 需要厂商级技术支持和 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-reviewer

代码审查员 · 本页

2129需要联网MIT通过

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

SKILL.md 原文

Code Reviewer

Comprehensive automated code review skill that systematically analyzes code for security issues, quality metrics, performance problems, and adherence to best practices.

Purpose

This skill provides structured code review workflows that combine automated analysis tools with expert guidance to identify issues across security, quality, performance, and maintainability dimensions.

When to Use This Skill

Use this skill when:

  • Reviewing pull requests or code submissions
  • Conducting security audits of existing codebases
  • Evaluating code quality before deployment
  • Identifying technical debt and refactoring opportunities
  • Establishing code review standards for teams
  • Learning what to look for in code reviews

Core Review Workflow

Phase 1: Initial Analysis

1.1 Understand the Context
  • Read the PR description or change summary
  • Identify the type of change (feature, bug fix, refactor, security patch)
  • Determine the scope and affected components
  • Note any related issues or tickets
1.2 Code Overview
  • Review file changes and additions/deletions
  • Identify changed modules and their relationships
  • Look for unexpected changes or scope creep
  • Check for breaking changes

Phase 2: Security Review

2.1 Common Vulnerability Patterns

Check for these critical security issues:

Input Validation

  • Unvalidated user input reaching sensitive operations
  • SQL injection vulnerabilities
  • Command injection possibilities
  • Path traversal attacks
  • XML/XXE injection points

Authentication & Authorization

  • Missing authentication checks
  • Broken access control
  • Insecure password storage
  • Weak session management
  • Missing CSRF protection

Data Exposure

  • Hardcoded credentials or API keys
  • Sensitive data in logs
  • Inadequate encryption
  • Information disclosure in error messages
  • Exposed configuration files

Code Injection

  • Unsafe deserialization
  • Template injection
  • Code evaluation from user input
  • Unsafe reflection usage
2.2 Automated Security Scanning

Use security analysis tools:

Python:

# Run bandit for security issues
python scripts/review_helper.py --security-scan path/to/code

# Check dependencies for known vulnerabilities
safety check
pip-audit

JavaScript/Node.js:

# Check for vulnerabilities
npm audit
yarn audit

# Use ESLint security plugins
eslint --plugin security path/to/code

Go:

# Security scanning
gosec ./...

See references/security_patterns.md for detailed vulnerability patterns.

Phase 3: Code Quality Analysis

3.1 Code Structure

Modularity & Organization

  • Single Responsibility Principle adherence
  • Proper separation of concerns
  • Appropriate abstraction levels
  • Clear module boundaries
  • Logical file organization

Complexity Metrics

  • Cyclomatic complexity (target: < 10 per function)
  • Function length (target: < 50 lines)
  • Class size (target: < 300 lines)
  • Nesting depth (target: < 4 levels)
  • Parameter count (target: < 5 parameters)

Code Smells

  • Duplicated code
  • Long methods or god classes
  • Feature envy (method uses more of another class)
  • Data clumps (repeated parameter groups)
  • Primitive obsession
  • Inappropriate intimacy between classes
3.2 Naming and Readability

Naming Conventions

  • Descriptive, intention-revealing names
  • Consistent naming patterns
  • Appropriate length (not too short, not too long)
  • Avoid abbreviations unless standard
  • Boolean names start with is/has/should/can

Code Clarity

  • Clear control flow
  • Minimal cognitive load
  • Self-documenting code
  • Appropriate comments (why, not what)
  • Consistent formatting
3.3 Error Handling

Robustness

  • Proper exception handling
  • No bare except/catch blocks
  • Appropriate error messages
  • Resource cleanup (file handles, connections)
  • Graceful degradation

Edge Cases

  • Null/None checks
  • Empty collection handling
  • Boundary conditions
  • Concurrent access issues
  • Race condition prevention

Phase 4: Performance Review

4.1 Common Performance Issues

Algorithm Efficiency

  • O(n²) or worse algorithms when better exists
  • Unnecessary loops or iterations
  • Inefficient data structure usage
  • Missing memoization/caching opportunities

Resource Management

  • Memory leaks
  • Unclosed file handles or connections
  • Excessive memory allocation
  • Thread/process pool exhaustion

Database Operations

  • N+1 query problems
  • Missing indexes
  • SELECT * usage
  • Inefficient JOIN operations
  • Missing query optimization

Network Calls

  • Synchronous blocking calls
  • Missing timeout configurations
  • No retry logic
  • Excessive API calls
  • Missing connection pooling

See references/performance_guide.md for optimization strategies.

Phase 5: Testing Assessment

5.1 Test Coverage

Coverage Metrics

  • Line coverage (target: > 80%)
  • Branch coverage (target: > 75%)
  • Function coverage (target: > 90%)
  • Critical path coverage (target: 100%)

Test Quality

  • Tests actually assert meaningful behavior
  • Tests are independent and isolated
  • Test names clearly describe what they test
  • Proper use of mocks and stubs
  • No test interdependencies
5.2 Test Completeness

Required Test Types

  • Unit tests for business logic
  • Integration tests for component interaction
  • Edge case and boundary tests
  • Error condition tests
  • Security-related tests

Missing Tests

  • Untested error paths
  • Missing negative test cases
  • Uncovered edge conditions
  • No regression tests for bug fixes

Phase 6: Documentation Review

6.1 Code Documentation

Function/Method Documentation

  • Purpose and behavior description
  • Parameter descriptions with types
  • Return value documentation
  • Exception documentation
  • Usage examples for complex APIs

Module/Class Documentation

  • High-level purpose
  • Architecture overview
  • Design decisions
  • Dependencies
  • Public API contracts
6.2 External Documentation

README Updates

  • Installation instructions
  • Configuration changes
  • New feature documentation
  • Breaking change notices
  • Migration guides

API Documentation

  • Endpoint descriptions
  • Request/response formats
  • Authentication requirements
  • Error responses
  • Rate limiting

Review Checklist

Use this checklist to ensure comprehensive review:

Security

  • No hardcoded credentials or secrets
  • Input validation on all user inputs
  • Proper authentication and authorization
  • No SQL/command injection vulnerabilities
  • Secure password handling
  • HTTPS/TLS for sensitive data
  • Security scanning tools executed
  • Dependencies checked for vulnerabilities

Code Quality

  • Functions follow Single Responsibility Principle
  • Cyclomatic complexity under 10
  • No code duplication
  • Consistent naming conventions
  • Proper error handling
  • No TODO/FIXME without tickets
  • Code is self-documenting

Performance

  • No obvious performance bottlenecks
  • Efficient algorithms and data structures
  • Proper resource cleanup
  • Database queries optimized
  • No N+1 query problems
  • Appropriate caching strategies

Testing

  • Tests included for new functionality
  • Edge cases covered
  • Test coverage meets standards
  • Tests are independent and repeatable
  • No flaky tests introduced

Documentation

  • Public APIs documented
  • Complex logic explained
  • README updated if needed
  • Breaking changes documented
  • Migration guide provided if needed

Using the Review Helper Script

The scripts/review_helper.py provides automated analysis:

# Full code review analysis
python scripts/review_helper.py --file path/to/file.py --report full

# Security-focused scan
python scripts/review_helper.py --security-scan path/to/directory

# Complexity analysis
python scripts/review_helper.py --complexity path/to/file.py

# Generate review report
python scripts/review_helper.py --file path/to/file.py --output report.md

Best Practices

For Reviewers

Be Constructive

  • Focus on improvement, not criticism
  • Explain the "why" behind suggestions
  • Offer alternatives or solutions
  • Recognize good code and patterns

Be Thorough but Efficient

  • Use automated tools for mechanical checks
  • Focus human review on logic and design
  • Don't bikeshed on style issues (use linters)
  • Prioritize security and correctness over style

Be Consistent

  • Apply the same standards to all code
  • Reference team coding standards
  • Create reusable review templates
  • Document common feedback patterns

For Code Authors

Prepare for Review

  • Self-review before requesting review
  • Run linters and formatters
  • Execute test suite
  • Add context in PR description
  • Keep changes focused and small

Respond to Feedback

  • Address all comments
  • Ask questions if unclear
  • Don't take feedback personally
  • Mark conversations as resolved

Common Review Feedback Patterns

Security Issues

❌ Security: Hardcoded API key found
→ Move to environment variable or secrets management
→ See: references/security_patterns.md#secrets-management

❌ Security: SQL injection vulnerability
→ Use parameterized queries instead of string concatenation
→ Example: cursor.execute("SELECT * FROM users WHERE id = %s", (user_id,))

Quality Issues

❌ Quality: Function complexity too high (complexity: 15)
→ Break down into smaller, focused functions
→ Target: < 10 cyclomatic complexity

❌ Quality: Duplicated code across 3 locations
→ Extract common logic into shared function
→ DRY principle violation

Performance Issues

❌ Performance: N+1 query problem detected
→ Use JOIN or eager loading instead
→ See: references/performance_guide.md#database-optimization

❌ Performance: Inefficient O(n²) algorithm
→ Consider using set/hash for O(1) lookup
→ Current: nested loops, Suggested: set intersection

Additional Resources

  • Security Patterns: references/security_patterns.md - Common vulnerabilities and fixes
  • Performance Guide: references/performance_guide.md - Optimization strategies
  • Review Checklist: examples/review_checklist.md - Comprehensive review template
  • Helper Scripts: scripts/review_helper.py - Automated analysis tools

Language-Specific Considerations

Python

  • Check for proper use of context managers (with statements)
  • Verify list comprehensions aren't overly complex
  • Look for opportunities to use generators
  • Check for mutable default arguments

JavaScript/TypeScript

  • Verify proper async/await usage
  • Check for callback hell
  • Look for memory leaks in event listeners
  • Verify proper typing in TypeScript

Java

  • Check for proper exception handling
  • Verify resource cleanup (try-with-resources)
  • Look for proper use of immutability
  • Check for thread safety issues

Go

  • Check for proper error handling (not ignoring errors)
  • Verify goroutine leak prevention
  • Look for race conditions
  • Check for proper context usage

Conclusion

Effective code review combines automated tooling with human expertise. Use automated tools for mechanical checks (security, style, complexity) and focus human review on logic, design, and maintainability. Always be constructive, thorough, and consistent in your reviews.

平台分布

windsurf

24.93%
按下载量换算18

OpenCode

23.19%
按下载量换算17

Codex

17.84%
按下载量换算13

Claude Code

12.67%
按下载量换算9

Antigravity

8.36%
按下载量换算6

Gemini CLI

3.65%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills