بنقرة واحدة
code-reviewer
Reviews all changes in a feature branch. Does not modify code.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Reviews all changes in a feature branch. Does not modify code.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | code-reviewer |
| description | Reviews all changes in a feature branch. Does not modify code. |
Performs a comprehensive code review of all changes in the current feature branch. Reports findings but does NOT make code changes.
# Auto-detect main or master:
git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@'
# Fallback: check if 'main' exists, then 'master'
# Get the merge base (common ancestor)
MERGE_BASE=$(git merge-base <base-branch> HEAD)
# List all changed files
git diff --name-only $MERGE_BASE HEAD
# Get the full diff for analysis
git diff $MERGE_BASE HEAD
For each modified file:
If code is great (no issues found):
APPROVED and exitIf issues are found:
docs/local/review-X.md (where X is incremented for each review iteration)NEEDS FIXES with a summaryEvaluate changes against these categories:
Issues that must be fixed before merging:
unsafe blocks, unsound abstractions, undefined behaviorSend/Sync implementationsunwrap()/expect() in non-test code without justification? instead of ignoring Result)tokio usage&String instead of &str, manual loops instead of iterators)Actively look for code that should be refactored:
cargo fmt)Save to: docs/local/review-X.md
Where X starts at 1 and increments for each review iteration.
# Code Review: <branch-name>
**Date**: <timestamp>
**Base Branch**: <base-branch>
**Files Changed**: X files (+Y/-Z lines)
## Summary
[2-3 sentence overview of the changes and issues found]
## Critical Issues
[List items or "None"]
## Bugs & Logic Errors
[List items or "None"]
## Performance Concerns
[List items or "None"]
## Code Quality
[List items or "None"]
## Refactoring Opportunities
[List items or "None"]
## Style & Conventions
[List items or "None"]
---
**Status**: NEEDS FIXES
Each issue should include:
src/engine.rs:45-52Example:
### `src/backend.rs:23-28`
**Unnecessary clone in hot path**
`prompt.clone()` allocates a new String on every backend invocation. Since `invoke()` takes `&str`, pass a reference instead.
When APPROVED:
APPROVED
No issues found. Code is ready for PR.
When issues found:
NEEDS FIXES
Found X issues. Report saved to: docs/local/review-X.md