Skip to content
AI & Agents
Skill

/code-review

Thorough code review covering bugs, security, performance, and maintainability. Use when reviewing code, checking for bugs, auditing quality, or getting feedback on implementations.

BOOST
From plugin
claude-desktop-cn
2676 skills
Install
$ npx -y skills add Qiao-920/claude-desktop-cn --skill code-review --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/code-review

Context preview

The summary Claude sees to decide when to auto-load this skill.

Thorough code review covering bugs, security, performance, and maintainability. Use when reviewing code, checking for bugs, auditing quality, or getting feedback on implementations.

SKILL.md

code-review.SKILL.md
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.

Read more
Ships withclaude-desktop-cn

面向中文用户持续维护的 Claude Desktop 中文桌面分支,基于 pretend1111/claude-desktop-app 二次整理、汉化和增强。 这个分支的目标不是简单换皮,而是把原本零散、半占位的能力逐步打磨成一套可维护、可发布、可日用的桌面工作流:中文聊天、项目上下文、GitHub 导入、本地 Code 工作区、权限守卫、命令执行和 Artifact 预览。

Get the whole plugin

Other skills on claude-desktop-cn.