Agent skill

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.

majiayu000github.com/majiayu000GitHub ↗
codexclaude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 11 KB
Bundled scripts: none
Path: skills/ai-llm/codex-cacr92-wereply-2/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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 (`$`, ``

What's inside
Steps it walks through
  1. Overview
  2. When to Use
  3. Fallback Policy
  4. Usage
  5. Environment Variables
  6. Timeout Control
  7. Parameters
  8. Return Format
  9. Invocation Pattern
  10. Examples
  11. Parallel Execution
  12. Notes
Ships with 1 file
  • metadata.json
Commands it runs
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'
More from claude-skill-registry
All skills →
About this skill
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.

Keep going