--- name: codex-prompting displayName: Codex Prompting description: "Use this skill for any request to trigger, coordinate, or craft prompts for Codex. Use when user says 'send to codex', 'use codex', 'prompt codex', 'ask codex', 'delegate to codex', 'run in codex', or asks for a Codex-first execution handoff." version: 1.0.2 author: Joel Hooks tags: [codex, prompting, automation, pi, operations] --- # Codex Prompting Skill ## What this skill is for Use this when the request is any of the following: - "send to codex" - "prompt codex" - "use codex" - "ask codex" - "delegate to codex" - "delegate this to codex" - "run this in codex" - "run in codex" - "handoff to codex" - "handoff this to codex" - "codex this" The job is to produce a high-signal Codex request that gets directly executed with minimal ambiguity. ## Required model default - Codex tasks must set model to `gpt-5.3-codex` when unspecified. - Use an explicit model override only when user explicitly requests another. ## Local runtime defaults (Panda) - Global defaults live in `~/.codex/config.toml`: - `approval_policy = "never"` - `sandbox_mode = "danger-full-access"` - `allow_login_shell = false` - Hard safety rails live in `~/.codex/rules/safety.rules`: - forbid force/mirror pushes - forbid obvious filesystem root wipe commands - forbid disk-destruction primitives (`diskutil eraseDisk`, `mkfs`, `dd`) - `pi-tools` `codex` extension defaults to: - `--ask-for-approval never` - `--sandbox danger-full-access` - `full_auto = false` (opt-in legacy mode) - Expected behavior: - normal `git commit` and `git push` should run without permission friction - blocked commands fail fast with explicit `forbidden` decision ## System shape to anchor Codex prompts - Orchestrated by `packages/system-bus` and durable `Inngest` functions. - Event bridge and notifications flow through Redis, gateway, and Telegram. - Observability is required: OTEL -> Typesense (`otel_events`) -> Convex/UI surfaces. - CLI-first operations are expected; prefer `joelclaw`, `slog`, and skill commands instead of direct daemon/db/process pokes. ## Always-follow execution contract (from OpenAI Codex prompting guide) 1. No preamble, no plans, and no “I’ll do X then Y” narration. 2. Preserve strict action-first output: - do exactly what the user asked - include only necessary confirmation - return direct results. 3. Keep prompts structured and executable. 4. Preserve one clear objective and constrained scope. 5. Prioritize safe shell/tool actions and explicit failure handling. 6. Use parallel tool calls whenever independent work can run concurrently. 7. Use durable workflow patterns in Codex loops: - explicit IDs - explicit rollback/retry context - structured outputs for downstream steps. ## Canonical request format for Codex handoff Use this exact shape unless the user already provided a better one: - Goal: `` - Context: `` - Constraints: `