Get Codex's code review of git changes after Claude makes edits. Trigger when user wants a second opinion on code changes ("have Codex review my changes", "get code review from Codex", "review this diff with Codex"), or as a final check before committing.
Inherits all available tools
Additional assets for this skill
This skill inherits all available tools. When active, it can use any tool Claude has access to.
Have Codex review git changes for a second perspective on code quality.
Use the built-in review command:
codex review 2>&1
Or save diff to project root for manual review:
git diff --cached > codex-review.diff
codex exec "Review the code changes at codex-review.diff for issues. Do not make any changes. Respond with feedback only." --sandbox read-only --ask-for-approval never 2>&1
rm codex-review.diff
Staged changes:
git diff --cached > codex-review.diff
codex exec "Review codex-review.diff for:
1. Bugs or logic errors
2. Security vulnerabilities
3. Style inconsistencies
4. Missing error handling
Do not make any changes. Respond with feedback only." --sandbox read-only --ask-for-approval never 2>&1
rm codex-review.diff
All uncommitted changes:
git diff HEAD > codex-review.diff
codex exec "Review codex-review.diff. Do not make any changes. Respond with feedback only." --sandbox read-only --ask-for-approval never 2>&1
rm codex-review.diff
Specific commit:
git show abc123 > codex-review.diff
codex exec "Review the commit at codex-review.diff. Do not make any changes. Respond with feedback only." --sandbox read-only --ask-for-approval never 2>&1
rm codex-review.diff
Security focus:
git diff --cached > codex-review.diff
codex exec "Security review of codex-review.diff. Check for:
- XSS vulnerabilities
- SQL/command injection
- Sensitive data exposure
- Authentication/authorization issues
Do not make any changes. Respond with feedback only." --sandbox read-only --ask-for-approval never 2>&1
rm codex-review.diff
Performance focus:
git diff --cached > codex-review.diff
codex exec "Performance review of codex-review.diff. Check for:
- Inefficient algorithms
- N+1 queries
- Memory leaks
- Blocking operations
Do not make any changes. Respond with feedback only." --sandbox read-only --ask-for-approval never 2>&1
rm codex-review.diff
Ask Codex to read full files for better context:
git diff --cached > codex-review.diff
codex exec "Review codex-review.diff. Also read the full files:
- src/auth/login.ts
- src/utils/validate.ts
to understand the broader context. Do not make any changes. Respond with feedback only." --sandbox read-only --ask-for-approval never 2>&1
rm codex-review.diff
--dangerously-bypass-approvals-and-sandbox or --sandbox danger-full-access - these disable safety features and are forbidden--sandbox read-only to prevent file modifications--ask-for-approval never for non-interactive executioncodex --help to verify correct flag usagedangerouslyDisableSandbox: true for Bash callsreferences/setup.md for troubleshooting