skills/codex/SKILL.md
AI peer review via OpenAI Codex CLI. Use when reviewing code changes, validating technical decisions, comparing implementation approaches, or getting a second opinion on architecture choices. Triggers on /codex, /codex-review, or auto-triggers when presenting significant alternatives to user.
npx skillsauth add antoniocascais/claude-code-toolkit codexInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Consult OpenAI's Codex CLI for peer review before presenting significant decisions or completed work to user.
Auto-consult Codex when about to:
Skip auto-consultation for:
# Review uncommitted changes (staged + unstaged + untracked)
codex exec review --uncommitted "Focus on: <specific concerns>"
# Review against base branch
codex exec review --base main "Focus on: <specific concerns>"
# Review specific commit
codex exec review --commit <SHA> "Focus on: <specific concerns>"
# Tech decisions, architecture questions, approach validation
codex exec "Given context X, should we use approach A or B? Consider: <factors>"
Claude decides how to prompt Codex. Guidelines:
Execute up to 3 rounds of Claude ↔ Codex exchange:
Round 1: Initial consultation
Round 2 (if disagreement): Counter-argument
Round 3 (if still unresolved): Final exchange
Do NOT blindly accept Codex feedback. Evaluate critically:
If Claude disagrees:
codex exec "You suggested X, but I disagree because Y. The context you may have missed: Z. Please reconsider or explain why X is still better."
If 3 rounds pass without consensus, notify user:
⚠️ Codex review: Reached iteration limit without consensus
**Point of contention**: [what we disagreed on]
**Claude's position**: [your stance + reasoning]
**Codex's position**: [their stance + reasoning]
Proceeding with: [which approach and why]
After consultation completes, summarize for user:
## Codex Review Summary
**Consulted on**: [code changes | tech decision | architecture]
**Consensus reached**: Yes/No (N rounds)
### Key Points
- [Agreement 1]
- [Agreement 2]
### Disagreements (if any)
| Topic | Claude | Codex | Resolution |
|-------|--------|-------|------------|
| ... | ... | ... | ... |
### Final Decision
[What was decided and brief rationale]
/codex or /codex-reviewUser explicitly requests peer review. Always execute full loop.
When about to present alternatives or complete significant work:
codex exec review --uncommitted "Review this authentication refactor. Key changes: moved from session-based to JWT. Check for security issues and edge cases."
codex exec "Building a real-time notification system. Options: A) WebSockets with Redis pub/sub, B) Server-Sent Events with PostgreSQL NOTIFY, C) Polling with caching. Constraints: <1000 concurrent users, existing PostgreSQL infra, team familiar with Redis. Which approach and why?"
codex exec "User asked for feature X. I'm proposing to implement it via Y because of Z. Are there approaches I'm missing? Any concerns with Y?"
tools
Reviews Claude Code sessions and proposes workflow improvements. Use when: (1) /workflow-review command, (2) "review my workflow", "how can I improve", (3) after long sessions when nudged, (4) start of session with pending review. Analyzes tool usage patterns, CLAUDE.md configuration, and compares against CC best practices. Proposes: CLAUDE.md updates, new skills, underused CC features. Saves session summaries to .claude/workflow-reviews/ for cross-session continuity.
devops
Activates voice conversation mode using Pocket TTS Docker container. Use when user says "voice mode", "let's talk", "talk to me", "speak your responses", or wants Claude to respond with spoken audio. Speaks all responses through TTS and plays via speakers.
testing
Guides strong, effective unit test generation using proven testing techniques. Use when writing unit tests, reviewing test quality, improving existing tests, generating test cases, checking test coverage strength, or when tests exist but may be weak. Triggers on: unit test, test quality, test coverage, write tests, improve tests, review tests, test strength, mutation testing, boundary testing.
development
Creates new Claude Code skills with proper structure and best practices. Use when user wants to create a skill, update an existing skill, add a new command, scaffold a workflow, define skill hooks, or asks "how do I make a skill".