aif-loop

Solid

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.

AI & Automation 3 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
20
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Loop - Reflex Iteration Workflow Run a result-focused iterative loop with strict phase contracts, evaluation rules, and persistent state between sessions. ## Step 0: Load Config **FIRST:** Read `.ai-factory/config.yaml` if it exists to resolve: - **Paths:** `paths.description`, `paths.architecture`, `paths.rules_file`, `paths.roadmap`, `paths.research`, `paths.plan`, `paths.plans`, and `paths.evolution` - **Language:** `language.ui` for prompts, `language.artifacts` for generated content If config.yaml doesn't exist, use defaults: - Paths: `.ai-factory/` for all artifacts - Language: `en` (English) Terminology: - **loop** = one full execution for a task alias (stored in `run.json`, identified by `run_id`) - **iteration** = one cycle inside that loop ## Core Idea Each iteration executes 6 phases with parallel execution where possible: 1. `PLAN` - short plan for current iteration 2. `PRODUCE` - produce one `artifact.md` ← **runs in parallel with PREPARE** 3. `PREPARE` - generate check scripts and test definitions from rules ← **runs in parallel with PRODUCE** 4. `EVALUATE` - run prepared checks + content rules against artifact, score result. Uses parallel `Task` agents for independent check groups 5. `CRITIQUE` - precise issues + fixes (only if fail) 6. `REFINE` - rewrite artifact using critique (only if fail) ```text PLAN │ ┌──────┴──────┐ ↓ ↓ ← parallel (Task tool) PRODUCE PREPARE (artifact) (checks) ↓ ...

Details

Author
maister-dev
Repository
maister-dev/maister
Created
2 weeks ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category