aif-loop

Runs iterative refinement loops with phases and quality gates.

Updated Feb 23, 2026
One-click install
npx skills add https://github.com/hightemp/process-manager --skill aif-loop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aif-loop
Source: https://github.com/hightemp/process-manager/tree/main/.github/skills/aif-loop
Command: npx skills add https://github.com/hightemp/process-manager --skill aif-loop

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the iterative refinement of artifacts, ensuring they meet predefined quality standards through a structured, multi-phase loop. It's designed to improve quality systematically and reduce manual oversight.

Core Features & Use Cases

  • Iterative Refinement: Runs a strict loop (PLAN, PRODUCE/PREPARE, EVALUATE, CRITIQUE, REFINE) to improve an artifact.
  • Quality Gates: Uses configurable quality thresholds and rules to determine when an artifact is acceptable.
  • Persistence: Maintains state across sessions, allowing loops to be resumed.
  • Use Case: You need to generate an OpenAPI 3.1 specification for a new API. You can use this Skill to generate an initial spec, have it evaluated against correctness and completeness rules, critique any issues, and refine it until it passes your defined quality gates.

Quick Start

Start a new iterative refinement loop for generating an OpenAPI 3.1 spec with DDD notes.

Frequently Asked Questions about aif-loop

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

FAQPage Schema
How do I iteratively refine artifacts against quality gates?

Iteratively refining artifacts involves executing a strict multi-phase loop of PLAN, PRODUCE, EVALUATE, CRITIQUE, and REFINE. This cycle repeats until your artifact passes configured quality gates or reaches an iteration limit.

Can I resume an interrupted iterative refinement loop?

Yes, you can resume an interrupted iterative refinement loop. The process maintains state persistence across sessions, allowing you to manage loop history and continue artifact generation seamlessly.

How do I automate OpenAPI specification generation with quality checks?

Automate OpenAPI specification generation by initiating a reflex loop that produces an initial spec, evaluates it against correctness rules, critiques issues, and refines the artifact until it meets defined quality gates.

What is a reflex loop for artifact generation?

A reflex loop for artifact generation is a structured multi-phase process designed to systematically improve quality. It iteratively plans, produces, evaluates, critiques, and refines outputs to reduce manual oversight.

How do I configure quality gates for iterative refinement?

Configuring quality gates for iterative refinement involves setting specific thresholds and rules that determine artifact acceptability. The loop applies these parameters during the EVALUATE phase to decide whether refinement continues or stops.