Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
npx claudepluginhub masup9/codex-collab --plugin codex-collabStart a collaborative task with Codex (default: codex-leads workflow)
Create and refine an implementation plan through collaboration between Claude and Codex. **This skill produces a plan document only — it NEVER starts implementation.**
Apply the Devil's Advocate methodology to stress-test a hypothesis or design proposal through structured adversarial debate.
Apply the Strong Inference methodology to systematically investigate a problem through competing hypotheses and decisive experiments.
Consult Claude Code from Codex for a second opinion while Codex remains responsible for implementation and verification. Use when the user asks Codex to collaborate with Claude, consult Claude, ask Claude for a plan, get a Claude review, delegate analysis to Claude, or says "Claudeと一緒に", "Claudeに相談", "Claudeにレビューしてもらう", "Claudeの意見も聞く", or "Claudeと計画を立てる". Also use when an explicit independent planning or review pass from Claude would materially reduce risk on a complex coding task.
This skill should be used when the user asks to "collaborate with Codex", "use Codex for planning", "get Codex review", "delegate to Codex", "code review", "PR review", "review this code", "review this PR", "Codexと協調", "Codexにレビュー", "Codexに計画を作成させたい", "Codexに任せる", "Codexに委任", "Codexと連携", "Codexに相談", "Codexの意見", "Claude plans", "Claude-led", "Claudeが計画", "Claude主導", "Codexに実装させる", "Codexに実装を任せる", "Claudeがレビュー", "コードレビューして", "PRをレビューして", "コードをレビューして", "このコードをレビュー", or mentions coordinating tasks between Claude Code and Codex CLI. NOTE: This is the default skill for generic code/PR review requests. Use devils-advocate only when the user explicitly asks for adversarial/red-team critique of a design or proposal.
This skill should be used when the user wants to "plan with Codex", "create a plan", "draft implementation plan", "help me plan", "plan before implementing", "refine a plan", "review my plan idea", "Codexと計画を立てる", "実装計画を作成", "計画を立てたい", "計画を一緒に考えて", "実装方針を相談", "Codexと設計を練る", "計画だけ作りたい", "実装前に計画を立てたい", "計画をレビューしてほしい", or mentions creating/refining an implementation plan as the deliverable without proceeding to implementation. NOTE: This is for PLAN-ONLY workflows that produce a plan document as the deliverable. Do NOT use when the user wants implementation (use codex-collab instead). Do NOT use for adversarial design critique (use devils-advocate instead). Do NOT use for debugging (use strong-inference instead).
This skill should be used when the user wants to "stress-test a design", "challenge an idea", "red team a proposal", "get critical feedback on a design", "validate a design", "adversarial architecture review", "risk assessment", "設計を検証して", "反論をもらいたい", "設計を批判的にレビュー", "デビルズアドボケート", "ストレステスト", "弱点を指摘して", "穴を見つけて", "この設計で良いか", "リスク評価", "設計のアーキテクチャレビュー", or mentions structured adversarial review of a proposal or design. NOTE: Use this for validating PROPOSALS and DESIGNS through adversarial debate, NOT for generic code review, PR review, or normal review requests (use codex-collab for those). Also NOT for investigating unknown bugs (use strong-inference for that).
This skill should be used when the user wants to "investigate a bug", "debug an issue", "figure out why something is happening", "find the root cause", "troubleshoot", "強い推論で調査", "仮説を立てて検証", "原因を特定", "バグの原因調査", "なぜ動かないか調べて", "問題を切り分け", "原因不明", "デバッグ", or mentions systematic hypothesis-driven debugging. NOTE: Use this for investigating UNKNOWN causes, not for validating design proposals (use devils-advocate for that).
Executes bash commands
Hook triggers when Bash tool is used
Share bugs, ideas, or general feedback.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Delegate plan execution to Codex CLI via ASP. Part of cc-multi-cli-plugin. Requires the `multi` plugin.
Autonomous session orchestrator for Claude Code - manages multi-phase development workflows
Bidirectional bridge between Claude Code and OpenAI Codex CLI. Two AI agents, one conversation.
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Accessibility specialist skills for Claude Code and Codex. WCAG 2.2 review, conformance auditing, and improvement planning tools.
Claude Code と OpenAI Codex CLI を協調させてタスクを実行するプラグイン。
Claude Code から Codex を呼び出す既存フローに加え、Codex から Claude Code を read-only の相談役として呼び出す claude-collab スキルも提供します。
このプラグインは、Claude Code と Codex の強みを組み合わせた協調ワークフローを提供します。MCP primary + Bash fallback のデュアルモードアーキテクチャで Codex と通信します。
Codex-Leads(従来のレビュー型):
Claude-Leads(新規):
# マーケットプレイスを追加
/plugin marketplace add https://github.com/masuP9/codex-collab
# プラグインをインストール
/plugin install codex-collab@codex-collab
Codex のスキルディレクトリへシンボリックリンクを作成します。
mkdir -p "${CODEX_HOME:-$HOME/.codex}/skills"
ln -s "$(pwd)/skills/claude-collab" "${CODEX_HOME:-$HOME/.codex}/skills/claude-collab"
Codex で「Claude と一緒に実装して」「Claude にレビューしてもらって」のように依頼すると、claude-collab スキルが Claude Code CLI を read-only の相談役として呼び出します。
codex) がインストールされていることcodex exec が動作すること(echo "test" | codex exec -s read-only -)OPENAI_API_KEY が設定されていることcodex mcp-server)claude-collab を使う場合は Claude Code CLI (claude) がインストール済みであることCodex CLI との通信は MCP primary + Bash fallback のデュアルモードを採用しています。
Codex MCP サーバー (codex mcp-server) 経由でステートフルなセッション管理:
Claude Code → mcp__codex__codex → threadId で会話継続 → mcp__codex__codex-reply
threadId で会話コンテキスト保持(multi-turn exchange で履歴再構築不要)MCP が利用できない場合は codex exec(ステートレス実行)にフォールバック:
Claude Code → Bash tool → codex exec → stdout 取得 → パース
codex_run_exec() が入出力、ANSI エスケープ除去、exit code ハンドリングを統合処理スキル起動時に MCP の可用性を自動プローブし、利用可能なら MCP モード、不可なら Bash モードにフォールバックします。
codex-collab/
├── .claude-plugin/
│ ├── plugin.json # プラグインメタデータ
│ └── marketplace.json # マーケットプレイス公開用メタデータ
├── commands/
│ ├── codex-collab.md # /codex-collab コマンド
│ ├── collab-planning.md # /collab-planning コマンド
│ ├── strong-inference.md # /strong-inference コマンド
│ └── devils-advocate.md # /devils-advocate コマンド
├── hooks/
│ ├── enforce-skill-usage.sh # PreToolUse フック(スキル経由強制)
│ └── enforce-skill-usage.md # フック設定ドキュメント
├── scripts/
│ ├── codex-helpers.sh # 共通ヘルパー関数
│ └── test-helpers.sh # ヘルパーのテストスイート
├── docs/
│ └── bash-usage.md # Bash 使用ルール詳細
└── skills/
├── codex-collab/
│ └── references/ # プロトコル定義・テンプレート
├── claude-collab/
│ ├── scripts/ # Codex から Claude を呼ぶ read-only ヘルパーとテスト
│ └── references/ # Claude 相談・レビュー用テンプレート
├── collab-planning/
│ └── references/ # 計画テンプレート・レビュー基準
├── strong-inference/
│ └── references/ # 仮説テンプレート
└── devils-advocate/
└── references/ # 評価基準・批評テンプレート
scripts/codex-helpers.sh には、コマンド間で共有される関数が定義されています:
コア関数(Bash fallback 用の Codex 実行):
codex_run_exec() - codex exec のラッパー(stdin パイプ、ANSI 除去、出力保存、exit code ハンドリング)codex_build_exec_command() - codex exec コマンド文字列の構築codex_write_prompt() - プロンプトを一時ファイルに書き出しcodex_strip_ansi() - ANSI エスケープコード除去レビュー解析(Bash fallback 用):
codex_run_review() - codex review --uncommitted のラッパー(ANSI 除去、出力保存、モデル retry、exit code ハンドリング)codex_infer_verdict() - レビューレスポンスから verdict を推定(メタデータ → [P1]-[P4] → findings なし pass)codex_extract_review_findings() - レビューレスポンスから findings を抽出セッション状態管理(MCP/Bash デュアルモード用):
codex_save_session_state() - セッション状態を JSON ファイルに保存(task_id 単位で分離)codex_load_session_state() - セッション状態を読み込み(MODE, THREAD_ID 等をグローバル変数にセット)codex_save_thread() - 名前付きスレッドを保存(claude-leads の Thread B/C 用)codex_load_thread() - 名前付きスレッドを読み込みcodex_sanitize_task_id() - task_id のファイル名安全化(英数字・ハイフン・アンダースコアのみ)codex_json_escape() - JSON 値のエスケープ(引用符・バックスラッシュ・改行)codex_diff_tier() - diff のサイズに応じてティア判定(small/medium/large)メタデータ抽出:
codex_extract_metadata() - 応答末尾のYAMLブロックを抽出codex_get_field() - メタデータフィールド取得codex_get_status() - status フィールド取得(continue/stop)codex_get_verdict() - verdict フィールド取得(pass/conditional/fail)ユーティリティ関数:
codex_ensure_tmp_dir() - 一時ディレクトリ管理codex_tmp_path() - 一時ディレクトリ内のファイルパス取得codex_hash_content() - クロスプラットフォームハッシュ計算codex_generate_signal() - ユニークID生成codex_get_language_directive() - 言語指示生成(多言語対応)codex_debug() - デバッグログ出力各コマンドは自動的にヘルパーをsourceします。
/codex-collab コマンド協調ワークフローを開始します。計画・実装・レビューの完全サイクル。
/codex-collab 新しい認証機能を実装して
特徴:
codex exec によるステートレス実行/collab-planning コマンドCodex と協調して実装計画を作成します。計画のみ — 実装は行いません。