← Back to Skills Marketplace
philipbankier

Codex Handoff (OpenClaw Plans, Codex Codex, OpenClaw Judges)

by philipbankier · GitHub ↗ · v1.1.1 · MIT-0
cross-platform ⚠ suspicious
108
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install codex-handoff-skill
Description
Offload finalized coding plans to Codex CLI for automated execution. Use when: user says "hand off to codex", "let codex do it", "offload to codex", runs /co...
README (SKILL.md)

Codex Handoff — Supervisor Loop

Claude Code is the supervisor/judge. Codex CLI is the executor. You orchestrate a loop: send plan to Codex, review results, re-run if incomplete, until the task is comprehensively done.

Announce at start: "Using codex-handoff to orchestrate Codex CLI execution of the plan."

Prerequisites

  • Codex CLI must be installed (codex --version)
  • A plan must exist (in docs/plans/, .claude/plans/, or provided inline)
  • The working directory should be a git repo (for diff-based review)

Quick Start

  1. Locate the plan (from docs/plans/, .claude/plans/, or user arguments)
  2. Detect phases — scan for phase headings; if found, execute phase-by-phase
  3. Build a structured Codex prompt with plan (or phase) + project context + coding standards
  4. Execute Codex CLI in --full-auto mode
  5. Review git diff, run tests, audit completion with a scorecard
  6. Decide — loop with correction prompt if items remain, or advance to next phase / finalize
  7. Report final status with completed/remaining items and test results

Reference

Task Details
Build Codex prompt prompt-templates.md
Review & audit results review-process.md
Handle errors error-handling.md

Process

Step 1: LOCATE THE PLAN

Find the plan to execute. Search in order:

  1. If user provided a task description with the command, use that as context to find the relevant plan
  2. Check docs/plans/ for the most recent .md file (sorted by date prefix)
  3. Check .claude/plans/ for any recent plan files
  4. If no plan found, tell the user: "No plan found. Please create one first using /brainstorming or /writing-plans."

Once found:

  • Read the plan file completely
  • Present a brief summary to the user
  • Ask: "Ready to hand off to Codex CLI?"
  • Wait for confirmation before proceeding

Step 1b: DETECT PHASES

After reading the plan, scan for H2 headings matching: ## Phase N:, ## Stage N:, ## Part N:, or numbered sections like ## 1. Backend.

  • Phases found — Report: "Detected {N} phases. Will execute sequentially." Use phased flow.
  • No phases — Single-pass execution (Steps 2-6 as normal). No changes for simple plans.
  • --phase N — Optional. Re-run only phase N.

Step 2: BUILD THE CODEX PROMPT

See prompt-templates.md. Use the "Initial Execution Prompt" for single-pass, or "Phase-Scoped Execution Prompt" for phased mode (current phase only + completed phase summaries).

Step 3: EXECUTE CODEX

Parse optional arguments:

  • --max-iterations N — max loop iterations (default: 5, per-phase in phased mode)
  • --model MODEL — pass to codex as -m MODEL
  • --phase N — execute only this phase (phased mode only)
codex exec --full-auto -s workspace-write [-m MODEL] \x3C /tmp/codex-handoff-{timestamp}.md

Let the command run to completion. Capture stdout and exit code. Report: "Codex iteration {N} complete. Reviewing changes..."

Phased execution flow: For each phase (or single phase if --phase N): build phase-scoped prompt → run Codex → review → correction loop (up to max-iterations) → phase passes: record summary, advance → phase fails at max: ask user to continue or stop.

Step 4: REVIEW THE RESULTS

See review-process.md for the review checklist, scorecard, and decision matrix. In phased mode, the scorecard is scoped to current phase items only.

Step 5: DECIDE — LOOP OR COMPLETE

  • All items DONE + tests pass: Move to Step 6 (or next phase).
  • Items remain AND iterations \x3C max: Build correction prompt and re-run Codex.
  • Max iterations reached: Move to Step 6. In phased mode, ask user to continue or stop.

Step 6: FINAL REPORT

See report format in review-process.md. In phased mode, report per-phase results then aggregate. If items remain, suggest --phase N to retry.

