Learn-skills.dev codex
Run Codex CLI for code analysis and automated edits. Use when users ask to run `codex exec`/`codex resume`, continue a prior Codex session, or delegate software engineering work to OpenAI Codex.
install
source · Clone the upstream repo
git clone https://github.com/NeverSight/learn-skills.dev
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/skills-md/abpai/skills/codex" ~/.claude/skills/neversight-learn-skills-dev-codex-930e2d && rm -rf "$T"
manifest:
data/skills-md/abpai/skills/codex/SKILL.mdsource content
Codex Skill Guide
Workflow
- Confirm task mode:
- New run: use
.codex exec - Continue prior run: use
with stdin prompt.codex exec ... resume --last
- New run: use
- Set defaults unless user overrides:
- Model:
.gpt-5.4 - Reasoning effort: ask user to choose
,xhigh
,high
, ormedium
.low - Sandbox:
unless edits/network are required.read-only
- Model:
- Build command with required flags:
- Always include
.--skip-git-repo-check - Add
by default to suppress thinking tokens on stderr.2>/dev/null - Show stderr only if user asks or debugging is needed.
- Always include
- Run command, summarize outcome, and ask what to do next.
- After completion, remind user they can continue with
.codex resume
Quick Reference
| Use case | Sandbox mode | Key flags |
|---|---|---|
| Read-only review or analysis | | |
| Apply local edits | | |
| Permit network or broad access | | |
| Resume recent session | Inherited from original | |
| Run from another directory | Match task needs | plus other flags |
Command Patterns
New run
codex exec --skip-git-repo-check \ --model gpt-5.4 \ --config model_reasoning_effort="high" \ --sandbox read-only \ "your prompt here" 2>/dev/null
Resume latest session
Use stdin and keep flags between
exec and resume.
echo "your prompt here" | codex exec --skip-git-repo-check resume --last 2>/dev/null
When resuming, do not add configuration flags unless the user explicitly asks for changes (for example, different model or reasoning effort).
Model Options
| Model | Best for | Context window | Key features |
|---|---|---|---|
⭐ | Default for most coding tasks in Codex | N/A in this skill | OpenAI's recommended default for general-purpose coding |
| Harder problems that benefit from more compute | N/A in this skill | More compute for deeper reasoning on difficult tasks |
| Faster/cost-effective option for lighter tasks | N/A in this skill | Smaller GPT-5 model for lower-cost coding and chat tasks |
| Legacy specialized alternative | N/A in this skill | Prior Codex-tuned model; generally superseded by GPT-5.4 |
gpt-5.4 is the default for software engineering tasks.
Reasoning Effort
- Ultra-complex tasks (deep problem analysis, complex reasoning, deep understanding of the problem)xhigh
- Complex tasks (refactoring, architecture, security analysis, performance optimization)high
- Standard tasks (refactoring, code organization, feature additions, bug fixes)medium
- Simple tasks (quick fixes, simple changes, code formatting, documentation)low
Following Up
- After every run, ask for next steps or clarifications.
- When proposing another run, restate model, reasoning effort, and sandbox mode.
- For continuation, use stdin with
.resume --last
Error Handling
- If
orcodex --version
exits non-zero, report failure and ask before retrying.codex exec - Ask permission before high-impact flags unless already granted:
,--full-auto
,--sandbox danger-full-access
.--skip-git-repo-check - If output includes warnings or partial results, summarize and ask how to proceed.
CLI Version
Use a current Codex CLI version that supports
gpt-5.4. Check with:
codex --version
Use
/model inside Codex to switch models, or set defaults in ~/.codex/config.toml.