codex
Execute Codex CLI for code analysis, refactoring, and automated code changes. Use when you need to delegate complex code tasks to Codex AI with file references (@syntax) and structured output.
npx skills add majiayu000/claude-skill-registry --skill codex-cacr92-wereply-2 --agent codex
Same command for any agent — swap --agent for claude-code, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Codex CLI Integration ## Overview Execute Codex CLI commands and parse structured JSON responses. Supports file references via `@` syntax, multiple models, and sandbox controls. ## When to Use - Complex code analysis requiring deep understanding - Large-scale refactoring across multiple files - Automated code generation with safety controls ## Fallback Policy Codex is the **primary execution method** for all code edits and tests. Direct execution is only permitted when: 1. Codex is unavailable (service down, network issues) 2. Codex fails **twice consecutively** on the same task When falling back to direct execution: - Log `CODEX_FALLBACK` with the reason - Retry Codex on the next task (don't permanently switch) - Document the fallback in the final summary ## Usage **Mandatory**: Run every automated invocation through the Bash tool in the foreground with **HEREDOC syntax** to avoid shell quoting issues, keeping the `timeout` parameter fixed at `7200000` milliseconds (do not change it or use any other entry point). ```bash codex-wrapper - [working_dir] <<'EOF' <task content here> EOF ``` **Why HEREDOC?** Tasks often contain code blocks, nested quotes, shell metacharacters (`$`, ``
- Overview
- When to Use
- Fallback Policy
- Usage
- Environment Variables
- Timeout Control
- Parameters
- Return Format
- Invocation Pattern
- Examples
- Parallel Execution
- Notes
codex-wrapper - [working_dir] <<'EOF' codex-wrapper "simple task here" [working_dir] codex-wrapper resume <session_id> - [working_dir] <<'EOF' codex-wrapper - <<'EOF' codex-wrapper "explain @src/main.ts" codex-wrapper - "/path/to/project" <<'EOF' First session Output includes: SESSION_ID: 019a7247-ac9d-71f3-89e2-a823dbd8fd14 Continue the conversation with more context codex-wrapper resume 019a7247-ac9d-71f3-89e2-a823dbd8fd14 - <<'EOF'
What does the codex skill do?
Execute Codex CLI for code analysis, refactoring, and automated code changes. Use when you need to delegate complex code tasks to Codex AI with file references (@syntax) and structured output.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill codex-cacr92-wereply-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
