cr
SKILL.md
CR — Cross-Model Code Review
Get your code reviewed by a different model. Claude's code → Codex reviews. Codex's code → Claude reviews.
For proposal, architecture, or viewpoint review (non-code), use peer-review.
Environment Detection
# Codex environment: CODEX_SANDBOX_ID or CODEX_THREAD_ID exists
# Claude environment: otherwise
Workflow
Claude Code Environment → Codex Reviews
Invoke the code-reviewer agent which handles:
- CHANGELOG auto-generation
- File staging
- Lint
codex review --uncommittedwith difficulty-based config- Self-correction
- P1/P2/P3 report
See references/codex-backend.md for full agent protocol.
Codex CLI Environment → Claude Reviews
Prerequisite: Verify claude CLI is available:
command -v claude || { echo "claude CLI not found"; exit 1; }
Key constraint: claude -p cannot read /tmp files but CAN read files in the current project directory.
-
Check workspace and assess difficulty:
git diff --name-only && git status --short git diff --stat # Files ≥ 10 or changes ≥ 500 lines → Hard, otherwise Normal -
Write diff to
.git/temp files (hidden from working tree):DIFF_FILE=".git/cr-review-$(date +%s)-$$.diff" STAT_FILE=".git/cr-review-$(date +%s)-$$.stat" trap 'rm -f "$DIFF_FILE" "$STAT_FILE"' EXIT git diff > "$DIFF_FILE" git diff --stat > "$STAT_FILE" -
Run Claude review:
claude -p "Read $DIFF_FILE and $STAT_FILE. Review the code diff. Output ## P1 - Must Fix, ## P2 - Should Fix, ## P3 - Nice to Have. Focus: security, correctness, performance, maintainability." -
Cleanup is automatic via
trap.
Output Format (unified)
## Code Review Results
### P1 - Must Fix
- [file:line] Critical issue description
### P2 - Should Fix
- [file:line] Important improvement
### P3 - Nice to Have
- Optional optimization
### Suggested Actions
1. [ ] Action item 1
2. [ ] Action item 2
Difficulty Assessment
| Condition | Level |
|---|---|
| Files ≥ 10 or changes ≥ 500 lines | Hard |
| Otherwise | Normal |
For Codex backend: adjusts model_reasoning_effort. For Claude backend: included as context in the prompt.
Weekly Installs
1
Repository
fancive/claude-skillsFirst Seen
11 days ago
Security Audits
Installed on
codex1