Delegate isolated code analysis, debugging, or backend review to the local Codex CLI via codex-cli-mcp. Use when the user invokes /codex or explicitly asks to consult Codex.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Codex?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/atong18-codex)
---
name: codex
description: Delegate isolated code analysis, debugging, or backend review to the local Codex CLI via codex-cli-mcp. Use when the user invokes /codex or explicitly asks to consult Codex.
---
# Consult Codex MCP
Delegate the task to the local Codex CLI through the `codex` MCP server's `ask_codex` tool (`codex-cli-mcp`).
## Guidelines
1. **Lean prompts**: Pass the absolute working directory (`cd`), relevant file paths, and a specific question instead of pasting full source files.
2. **Latest models & max reasoning**: Pass through any requested `model` (e.g. `gpt-6.2-sol`, `gpt-6.2-astra`) and `effort` (e.g. `low`, `medium`, `high`, `xhigh`, `max`, `ultra`) verbatim without downgrading.
3. **Read-only by default (Single-Writer principle)**: Keep `read_only=true` (`--sandbox read-only`) and ask for diagnostics or a unified diff so the host agent can review and apply edits; switch to `read_only=false` only when the user explicitly authorizes direct edits.
4. **Session reuse**: Reuse the task's `session_id` on follow-up turns and note the updated `session_id` in your reply.
5. **Inspect schema first**: If the MCP tool is lazy-loaded, read its schema before invoking it.