OpenClaw Claude Codex Workflow for Openclaw

A high-performance multi-model pipeline that orchestrates Claude for planning, Codex for backend execution, and Gemini for frontend development.

shennng
v0.1.0
Mar 24, 2026
1
777
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install openclaw-claude-codex-workflow

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install openclaw-claude-codex-workflow using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is OpenClaw Claude Codex Workflow?

The OpenClaw Claude Codex Workflow is a sophisticated automation framework designed for complex software engineering tasks within Openclaw Skills. It leverages the unique strengths of three distinct AI models: Claude Code acts as the strategic planner and reviewer, Codex serves as the backend executor with PTY capabilities, and Gemini functions as the specialized frontend and UX generator.

By utilizing the scripts/ccg_orchestrator.sh tool, this skill ensures that all AI-driven operations are synchronized through a centralized .claude/ directory. This structure guarantees that code changes are local, verifiable via Git, and aligned with rigorous technical specifications like OPSX, providing a closed-loop delivery system from initial planning to final review.

OpenClaw Claude Codex Workflow Use Cases

  • Orchestrating full-stack feature development across multiple specialized AI agents.
  • Aligning AI-generated code with high-standard OPSX or technical specification documents.
  • Implementing backend API refactoring and logic updates using Codex with PTY security.
  • Generating React, Vite, or Storybook frontend components using Gemini in isolated worktrees.
  • Managing emergency hotfixes with automated verification and human-in-the-loop reviews.

How OpenClaw Claude Codex Workflow Works

  1. Context Capture: The skill gathers requirements from OPSX tickets and populates .claude/context.md to define the mission scope.
  2. Scope Alignment: Claude Code analyzes the context to output a technical scope document detailing backend and frontend division of labor.
  3. Orchestrated Planning: The orchestrator script generates a multi-stage plan including model ownership and expected command drafts.
  4. Parallel Execution: Codex executes backend tasks in the main worktree while Gemini handles frontend UI development in a separate Git worktree.
  5. Verification & Stability: Models run automated test matrices (npm test, pytest) to validate changes against the original plan.
  6. Handoff & Review: Claude generates a final review memo including risk assessments and rollback strategies before the final Git push.

OpenClaw Claude Codex Workflow Setup

Ensure you have Node.js 20+, jq, and GNU coreutils installed. Your git status must be clean before starting.

  1. Install the required CLIs for Claude, Codex, and Gemini following their respective official documentation.
  2. Export your API keys in your shell profile:
export CLAUDE_API_KEY="your_key"
export CODEX_API_KEY="your_key"
export GOOGLE_API_KEY="your_key"
  1. Initialize your workspace within the Openclaw Skills environment:
# Navigate to your workspace
cd /root/.openclaw/workspace

# Run the orchestrator to start a new workflow
./scripts/ccg_orchestrator.sh .claude/plan.md \
  --plan-prompt "Implement payment gateway" \
  --backend "Node.js/Stripe" \
  --frontend "React/Tailwind" \
  --context .claude/context.md

OpenClaw Claude Codex Workflow Data Schema & Taxonomy

This skill utilizes a structured metadata taxonomy within the .claude/ directory to maintain state and traceability across Openclaw Skills.

File Purpose
.claude/context.md Source of truth for requirements and OPSX tickets.
.claude/plan.md The master execution roadmap for all models.
.claude/scope.md Technical boundaries and security constraints.
.claude/log_backend.md Execution history and diffs for Codex operations.
.claude/log_frontend.md Execution history and diffs for Gemini operations.
.claude/test_matrix.md Consolidated results of automated and manual tests.
.claude/hooks.md Environment variables and CLI path overrides.

OpenClaw Claude Codex Workflow Advanced Features

  • Multi-agent synchronization: Prevents model conflicts using Git worktrees for isolated frontend development.
  • PTY Execution: Codex runs in a Pseudo-Terminal environment for authentic shell interactions and real-time feedback.
  • Automated Model Fallback: Intelligent routing to alternative models if the primary agent hits a quota or timeout.
  • OPSX Evidence Integration: Automatically attaches planning and testing artifacts to project management tickets for audit trails.
  • Dry-run Validation: Preview AI-generated commands before execution to ensure safety and alignment with security policies.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*