From claude-codex-mcp
Routes natural-language Codex requests to the claude-codex MCP server. TRIGGER when the user mentions "codex", "$orchestrate", "$subagent-manager", "$prepare-orchestrate-plan", or any profile/workflow keyword (investigate, fix, implement, plan, review, orchestrate). Also TRIGGER when handling a wake-up notification from a Codex job. SKIP if the request is unrelated to Codex.
npx claudepluginhub kiemzbui/claude-codex-mcpThis skill uses the workspace's default tool permissions.
Claude routes. MCP records and monitors. Codex executes. This skill operationalizes the routing rules in `Docs/proposed_workflow.md` and the wake-up render contract.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Performs token-optimized structural code search using tree-sitter AST parsing to discover symbols, outline files, and unfold code without reading full files.
Claude routes. MCP records and monitors. Codex executes. This skill operationalizes the routing rules in Docs/proposed_workflow.md and the wake-up render contract.
| User says | Profile |
|---|---|
| investigate, explain, find out, read-only, why does, how does, trace | investigation |
| fix, edit, implement, change, update, refactor, add (code/test) | implementation |
| plan, draft a plan, prepare orchestrate plan | planning |
$orchestrate execute, run plan, execute batch | orchestration (workflow=orchestrate_execute) |
$orchestrate revise, revise plan | orchestration (workflow=orchestrate_revise) |
| review, audit, find risks, check for | review |
| User says | Workflow |
|---|---|
| (default for narrow tasks) | direct |
$subagent-manager, "use subagent manager", broad bug trace, preserve context | subagent_manager |
$prepare-orchestrate-plan | prepare_orchestrate_plan |
$subagent-manager + $prepare-orchestrate-plan together | managed_plan |
$orchestrate execute ... | orchestrate_execute |
$orchestrate revise ... | orchestrate_revise |
investigation or review profiles regardless of user later asking; switch profiles instead.If the user's request implies continuation ("keep working on X", "what's codex doing", "continue the auth work"), call codex_list_jobs first. For unambiguous new asks ("fix the failing test"), skip — go straight to codex_start_task.
Generate a short descriptive title (3-7 words) from the prompt. Server rejects blank titles. Example:
If codex_list_jobs shows an active job in the same profile and the new request relates to it, ask the user:
maxConcurrentJobs allows) — call codex_start_task againcodex_queue_inputcodex_cancel, then dispatch newState all three options. Default suggestion: queue if the new request is a follow-up; new job if it's distinct work.
When codex_status returns waiting_for_input:
pendingInputRequest (summary, message, options)codex_send_inputDo not poll while idle. After dispatch, idle and wait for the Stop-hook rewake. Only use codex_status wait=true (≤20s) when user explicitly says "wait on job X".
When woken by a Codex job completion notification, call codex_result (default detail=full) and codex_status, then render exactly this format:
Codex finished: <title>
─── Codex output ───
<full response from codex_result>
───────────────────
[codex status: context <X>% | weekly <X>% | 5h <X>%]
<jobId> · <profile>/<workflow> · <model>/<effort> · <status> in <duration>
Rules:
Codex finished: <title> (or Codex failed: <title> / Codex cancelled: <title> / Codex needs input: <title>)─── for separators (not code fences — Codex output may contain code).[codex status: context X% | weekly X% | 5h X%]. Use ? for unavailable values.<jobId> · <profile>/<workflow> · <model>/<effort> · <status> in <duration>.failed: append lastError: <message> on a new line in metadata block.waiting_for_input: append the pending question on a new line, then ask the user.If 2+ jobs are active when wake fires, append after metadata block:
Other active: <jobId-1> (<status>, <age>), <jobId-2> (<status>, <age>)
Always render: [codex status: context X% | weekly X% | 5h X%]
? for unavailable.The plugin provides /codex-run, /codex-status, /codex-result, /codex-cancel, /codex-profiles. Each accepts --help. Slash commands skip routing inference; this skill applies only to NL requests.