Key Principles

  1. Never modify code yourself — Your job is to supervise, not code. Codex does the coding.
  2. Be a strict judge — Don't pass items as "done" unless they genuinely are.
  3. Correction prompts are specific — Tell Codex exactly what's wrong and what to fix.
  4. Respect the plan — Don't add or remove plan items. Execute what was planned.
  5. Keep the user informed — Report status after each iteration and phase transition.
Usage Guidance
This skill appears to do what it says (orchestrate Codex CLI to implement plans), but there are a few gaps you should address before installing/using it: 1) Confirm you have the Codex CLI installed and available on PATH — the SKILL.md expects 'codex --version' and runs 'codex exec --full-auto', but the metadata doesn't declare this requirement. 2) Understand that the agent will read local plan files and the repository, run the external Codex process which can write to your workspace, and run tests; back up the repo or use a disposable branch before handing off. 3) Verify there are no secrets in the working tree that could be exposed to any external service Codex CLI might contact. 4) Require explicit user confirmation before any execution (the skill says it will wait for confirmation — keep that). 5) If you need stronger guarantees, ask the skill author to update metadata to declare the 'codex' binary and required config paths, and to document any network interactions or credentials Codex CLI may use. Proceed with caution; the mismatch between declared requirements and runtime expectations is likely an oversight but increases risk.
Capability Analysis
Type: OpenClaw Skill Name: codex-handoff-skill Version: 1.1.1 The skill orchestrates automated code execution by passing plans to an external 'codex' CLI using the Bash tool (SKILL.md). While the instructions emphasize a supervisor role with git diff reviews and test execution, the use of '--full-auto' mode with workspace-write permissions represents a high-risk capability. The absence of the referenced documentation files (e.g., review-process.md) makes it impossible to verify the rigor of the audit steps, warranting a suspicious classification despite no clear evidence of malicious intent.
Capability Assessment
Purpose & Capability
The skill clearly intends to drive a local 'codex' CLI and operate inside a git repo with plan files (docs/plans/, .claude/plans/). However the registry metadata lists no required binaries, env vars, or config paths. At minimum the skill should declare 'codex' as a required binary and indicate the need for a git repo and plan file locations.
Instruction Scope
SKILL.md instructs the agent to search local plan files, read them, build prompts, run 'codex exec --full-auto -s workspace-write', capture stdout/exit code, inspect git diffs, run tests, and loop until completion. Those actions are coherent with supervising automated code changes, but they allow the executor to modify repository files and run project tests — so the agent will perform destructive/privileged actions in the workspace unless explicitly confirmed/backed up.
Install Mechanism
Instruction-only skill with no install spec is low-risk from an installation perspective. Nothing will be written to disk by the skill itself during install.
Credentials
No env vars or credentials are declared, which is generally good. However the runtime assumes access to a local Codex CLI and possibly other tooling (test runners, git). The skill does not acknowledge or request any credentials that Codex CLI might require (if it communicates to remote services), nor does it warn about secrets in the repo/workspace.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request persistent/enforced presence or system-wide configuration changes.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install codex-handoff-skill
  3. After installation, invoke the skill by name or use /codex-handoff-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.1
Added skill: - OpenClaw/Claude Code skill that offloads coding plans to Codex CLI for execution, with an automated supervisor/judge loop
Metadata
Slug codex-handoff-skill
Version 1.1.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Codex Handoff (OpenClaw Plans, Codex Codex, OpenClaw Judges)?

Offload finalized coding plans to Codex CLI for automated execution. Use when: user says "hand off to codex", "let codex do it", "offload to codex", runs /co... It is an AI Agent Skill for Claude Code / OpenClaw, with 108 downloads so far.

How do I install Codex Handoff (OpenClaw Plans, Codex Codex, OpenClaw Judges)?

Run "/install codex-handoff-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Codex Handoff (OpenClaw Plans, Codex Codex, OpenClaw Judges) free?

Yes, Codex Handoff (OpenClaw Plans, Codex Codex, OpenClaw Judges) is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Codex Handoff (OpenClaw Plans, Codex Codex, OpenClaw Judges) support?

Codex Handoff (OpenClaw Plans, Codex Codex, OpenClaw Judges) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Codex Handoff (OpenClaw Plans, Codex Codex, OpenClaw Judges)?

It is built and maintained by philipbankier (@philipbankier); the current version is v1.1.1.

💬 Comments