/code-review — Code Review
SkillSecurityReview a PR for quality, security, and standards compliance. Invokes the Code Reviewer agent (Rex).
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the /code-review — Code Review skill
What this skill tells your AI
The instructions your AI receives, as published by me2resh/apexyard in .claude/skills/code-review/SKILL.md and read by ahel’s review.
Review a pull request for quality, security, and adherence to standards.
LSP-aware (optional, recommended)
This skill performs semantic code navigation — finding definitions, walking references, tracing handlers across modules. With LSP enabled (ENABLE_LSP_TOOL=1 + per-language plugin per docs/getting-started.md), queries are ~3-15× cheaper in token cost than grep + Read. Without LSP, the skill falls back to grep + Read transparently — no new failure mode, just optional speed.
Per-language LSP plugins live in Claude Code's marketplace. Install once; the skill detects the active language and dispatches automatically.
Activated agent + role
When /code-review runs:
- Primary reviewer: the Code Reviewer agent (Rex) at
.claude/agents/code-reviewer.md— runs on every commit, owns the automated first-pass review. - Human approval gate: the Tech Lead — activates to sign off on architecture, design patterns, and team conventions that Rex can't judge from code alone.
- Conditional Security Auditor: if the diff touches
**/auth/**,**/crypto/**,**/secrets/**,.env*, or similar, the Security Auditor also activates and must sign off before merge. Consider chaining/security-reviewfor the deeper pass. - Conditional UI Designer: if the diff touches visible UI, the UI Designer activates for design review.
See .claude/rules/role-triggers.md for the full activation protocol.
Usage
/code-review 30
/code-review 30 your-org/your-repo
Process
0. Write the active-reviewer marker (REQUIRED — me2resh/apexyard#843)
Before spawning the Code Reviewer agent (Rex), write the active-reviewer session marker. It records that this review pass is the sanctioned one, and suppresses warn-review-marker-write.sh's advisory warning on Rex's *-rex.approved write (that hook warns and never blocks since #1026 — AgDR-0111). At skill entry:
ops_root=$(git rev-parse --show-toplevel)
r="$ops_root"
while [ -n "$r" ] && [ "$r" != "/" ]; do
[ -f "$r/.apexyard-fork" ] && { ops_root="$r"; break; }
[ -f "$r/onboarding.yaml" ] && [ -f "$r/apexyard.projects.yaml" ] && { ops_root="$r"; break; }
r=$(dirname "$r")
done
mkdir -p "$ops_root/.claude/session"
printf '%s\n' "<owner/repo>#<pr>:rex" > "$ops_root/.claude/session/active-reviewer"
On skill exit (after Rex posts its verdict, whether APPROVED or CHANGES REQUESTED), clear the marker:
rm -f "$ops_root/.claude/session/active-reviewer"
Nothing mechanically stops a build-class sub-agent writing the same file; what makes Rex's marker legitimate is that a real, independent review happened. See .claude/hooks/warn-review-marker-write.sh and .claude/rules/pr-workflow.md § "Build agents cannot self-review".
- Fetch PR details and the latest commit SHA
- Get the diff
- Review against the checklist (architecture, code quality, testing, security, performance)
- Check for the required Glossary section
- Check for AgDR links if technical decisions were made
- On JS/TS diffs, run the Fallow static-analysis pass (§ 9 of the agent) — changed-scope, fail-soft, advisory; render a
### Fallow Findingstable + dry-run fix preview - Submit the review through the tracker-agnostic
tracker_review_submit(gh PR / glab MR / custom host — #758), not a hardcodedgh pr review, then clear the active-reviewer marker from step 0
Review Checklist
Architecture
- Domain layer has no external dependencies
- Application layer doesn't import infrastructure
- Proper separation of commands vs queries
Code Quality
- Type-safety enforced
- No unjustified
anytypes - Proper error handling
- Clear naming conventions
Testing
- Unit tests for domain logic
- Tests test behavior, not implementation
- Edge cases covered
Security
- No secrets in code
- Input validation present
- No injection vulnerabilities
PR Description
- Links to the ticket
- Has a Glossary section (REQUIRED — request changes if missing)
- AgDR links if decisions were made
Technical Decisions (AgDR) — BLOCKING
Scan the diff for unrecorded decisions:
- New dependencies / libraries in build files
- New frameworks (ORM, queue, cache, etc.)
- Architecture patterns implemented
- Design pattern choices
If a decision is detected but no AgDR is linked:
- REQUEST CHANGES (do not approve)
- List the specific decisions found
- Instruct the author to run
/decide - The PR cannot merge until the AgDR is linked
Output
Posts a GitHub review comment with:
- Commit SHA reviewed
- Checklist results
- Issues found
- Fallow findings (advisory; JS/TS diffs only, when the
fallowCLI is available) - Verdict: APPROVED / CHANGES REQUESTED / COMMENT
Invokes: Code Reviewer Agent (Rex)
Part of ApexYard — multi-project SDLC framework for Claude Code · MIT.
Signals
- GitHub stars
- 498
- Forks
- 271
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
code-review-me2resh- Source
- github.com/me2resh/apexyard