بنقرة واحدة
pr-review
Perform a code review of a pull request following team standards
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Perform a code review of a pull request following team standards
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | pr-review |
| description | Perform a code review of a pull request following team standards |
Perform a thorough code review of changed files, checking for correctness, Rust best practices, XLayer-specific conventions, security issues, and test coverage.
TRIGGER when: user asks to "review" code, requests a code review, or uses /review.
DO NOT TRIGGER when: user only asks a question about code without requesting a review.
When invoked, perform the following code review steps in order:
Read the diff or changed files. Focus on:
*.rs)Cargo.toml, justfile)For each changed Rust file:
? or handled explicitly; avoid unwrap()/expect() in library code (only acceptable in tests or with a clear invariant comment)cargo clippy -- -D warningsrustfmt style (consistent indentation, trailing commas in multi-line expressions)Option/Result combinators, iterators over manual loops, and From/Into for type conversionscrates/ should be isolated to their crate; cross-crate dependencies should be minimal and intentionaldocs/subguides/DATABASE_GUIDE.md — new tables need proper Compress/Decompress implementationsdocs/subguides/EXTENSION_GUIDE.md — use the EthApiExt patterndocs/subguides/CHAINSPEC_EVM_GUIDE.mddocs/subguides/NODE_BUILDER_GUIDE.mdchecked_add, saturating_add) or explicitly handle overflow// SAFETY: comment explaining the invariantCargo.toml should be from trusted sourcescrates/tests/) should be added for significant new featurestest_<what>_<condition>_<expected>)Verify against .github/pull_request_template.md:
Structure feedback as:
Summary: Brief overview of the change and its purpose.
Issues (if any):
Positives: Highlight good patterns or improvements worth noting.
Verdict: LGTM / Request Changes / Needs Discussion