.claude/skills/codex/SKILL.md
Use when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, refactoring, or automated editing
npx skillsauth add ssaattww/excelreport 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.
Default mode: direct execution. Use tmux only when the user explicitly requests it.
For tmux-based execution, command sending, completion monitoring, and pane management, refer to the tmux-sender skill.
echo $TMUX (should return session info)tmux list-panescodex-session:0.1)AskUserQuestion) which model to run (gpt-5.3-codex or gpt-5.2) AND which reasoning effort to use (xhigh, high, medium, or low) in a single prompt with two questions.workspace-write - Write access is required for document creationworkspace-write + --full-auto - Code changes and automatic executionread-only; before write escalation emit [Stop: sandbox-escalation-required] + [Approve: sandbox-escalation]read-only - When read-only access is sufficientdanger-full-access - Only when explicitly requested
Sandbox selection criteria are centrally defined in sandbox-matrix.md. If this skill's sandbox guidance diverges from the matrix, treat the matrix as source of truth.-m, --model <MODEL>--config model_reasoning_effort="<xhigh|high|medium|low>"--sandbox <read-only|workspace-write|danger-full-access>--full-auto-C, --cd <DIR>--skip-git-repo-check--skip-git-repo-check.2>/dev/null - thinking tokens (stderr) are useful for monitoring progress in the separate pane.tmux-sender's monitoring script to automatically detect completion and notify when done.tmux-sender skill to send the command correctly.When running in direct execution mode (the default):
2>/dev/null to suppress thinking tokens (stderr) which would clutter the output.For tmux execution (shows thinking tokens):
| Use case | Sandbox mode | Command pattern |
| --- | --- | --- |
| Document generation (design/plan/update-doc/reverse-engineer) | workspace-write | codex exec --skip-git-repo-check -m <model> --config model_reasoning_effort="<effort>" --sandbox workspace-write "<prompt>" |
| Implementation (implement/build/task/add-integration-tests) | workspace-write + --full-auto | codex exec --skip-git-repo-check -m <model> --config model_reasoning_effort="<effort>" --sandbox workspace-write --full-auto "<prompt>" |
| Review/Diagnose (initial) | read-only | codex exec --skip-git-repo-check -m <model> --config model_reasoning_effort="<effort>" --sandbox read-only "<prompt>" |
| Review/Diagnose (with fixes after [Approve: sandbox-escalation]) | workspace-write + --full-auto | codex exec --skip-git-repo-check -m <model> --config model_reasoning_effort="<effort>" --sandbox workspace-write --full-auto "<prompt>" |
| Pure analysis (no file changes) | read-only | codex exec --skip-git-repo-check -m <model> --config model_reasoning_effort="<effort>" --sandbox read-only "<prompt>" |
| Permit network or broad access | danger-full-access | codex exec --skip-git-repo-check -m <model> --config model_reasoning_effort="<effort>" --sandbox danger-full-access --full-auto "<prompt>" |
| Resume recent session | Inherited | echo "<prompt>" \| codex exec --skip-git-repo-check resume --last |
| Run from another directory | Match task needs | Add -C <DIR> flag |
For direct execution (suppresses thinking tokens):
| Use case | Sandbox mode | Key flags |
| --- | --- | --- |
| Document generation | workspace-write | --sandbox workspace-write 2>/dev/null |
| Implementation | workspace-write + --full-auto | --sandbox workspace-write --full-auto 2>/dev/null |
| Review/Diagnose (initial) | read-only | --sandbox read-only 2>/dev/null |
| Review/Diagnose (with fixes) | workspace-write + --full-auto | --sandbox workspace-write --full-auto 2>/dev/null |
| Pure analysis | read-only | --sandbox read-only 2>/dev/null |
| Permit network or broad access | danger-full-access | --sandbox danger-full-access --full-auto 2>/dev/null |
| Resume recent session | Inherited | echo "prompt" \| codex exec --skip-git-repo-check resume --last 2>/dev/null |
Note:
danger-full-accessis never selected by default per sandbox-matrix.md. It requires explicit user instruction and a separate[Stop: high-risk-change]approval cycle.
../workflow-entry/references/codex-execution-contract.md.Emit quality_gate using ../workflow-entry/references/quality-gate-evidence-template.md.
Normalize local statuses into result: pass|fail|blocked before handoff.
Always include: gate_id, gate_type, trigger, criteria, result, evidence, blockers, branching.
Treat machine gate pass as non-equivalent to user approval.
Use branching.max_cycles: 2 unless the skill defines a stricter limit.
For Codex task-execution outputs, include all fields below.
status (completed / needs_input / blocked / failed)summarychanged_filestestsquality_gate (must include gate_id, gate_type, trigger, criteria, result, evidence, blockers, branching; gate_type map: implementation/build/task -> implementation; review/diagnose -> diagnosis; design/plan/update-doc/reverse-engineer -> document; add-integration-tests -> test_review)blockersnext_actionsstatus value meaningscompleted: Task finished and acceptance criteria satisfied.needs_input: emit an explicit stop tag pair and request approval/clarification/additional inputs before continuing.blocked: Cannot proceed due to unresolved external dependency or hard constraint.failed: Attempt executed but failed because of errors that require retry/rework.status: "completed"
summary: "Implemented requested updates and validated changes."
changed_files:
- path: ".claude/skills/codex/SKILL.md"
change_type: "modified"
tests:
- name: "manual-review"
result: "passed"
quality_gate:
gate_id: "impl-quality-final"
gate_type: "implementation"
trigger: "post-change validation"
criteria:
- "All required contract fields are present"
- "No stop/approval protocol violations detected"
result: "pass"
evidence:
- "Required contract fields are present"
blockers: []
branching:
on_pass: "handoff"
on_fail: "escalate"
max_cycles: 2
blockers: []
next_actions:
- "Proceed to next task if no additional constraints are raised"
AskUserQuestion to confirm next steps or collect clarifications.echo "new prompt" | codex exec --skip-git-repo-check resume --last (without 2>/dev/null) and send via tmux-sender.Use canonical markers: [Stop: <Gate Name>].
Classify every stop as approval_gate or escalation_gate; include gate record keys (gate_name, gate_type, trigger, ask_method, required_user_action, resume_if, fallback_if_rejected) and keep payload fields normalized (status, gate.gate_name, gate.gate_type, gate.approved, gate.batch_boundary, gate.revision_cycle, gate.max_revision_cycles, quality_gate.result).
approval_gate resumes only with explicit user approved: true; escalation_gate resumes only after reroute or user direction.
Respect the batch boundary: do not enter autonomous implementation/test runs until [Stop: pre-implementation-approval] is approved.
Enforce max_revision_cycles: 2; if exceeded, emit escalation and wait for user intervention.
Agent-local success from Codex output never replaces user approvals.
Stop points for this skill:
[Stop: sandbox-escalation-required] (approval_gate)[Stop: pre-implementation-approval] (approval_gate)[Stop: high-risk-change] (approval_gate)[Stop: quality-gate-failed] (escalation_gate)[Stop: requirement-change-detected] (escalation_gate)[Stop: revision-limit-reached] (escalation_gate)Full protocol and payload schema: ../workflow-entry/references/stop-approval-section-template.md.
Codex is powered by OpenAI models with their own knowledge cutoffs and limitations. Treat Codex as a colleague, not an authority.
codex --version or a codex exec command exits non-zero; request direction before retrying.--full-auto, --sandbox danger-full-access), emit [Stop: high-risk-change] + [Approve: high-risk-change] and get approval via AskUserQuestion unless it was already given.AskUserQuestion.databases
Unified deterministic entry for workflow requests. Centralizes routing with stop/approval and sandbox controls.
development
Sends commands to another tmux pane. Use when requests include phrases like "run it in another pane," "send via tmux," or "ask Claude Code to execute."
development
Single-agent execution loop for implementation tasks. Replaces task-executor/quality-fixer subagent cycle with direct Codex skill-driven implementation and quality gates.
development
End-to-end lifecycle orchestration with a single Codex agent. Replaces subagent workflow coordination while preserving scale-based phases, stop points, and quality gates.