AI Refinement Loop

•
1
•

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.

主な機能

01Automated configuration of Generator-Evaluator-Refiner prompt cycles
021 GitHub stars
03Integrated OpenTelemetry hooks for monitoring refinement trajectories
04Support for tool-grounded verification (tests, linting) or adversarial self-evaluation
05Configurable stop policies and safety caps to prevent infinite loops
06Mandatory structured JSON critique format for itemized violation tracking

ユースケース

01Automated bug fixing where code is iteratively refined until unit tests pass
02Complex architectural design tasks requiring multi-pass verification and critique
03Security-sensitive code generation that needs adversarial self-audit loops