AI Refinement Loop
Implements high-fidelity evaluator-optimizer loops to iteratively improve AI-generated outputs through structured critique and verification.
The Refine-Loop skill provides a standardized framework for building 'Self-Refine' and 'CRITIC' architectures within Claude Code. It automates the generation of specialized prompt sets—Generator, Evaluator, and Refiner—ensuring that AI outputs are rigorously checked against tool-grounded verifiers or adversarial self-evaluations. By enforcing structured JSON feedback and mandatory history retention, it eliminates 'rubber-stamping' and ensures each iteration meaningfully addresses prior failures. This skill is ideal for complex engineering tasks requiring high precision, incorporating built-in observability via OpenTelemetry for full auditability of the refinement process.