aif-loop

Automate iterative PLAN, PRODUCE, PREPARE, EVALUATE, CRITIQUE, and REFINE loops to improve artifacts.

Updated Apr 17, 2026
One-click install
npx skills add https://github.com/VeronikaVashkevich/job-tracking-app --skill aif-loop-veronikavashkevich
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aif-loop
Source: https://github.com/VeronikaVashkevich/job-tracking-app/tree/main/.opencode/skills/aif-loop
Command: npx skills add https://github.com/VeronikaVashkevich/job-tracking-app --skill aif-loop-veronikavashkevich

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Run a strict multi-iteration Reflex Loop with phases (PLAN, PRODUCE||PREPARE, EVALUATE, CRITIQUE, REFINE) to improve an artifact until quality gates pass or iteration limits are reached. Use when user asks for iterative refinement, quality-gated generation, or "generate -> critique -> refine" loops.

Core Features & Use Cases

  • Enforces structured, phase-based iteration with persistent state across sessions
  • Supports parallel PRODUCE and PREPARE phases and parallel evaluation checks
  • Tracks run history, iterations, and stop conditions for governance and auditability
  • Use Case: When you need to converge on a high-quality artifact from a vague prompt, across projects like API specs, docs, or code

Quick Start

Start a new reflex loop with your task prompt and confirm the success criteria and maximum iterations.

Frequently Asked Questions about aif-loop

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

FAQPage Schema
How do I automate an iterative generate critique refine loop for artifact quality?

To automate an iterative generate critique refine loop, this Skill runs structured PLAN, PRODUCE, EVALUATE, CRITIQUE, and REFINE phases. It progressively improves your artifact until it passes defined quality gates or reaches a maximum iteration limit.

What is a reflex loop for iterative artifact refinement?

A reflex loop for iterative artifact refinement is a structured process that cycles through planning, producing, evaluating, critiquing, and refining. It enforces strict stop conditions and persistent state tracking to converge on a high-quality output.

How do I set up quality gates for automated workflow evaluation?

To set up quality gates for automated workflow evaluation, you must confirm your success criteria and maximum iterations before the loop starts. The Skill enforces these strict stop conditions and records all loop activity to disk for auditability.

Can I use parallel checks during the artifact evaluation phase?

Yes, you can use parallel checks during the artifact evaluation phase. The Skill supports parallel execution within the PRODUCE and PREPARE phases, alongside parallel evaluation checks to assess artifact quality efficiently.

Does iterative refinement maintain state across multiple sessions?

Yes, iterative refinement maintains persistent state across multiple sessions. The Skill tracks run history, iterations, and stop conditions on disk, ensuring governance and auditability throughout the entire artifact improvement workflow.

When should I use an automated reflex loop instead of manual refinement?

You should use an automated reflex loop instead of manual refinement when you need to converge on a high-quality artifact from a vague prompt. It is ideal for complex projects like API specs, docs, or code requiring strict quality-gated generation.