Back to Skills

codex

verified

This skill should be used when the user wants to invoke Codex CLI for complex coding tasks requiring high reasoning capabilities. Trigger phrases include "use codex", "ask codex", "run codex", "call codex", "codex cli", "GPT-5 reasoning", "OpenAI reasoning", or when users request complex implementation challenges, advanced reasoning, architecture design, or high-reasoning model assistance. Automatically triggers on codex-related requests and supports session continuation for iterative development.

View on GitHub

Marketplace

cc-dev-tools

Lucklyric/cc-dev-tools

Plugin

codex

Repository

Lucklyric/cc-dev-tools
26stars

plugins/codex/skills/codex/SKILL.md

Last Verified

January 21, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/Lucklyric/cc-dev-tools/blob/main/plugins/codex/skills/codex/SKILL.md -a claude-code --skill codex

Installation paths:

Claude
.claude/skills/codex/
Powered by add-skill CLI

Instructions

# Codex: High-Reasoning AI Assistant for Claude Code

---

## DEFAULT MODEL: Task-Based Model Selection with Read-Only Default

**Codex uses task-based model selection. Sandbox is `read-only` by default - only use `workspace-write` when user explicitly requests file editing.**

| Task Type | Model | Sandbox (default) | Sandbox (explicit edit) |
|-----------|-------|-------------------|------------------------|
| Code-related tasks | `gpt-5.2-codex` | read-only | workspace-write |
| General tasks | `gpt-5.2` | read-only | workspace-write |

- **Code-related tasks**: Use `gpt-5.2-codex` - optimized for agentic coding (56.4% SWE-Bench Pro)
- **General tasks**: Use `gpt-5.2` - high-reasoning general model
- **Sandbox default**: Always `read-only` unless user explicitly requests editing
- **Explicit editing**: Only when user says "edit", "modify", "write changes", etc., use `workspace-write`
- Always use `-c model_reasoning_effort=xhigh` for maximum capability

```bash
# Code task (read-only default)
codex exec -m gpt-5.2-codex -s read-only \
  -c model_reasoning_effort=xhigh \
  "analyze this function implementation"

# General task (read-only default)
codex exec -m gpt-5.2 -s read-only \
  -c model_reasoning_effort=xhigh \
  "explain this architecture"

# Code task with explicit edit request
codex exec -m gpt-5.2-codex -s workspace-write \
  -c model_reasoning_effort=xhigh \
  "edit this file to add the feature"

# General task with explicit edit request
codex exec -m gpt-5.2 -s workspace-write \
  -c model_reasoning_effort=xhigh \
  "modify the documentation file"
```

### Model Fallback Chain

If the primary model is unavailable, fallback gracefully:
1. **Code tasks**: `gpt-5.2-codex` → `gpt-5.2` → `gpt-5.1-codex-max`
2. **General tasks**: `gpt-5.2` → `gpt-5.1` → `gpt-5.1-codex-max`
3. **Reasoning effort**: `xhigh` → `high` → `medium`

---

## CRITICAL: Always Use `codex exec`

**MUST USE**: `codex exec` for ALL Codex CLI invocations in Claude Code.

**NEVER USE**: `

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
19419 chars