smithery.ai

ask-codex

Asks Codex CLI for coding assistance. Use for getting a second opinion, code generation, debugging, or delegating coding tasks.

First seen Apr 3, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash(codex *)
Declared agents codex

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,965 B
  • docs SUMMARY.md 144 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

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

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 -C and --full-auto are not accepted by exec resume — the resumed session inherits the original session's working directory.
To adjust the sandbox on resume, use -c sandbox_mode="workspace-write"; -m MODEL remains 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 gpt-5.3-codex "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 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