| name | claude-code |
| description | Delegate focused coding, review, investigation, or verification work from Codex to the local Claude Code CLI through the bundled ccpcx adapter. |
Claude Code Delegation
Use this skill when Codex should ask the local Claude Code CLI to perform an independent, focused task and return its result for Codex to integrate.
Preflight
- Resolve the plugin root from this skill's installed path, then run setup when the current thread has not already verified Claude Code. The plugin root is two directories above this
SKILL.md and contains .codex-plugin/plugin.json and scripts/ccpcx.mjs.
node "<ccpcx-plugin-root>/scripts/ccpcx.mjs" setup
- If setup says Claude Code is unavailable or auth is not ready, stop and report the next step. Do not attempt to install, login, or expose credentials unless the user explicitly asks.
Delegation Rules
- Delegate only a bounded task with a concrete deliverable.
- Keep Codex responsible for final judgment, file edits, verification, and user-facing summary.
- Do not send secrets, tokens, cookies, private keys, or authorization headers in the prompt.
- Include the relevant workspace path, constraints, expected output format, and whether Claude Code may edit files.
- Prefer read-only prompts for investigation and review. Use write-capable prompts only when the user asked for implementation or the task clearly requires it.
- For repo work, tell Claude Code to inspect files before acting and to avoid unrelated refactors.
- If Claude Code returns suggested commands or patches, verify them in Codex before treating the task as complete.
Commands
Run a task:
node "<ccpcx-plugin-root>/scripts/ccpcx.mjs" task --cwd "$PWD" -- "Review the current git diff for correctness. Return findings with file and line references."
Run with explicit model or effort:
node "<ccpcx-plugin-root>/scripts/ccpcx.mjs" task --cwd "$PWD" --model sonnet --effort high -- "Investigate why the test fails and return the minimal fix plan."
Allow Claude Code to write in its normal permission flow:
node "<ccpcx-plugin-root>/scripts/ccpcx.mjs" task --cwd "$PWD" --permission-mode acceptEdits -- "Implement the narrow fix described below, then report changed files and verification."
Resume a Claude Code session:
node "<ccpcx-plugin-root>/scripts/ccpcx.mjs" task --cwd "$PWD" --resume <session-id> -- "Continue from the prior result and answer only the remaining question."
Output Handling
- Treat Claude Code output as another review/input source, not as final truth.
- If it reports uncertainty, preserve that uncertainty in Codex's final synthesis.
- If it edited files, inspect
git diff, run relevant checks, and ensure unrelated user changes are not overwritten.