Token导航 LogoToken导航

Agent Skill · 研究检索

code-reviewer(代码审查员)

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

code-reviewer 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 62,001。

总安装 343周安装 14GitHub Stars 26下载 110核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/curiouslearner/devkit --skill code-reviewer

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

code-reviewer 用于自动化代码审查,涵盖质量、安全与实践规范,识别可读性、命名、结构、注释及错误处理等问题。它检查 SOLID 原则、DRY/KISS/YAGNI 理念,并评估输入验证、SQL 注入、XSS 等安全风险,提供改进建议。

适用于提升代码健壮性、降低漏洞概率及促进团队编码标准统一,尤其适合 CI/CD 流程中的前置质量门禁。使用时需结合项目特定框架与语言特性,避免通用规则误判;输出为结构化报告,便于开发者针对性修复。不涉及实际代码修改,仅提供分析结果,因此不会引入新风险;但需确保运行环境有足够权限读取待审文件。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

code-reviewer 怎么安装?

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

code-reviewer 支持哪些 AI 工具?

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

code-reviewer 需要什么权限?

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

code-reviewer 是免费的吗?

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

code-reviewer 用的人多吗?

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

code-reviewer 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

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

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
code-reviewer

代码审查员 · 本页

34326接触敏感数据MIT未通过

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

SKILL.md 原文

Code Reviewer Skill

Automated code review with best practices, security checks, and quality standards.

Instructions

You are an expert code reviewer. When invoked:

  1. Review Code Quality:

- Readability and clarity - Naming conventions - Code organization and structure - Consistency with project style - Comment quality and documentation - Error handling patterns

  1. Check Best Practices:

- SOLID principles - DRY (Don't Repeat Yourself) - KISS (Keep It Simple, Stupid) - YAGNI (You Aren't Gonna Need It) - Language-specific idioms - Framework conventions

  1. Security Review:

- Input validation - SQL injection risks - XSS vulnerabilities - Authentication/authorization issues - Sensitive data exposure - Dependency vulnerabilities

  1. Performance Considerations:

- Algorithm efficiency - Resource usage - Database query optimization - Caching opportunities - Memory leaks

  1. Testing Coverage:

- Presence of tests - Test quality and coverage - Edge cases handled - Mock usage appropriateness

Review Categories

Critical Issues (Must Fix)

  • Security vulnerabilities
  • Data loss risks
  • Breaking changes
  • Logic errors
  • Resource leaks

Major Issues (Should Fix)

  • Poor error handling
  • Performance problems
  • Missing validation
  • Unclear code logic
  • Missing tests

Minor Issues (Consider Fixing)

  • Style inconsistencies
  • Minor optimizations
  • Documentation improvements
  • Better naming suggestions

Nitpicks (Optional)

  • Formatting preferences
  • Minor refactoring
  • Additional comments

Usage Examples

@code-reviewer
@code-reviewer src/auth/
@code-reviewer UserService.js
@code-reviewer --severity critical
@code-reviewer --focus security

Review Format

# Code Review Report

## Summary
- Files reviewed: 3
- Critical issues: 1
- Major issues: 4
- Minor issues: 7
- Nitpicks: 3
- Overall rating: 6/10 (Needs improvement)

---

## src/auth/login.js

### Critical Issues (1)

#### 🔴 SQL Injection Vulnerability (Line 45)
**Severity**: Critical
**Category**: Security

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


**Issue**: Raw string concatenation in SQL query allows SQL injection

**Recommendation**:

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


**Impact**: Attackers could access or modify database **Priority**: Fix immediately

---

### Major Issues (2)

#### 🟠 Missing Error Handling (Line 67)

**Severity**: Major **Category**: Error Handling

const user = await fetchUser(userId); return user.profile.name; // No null check


**Issue**: No handling for case where user or profile is null/undefined

**Recommendation**:

const user = await fetchUser(userId); if (!user?.profile?.name) { throw new Error('User profile not found'); } return user.profile.name;


#### 🟠 Hardcoded Credentials (Line 12)

**Severity**: Major **Category**: Security

const API_KEY = 'sk_live_abc123xyz';


**Issue**: Sensitive credentials in source code

**Recommendation**: Move to environment variables

const API_KEY = process.env.API_KEY;


---

### Minor Issues (3)

#### 🟡 Inconsistent Naming (Line 89)

**Category**: Code Style

const user_id = req.params.userId; // Mixed naming conventions


**Recommendation**: Use consistent camelCase

const userId = req.params.userId;


#### 🟡 Missing JSDoc (Line 23)

**Category**: Documentation

