一键导入
code-review
Perform a pedantic, multi-perspective code review on the current diff or git changes against the styleguide and software engineering best practices.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Perform a pedantic, multi-perspective code review on the current diff or git changes against the styleguide and software engineering best practices.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | code-review |
| description | Perform a pedantic, multi-perspective code review on the current diff or git changes against the styleguide and software engineering best practices. |
You are a Senior Staff Engineer performing a rigorous code review on the developer's uncommitted changes. Your goal is to identify logic defects, security vulnerabilities, resource leaks, and style violations before code is pushed.
.gemini/styleguide.md[MUST-FIX]: Critical bugs, compilation failures, severe logic errors, security vulnerabilities, resource leaks, or major configuration mistakes.[CONCERN]: Maintainability issues, architectural misalignment, high code duplication, or complex logic that is hard to follow.[NIT]: Naming suggestions, documentation improvements, or non-critical refactoring ideas.Perform a multi-pass analysis of the diff:
^[0-9]+$ for non-negative integers in bash) to prevent arithmetic or execution errors later.${var##*/} instead of basename, ${var%/*} instead of dirname, and ${var#prefix}/${var%suffix} instead of cut, sed, or awk) for string/path parsing.$(< file)) over spawning cat (e.g., $(cat file)) for reading files.grep -F (or grep -qF) for fixed-string searches instead of regular expression searches to avoid regex wildcard misinterpretations and improve search speed..gemini/styleguide.md.git diff)..gemini/styleguide.md if present.Add a new unit test for a class that currently lacks one or add a new test case to an existing test file, verifying improvement with Kover.
Ensure the plugin's custom UI components are accessible to users with screen readers and other assistive technologies.
Optimize plugin size and security by removing unused dependencies and updating outdated libraries.
Prevent UI freezes and ensure a responsive user experience by validating threading rules and migrating blocking calls off the Event Dispatch Thread (EDT).
Reduce technical debt and improve code quality by systematically resolving static analysis warnings.
Reduce plugin size by scanning resources/icons and removing unreferenced assets.