Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计异常

code-review-pro代码审查专业版

Agent Skill

code-review-pro 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

47,873

周安装

2,015

GitHub Stars

106

下载量

16,351
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/onewave-ai/claude-skills --skill code-review-pro

简介

全面的代码分析,涵盖安全漏洞、性能瓶颈、可维护性问题和最佳实践违规。

  • 扫描关键安全漏洞,包括 SQL 注入、XSS、身份验证漏洞、不安全的反序列化和凭证暴露
  • 识别 N+1 查询、低效算法、内存泄漏和不必要的重新渲染等性能问题
  • 评估重复、函数长度、圈复杂度、命名清晰度和错误处理方面的代码质量
  • 提供可操作的修复,包括之前/之后的代码示例、严重性优先级以及更改为何重要的解释
  • 涵盖特定于语言的习惯用法、框架约定、SOLID 原则、设计模式和测试方法

SKILL.md

Code Review Pro

Deep code analysis covering security, performance, maintainability, and best practices.

When to Use This Skill

Activate when the user:

  • Asks for a code review
  • Wants security vulnerability scanning
  • Needs performance analysis
  • Asks to "review this code" or "audit this code"
  • Mentions finding bugs or improvements
  • Wants refactoring suggestions
  • Requests best practice validation

Instructions

  1. Security Analysis (Critical Priority)

- SQL injection vulnerabilities - XSS (cross-site scripting) risks - Authentication/authorization issues - Secrets or credentials in code - Unsafe deserialization - Path traversal vulnerabilities - CSRF protection - Input validation gaps - Insecure cryptography - Dependency vulnerabilities

  1. Performance Analysis

- N+1 query problems - Inefficient algorithms (check Big O complexity) - Memory leaks - Unnecessary re-renders (React/Vue) - Missing indexes (database queries) - Blocking operations - Resource cleanup (file handles, connections) - Caching opportunities - Excessive network calls - Large bundle sizes

  1. Code Quality & Maintainability

- Code duplication (DRY violations) - Function/method length (should be <50 lines) - Cyclomatic complexity - Unclear naming - Missing error handling - Inconsistent style - Missing documentation - Hard-coded values that should be constants - God classes/functions - Tight coupling

  1. Best Practices

- Language-specific idioms - Framework conventions - SOLID principles - Design patterns usage - Testing approach - Logging and monitoring - Accessibility (for UI code) - Type safety - Null/undefined handling

  1. Bugs and Edge Cases

- Logic errors - Off-by-one errors - Race conditions - Null pointer exceptions - Unhandled edge cases - Timezone issues - Encoding problems - Floating point precision

  1. Provide Actionable Fixes

- Show specific code changes - Explain why change is needed - Include before/after examples - Prioritize by severity

Output Format

# Code Review Report

## 🚨 Critical Issues (Fix Immediately)
### 1. SQL Injection Vulnerability (line X)
**Severity**: Critical
**Issue**: User input directly concatenated into SQL query
**Impact**: Database compromise, data theft

**Current Code:**

const query = SELECT * FROM users WHERE email = '${userEmail}';


**Fixed Code:**

const query = 'SELECT * FROM users WHERE email = ?'; db.query(query, [userEmail]);


**Explanation**: Always use parameterized queries to prevent SQL injection.

## ⚠️ High Priority Issues

### 2. Performance: N+1 Query Problem (line Y)

[Details...]

## 💡 Medium Priority Issues

### 3. Code Quality: Function Too Long (line Z)

[Details...]

## ✅ Low Priority / Nice to Have

### 4. Consider Using Const Instead of Let

[Details...]

## 📊 Summary

- **Total Issues**: 12
  - Critical: 2
  - High: 4
  - Medium: 4
  - Low: 2

## 🎯 Quick Wins

Changes with high impact and low effort:

1. [Fix 1]
2. [Fix 2]

## 🏆 Strengths

- Good error handling in X
- Clear naming conventions
- Well-structured modules

## 🔄 Refactoring Opportunities

1. **Extract Method**: Lines X-Y could be extracted into `calculateDiscount()`
2. **Remove Duplication**: [specific code blocks]

## 📚 Resources

- [OWASP SQL Injection Guide](https://...)
- [Performance Best Practices](https://...)

Examples

User: "Review this authentication code" Response: Analyze auth logic → Identify security issues (weak password hashing, no rate limiting) → Check token handling → Note missing CSRF protection → Provide specific fixes with code examples → Prioritize by severity

User: "Can you find performance issues in this React component?" Response: Analyze component → Identify unnecessary re-renders → Find missing useMemo/useCallback → Note large state objects → Check for expensive operations in render → Provide optimized version with explanations

User: "Review this API endpoint" Response: Check input validation → Analyze error handling → Test for SQL injection → Review authentication → Check rate limiting → Examine response structure → Suggest improvements with code samples

Best Practices

  • Always prioritize security issues first
  • Provide specific line numbers for issues
  • Include before/after code examples
  • Explain *why* something is a problem
  • Consider the language/framework context
  • Don't just criticize—acknowledge good code too
  • Suggest gradual improvements for large refactors
  • Link to documentation for recommendations
  • Consider project constraints (legacy code, deadlines)
  • Balance perfectionism with pragmatism
  • Focus on impactful changes
  • Group similar issues together
  • Make recommendations actionable

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

32.19%
按下载量换算5,263

OpenCode

22.24%
按下载量换算3,636

Codex

17.29%
按下载量换算2,827

Gemini CLI

11.63%
按下载量换算1,902

Antigravity

8.74%
按下载量换算1,429

windsurf

3.86%
按下载量换算631

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills