Agent skill
ask-codex
Asks Codex CLI for coding assistance. Use for getting a second opinion, code generation, debugging, or delegating coding tasks.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/ask-codex-hiroro-work-claude-plugins
SKILL.md
Ask Codex
Executes the local codex CLI to get coding assistance.
Note: This skill requires the codex CLI to be installed and available in your system's PATH.
Quick start
Run a single query with codex exec:
codex exec "Your question or task here"
Common options
| Option | Description |
|---|---|
-m MODEL |
Specify model |
-C DIR |
Set working directory |
--full-auto |
Enable automatic execution with workspace-write sandbox |
For all available options, run
codex exec --help
Examples
Ask a coding question:
codex exec "How do I implement a binary search in Python?"
Analyze code in a specific directory:
codex exec -C /path/to/project "Explain the architecture of this codebase"
Use a specific model:
codex exec -m o4-mini "Write a function that validates email addresses"
Let Codex make changes automatically:
codex exec --full-auto "Add error handling to all API endpoints"
Notes
- Codex runs non-interactively with
execsubcommand - By default, output goes to stdout and no files are modified without approval
- Use
--full-autofor automatic execution within sandbox constraints - The command inherits the current working directory unless
-Cis specified
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?