/codex-exec - Execute Codex CLI Commands
Description
**Easy wrapper for running Codex CLI commands from Claude Code with proper syntax.** ---
Installation
claude install-skill https://github.com/alirezarezvani/claude-code-skill-factory README
/codex-exec - Execute Codex CLI Commands
**Easy wrapper for running Codex CLI commands from Claude Code with proper syntax.**
Usage
/codex-exec [analysis|edit|search|resume] "your task"
/codex-exec --model [gpt-5|gpt-5-codex] "your task"
/codex-exec --help
What This Command Does
**Executes Codex CLI commands with**:
- undefined
**CRITICAL**: Always uses `codex exec` not plain `codex` (required for Claude Code environment)
Command Types
Analysis (Read-Only)
Safe code analysis without modifications.
**Usage**:
/codex-exec analysis "analyze security vulnerabilities"
**Executes**:
codex exec -m gpt-5 -s read-only \
-c model_reasoning_effort=high \
--skip-git-repo-check \
"analyze security vulnerabilities"
**Use for**:
- undefined
Edit (Workspace Write)
Code editing and file modifications.
**Usage**:
/codex-exec edit "refactor main.py for async patterns"
**Executes**:
codex exec -m gpt-5-codex -s workspace-write \
-c model_reasoning_effort=high \
--full-auto \
--skip-git-repo-check \
"refactor main.py for async patterns"
**Use for**:
- undefined
Search (Web Search Enabled)
Tasks requiring latest information from the web.
**Usage**:
/codex-exec search "research latest Python async patterns"
**Executes**:
codex exec -m gpt-5 -s read-only \
-c model_reasoning_effort=high \
--search \
--skip-git-repo-check \
"research latest Python async patterns"
**Use for**:
- undefined
Resume (Continue Session)
Resume previous Codex session.
**Usage**:
/codex-exec resume
**Executes**:
codex exec resume --last
**Use for**:
- undefined
Model Selection
GPT-5 (General Reasoning)
**Default for**: Analysis, Search, General tasks
**Best for**:
- undefined
**Characteristics**:
- undefined
GPT-5-Codex (Code Specialized)
**Default for**: Edit tasks
**Best for**:
- undefined
**Characteristics**:
- undefined
Examples
Example 1: Security Analysis
**User**:
/codex-exec analysis "analyze this codebase for security vulnerabilities"
**What happens**:
- undefined
Related Skills
next.js
| The React Framework | 138360 | 1503 | 1 |
Development community sharing-skills
skill for guidance.
Development community root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development community Template Skill
Minimal skeleton for a new skill project structure.
Development community Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THIS PRODUCT. ---
Development official Claude API
When code imports anthropic/@anthropic-ai/sdk/claude_agent_sdk, or user asks to use Claude APIBuild apps with the Claude API or Anthropic SDK
Development official Related Agents
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
Contributing to nanobot
Thank you for being here. nanobot is built with a simple belief: good tools should feel calm, clear, and humane. We care deeply about useful features, but we also believe in achieving more with less:
Key exports from each phase
for summary in .planning/phases/*/*-SUMMARY.md; do echo "=== $summary ===" grep -A 10 "Key Files\|Exports\|Provides" "$summary" 2>/dev/null done