smithery/xxiii8322766509

code-review

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

Installation

$ npx skills add smithery/xxiii8322766509 --skill code-review

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/xxiii8322766509.

npx skills add smithery/xxiii8322766509

Browse all from smithery/xxiii8322766509

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,701 B
  • docs SUMMARY.md 199 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

代码审查技能

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

审查维度

1. 代码质量

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

2. 潜在问题

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

3. 最佳实践

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

审查流程

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

输出格式

## 代码审查报告

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

### 发现的问题

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

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

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

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

### 总体评分: X/10

使用示例

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