From 899591ebf02a486990ebb41a29ee2dd82858e0b1 Mon Sep 17 00:00:00 2001 From: Dmitry Dementev Date: Tue, 7 Apr 2026 11:53:31 +0300 Subject: [PATCH] docs: add platform note to prevent recursive Codex invocation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the skill is available in shared ~/.agents/skills/, Codex CLI picks it up and tries to follow its instructions — launching itself recursively. The blockquote explains the architectural constraint and tells Codex to review directly instead. Co-Authored-By: Claude Opus 4.6 (1M context) --- SKILL.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SKILL.md b/SKILL.md index 945077f..54ff5e1 100644 --- a/SKILL.md +++ b/SKILL.md @@ -6,6 +6,8 @@ user_invocable: true # Adversarial Code Review +> **Platform:** Claude Code only. This skill orchestrates Claude ↔ Codex interaction, where Claude is the executor and Codex is the external reviewer. Running this skill from Codex CLI itself creates a recursive loop — Codex would try to launch itself. If you are Codex — do NOT invoke this skill; perform the review directly. + Sends current work for adversarial review through an external AI model (OpenAI Codex by default). Auto-detects what to review: **plan** or **code**. Claude fixes issues based on reviewer feedback and resubmits until approved. Maximum 5 rounds. ---