unxed/f4 / .agents/skills/aif-loop
aif-loop
VerifiedRun 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 25.8 KB |
| references/ACTIVE-TIME-BUDGET.md | markdown | 6.7 KB |
| references/CONTEXT-MANAGEMENT.md | markdown | 1010 B |
| references/CRITERIA-TEMPLATES.md | markdown | 6.1 KB |
| references/PHASE-CONTRACTS.md | markdown | 5.1 KB |
| references/RULE-SCHEMA.md | markdown | 4.5 KB |
| references/TERMINAL-REPORT.md | markdown | 2.6 KB |
references/CONTEXT-MANAGEMENT.md
View on GitHub# Context Management
Referenced from `SKILL.md` Step 9.
The loop generates significant context per iteration (subagent results, evaluation data, critique). After several iterations the conversation context grows large, degrading LLM quality.
All loop state is persisted to disk — clearing context loses nothing. The `resume` command fully reconstructs state from files.
## When to recommend context clear
Recommend clearing context to the user in these situations:
1. **After iteration 2** — the midpoint of a default 4-iteration loop
2. **On Phase A → B transition** — natural boundary, new evaluation scope begins
3. **After any iteration where `iteration >= 3`** — context is already heavy
## How to recommend
After the iteration summary, append:
```text
💡 Context is growing. Recommended: /clear then /aif-loop resume
All state is saved on disk — nothing will be lost.
```
Do not force or auto-clear. The user decides. If the user ignores the recommendation, continue normally.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |