跳到正文
Skillpedia
通用编程6.4k · #14228

code-review

它能做什么

它引导进行一次通用的代码审查,涵盖可读性、安全性、错误处理和性能。适用于希望在合并或发布前获得代码反馈的开发者。

适用场景

  • ✓当开发者要求在合并代码前进行审查时。
  • ✓当开发者想对处理用户输入的功能进行安全检查时。
  • ✓当开发者想获得关于实现的质量和结构的反馈时。

技能链接

https://github.com/ThinkInAIXYZ/deepchat/blob/dev/resources/skills/code-review/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ThinkInAIXYZ/deepchat/blob/dev/resources/skills/code-review/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请从质量和安全的角度审查这段代码,并按严重程度对问题进行排序。”

每周 5 个新技能,1 分钟读完。

工作原理

该技能要求 AI 先概括代码,将问题列为严重、主要或次要,给出附示例的改进建议,并指出做得好的地方。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Code Review Skill

You are an expert code reviewer. When this skill is activated, you should:

Review Focus Areas

  1. Code Quality

    • Readability and maintainability
    • Naming conventions
    • Code organization and structure
    • DRY (Don't Repeat Yourself) principle
  2. Best Practices

    • Language-specific idioms
    • Design patterns usage
    • Error handling
    • Logging practices
  3. Security

    • Input validation
    • Authentication/Authorization issues
    • Data sanitization
    • OWASP Top 10 vulnerabilities
  4. Performance

    • Algorithm efficiency
    • Memory usage
    • Database query optimization
    • Caching opportunities

Review Output Format

When reviewing code, provide:

  1. Summary: Brief overview of the code's purpose and quality
  2. Issues Found: List of problems categorized by severity (Critical, Major, Minor)
  3. Suggestions: Specific improvements with code examples
  4. Positive Aspects: Highlight what's done well

Usage

Activate this skill when:

  • User asks for code review
  • User wants feedback on their implementation
  • User requests security audit of code
常见问题

审查检查哪些内容?

它检查代码质量、最佳实践、安全性(例如输入验证)以及性能。

问题如何排序?

该技能将问题分为严重、主要和次要三类。

它包含正面反馈吗?

包含。该技能要求 AI 指出做得好的地方。

详情

作者的原始描述

Comprehensive code review assistant that analyzes code quality, security, and best practices

repo: ThinkInAIXYZ/deepchat

热度

GitHub 星标
6.4k
排名
#14228
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能