Skip to main content

codex-exec-pitfalls

Pitfalls when using `codex exec` to drive a third-party CLI tool, skill, plugin, or workflow (NOT for using Codex as a coding agent — see the bundled `codex` skill for that). Class-level skill. Triggers when the task involves driving any external tool via `codex exec`, especially when: (a) the tool needs an env var to gate a network call or feature flag, (b) the tool needs stdin to receive a secret or code, (c) the agent must follow a multi-phase protocol (preflight → enroll → hand-off → poll), or (d) you want the agent to run scripts that you could just as easily run yourself. Anti-trigger: pure coding tasks ("add dark mode", "fix this bug") → use the bundled `codex` skill. Anti-trigger: one-shot shell commands you can run directly → skip `codex exec` entirely.

Jump to install

Source facts

Repository
jleechanorg/claude-commands
Last source activity
August 2, 2026 at 01:06
Detected SKILL.md language
English
Stars
3
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.