Dual-AI engineering loop orchestrating Claude Code (planning/implementation) and Codex (validation/review). Use when (1) complex feature development requiring validation, (2) high-quality code with security/performance concerns, (3) large-scale refactoring, (4) user requests codex-claude loop or dual-AI review. Do NOT use for simple one-off fixes or prototypes.
/plugin marketplace add creator-hian/claude-code-plugins/plugin install csharp-plugin@creator-hian-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
VALIDATION.mdPlan (Claude) → Validate (Codex) → Implement (Claude) → Review (Codex) → Fix → Re-validate → Done
| Role | Responsibility |
|---|---|
| Claude | Architecture, planning, code implementation (Edit/Write/Read) |
| Codex | Validation, code review, quality assurance |
Non-TTY environment: See codex-cli SKILL for CLI fundamentals. Key rule: Always use
codex execin Claude Code (notcodex)
Before executing any Codex command:
mkdir -p .codex-loop
git rev-parse --git-dir 2>/dev/null && echo "Git OK" || echo "Not a Git repo"
If NOT in Git repository, ask user via AskUserQuestion:
git init)"--skip-git-repo-check flag (bypass check)"Apply user choice:
# Option 1: Initialize Git
git init
# Option 2: Use skip flag
codex exec --skip-git-repo-check -s read-only "prompt"
AskUserQuestion:
.codex-loop/plan.mdExecute with timeout: 600000:
codex exec -m MODEL -c model_reasoning_effort=LEVEL -s read-only \
"Review this plan: $(cat .codex-loop/plan.md) Check: logic, edge cases, architecture, security"
Save result: > .codex-loop/phase2_validation.md
If issues found in .codex-loop/phase2_validation.md:
AskUserQuestion: "Revise and re-validate, or proceed?".codex-loop/plan.md → Repeat Phase 2.codex-loop/implementation.mdExecute with timeout: 600000:
codex exec -m MODEL -s read-only \
"Review: $(cat .codex-loop/plan.md) $(cat .codex-loop/implementation.md) Check: bugs, performance, security. Classify: Critical/Major/Minor/Info"
Save result: > .codex-loop/phase5_review.md
Claude response by severity:
.codex-loop/phase5_review.mdcodex exec resume for session continuity.codex-loop/
├── plan.md # Implementation plan
├── phase2_validation.md # Plan validation result
├── implementation.md # Implementation summary
├── phase5_review.md # Code review result
└── iterations.md # Iteration history
Always use timeout: 600000 (10 min) for all Codex commands.
Models, reasoning effort, options: See codex-cli SKILL
Full error reference: See codex-cli SKILL
Error Recovery Flow:
AskUserQuestion--skip-git-repo-check| Task Type | Recommended Timeout | Claude Code Tool |
|---|---|---|
| All Codex operations | 10 minutes | timeout: 600000 |
Approval modes: See codex-cli SKILL - valid values:
untrusted,on-failure,on-request,never
codex exec in Claude Code environment (non-TTY).codex-loop/ directory at start-s read-only for all reviewsresume for session continuity--skip-git-repo-checktimeout: 600000)