Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools

MITAuto-check passedAgent Workflows

Install Codex CLI Bridge

skills CLI
$ npx skills add alirezarezvani/claude-code-skill-factory --skill codex-cli-bridge -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install alirezarezvani/claude-code-skill-factory codex-cli-bridge --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/alirezarezvani/claude-code-skill-factory.git skills-src && mkdir -p .claude/skills && cp -r skills-src/generated-skills/codex-cli-bridge .claude/skills/codex-cli-bridge && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
codex-cli-bridge
GitHub stars
879
Token cost
~2.2k tokens
SKILL.md length
703 words
Files
15
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools

  • Works in 4 steps: CLAUDE.md → AGENTS.md Generation → Safety Mechanism → Codex CLI Execution Helpers → …
  • Tasks that involve Agent instruction files
  • SKILL.md covers Purpose, Key Capabilities, Input Requirements and Output Formats, plus 4 more sections
  • Runs Python and Shell scripts from its folder; calls codex

What it does

Codex CLI Bridge is an agent skill from alirezarezvani/claude-code-skill-factory. Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 14 other files (for example `CHANGELOG.md`, `HOW_TO_USE.md` and `INSTALL.md`).

It sits in Agent Workflows, covering Agent instruction files. It works with Python and OpenAI. The repository describes itself as: Claude Code Skill Factory — A powerful open-source toolkit for building and deploying production-ready Claude Skills, Code Agents, custom Slash Commands, and LLM Prompts at… The licence is MIT.

When your agent uses it

  • Tasks that involve Agent instruction files

Example prompts

  • “/codex-cli-bridge”

Requirements

  • Python 3
  • A Bash shell

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. CLAUDE.md → AGENTS.md Generation
  2. Safety Mechanism
  3. Codex CLI Execution Helpers
  4. Skill Documentation for Codex CLI

What it can do on your machine

Read from SKILL.md and the folder at commit ba18b31. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • codex

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • agents.md

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Codex CLI Bridge loads about 2.2k tokens when it runs. Until then it costs about 49 tokens; SKILL.md has 703 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~49
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from alirezarezvani/claude-code-skill-factory at commit ba18b31, republished under its MIT licence (© alirezarezvani). 703 words, ~2,185 tokens.

