code-review

GitHub

用于对代码进行深度审查,涵盖错误、安全、性能和可维护性。通过识别目标、阅读代码、多维度分析及按严重程度报告问题,提供修复建议或确认代码质量。

electron/skills/code-review/SKILL.md Qiao-920/claude-desktop-cn

Trigger Scenarios

用户请求代码审查 检查代码中的潜在Bug 审计代码质量与安全漏洞 获取实现反馈

Install

npx skills add Qiao-920/claude-desktop-cn --skill code-review -g -y
More Options

Non-standard path

npx skills add https://github.com/Qiao-920/claude-desktop-cn/tree/main/electron/skills/code-review -g -y

Use without installing

npx skills use Qiao-920/claude-desktop-cn@code-review

指定 Agent (Claude Code)

npx skills add Qiao-920/claude-desktop-cn --skill code-review -a claude-code -g -y

安装 repo 全部 skill

npx skills add Qiao-920/claude-desktop-cn --all -g -y

预览 repo 内 skill

npx skills add Qiao-920/claude-desktop-cn --list

SKILL.md

Frontmatter
{
    "name": "code-review",
    "description": "Thorough code review covering bugs, security, performance, and maintainability. Use when reviewing code, checking for bugs, auditing quality, or getting feedback on implementations."
}

Code Review: Thorough Analysis of Code

Review the provided code or recent changes with a focus on correctness, maintainability, and best practices.

Review Process

Step 1: Identify What to Review

  • If the user provided a file path or pasted code, review that
  • If no specific target, run git diff to find recent changes
  • If no git changes, ask the user what to review

Step 2: Read the Code

Use the Read tool to examine the full file(s). Understand the context — what does this code do? What's its role in the project?

Step 3: Analyze

Check for these categories of issues:

Bugs & Correctness

  • Logic errors, off-by-one errors, null/undefined handling
  • Missing edge cases, race conditions
  • Incorrect API usage or wrong assumptions
  • Type mismatches or unsafe casts

Security

  • SQL injection, XSS, command injection risks
  • Hardcoded secrets or credentials
  • Unsafe deserialization, path traversal
  • Missing input validation at system boundaries

Performance

  • Unnecessary loops or redundant computation
  • N+1 query patterns, missing pagination
  • Memory leaks (unclosed resources, growing collections)
  • Blocking operations in async contexts

Maintainability

  • Unclear naming, overly complex logic
  • Missing error handling for external calls
  • God functions/classes that do too many things
  • Dead code or unreachable branches

Step 4: Report

Present findings organized by severity:

  1. Critical — Bugs or security issues that must be fixed
  2. Important — Significant improvements for correctness or maintainability
  3. Suggestions — Nice-to-have improvements

For each finding: state the issue, explain WHY it's a problem, and show the fix. Skip categories with no findings.

If the code is clean, say so — don't invent issues.

Version History

  • f248671 Current 2026-07-24 11:45

Same Skill Collection

electron/skills/create-project/SKILL.md
electron/skills/doc-writer/SKILL.md
electron/skills/frontend-design/SKILL.md
electron/skills/skill-creator/SKILL.md
engine/src/skills/bundled/verify/SKILL.md

Metadata

Files
0
Version
f248671
Hash
20060bd4
Indexed
2026-07-24 11:45

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 17:19
浙ICP备14020137号-1 $Carte des visiteurs$