codex-collaboration

Codex CLI integration for code review and consultation. Use when: (1) code needs review before commit, (2) need expert consultation on implementation approach, (3) debugging assistance needed. This skill provides Codex interaction patterns only - workflow orchestration is defined in project CLAUDE.md.

⭐5stars🔀1forks📁View on GitHub🕐Updated Jan 11, 2026⬇️1downloads

When & Why to Use This Skill

This Claude skill integrates the Codex CLI to streamline code reviews, provide expert implementation consultation, and assist in debugging. It establishes an automated 'Review Gate' to ensure code quality, security, and correctness before commits, while offering high-level architectural guidance and full-auto task execution capabilities.

Use Cases

  • Pre-commit Quality Assurance: Automatically analyze uncommitted changes for bugs, security vulnerabilities, and edge cases to ensure only high-quality code enters the repository.
  • Technical Consultation and Architecture: Seek expert advice on implementation approaches or compare different architectural patterns (e.g., Option A vs. Option B) based on specific project constraints.
  • Automated Debugging Assistance: Use the CLI to provide context and specific questions to resolve complex implementation issues or logic errors quickly.
  • Full-Auto Feature Implementation: Delegate specific development tasks to the AI with workspace access for rapid prototyping and automated code generation.
namecodex-collaboration
description"Codex CLI integration for code review and consultation. Use when: (1) code needs review before commit, (2) need expert consultation on implementation approach, (3) debugging assistance needed. This skill provides Codex interaction patterns only - workflow orchestration is defined in project CLAUDE.md."

Codex Collaboration Skill

Provides Codex CLI interaction patterns for code review and consultation.

Codex CLI Commands

Code Review (Primary Use)

# Standard review
codex review --uncommitted

# Review specific changes
codex exec -m gpt-5.2 "
Review this implementation:
$(git diff)

Check:
1. Correctness
2. Bugs
3. Security
4. Code quality
5. Edge cases

Verdict: PASS or FAIL with issues
"

Consultation

# Ask for guidance
codex exec -m gpt-5.2 "
Context: [CONTEXT]
Question: [SPECIFIC_QUESTION]
"

# Interactive session
codex "Help me with [TOPIC]"

Full Auto Execution

# Let Codex make changes
codex --full-auto "Implement [TASK]"

# With workspace access
codex -C /path/to/project --full-auto "Task"

Review Gate Pattern

Code Change
    │
    ▼
codex review
    │
    ├── PASS → git commit
    │
    └── FAIL → Fix issues → Re-review

Review Result Handling

PASS:

git add .
git commit -m "type(scope): description"

FAIL:

  1. Parse issues from output
  2. Fix each issue
  3. Re-submit: codex review
  4. Repeat until PASS

Model Options

  • gpt-5.2 - Latest flagship (recommended)
  • gpt-5.1-codex-mini - Faster, cheaper

Usage Examples

Before Commit

# After implementing a feature
codex review
# If PASS, commit
# If FAIL, fix and re-review

When Stuck

codex exec -m gpt-5.2 "
I'm implementing [TASK].
Current code: [CODE]
Issue: [PROBLEM]
What's the best approach?
"

Architecture Decision

codex exec -m gpt-5.2 "
Option A: [APPROACH_A]
Option B: [APPROACH_B]
Constraints: [CONSTRAINTS]
Which is better and why?
"