Download SKILL.mdSave it as .claude/skills/codex-cli-bridge/SKILL.md (or your agent's skills folder). This skill also uses 14 other files; get the full folder from GitHub.
name
codex-cli-bridge
description
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools

Codex CLI Bridge Skill

Purpose

This skill creates a comprehensive bridge between Claude Code and OpenAI's Codex CLI, enabling seamless interoperability through:

  1. Documentation Translation: Converts CLAUDE.md → AGENTS.md (reference-based, no file duplication)
  2. Execution Helpers: Python wrappers for Codex CLI commands (always uses codex exec)
  3. Skill Documentation: Makes Claude Skills accessible to Codex CLI users

Key Capabilities

1. CLAUDE.md → AGENTS.md Generation
  • Parses CLAUDE.md and project structure
  • Scans .claude/skills/, .claude/agents/, documentation/ folders
  • Generates comprehensive AGENTS.md with file path references
  • Reference-based: No file duplication, only links to existing files
  • Documents Skills with most relevant usage method (bash scripts vs prompt references)
2. Safety Mechanism
  • Auto-checks Codex CLI installation (codex --version)
  • Auto-runs /init if CLAUDE.md missing (with user notification)
  • Validates authentication and environment
  • User-friendly error messages
3. Codex CLI Execution Helpers
  • exec_analysis() - Read-only analysis tasks (gpt-5, read-only sandbox)
  • exec_edit() - Code editing tasks (gpt-5-codex, workspace-write)
  • exec_with_search() - Web search-enabled tasks
  • resume_session() - Continue last Codex session
  • Always uses codex exec (never plain codex - critical for Claude Code)
4. Skill Documentation for Codex CLI
  • Prompt-only skills: Show how to reference in Codex prompts
  • Functional skills: Show how to execute Python scripts directly
  • Complex skills: Show both methods
  • Includes proper codex exec command syntax
  • Model selection guidance (gpt-5 vs gpt-5-codex)

Input Requirements

For AGENTS.md Generation
json
{
  "action": "generate-agents-md",
  "project_root": "/path/to/project",
  "options": {
    "validate_codex": true,
    "auto_init": true,
    "include_mcp": true,
    "skill_detail_level": "relevant"
  }
}
For Codex Execution
json
{
  "action": "codex-exec",
  "task_type": "analysis|edit|search",
  "prompt": "Your task description",
  "model": "gpt-5|gpt-5-codex",
  "sandbox": "read-only|workspace-write|danger-full-access"
}

Output Formats

AGENTS.md Structure
markdown
# AGENTS.md

## Project Overview
[From CLAUDE.md]

## Available Skills
### Skill Name
**Location**: `path/to/skill/`
**Using from Codex CLI**: [Most relevant method]

## Workflow Patterns
[Slash commands → Codex equivalents]

## MCP Integration
[MCP server references]

## Command Reference
| Claude Code | Codex CLI |
|-------------|-----------|
[Mappings]
Execution Helper Output
python
{
  "status": "success|error",
  "output": "Command output",
  "session_id": "uuid",
  "model_used": "gpt-5|gpt-5-codex",
  "command": "codex exec ..."
}

Python Scripts

safety_mechanism.py
  • Check Codex CLI installation
  • Validate CLAUDE.md exists (auto-run /init if missing)
  • Environment validation
  • User notifications
claude_parser.py
  • Parse CLAUDE.md sections
  • Scan skills, agents, commands
  • Extract quality gates and MCP configuration
  • Return file paths only (no content duplication)
project_analyzer.py
  • Auto-detect project structure
  • Discover all Claude Code assets
  • Generate project metadata
  • Build reference map
agents_md_generator.py
  • Template-based AGENTS.md generation
  • File path references (no duplication)
  • Skill documentation (most relevant method)
  • Workflow translation (Claude → Codex)
skill_documenter.py
  • Document skills for Codex CLI users
  • Determine most relevant usage method per skill type
  • Generate bash examples for Python scripts
  • Create Codex prompt templates
codex_executor.py
  • Python wrappers for Codex CLI commands
  • Intelligent model selection (gpt-5 vs gpt-5-codex)
  • Sandbox mode helpers
  • Session management
  • Always uses codex exec

Usage Examples

Example 1: Generate AGENTS.md

User prompt:

Generate AGENTS.md for this project

What happens:

  1. Safety mechanism checks Codex CLI installed
  2. Checks CLAUDE.md exists (auto-runs /init if missing)
  3. Parses CLAUDE.md and project structure
  4. Generates AGENTS.md with file references
  5. Documents all skills with most relevant usage method

Output: Complete AGENTS.md file in project root


Example 2: Execute Codex Analysis Task

User prompt:

Use Codex to analyze this codebase for security vulnerabilities

What happens:

python
from codex_executor import CodexExecutor

executor = CodexExecutor()
result = executor.exec_analysis(
    "Analyze this codebase for security vulnerabilities",
    model="gpt-5"
)

Executes:

bash
codex exec -m gpt-5 -s read-only \
  -c model_reasoning_effort=high \
  "Analyze this codebase for security vulnerabilities"

Example 3: Execute Codex Code Editing

User prompt:

Use Codex to refactor main.py for better async patterns

What happens:

python
executor = CodexExecutor()
result = executor.exec_edit(
    "Refactor main.py for better async patterns",
    model="gpt-5-codex"
)

Executes:

bash
codex exec -m gpt-5-codex -s workspace-write \
  -c model_reasoning_effort=high \
  "Refactor main.py for better async patterns"

Example 4: Resume Codex Session

User prompt:

Continue the previous Codex session

What happens:

python
executor = CodexExecutor()
result = executor.resume_session()

Executes:

bash
codex exec resume --last

Best Practices

Show full SKILL.md (290 more words)Show less
For AGENTS.md Generation
  1. Always run on projects with CLAUDE.md (or let auto-init create it)
  2. Validate Codex CLI installed first
  3. Keep skills documented with most relevant method (bash vs prompt)
  4. Use reference-based approach (no file duplication)
For Codex Execution
  1. Use codex exec always (never plain codex in Claude Code)
  2. Choose correct model:
    • gpt-5: General reasoning, architecture, analysis
    • gpt-5-codex: Code editing, specialized coding tasks
  3. Choose correct sandbox:
    • read-only: Safe analysis (default)
    • workspace-write: File modifications
    • danger-full-access: Network access (rarely needed)
  4. Enable search when needed (--search flag)
For Skill Documentation
  1. Prompt-only skills: Reference in Codex prompts
  2. Functional skills: Execute Python scripts directly
  3. Complex skills: Show both methods
  4. Always provide working examples

Command Integration

This skill integrates with existing Claude Code commands:

  • /init: Auto-generates AGENTS.md after CLAUDE.md creation
  • /update-claude: Regenerates AGENTS.md when CLAUDE.md changes
  • /check-docs: Validates AGENTS.md exists and is in sync
  • /sync-agents-md: Manual AGENTS.md regeneration
  • /codex-exec <task>: Wrapper using codex_executor.py

Installation

Prerequisites
  1. Codex CLI installed:

    bash
    codex --version  # Should show v0.48.0 or higher
  2. Codex authenticated:

    bash
    codex login
  3. Claude Code v1.0+

Install Skill

Option 1: Copy to project

bash
cp -r generated-skills/codex-cli-bridge ~/.claude/skills/

Option 2: Use from this repository

bash
# Skill auto-discovered when Claude Code loads this project

Troubleshooting

Error: "Codex CLI not found"

Solution: Install Codex CLI and ensure it's in PATH

bash
which codex  # Should return path
codex --version  # Should work
Error: "CLAUDE.md not found"

Solution: Skill auto-runs /init with notification. If it fails:

bash
# Manually run /init
/init
Error: "stdout is not a terminal"

Solution: Always use codex exec, never plain codex

bash
❌ codex -m gpt-5 "task"
✅ codex exec -m gpt-5 "task"
AGENTS.md Out of Sync

Solution: Regenerate manually

bash
/sync-agents-md

References

  • Codex CLI Docs: openai-codex-cli-instructions.md
  • Claude Skills Docs: claude-skills-instructions.md
  • Example Skills: claude-skills-examples/codex-cli-skill.md
  • AGENTS.md Spec: https://agents.md/

Version

v1.0.0 - Initial release (2025-10-30)

License

Apache 2.0


Created by: Claude Code Skills Factory Maintained for: Cross-tool team collaboration (Claude Code ↔ Codex CLI) Sync Status: Reference-based bridge (one-way sync: CLAUDE.md → AGENTS.md)

© alirezarezvani, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 14 other files in generated-skills/codex-cli-bridge of alirezarezvani/claude-code-skill-factory.

  • SKILL.md
  • CHANGELOG.md
  • HOW_TO_USE.md
  • INSTALL.md
  • README.md
  • agents_md_generator.py
  • bridge.py
  • claude_parser.py
  • codex_executor.py
  • expected_output.json
  • package.sh
  • project_analyzer.py
  • safety_mechanism.py
  • sample_input.json
  • skill_documenter.py

Open the folder on GitHubat commit ba18b31

Compare with similar skills

Codex CLI Bridge next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Codex CLI Bridge compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Codex CLI Bridge this skillalirezarezvani/claude-code-skill-factory879—~2.2kAutomated safety check: PassMIT
Since Cutoffhashgraph-online/awesome-codex-plugins1.2k—~2.5kAutomated safety check: PassMIT
Mspm0 Ccsmc3545dada/mspm0-skill374—~4.5kAutomated safety check: PassMIT
Remember Learningsdyad-sh/dyad22k—~1.1kAutomated safety check: PassCustom licence
Generate AI Rulesdivar-ir/ai-doc-gen765—~1.2kAutomated safety check: PassMIT
Goal Prompt Builderwin4r/goal-prompt-builder228—~3.1kAutomated safety check: PassMIT

Similar skills

  • Since Cutoff

    hashgraph-online/awesome-codex-plugins

    Find which dependency APIs this project's Python code uses changed after the model's training cutoff (no model calls), write short AGENTS.md or CLAUDE.md notes from the API diff, each with its…

    1.2k GitHub stars~2.5k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Mspm0 Ccs

    mc3545dada/mspm0-skill

    Tool-neutral CLI agent rules for TI MSPM0 development with Code Composer Studio, Keil/uVision, CMake/GCC/OpenOCD, SysConfig, and DriverLib.

    374 GitHub stars~4.5k tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • Remember Learnings

    dyad-sh/dyad

    Review the current session for errors, issues, snags, and hard-won knowledge, then update the rules/ files (or AGENTS.md if no suitable rule file exists) with actionable learnings.

    22k GitHub stars~1.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Generate AI Rules

    divar-ir/ai-doc-gen

    Generate AI assistant configuration files for a repository — CLAUDE.md, AGENTS.md, and Cursor rules (.cursor/rules/.mdc) — from codebase analysis.

    765 GitHub stars~1.2k tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • Goal Prompt Builder

    win4r/goal-prompt-builder

    Build high-quality /goal commands for OpenAI Codex CLI 0.128+ that maximize audit-friendliness and minimize false-completion.

    228 GitHub stars~3.1k tokensUpdated 5 mo ago
    Agent WorkflowsAuto-check passed
  • Requirement Ledger CLI Workflow

    adand-91/gpt-6-astra-skill

    Runs an evidence-bound audit, daily or weekly review through the requirement-ledger CLI, binding scope and authority first and blocking the final report until a handoff check passes.

    125 GitHub stars~1.5k tokensUpdated 21 days ago
    Agent WorkflowsAuto-check passed

More from alirezarezvani/claude-code-skill-factory

All 12 skills in this repo
  • App Store Optimization

    alirezarezvani/claude-code-skill-factory

    Complete App Store Optimization (ASO) toolkit for researching, optimizing, and tracking mobile app performance on Apple App Store and Google Play Store

    879 GitHub starsUsed in 7 repos~4.1k tokens
    Auto-check passed
  • Content Trend Researcher

    alirezarezvani/claude-code-skill-factory

    Advanced content and topic research skill that analyzes trends across Google Analytics, Google Trends, Substack, Medium, Reddit, LinkedIn, X, blogs, podcasts, and YouTube to generate data-driven…

    879 GitHub starsUsed in 2 repos~2.1k tokens
    Auto-check passed
  • Claude Md Enhancer

    alirezarezvani/claude-code-skill-factory

    Analyzes, generates, and enhances CLAUDE.md files for any project type using best practices, modular architecture support, and tech stack customization.

    879 GitHub stars~4.1k tokensUpdated 10 mo ago
    Auto-check passed
  • Agent Factory

    alirezarezvani/claude-code-skill-factory

    Claude Code agent generation system that creates custom agents and sub-agents with enhanced YAML frontmatter, tool access patterns, and MCP integration support following proven production patterns

    879 GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • TDD Guide

    alirezarezvani/claude-code-skill-factory

    Comprehensive Test Driven Development guide for engineering subagents with multi-framework support, coverage analysis, and intelligent test generation

    879 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed
  • Social Media Analyzer

    alirezarezvani/claude-code-skill-factory

    Analyzes social media campaign performance across platforms with engagement metrics, ROI calculations, and audience insights for data-driven marketing decisions

    879 GitHub starsUsed in 3 repos~772 tokens
    Auto-check passed

Works with

Categories

Questions about Codex CLI Bridge

What does Codex CLI Bridge do?

Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools. Codex CLI Bridge is an agent skill from alirezarezvani/claude-code-skill-factory.

When should I use Codex CLI Bridge?

Codex CLI Bridge fits situations like: tasks that involve Agent instruction files.

How do I install Codex CLI Bridge in Claude Code?

Run `npx skills add alirezarezvani/claude-code-skill-factory --skill codex-cli-bridge -a claude-code`. Or copy the skill folder (generated-skills/codex-cli-bridge in alirezarezvani/claude-code-skill-factory) into .claude/skills/codex-cli-bridge in your project. Claude Code loads it when a task matches its description.

How do I install Codex CLI Bridge in Codex?

Run `npx skills add alirezarezvani/claude-code-skill-factory --skill codex-cli-bridge -a codex`. Or copy the skill folder (generated-skills/codex-cli-bridge in alirezarezvani/claude-code-skill-factory) into .agents/skills/codex-cli-bridge in your project. Codex loads it when a task matches its description.

Can I use Codex CLI Bridge in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add alirezarezvani/claude-code-skill-factory --skill codex-cli-bridge -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codex-cli-bridge, .gemini/skills/codex-cli-bridge, .github/skills/codex-cli-bridge and .opencode/skills/codex-cli-bridge in your project.

What does Codex CLI Bridge need to run?

Going by SKILL.md and its folder, Codex CLI Bridge needs Python and a shell for the scripts in its folder and the command-line tools its instructions call (codex). Our summary lists: Python 3; A Bash shell.

Does Codex CLI Bridge access the network?

SKILL.md names 1 domain. As links in the text: agents.md. This is read from the text; nothing was executed.

Is Codex CLI Bridge safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Codex CLI Bridge use?

Codex CLI Bridge is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Codex CLI Bridge use?

About 2.2k tokens (SKILL.md is roughly 8.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Codex CLI Bridge?

Skills that share tags, products or a category with Codex CLI Bridge: Since Cutoff (hashgraph-online/awesome-codex-plugins, 1.2k stars), Mspm0 Ccs (mc3545dada/mspm0-skill, 374 stars), Remember Learnings (dyad-sh/dyad, 22k stars) and Generate AI Rules (divar-ir/ai-doc-gen, 765 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Codex CLI Bridge?

alirezarezvani (a GitHub user) maintains it in alirezarezvani/claude-code-skill-factory, which has 879 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on November 12, 2025.

Source: alirezarezvani/claude-code-skill-factory on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.