CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

aif-loop

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.

Quality

81%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

73%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A rigorous, highly actionable workflow skill: phased execution, explicit stop-condition precedence, persistence contracts, error recovery, and well-signaled one-level-deep references that all exist. Its weaknesses are editorial — duplicated Step 0 sections, repeated confirmation rules, and boilerplate policy preambles that pad the body instead of moving detail into the reference files it already maintains.

Suggestions

Merge the two 'Step 0' sections (Load Config and Load Context) into a single setup step to remove the duplicate numbering and the split pre-work reading order.

State the confirmation rule once in Step 2 and reference it from Quick mode and the guardrail, instead of repeating 'Always ask explicit confirmation' across four separate places.

Move the full run.json template and the dispatch protocol details into existing references (e.g., PHASE-CONTRACTS.md / DISPATCH.md), keeping SKILL.md to the field invariants, to shrink the ~565-line body toward an overview.

DimensionReasoningScore

Conciseness

The body is mostly operational with no explanation of concepts Claude already knows, but it is noticeably loose in places: two different sections are both titled 'Step 0' (Load Config and Load Context), the confirmation-first rule is restated four times across Step 2 ('Always ask explicit confirmation...' items 5-8, the 'Critical guardrail', and 'Never treat criteria... as final'), and the runtime-aware-questions/shell-policy preamble reads as padded boilerplate. This fits anchor 3 ('mostly efficient but could be tightened') rather than anchor 4's minor trimmings.

3 / 5

Actionability

Concrete, executable artifacts abound: full `run.json` and `current.json` JSON templates, `mkdir -p <resolved evolution dir>`, the `ai-factory dispatch <phase> --json --prompt ...` invocation with a parse contract, a literal `history.jsonl` event line, named event types, and a formatted iteration-summary template. Minor gaps keep it below anchor 5: the external `ai-factory dispatch` command and `ai-factory` toolchain are assumed rather than specified, and the scoring formula is deferred to RULE-SCHEMA.md.

4 / 5

Workflow Clarity

Steps 0-9 are clearly sequenced with per-phase `current_step` state tracking; validation is explicit at every boundary (phase output contracts with retry-once then `phase_error` stop, EVALUATE as a built-in gate, artifact-status resolution before reporting, corrupted `run.json` reconstruction from history); and feedback loops are first-class (CRITIQUE -> REFINE, retry failed phases, stagnation tracking). This matches the anchor-5 pattern of explicit validation steps, error-recovery loops, and a precedence-ordered stop-condition checklist.

5 / 5

Progressive Disclosure

All seven referenced files (ACTIVE-TIME-BUDGET, CONTEXT-MANAGEMENT, CRITERIA-TEMPLATES, DISPATCH, PHASE-CONTRACTS, RULE-SCHEMA, TERMINAL-REPORT) exist in the bundle, are clearly signaled at their point of use, and are one level deep (only a sibling cross-link inside TERMINAL-REPORT.md). However, the SKILL.md body itself is a ~565-line manual rather than an overview — the full run.json template, budget accounting rules, and dispatch protocol could largely live in the already-existing references — so it sits at anchor 4 rather than the clean overview/pointer split of anchor 5, and well above anchor 3's buried or inline-heavy structure.

4 / 5

Total

16

/

20

Passed

Description

83%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: it names the mechanism (multi-phase loop with explicit phase names), the goal (artifact improved until quality gates pass), and explicit 'Use when' triggers with natural user phrasing. The main residual weakness is that 'improve an artifact' stays abstract about what kinds of artifacts and what the quality gates involve.

DimensionReasoningScore

Specificity

Lists several concrete actions — 'Run a strict multi-iteration Reflex Loop with phases (PLAN, PRODUCE||PREPARE, EVALUATE, CRITIQUE, REFINE)' and 'improve an artifact until quality gates pass or iteration limits are reached' — though 'improve an artifact' leaves the artifact types and gate mechanics unspecified, so it falls short of the comprehensive anchor 5 and clearly above anchor 3's 1-2 actions.

4 / 5

Completeness

Explicitly answers both: what ('Run a strict multi-iteration Reflex Loop with phases... to improve an artifact until quality gates pass or iteration limits are reached') and when ('Use when user asks for iterative refinement, quality-gated generation, or "generate -> critique -> refine" loops') with concrete trigger phrases, matching anchor 5; anchor 4's 'when could be more explicit' does not apply since the trigger clause is fully explicit.

5 / 5

Trigger Term Quality

Natural phrases users would say are present: 'iterative refinement', 'quality-gated generation', 'generate -> critique -> refine'. Coverage is good but misses common variations like 'iterate until it passes', 'keep improving', or 'self-critique', so it fits anchor 4 rather than the comprehensive synonym coverage of anchor 5, and is well above the sparse anchor 3.

4 / 5

Distinctiveness Conflict Risk

The phased quality-gated loop niche is mostly distinct with named phases as distinct triggers, but 'iterative refinement' is broad phrasing that general improve/refine skills could also claim, giving minor overlap risk per anchor 4 rather than the clear minimal-conflict niche of anchor 5.

4 / 5

Total

17

/

20

Passed

Validation

81%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 13 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (572 lines); consider splitting into references/ and linking

Warning

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

referenced_paths_exist

Referenced path issues: 2 missing

Warning

Total

13

/

16

Passed

Repository

lee-to/ai-factory

Path

skills/aif-loop/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.