MCPInstall

code-review

代码审查和质量分析技能。用于审查代码、发现潜在问题、提供改进建议。当用户请求代码审查、代码质量分析或最佳实践建议时使用。

Installs
60
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/rtgs2017/nagaagent --skill code-review
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads code-review automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

代码审查技能

本技能提供专业的代码审查能力,帮助发现潜在问题并提供改进建议。

审查维度

1. 代码质量

  • 可读性: 命名规范、注释完整性、代码结构
  • 可维护性: 模块化程度、耦合度、复杂度
  • 一致性: 代码风格、设计模式使用

2. 潜在问题

  • Bug 风险: 空指针、边界条件、异常处理
  • 安全漏洞: 注入攻击、敏感数据泄露、权限问题
  • 性能问题: 算法复杂度、资源泄漏、并发问题

3. 最佳实践

  • 设计原则: SOLID、DRY、KISS
  • 语言特性: 现代语法、标准库使用
  • 测试覆盖: 单元测试、边界测试

审查流程

  1. 概览分析: 理解代码目的和结构
  2. 逐行审查: 检查每个函数和模块
  3. 问题分类: 按严重程度分为 Critical/Major/Minor
  4. 建议生成: 提供具体的改进方案

输出格式

## 代码审查报告

### 概述
[代码的整体评价]

### 发现的问题

#### Critical(严重)
- [ ] 问题描述 (文件:行号)
  - 原因分析
  - 建议修复

#### Major(重要)
- [ ] ...

#### Minor(次要)
- [ ] ...

### 改进建议
1. 建议一
2. 建议二

### 总体评分: X/10

使用示例

用户: "帮我审查这段 Python 代码" → 加载此技能,按照上述流程进行代码审查

FAQ

What does the code-review skill do?

代码审查和质量分析技能。用于审查代码、发现潜在问题、提供改进建议。当用户请求代码审查、代码质量分析或最佳实践建议时使用。

How do I install code-review?

Run npx skills add https://github.com/rtgs2017/nagaagent --skill code-review in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/code-review/ (personal) or .claude/skills/code-review/ (project).

Which AI agents can use code-review?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is code-review safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains code-review?

It is published by rtgs2017 in rtgs2017/nagaagent. It has 60 recorded installs.

More from rtgs2017/nagaagent

View all →

file-manager

rtgs2017/nagaagent

文件管理技能。用于创建、移动、复制、删除文件和文件夹,整理目录结构。当用户需要管理文件、整理文件夹或批量处理文件时使用。

648 installs

web-search

rtgs2017/nagaagent

网络搜索和信息检索技能。用于搜索网页、查询实时信息、获取新闻资讯。当用户询问需要联网查询的问题、最新信息或实时数据时使用。

document-writer

rtgs2017/nagaagent

Open the skill to read its SKILL.md instructions.

Docs & Writing59 installs

openclaw-control

rtgs2017/nagaagent

Open the skill to read its SKILL.md instructions.

59 installs

system-info

rtgs2017/nagaagent

系统信息查询技能。用于获取电脑硬件信息、系统状态、进程列表、磁盘空间等。当用户询问电脑配置、系统状态或性能信息时使用。

55 installs

Popular code quality & workflow skills

View category →

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

handoff

mattpocock/skills

Compact the current conversation into a handoff document for another agent to pick up.

domain-modeling

mattpocock/skills

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

codebase-design

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

diagnosing-bugs

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.