Codex — Workflow
Overview
How the codex skill works, step by step.
Source Workflow
Claude skill workflow.
Step-by-step Workflow
codex — Workflow
Auto-generated from
SKILL.md. The skill itself is the source of truth; this is a human-readable map of what it does and how it runs.
What it does & when to use
OpenAI Codex CLI wrapper — three modes. Code review: independent diff review via codex review with pass/fail gate. Challenge: adversarial mode that tries to break your code. Consult: ask codex anything with session continuity for follow-ups. The "200 IQ autistic developer" second opinion. Use when asked to "codex review", "codex challenge", "ask codex", "second opinion", or "consult codex". (gstack) Voice triggers (speech-to-text aliases): "code x", "code ex", "get another opinion".
Triggers
200 IQ autistic developercodex reviewcodex challengeask codexsecond opinionconsult codexcode xcode exget another opinion
How it works
Workflow outline (sections of SKILL.md):
- Preamble (run first)
- Plan Mode Safe Operations
- Skill Invocation During Plan Mode
- Skill routing
- AskUserQuestion Format
- Artifacts Sync (skill start)
- Model-Specific Behavioral Patch (claude)
- Voice
- Context Recovery
- Writing Style (skip entirely if EXPLAIN_LEVEL: terse appears in the preamble echo OR the user's current message explicitly requests terse / no-explanations output)
- Completeness Principle — Boil the Lake
- Confusion Protocol
- Continuous Checkpoint Mode
- Context Health (soft directive)
- Question Tuning (skip entirely if QUESTION_TUNING: false)
- Repo Ownership — See Something, Say Something
- Search Before Building
- Completion Status Protocol
- Operational Self-Improvement
- Telemetry (run last)
- Plan Status Footer
- Step 0: Detect platform and base branch
- Step 0.4: Check codex binary
- Step 0.5: Auth probe + version check
- Step 0.6: Resolve portable roots
- Step 1: Detect mode
- Filesystem Boundary
- Step 2A: Review Mode
- Plan File Review Report
- GSTACK REVIEW REPORT
- Step 2B: Challenge (Adversarial) Mode
- Step 2C: Consult Mode
- Model & Reasoning
- Cost Estimation
- Error Handling
- Important Rules
Components
Single-file skill — all instructions live in SKILL.md.
Invoke
- Slash:
/codex - Or a natural-language request matching the triggers above.
Source: SKILL.md in this directory.
Execution Logic
The skill executes when its trigger fires (slash command, natural-language match, or direct invocation). It reads its references, applies its rules, and produces the documented outputs.
Edge Cases
See the source skill's references/ and scripts/ folders for edge-case handling.
Failure Handling
A skill failure surfaces as a tool error or a partial output; never a silent skip. Re-run with --verbose (where applicable) for diagnostics.
Integration Notes
- Claude — invoked via the
Skilltool withskill: "codex". - Codex — referenced from
AGENTS.mdif mirrored. - Antigravity — referenced from the workspace agent rules if mirrored.
- HQ Project — listed on the landing page Skills section + post-login sidebar.
- MD Project (md.sgnk.ai) — file rendered from
Skills/Codex/workflow.md. - Obsidian — file rendered with frontmatter + tags.
Usage Examples
Invoke via slash command or natural language matching the skill description.
Source: ~/.claude/skills/codex/WORKFLOW.md