What problem does it solve?
This Skill eliminates the inefficiency and inconsistent quality of manual iterative refinement of technical artifacts like API specifications, source code, and documentation by enforcing a structured, quality-gated workflow that systematically improves work until it meets defined standards, eliminating missed requirements and subjective quality checks.
Core Features & Use Cases
- Structured Reflex Loop: Runs a repeatable 6-phase workflow (PLAN, PRODUCE, PREPARE, EVALUATE, CRITIQUE, REFINE) with parallel execution for faster iteration cycles.
- Configurable Quality Controls: Supports custom evaluation rules, phase-specific quality thresholds (A/B levels), and adjustable iteration limits to match project-specific requirements.
- Persistent State Tracking: Saves loop state across sessions, allowing you to resume interrupted refinement work without losing progress or context.
- Use Case: Refine an OpenAPI specification until all required endpoints, schemas, and examples are present and aligned with your domain model, or iterate on source code until it passes all project coding convention and logic checks.
Quick Start
Use the aif-loop skill to run a quality-gated iterative refinement loop for your generated API specification until it passes all required endpoint presence, schema alignment, and example completeness validation rules.