home / skills / hiroro-work / claude-plugins / ask-codex
This skill helps you interact with the Codex CLI to get coding assistance, generate code, and debug via a local, repeatable workflow.
npx playbooks add skill hiroro-work/claude-plugins --skill ask-codexReview the files below or copy the command above to add this skill to your agents.
---
name: ask-codex
description: Asks Codex CLI for coding assistance. Use for getting a second opinion, code generation, debugging, or delegating coding tasks.
allowed-tools: Bash(codex:*)
---
# 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`:
```bash
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:**
```bash
codex exec "How do I implement a binary search in Python?"
```
**Analyze code in a specific directory:**
```bash
codex exec -C /path/to/project "Explain the architecture of this codebase"
```
**Use a specific model:**
```bash
codex exec -m o4-mini "Write a function that validates email addresses"
```
**Let Codex make changes automatically:**
```bash
codex exec --full-auto "Add error handling to all API endpoints"
```
## Notes
- Codex runs non-interactively with `exec` subcommand
- By default, output goes to stdout and no files are modified without approval
- Use `--full-auto` for automatic execution within sandbox constraints
- The command inherits the current working directory unless `-C` is specified
This skill integrates with the local codex CLI to ask for coding assistance from models available to the CLI. It runs non-interactive queries, can target a specific working directory or model, and supports automatic execution modes for making changes. Use it to get a second opinion, generate code, or delegate routine code edits to the Codex toolchain.
The skill executes the codex CLI using the exec subcommand and passes your plain-text prompt and any flags you provide. It can change the working directory (-C), choose a model (-m), and enable full-auto mode (--full-auto) to allow sandboxed workspace writes. By default, output streams to stdout and files are never modified without explicit full-auto approval.
Do I need network access to use this skill?
No. It runs the local codex CLI installed on your machine; network requirements depend on how your codex CLI is configured to reach models or services.
Will files be changed automatically?
Not by default. codex exec prints suggestions to stdout. Use --full-auto to allow automatic, sandboxed workspace writes, but review the implications before enabling it.