Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计提醒

codex-cli-bridgeCodex CLI bridge 搜索

Agent Skill

codex-cli-bridge 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

824

周安装

34

GitHub Stars

737

下载量

269
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:codex-cli-bridge(Codex CLI bridge 搜索)
来源仓库:https://github.com/alirezarezvani/claude-code-skill-factory
仓库路径:skills/codex-cli-bridge
安装命令:
npx skills add https://github.com/alirezarezvani/claude-code-skill-factory --skill codex-cli-bridge
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/alirezarezvani/claude-code-skill-factory --skill codex-cli-bridge

简介

codex-cli-bridge 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 它构建 Claude Code 与 OpenAI Codex CLI 之间的桥梁,实现文档翻译与命令互通。
  • 可将 CLAUDE.md 转换为 AGENTS.md,并提供 Python 封装工具简化 Codex 命令调用。
  • 安装命令为 npx skills add https://github.com/alirezarezvani/claude-code-skill-factory --skill codex-cli-bridge,需确认跨平台兼容性。
  • 使用前建议核实 .claude/skills/ 目录结构及文档生成规则的准确性。

SKILL.md

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

{
  "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

{
  "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

# 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

{
  "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:

from codex_executor import CodexExecutor

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

Executes:

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:

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

Executes:

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:

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

Executes:

codex exec resume --last

Best Practices

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

  1. Choose correct sandbox:

- read-only: Safe analysis (default) - workspace-write: File modifications - danger-full-access: Network access (rarely needed)

  1. 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: codex --version # Should show v0.48.0 or higher
  2. Codex authenticated: codex login
  3. Claude Code v1.0+

Install Skill

Option 1: Copy to project

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

Option 2: Use from this repository

# 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

which codex  # Should return path
codex --version  # Should work

Error: "CLAUDE.md not found"

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

# Manually run /init
/init

Error: "stdout is not a terminal"

Solution: Always use codex exec, never plain codex

❌ codex -m gpt-5 "task"
✅ codex exec -m gpt-5 "task"

AGENTS.md Out of Sync

Solution: Regenerate manually

/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)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.95%
按下载量换算78

trae

21.13%
按下载量换算57

Antigravity

14.98%
按下载量换算40

Gemini CLI

12.32%
按下载量换算33

OpenCode

7.79%
按下载量换算21

Cursor

2.94%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/alirezarezvani/claude-code-skill-factory --skill codex-cli-bridge;npx skills add alirezarezvani/claude-code-skill-factory --skill "codex-cli-bridge" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills