thepushkarp/cc-codex-plugin/codex
Claude Code and agent skill by thepushkarp/cc-codex-plugin
- community
Checking that the SKILL.md file is still in the repository.
This skill provides guidance on using OpenAI's Codex CLI for detail-oriented code analysis. Use when the user explicitly invokes "/codex", asks to "use codex", "run codex", "have codex review", or when Claude determines that Codex's sharp-eyed analysis would complement its work on code review, bug hunting, or planning tasks.
Install
npx vskill@latest install thepushkarp/cc-codex-plugin/codexSKILL.md
Codex Integration
OpenAI's Codex CLI is a complementary tool for detail-oriented code analysis. Codex excels at thorough, meticulous review work - think of it as a "sharp-eyed second opinion" for code.
When to Use Codex
Ideal use cases:
- Deep code review for security vulnerabilities or correctness issues
- Thorough bug hunting in complex code paths
- Detailed implementation planning with attention to edge cases
- Getting a second perspective on critical code
- Exploratory analysis requiring meticulous attention
Not ideal for:
- Simple, straightforward tasks Claude handles well alone
- Interactive debugging sessions (Codex exec is non-interactive)
- Tasks where speed matters more than depth
- Trivial code changes or obvious fixes
Invocation Methods
Method 1: Explicit /codex Command
Users invoke directly with optional flags:
Available flags:
| Flag | Values | Default | |
|---|---|---|---|
--model | any model name | gpt-5.4 | |
--sandbox | read-only, workspace-write, danger-full-access | read-only |
Method 2: Spawning codex-agent
When Claude determines Codex would add value, spawn the codex-agent subagent:
The agent always uses safe defaults (gpt-5.4, read-only sandbox).
CLI Reference
Core command pattern for non-interactive execution (use inline prompt, not piped stdin):
Key flags:
--model, -m- Model to use (gpt-5.4 recommended for code tasks)--sandbox, -s- Execution permissions (read-only safest)2>&1- Capture all output
Note: Interactive slash commands like /review only work in Codex's interactive mode, not via codex exec.
Error Handling
Codex Not Installed
If codex command not found, show:
Common Issues
- API key issues: User needs to run
codex loginto authenticate - Timeout: Complex tasks may take time. Be patient or try a simpler task description.
- Sandbox errors: If Codex needs to write files, user must specify
--sandbox workspace-write
Best Practices
- Start with defaults - gpt-5.4 works well for most tasks
- Keep read-only sandbox - Unless task explicitly requires file modifications
- Be specific in prompts - Tell Codex exactly what to look for
- Synthesize results - When using codex-agent, combine Codex's findings with Claude's analysis
Prompting Best Practices
gpt-5.4 responds best to explicit, scoped prompts with concrete constraints.
Core Principles
- Scope discipline - Be explicit about boundaries
- DO: "Review ONLY the auth flow. Do NOT suggest unrelated improvements."
- DON'T: "Review this code" (too open-ended)
- Bias toward action - Request concrete output
- DO: "List specific bugs found with file:line references"
- DON'T: "Tell me what you think about this code"
- No preambles - Skip status updates
- Add to prompts: "Skip preambles. Lead with findings."
- Structured output - Request specific formats
- "Format:
file.ts:line- issue description"
Task-Specific Prompt Templates
Security Review
Bug Hunting
Implementation Planning
Code Review
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/codex/SKILL.md
Popularity
- Repository stars
- 1
- Repository forks
- 2
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/thepushkarp/cc-codex-plugin/codex)