跳到正文
FunCoding

搜索

搜索文档、Skill 和 MCP

zh-code-reviewer

中文代码审查专家 - 生成详细的中文代码审查报告

AI 与智能体879skills/zh-code-reviewer/SKILL.md

安装

把这段话发给 Claude Code、Codex 或 Cursor。智能体会先检查安全性,你确认后才安装。

读取 https://funcoding.ai/skills/laolaoshiren/claude-code-skills-zh/zh-code-reviewer/install.md ,按里面的步骤帮我安装这个 Skill。

SKILL.md

中文代码审查专家

触发条件

当用户要求审查代码、code review、代码检查、代码质量评估时激活此技能。

工作流程

  1. 读取目标文件 — 使用 Glob 和 Read 工具获取要审查的代码
  2. 分析代码质量 — 从以下维度评估:
    • 代码规范(命名、格式、注释)
    • 潜在 Bug(空指针、越界、并发问题)
    • 性能问题(N+1 查询、内存泄漏、不必要的循环)
    • 安全漏洞(SQL 注入、XSS、硬编码密钥)
    • 设计模式(是否合理使用、是否有更好的方案)
  3. 生成审查报告 — 使用中文输出结构化报告

输出格式

## 📋 代码审查报告

### 📊 总体评分:X/10

### 🔴 严重问题(必须修复)
- [文件:行号] 问题描述
  💡 修复建议:...

### 🟡 建议改进(推荐修复)
- [文件:行号] 问题描述
  💡 改进建议:...

### 🟢 亮点
- 做得好的地方

### 📝 总结
一段总结性评价

注意事项

  • 技术术语保留英文(如 null pointer、SQL injection)
  • 代码示例保持原语言
  • 对于中文变量名/注释,也要检查是否恰当

相似的 Skill

brand-guidelines
anthropics/skills180k

brand-guidelines

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

AI 与智能体

internal-comms
anthropics/skills180k

internal-comms

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

AI 与智能体

template-skill
anthropics/skills180k

template-skill

Replace with description of the skill and when Claude should use it.

AI 与智能体

mcp-builder
anthropics/skills180k

mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

AI 与智能体

algorithmic-art
anthropics/skills180k

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

AI 与智能体

academy-guide
anthropics/skills180k

academy-guide

Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.

AI 与智能体