self-healing-claudex

Orchestrate autonomous build-and-review loops pairing Claude planning with Codex adversarial review.

4|1|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/m2ai-portfolio/m2ai-skills-pack --skill self-healing-claudex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: self-healing-claudex
Source: https://github.com/m2ai-portfolio/m2ai-skills-pack/tree/main/skills/self-healing-claudex
Command: npx skills add https://github.com/m2ai-portfolio/m2ai-skills-pack --skill self-healing-claudex

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill automates end-to-end build-and-review loops that pair a Claude-driven Planner/Builder with Codex-driven adversarial review to converge on a safe, correct build.

Core Features & Use Cases

  • Autonomous loop orchestration: coordinates planning, building, and adversarial review across rounds.
  • Safety and coverage discipline: enforces spec-claims, PLAN.md tests, and coverage gaps checks; surfaces actionable findings.
  • Lifecycle state management: atomic state, round transitions, and summarized outcomes for user review.
  • Use Case: A team wants to continuously validate a codebase by cycling through planner, builder, and Codex review until no substantive findings remain or max rounds are reached.

Quick Start

Start a self-healing claudex loop with a concrete topic to orchestrate a build-and-review cycle.

Frequently Asked Questions about self-healing-claudex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does an autonomous build-and-review loop work for code changes?

An autonomous build-and-review loop pairs Claude-based planning and building with Codex-based adversarial review to converge on a sound build. It coordinates planning, building, and multi-round reviews until no substantive findings remain or maximum rounds are reached.

What is adversarial code review and how does it improve build safety?

Adversarial code review uses Codex-driven deterministic personas to surface actionable findings on code changes and test contracts. It enforces an explicit spec-claims contract and PLAN.md tests to ensure coverage gaps are checked before a build is accepted.

How do I automate multi-round code reviews with stateful progress tracking?

You automate multi-round code reviews by orchestrating a self-healing loop that applies atomic state writes and round transitions. It tracks stateful progress, enforces safety guards, and surfaces summarized outcomes for user review after each cycle.

Can I use this autonomous review loop with my existing test contracts?

Yes, the loop enforces spec-claims contracts and validates existing test contracts defined in PLAN.md. It coordinates builder execution with Codex adversarial review to identify coverage gaps and ensure test integrity across code changes.

What's the best way to validate a codebase continuously through planner and reviewer cycles?

The best way is to run an autonomous dual-review loop that cycles through a Claude-driven planner and a Codex-driven adversarial reviewer. This iteratively validates code changes until substantive findings are exhausted or max rounds are reached.

Why does my automated build review loop stop before resolving all findings?

The loop stops when maximum rounds are reached, even if substantive findings remain. It enforces this constraint through lifecycle state management with atomic state writes and round transitions, then surfaces a final summary of unresolved findings.