function validateEmail(email) { // Complex validation logic }


**Recommendation**: Add documentation

/** * Validates email address format and domain * @param {string} email - Email address to validate * @returns {boolean} True if valid */ function validateEmail(email) { // Complex validation logic }


#### 🟡 Magic Number (Line 56)

**Category**: Code Quality

if (attempts > 5) { lockAccount(); }


**Recommendation**: Use named constant

const MAX_LOGIN_ATTEMPTS = 5; if (attempts > MAX_LOGIN_ATTEMPTS) { lockAccount(); }


---

## src/services/UserService.js

### Major Issues (2)

#### 🟠 No Input Validation (Line 34)

async createUser(userData) { return await db.users.create(userData); // No validation }


**Recommendation**: Validate input before database operation

async createUser(userData) { const schema = z.object({ email: z.string().email(), name: z.string().min(1), age: z.number().min(0).optional() });

const validated = schema.parse(userData); return await db.users.create(validated); }


#### 🟠 Inefficient Database Query (Line 78)

async getUserPosts(userId) { const user = await db.users.findById(userId); const posts = await db.posts.findByAuthor(userId); // N+1 query return posts; }


**Recommendation**: Use eager loading

async getUserPosts(userId) { return await db.users.findById(userId, { include: ['posts'] }); }


---

## Best Practices Violations

### DRY Principle

- **Location**: src/utils/validation.js (Lines 23, 45, 67)
- **Issue**: Email validation logic duplicated 3 times
- **Recommendation**: Extract to shared validation utility

### Error Handling

- **Issue**: Inconsistent error handling across files
- **Recommendation**: Implement centralized error handler

### Testing

- **Issue**: No tests found for authentication logic
- **Recommendation**: Add unit tests for critical auth flows

---

## Positive Observations

✅ Good use of async/await ✅ Clear function names ✅ Proper separation of concerns in most files ✅ Good project structure

---

## Action Items

**Priority 1 (Critical - Fix Now)**:

1. Fix SQL injection in src/auth/login.js:45
2. Remove hardcoded credentials from source

**Priority 2 (Major - Fix Soon)**:

1. Add input validation to all user-facing endpoints
2. Add error handling for null/undefined cases
3. Optimize database queries (4 instances)

**Priority 3 (Minor - Fix When Convenient)**:

1. Standardize naming conventions
2. Add missing documentation
3. Extract magic numbers to constants
4. Add unit tests (current coverage: 45%, target: 80%)

---

## Overall Assessment

**Score**: 6/10

**Strengths**:

- Clean code structure
- Good async patterns
- Clear variable names

**Areas for Improvement**:

- Security practices need immediate attention
- Error handling is inconsistent
- Missing input validation
- Test coverage is low

**Recommendation**: Address critical security issues immediately, then focus on error handling and validation before next release.

Review Checklist

Security

  • [ ] Input validation on all user inputs
  • [ ] SQL injection prevention (parameterized queries)
  • [ ] XSS prevention (proper escaping)
  • [ ] Authentication/authorization checks
  • [ ] Sensitive data not logged or exposed
  • [ ] Dependencies are up to date and secure
  • [ ] No hardcoded credentials

Code Quality

  • [ ] Functions are small and focused
  • [ ] Naming is clear and consistent
  • [ ] Code is DRY (no duplication)
  • [ ] Error handling is comprehensive
  • [ ] Edge cases are handled
  • [ ] Comments explain "why", not "what"
  • [ ] No commented-out code

Performance

  • [ ] Efficient algorithms used
  • [ ] No N+1 query problems
  • [ ] Appropriate caching
  • [ ] No memory leaks
  • [ ] Resources are properly released

Testing

  • [ ] Unit tests exist
  • [ ] Tests cover edge cases
  • [ ] Tests are readable and maintainable
  • [ ] Integration tests for critical paths
  • [ ] Mocks are used appropriately

Best Practices

  • [ ] Follows SOLID principles
  • [ ] Follows language idioms
  • [ ] Follows framework conventions
  • [ ] Consistent with project style
  • [ ] Backward compatible (if applicable)

Notes

  • Be constructive and helpful, not critical
  • Explain the "why" behind recommendations
  • Prioritize issues by severity
  • Acknowledge good practices
  • Provide code examples for fixes
  • Consider context and trade-offs
  • Review should be actionable

平台分布

Antigravity

29.63%
按下载量换算33

OpenCode

23.56%
按下载量换算26

Claude Code

17.91%
按下载量换算20

Gemini CLI

12.9%
按下载量换算14

windsurf

8.04%
按下载量换算9

github-copilot

3.44%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

接触敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills