Command Palette

Search for a command to run...

Назад к скиллам
скилл № 87792

Codex

Use Codex safely for repo-aware coding with explicit approvals, sandbox choices, MCP boundaries, and PR-ready verification workflows.

БесплатноБез исполняемых скриптов
clawicот clawic★ 23 звезды на GitHub

Установить Codex в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

When to Use

User wants to use Codex as a real coding agent instead of a generic chat assistant: inspect a repo, make bounded edits, run review mode, resume work, use MCP safely, or hand work off with clear verification evidence.

Use this skill when the hard part is not "write code" but "make Codex behave safely and predictably" across CLI, exec, review, resume, MCP, app-server, cloud tasks, or local OSS-provider workflows.

Architecture

Memory lives in ~/Clawic/data/codex/. If ~/Clawic/data/codex/ does not exist, run setup.md. See memory-template.md for structure.

~/Clawic/data/codex/
|-- memory.md          # Durable activation boundaries and operating defaults
|-- repo-profiles.md   # Per-repo conventions, test surface, and blast-radius notes
|-- safety.md          # Sandbox, approval, and trust defaults
|-- mcp-notes.md       # Approved MCP servers, scopes, and rejection reasons
`-- incidents.md       # Stuck sessions, failed commands, and recovery patterns

Quick Reference

Load only the smallest file needed for the current blocker.

Topic File
Setup guide setup.md
Memory template memory-template.md
Install, login, and first-run checks install-and-auth.md
Repo execution and codex exec workflows repo-execution.md
Approval modes and sandbox choices approvals-and-sandbox.md
MCP, app-server, cloud, and local-provider guardrails mcp-and-cloud.md
Review mode and handoff patterns review-and-handoffs.md
Recovery playbooks for auth, stuck sessions, and wrong-scope work troubleshooting.md

Requirements

  • codex binary installed and working on the target machine.
  • Active authentication through codex login or an explicit OPENAI_API_KEY flow when that mode is chosen.
  • git available when the task involves repository inspection, diff review, or commit-ready workflows.
  • Explicit user approval before dangerous sandbox bypass, remote MCP usage, Codex Cloud apply, production commands, or any operation with irreversible side effects.
  • Treat model names, features, and app-server behavior as live product surface: verify with codex --help, subcommand help, or official docs instead of hardcoding stale assumptions.

Operating Coverage

This skill treats Codex as an operational coding surface, not as generic AI advice. It covers:

  • interactive Codex CLI usage with explicit working-directory and safety choices
  • non-interactive codex exec and codex review workflows
  • resume, fork, and handoff-friendly session recovery
  • sandbox and approval policy selection by blast radius
  • MCP server trust decisions and local-versus-remote tool boundaries
  • Codex app-server and cloud task usage only when their extra trust and review requirements are explicit
  • local OSS-provider routing via --oss and --local-provider when the user intentionally wants local execution

Data Storage

Keep only durable Codex operating context in ~/Clawic/data/codex/:

  • which repos or workspaces are approved for Codex use
  • default sandbox and approval posture per task type
  • preferred execution surfaces: interactive CLI, exec, review, cloud, or local OSS provider
  • approved MCP servers and what each one is allowed to touch
  • recurring recovery notes for wrong directory, dirty worktree, stalled commands, or broken auth

Core Rules

1. Preflight the Task Before Codex Acts

  • Lock five facts first: target repo, current directory, dirty worktree state, required permissions, and expected verification.
  • If any of those are unclear, pause and resolve them before running Codex with write capability.
  • "Start coding" is never the first step in an unfamiliar repo.

2. Choose the Operating Mode Explicitly

  • Use interactive Codex for exploratory repo work, codex exec for bounded non-interactive execution, and codex review for review-first tasks.
  • If resuming or branching prior work, prefer resume or fork over re-describing the entire context from scratch.
  • Treat cloud, app-server, and MCP-assisted runs as separate modes with separate risk.

3. Match Sandbox and Approval to Blast Radius

  • Read-only fits inspection, planning, and low-trust exploration.
  • Workspace-write fits normal local coding in the approved repo.
  • Full access or dangerous bypass is a special-case mode that needs explicit user intent and an external sandbox story.
  • Do not normalize high-trust modes for convenience.

4. Read the Repo Before Editing It

  • Inspect tree shape, git status, entrypoints, conventions, and test surface before proposing edits.
  • When the worktree is already dirty, separate user changes from agent changes and avoid destructive cleanup.
  • Codex should adapt to the repo, not force the repo into a generic workflow.

5. Keep Changes Reviewable and Scoped

  • Favor minimal diffs, targeted commands, and explicit file ownership.
  • Avoid unrelated cleanup, speculative refactors, or "while here" edit
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • _meta.json
  • approvals-and-sandbox.md
  • install-and-auth.md
  • mcp-and-cloud.md
  • memory-template.md
  • repo-execution.md
  • review-and-handoffs.md
  • setup.md
  • troubleshooting.md

FAQ

Что делает скилл Codex?

Use Codex safely for repo-aware coding with explicit approvals, sandbox choices, MCP boundaries, and PR-ready verification workflows.

Как установить скилл Codex?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Codex запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Codex с