ask-codex
Asks Codex CLI for coding assistance. Use for getting a second opinion, code generation, debugging, or delegating coding tasks.
How do I install this agent skill?
npx skills add https://github.com/hiroro-work/claude-plugins --skill ask-codexIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides an interface to the Codex CLI for coding assistance and task automation. It uses tool restrictions to ensure the agent only executes the codex command.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
1 file scanned · No issues
What does this agent skill do?
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
Resume a session
Use exec resume --last to continue the most recent session with a follow-up prompt:
codex exec resume --last "Your follow-up prompt"
Note:
exec-level flags such as-Cand--full-autoare not accepted byexec resume— the resumed session inherits the original session's working directory. To adjust the sandbox on resume, use-c sandbox_mode="workspace-write";-m MODELremains available.
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 <model> "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
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/hiroro-work/claude-plugins/ask-codex">View ask-codex on skillZs</a>