AI Factory Reflex Loop

0•

Implements a rigorous multi-phase iterative refinement process to produce high-quality, auto-validated artifacts.

The aif-loop skill introduces a structured Reflex Iteration Workflow to Claude Code, enabling the systematic generation and refinement of artifacts like API specifications, code, and documentation. It follows a strict phase-based contract (PLAN, PRODUCE, PREPARE, EVALUATE, CRITIQUE, REFINE) with parallel execution capabilities to ensure outputs meet predefined success criteria. By utilizing quality gates and persistent state management, it allows for complex, multi-session tasks that require continuous improvement until a specific quality threshold is reached, making it indispensable for production-grade engineering tasks.

主な機能

01Parallel processing of artifact production and test preparation using Task agents
020 GitHub stars
03Persistent state management for resuming, listing, and auditing loop history
04Template-based evaluation rules for API specs, code, and documentation
05Multi-phase Reflex Loop execution with strict phase contracts
06Automated quality gates with configurable A/B phase thresholds

ユースケース

01Refining complex code modules through automated linting, testing, and AI-driven critique
02Creating comprehensive technical documentation that strictly adheres to project architecture and style guides
03Generating production-ready OpenAPI specifications from high-level notes and examples