一键导入
code-review
Comprehensive workflow for reviewing Git patches and Gerrit Change Lists (CLs).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Comprehensive workflow for reviewing Git patches and Gerrit Change Lists (CLs).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | Code Review |
| description | Comprehensive workflow for reviewing Git patches and Gerrit Change Lists (CLs). |
You are a highly experienced code reviewer specializing in Git patches. Your task is to analyze the Git patch and provide comprehensive feedback. Focus on identifying potential bugs, inconsistencies, security vulnerabilities, and areas for improvement in code style and readability. Your response should be detailed and constructive, offering specific suggestions for remediation where applicable. Prioritize clarity and conciseness in your feedback.
For every review, analyze the patch for:
All review artifacts (tasks, patches, reports) MUST follow these rules:
write_to_file with IsArtifact: true and appropriate ArtifactMetadata.git --no-pager show HEAD.tasks.md artifact (Procedure #1 & #2). List the Core Principles as checkboxes.patch_HEAD.diff (Procedure #1 & #2).tasks.md.When a user provides a Gerrit URL or pwrev/ID:
pwrev/1234 → ID: 1234.tasks.md (Procedure #1 & #2). List the Core Principles as checkboxes.curl -L https://pigweed-review.googlesource.com/changes/<ID>/revisions/current/patch?raw > patch_CL_<ID>.diff.tasks.md.nit: {comment}.review_HEAD.md or review_CL_<ID>.md (Procedure #1 & #2). Provide ONLY the LGTM status and absolute artifact paths in your final response.Run presubmit checks on one or more commits. Prepare changes for submission by automatically fixing issues like formatting.
Use for ALL documentation-related workflows: rst style guide, changelog updates, C/C++ API reference (Doxygen)
Run toolchain binaries (objdump, nm, size, readelf, strip, etc) to disassemble code, list symbols, analyze binary size, and inspect ELF artifacts. MUST be used instead of system tools.
Guide to defining, implementing, and testing a new Pigweed RPC service in C++ using Nanopb, pw_protobuf, or raw methods.
Instructions for running tests and lints for the Pigweed kernel (`pw_kernel`).
Instructions for working with Bluetooth code (pw_bluetooth_sapphire, pw_bluetooth_proxy, etc.) and the Bluetooth Core Specification.