One-click install
npx skills add https://github.com/horizontalsystems/solana-kit-ios --skill aif-loop-horizontalsystems
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aif-loop
Source: https://github.com/horizontalsystems/solana-kit-ios/tree/main/.claude/skills/aif-loop
Command: npx skills add https://github.com/horizontalsystems/solana-kit-ios --skill aif-loop-horizontalsystems

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Reflex-based iterative workflow to improve artifacts by enforcing strict phase contracts across multiple iterations until quality gates pass or limits are reached.

Core Features & Use Cases

  • Structured six-phase loop: PLAN, PRODUCE, PREPARE, EVALUATE, CRITIQUE, REFINE with parallel execution where possible.
  • Persistent state across sessions: current, run, history, and artifact.md to enable resume and auditing.
  • Use cases include iterative content generation, model refinement, and quality-gated outputs for API specs, docs, or code artifacts.

Quick Start

Start a new loop with a task prompt and follow the guided confirmations to set success criteria and max 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 iterative refinement for generated artifacts?

Automate iterative refinement by running a structured multi-phase loop that applies strict phase contracts and persistent state across sessions. This drives artifact evolution through PLAN, PRODUCE, PREPARE, EVALUATE, CRITIQUE, and REFINE stages until quality gates pass.

What is a phase contract in task automation workflows?

A phase contract in task automation enforces strict, reproducible execution rules for each stage of an iteration loop. It ensures deterministic artifact improvement by loading thresholds and validation rules from references before evaluating or refining outputs.

How do I resume an artifact generation loop across different sessions?

Resume artifact generation loops by relying on persistent state that tracks current progress, run details, and history. The workflow saves these states alongside artifact.md across sessions, enabling seamless auditing and continuation of iterative improvement tasks.

Can I run evaluation and production phases in parallel during iterative improvement?

Yes, iterative improvement workflows support parallel execution for PRODUCE and PREPARE phases alongside EVALUATE. This parallelization accelerates artifact evolution while maintaining strict phase contracts and reproducible scoring across iterations.

When do I need quality gates for iterative content generation?

You need quality gates for iterative content generation when refining API specs, docs, or code artifacts requires passing specific scoring thresholds. The workflow enforces these gates by loading rules from references and looping until criteria are met or iteration limits are reached.

Does aif-loop require any external dependencies to start?

No, aif-loop operates without external dependencies. It uses internal references to load thresholds and rules, requiring only a task prompt to initialize the six-phase loop and begin guided artifact refinement.