codex
БесплатноБез исполняемых скриптовНе проверенUse when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, code review, or automated editing
Об этом скилле
Codex Skill Guide
Requires Codex CLI 0.153+ (codex --version). --full-auto no longer exists in this line; use --approve-for-me.
Models and Reasoning Effort
| Model | Tier | Use for |
|---|---|---|
gpt-6-astra |
Flagship (default) | Hardest end-to-end work: architecture, multi-file refactors, security review, long agentic runs. ~1M context. |
gpt-5.6-sol |
GPT-5.6 flagship | Complex agentic coding when Astra is unavailable or over budget |
gpt-5.6-terra |
Mid tier | Everyday feature work, bug fixes, tests, routine review (GPT-5.5 class, cheaper) |
gpt-5.6-luna |
Fast, cheapest | Quick edits, lint, docs, formatting, throwaway or high-volume calls |
Effort ladder for model_reasoning_effort: low < medium < high < xhigh < max (provider also accepts none, minimal).
- Default
xhigh.maxis for astra/sol on genuinely hard problems; it is slow and token-heavy. - Suggested pairing: astra/sol
xhighormax; terramedium/high; lunalow/medium. - Astra at
lowroughly matches Sol athigh; do not raise effort by default. ultra(parallel internal sub-agents) is accepted by astra/sol on some builds but is not in the provider's validated list. Use only on explicit request; on aninvalid_valueerror fall back tomax.
Running a Task
- If the user already named a model and effort, use them. Otherwise ask once via
AskUserQuestionwith two questions in a single prompt: model (gpt-6-astra(Recommended),gpt-5.6-sol,gpt-5.6-terra,gpt-5.6-luna) and effort (xhigh(Recommended),high,medium,max). Pre-select per the table above based on task difficulty. - Pick the sandbox. Default
--sandbox read-only. For edits:--sandbox workspace-write --approve-for-me. Add-c sandbox_workspace_write.network_access=truewhen the task needs network inside workspace-write.--sandbox danger-full-accessonly with explicit permission. - Assemble:
echo "<PROMPT>" | codex exec --skip-git-repo-check -m <MODEL> -c model_reasoning_effort="<EFFORT>" --sandbox <MODE> [-C <DIR>] [--add-dir <DIR>] [-i <IMAGE>] [-o <FILE>] [--ephemeral] - 2>/dev/null- Always
--skip-git-repo-check. Always2>/dev/null(hides thinking tokens on stderr) unless the user asks for them or you are debugging. -o <FILE>writes only the final message; use it when you must parse the answer.--ephemeralfor throwaway runs that need not be resumable.- Pass
timeout: 600000or more to Bash; astra/sol atxhigh/maxcan run many minutes.
- Always
- Run, capture stdout, summarize the outcome.
- Then tell the user: "You can resume this Codex session at any time by saying 'codex resume' or asking me to continue with additional analysis or changes."
Quick Reference
| Use case | Command shape |
|---|---|
| Read-only review or analysis | --sandbox read-only 2>/dev/null |
| Apply local edits | --sandbox workspace-write --approve-for-me 2>/dev/null |
| Edits plus network | --sandbox workspace-write --approve-for-me -c sandbox_workspace_write.network_access=true 2>/dev/null |
| Broad access | --sandbox danger-full-access --approve-for-me 2>/dev/null (ask first) |
| Review uncommitted changes | codex exec review --uncommitted --skip-git-repo-check -m <MODEL> -c model_reasoning_effort="<EFFORT>" 2>/dev/null (no custom prompt allowed with --uncommitted, --base, or --commit) |
| Review vs branch / a commit | codex exec review --base <BRANCH> ... or codex exec review --commit <SHA> ... |
| Review with custom instructions | (echo "Review the following uncommitted diff. <INSTRUCTIONS>"; git diff) | codex exec --skip-git-repo-check --sandbox read-only -m <MODEL> -c model_reasoning_effort="<EFFORT>" - 2>/dev/null |
| Resume recent session | echo "prompt" | codex exec --skip-git-repo-check resume --last - 2>/dev/null |
| Run from another directory | add -C <DIR> |
Resuming
echo "new prompt" | codex exec --skip-git-repo-check resume --last - 2>/dev/null. Global flags go betweenexecandresume;--last,--all,-cgo afterresume.- The resumed session inherits model, effort, and sandbox. Do not pass overrides unless the user asks;
resumehas no-m, so change the model with-c model="<MODEL>"and effort with-c model_reasoning_effort="<EFFORT>". - Add
--allafterresumeif the original session started in a different directory.
Following Up
- After every
codexcommand, useAskUserQuestionto confirm next steps, collect clarifications, or decide whether to resume. - Restate the chosen model, effort, and sandbox when proposing follow-up actions.
Error Handling
- Stop and report when
codex --versionor anycodex execexits non-zero; ask for direction before retrying. - Before using
--approve-for-me,--sandbox danger-full-access, or--dangerously-bypass-approvals-and-sandbox, ask permission viaAskUserQuestionunless already given. - On
invalid_valueforreasoning.effort,
Установить codex в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл codex?
Use when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, code review, or automated editing
Как установить скилл codex?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл codex запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic