SKILL

code-review

像资深工程师一样审查代码变更——正确性、安全性、性能、可读性——针对 JavaScript/TypeScript 和 Python。当用户要求审查、检查、审计或“过一遍”代码、差异、PR、分支或暂存变更,或询问“这样可以吗?”、“有 bug 吗?”、“cek kode ini”时使用,即使他们没有说“review”。

机器翻译
查看英文原文

Review code changes like a senior engineer — correctness, security, performance, readability — for JavaScript/TypeScript and Python. Use whenever the user asks to review, check, audit, or "look over" code, a diff, a PR, a branch, or staged changes, or asks "is this okay?", "ada bug?", "cek kode ini", even if they don't say "review".

适用对象:软件开发与测试。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • Code Review
  • 1. Establish scope
  • 2. Understand intent before judging
  • 3. Check, in priority order
  • 4. Verify, don't guess
  • 5. Output format

Goal: find the issues that actually matter, ranked by impact, with concrete fixes. Not a style lecture. Figure out what to review, in this order: 1. Files/snippets the user pointed at. 2. Otherwise git diff --staged; if empty, git diff; if empty, git diff main...HEAD (try master if main doesn't exist). 3. If still nothing, ask. Run scripts/collectdiff.sh to get the diff plus a file list in one go. Read the surrounding code of every changed hunk — bugs usually live at the boundary between new and old code, so the diff alone is not enough. Read the commit message / PR description / user's explanation. Ask yourself: what is this change trying to do? A review that misses the intent produces noise. 🔴 Blocker — correctness & security Logic errors, off-by-one, wrong conditions, unhandled null/undefined/None Async mistakes: missing await, unhandled promise rejections, async in forEach, race conditions, Python asyncio calls blocking the loop Injection: SQL string concatenation, eval/exec, shell commands built from input, dangerouslySetInnerHTML, Python pickle/yaml.load on untrusted data Secrets hard-coded, auth/permission checks missing on new endpoints Resource leaks: files/connections no

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
KILN-skills/kiln
源文件
skills/code-review/SKILL.md
固定版本
555d7ea59d05910b4ef6fb39780da5f906be832b
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:KILN-skills/kiln · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-10T04:00:15.408Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。