agentleFS
weiweimhyweiweimhy/agent-skills/code-review/SKILL.md

code-review

Skill0 starsChanged 5 months agoMITView on GitHub

Cross-language code review workflow focused on correctness, maintainability, security, performance, tests, and actionable findings. Use when asked to review code, inspect diffs, organize PR feedback, or assess implementation risk.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use starter, media-processing and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ww-w-aiSkill

    starter

    Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).

    Also in 4 projects that use this

  • mrgoonieSkill

    media-processing

    Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.

    Also in 5 projects that use this

  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 15 projects that use this

  • mrgoonieSkill

    aesthetic

    Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.

    Also in 4 projects that use this

  • AWSSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 32 projects that use this

  • AWSSkill

    resolving-merge-conflicts

    Use when you need to resolve an in-progress git merge/rebase conflict.

    Also in 48 projects that use this

  • +1 more from mrgoonie
  • +2 more from aws

The file

Files
SKILL.md

Skill: Code Review

本 Skill 提供通用的代码审查指导,旨在提升代码质量、共享知识并保持工程一致性。

🎯 触发条件

当以下情况发生时启用:

  • "帮我做一下代码审查 (Code Review)"
  • "看看这段代码改得怎么样?"
  • "/review" (workflow 触发)
  • "检查一下这段代码的逻辑"

👉 自动启用本 Skill

🎯 Purpose

通过建设性的反馈,确保代码逻辑正确、易于维护、安全且符合团队的最佳实践。

🧩 Capabilities

  • 审查哲学引导:推崇同理心、建设性反馈及以“问题”代替“命令”的沟通方式。
  • 通用 Checklist:
    • 正确性:是否解决了目标问题?是否处理了边界情况?
    • 可读性:代码是否易于理解?命名是否清晰?
    • 简洁性:是否存在过度设计或重复代码?
    • 测试:是否有足够的单元测试?测试是否涵盖了核心逻辑和错误路径?
    • 安全与性能:是否存在明显的安全漏洞或效率极低的实现?
  • 审查流程路由:作为审查的入口点,首先执行通用质量评估,随后识别语言并路由至专项 Skill(如 go-review)。
  • 流程规范:建议小步提交(200-400行)、优先自动化检查、明确审查意见的优先级(如 nitpick, blocker)。

🧠 Usage

🔄 Workflow

在使用本 Skill 时,应遵循以下执行顺序:

  1. 通用评估:使用本 Skill 的 Checklist 对逻辑、可读性、安全性进行初步扫描。
  2. 语言识别:根据输入内容识别编程语言。
  3. 专项深挖:
    • 如果是 Go:必须紧接着调用 go-review 进行深度地道性审查。
    • 如果是 Python:寻找并调用 python-review(如果存在),否则维持通用审查标准。
    • 其他语言以此类推。
  4. 综述汇总:整合通用建议与专项建议,给出最终报告。

📥 Input

  • 待审查的代码片段或文件路径。
  • 变更背景、业务需求及相关的设计文档(可选)。
  • 变更范围(Diff)。

📤 Output

结构化的审查意见,建议包含:

  • Summary: 对变更的整体评价和理解。
  • Positive Feedback: 值得肯定的设计或实现点。
  • Actionable Feedback:
    • Blockers: 必须修复的问题(Bug、安全隐患、严重违背架构原则)。
    • Suggestions: 建议改进的地方,用于提升可读性或性能。
    • Nitpicks: 微小的细节改动(如拼写、格式)。
  • Rationales: 提供具体的理由或参考文档,帮助开发者理解为何建议修改。

⚠️ Constraints

  • ❌ 严禁攻击性言论:审查应针对代码而非人。
  • ❌ 避免风格争议:风格问题应尽量交给 Linter 自动处理。
  • ✅ 优先考虑代码的可维护性:今天能运行的代码不代表明天能维护。
  • ✅ 鼓励提问:如果不确定代码的意图,先提问而非直接下结论。

🔍 能力溯源 (Source Mapping)

能力来源类型
审查哲学与心态google-code-review-guide✅ 行业公认最佳指南
反馈质量与沟通palantir-code-review✅ 工业界建设性协作规范
代码质量 Checklistairbnb-best-practices✅ 社区主流质量基准
流程路由与自动化industry-standard-cicd✅ 工程化通用实践

📚 参考资料 (References)

🔗 Related Skills

  • go-review: 针对 Go 语言的深度代码审查。
  • git-workflow: 在提交流程中集成代码审查。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.