aif-loop

Orchestrate iterative artifact refinement through PLAN, PRODUCE, PREPARE, EVALUATE, CRITIQUE, and REFINE phases.

83|5|Updated Oct 17, 2025
One-click install
npx skills add https://github.com/ArtemYurov/TomoBar --skill aif-loop-artemyurov
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aif-loop
Source: https://github.com/ArtemYurov/TomoBar/tree/main/.claude/skills/aif-loop
Command: npx skills add https://github.com/ArtemYurov/TomoBar --skill aif-loop-artemyurov

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates a disciplined, multi-phase loop to refine artifacts through repeated iterations, enforcing clear contracts and persistent state to reduce manual trial-and-error and improve output quality.

Core Features & Use Cases

  • Enforces a six-phase cycle: PLAN, PRODUCE, PREPARE, EVALUATE, CRITIQUE, and REFINE to guide every iteration.
  • Supports parallel execution for PRODUCE and PREPARE, and parallel evaluation of checks via the Task tool, speeding up iterations.
  • Keeps persistent state across sessions with a standardized storage layout (e.g., .ai-factory/evolution) and per-iteration history to enable resume and auditing.
  • Interactive setup workflow to generate and confirm evaluation criteria and max iterations before starting, ensuring guardrails.

Quick Start

Start a new reflex loop by providing a task prompt to the system, for example '/aif-loop new <your task prompt>'.

Frequently Asked Questions about aif-loop

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

FAQPage Schema
How do I automate iterative artifact refinement to improve output quality?

Artifact refinement is automated using a self-improving loop with PLAN, PRODUCE, PREPARE, EVALUATE, CRITIQUE, and REFINE phases to iteratively improve output until quality gates pass.

What is the reflex loop process for evaluating and refining generated artifacts?

The reflex loop process enforces a six-phase cycle to guide every iteration, running parallel execution for PRODUCE and PREPARE while evaluating checks to iteratively refine artifacts.

How do I start a new reflex loop to iteratively refine an artifact?

To start a new reflex loop, provide a task prompt to the system using the command syntax '/aif-loop new <your task prompt>' to initialize the automated refinement cycle.

Can I resume an artifact evaluation loop across different sessions if it stops?

Yes, the artifact evaluation loop persists state across sessions using a standardized storage layout and per-iteration history logs, enabling full resume and auditing capabilities.

How does the reflex loop prevent runaway iterations during artifact generation?

Runaway iterations are prevented using strict stop conditions, interactive setup to confirm max iterations, and quality gates that guard against stagnation during artifact generation.

Does the artifact refinement loop support parallel execution for evaluation checks?

Yes, the artifact refinement loop supports parallel execution for both PRODUCE and PREPARE phases, and evaluates checks in parallel via the Task tool to speed up iterations.