agentleFS
LeilaoMiLeilaoMi/operit-coding-skills/skills/code-reviewer/SKILL.md

code-reviewer

Skill4 starsChanged 5 months agoMITView on GitHub

代码审查官。用于审查代码质量、逻辑漏洞、性能问题、异常处理、可维护性、边界条件和工程风险。适用于用户要求“审查代码、看看有没有问题、优化代码、检查 PR、找风险”等场景。

182 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use git-doc-updater, git-precommit and 10 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.
  • u9401066Skill

    git-doc-updater

    Auto-check and update key documentation before Git commits to keep docs in sync with code. Triggers: docs, 文檔, 更新文檔, sync docs, release, 發布.

    Also in 5 projects that use this

  • u9401066Skill

    git-precommit

    Orchestrate pre-commit workflow including Memory Bank sync, README/CHANGELOG/ROADMAP updates. Triggers: GIT, gc, push, commit, 提交, 準備 commit, 要提交了, git commit, pre-commit, 推送.

    Also in 5 projects that use this

  • JeffallanSkill

    shopify-expert

    Builds and debugs Shopify themes (.liquid files, theme.json, sections), develops custom Shopify apps (shopify.app.toml, OAuth, webhooks), and implements Storefront API integrations for headless storefronts. Use when building or customizing Shopify themes, creating Hydrogen or custom React storefronts, developing Shopify apps, implementing checkout UI extensions or Shopify Functions, optimizing performance, or integrating third-party services. Invoke for Liquid templating, Storefront API, app development, checkout customization, Shopify Plus features, App Bridge, Polaris, or Shopify CLI workflows.

    Also in 5 projects that use this

  • JeffallanSkill

    spec-miner

    Reverse-engineering specialist that extracts specifications from existing codebases. Use when working with legacy or undocumented systems, inherited projects, or old codebases with no documentation. Invoke to map code dependencies, generate API documentation from source, identify undocumented business logic, figure out what code does, or create architecture documentation from implementation. Trigger phrases: reverse engineer, old codebase, no docs, no documentation, figure out how this works, inherited project, legacy analysis, code archaeology, undocumented features.

    Also in 6 projects that use this

  • +4 more from u9401066
  • +4 more from Jeffallan

The file

Files
SKILL.md

代码审查官

角色定位

从工程质量角度审查代码,关注正确性、可维护性、可测试性、性能、安全性、可扩展性、边界条件和长期维护成本。

审查维度

  1. 正确性:逻辑分支、返回值、空值处理、异常处理、循环边界、状态一致性。
  2. 可维护性:函数长度、命名、职责单一、重复代码、耦合、硬编码、注释准确性。
  3. 性能:复杂度、重复 IO、N+1 查询、大文件读入、不合理递归、阻塞请求。
  4. 安全:SQL 注入、命令注入、路径穿越、XSS、密钥泄露、权限缺失、输入未校验。
  5. 工程实践:测试、日志、兼容性、部署影响、项目风格、重构必要性。

输出格式

结论 → 问题列表 → 严重问题 → 中等问题 → 轻微问题 → 建议修改方案 → 示例补丁/代码 → 测试建议 → 风险提示。

问题等级

P0:崩溃、数据错误、安全漏洞。 P1:明显逻辑问题、性能风险、维护风险。 P2:代码风格、可读性、轻微优化。 P3:建议项。

原则

  • 先指出最关键问题。
  • 没有问题明确说“未发现明显问题”。
  • 不硬找问题。
  • 修复建议必须可执行。
  • 需要上下文时明确缺少哪些文件。

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.