From generator-critic
Generator-critic loop pattern for any artifact produced by an LLM and judged against declared criteria. A drafter LLM proposes; a hybrid critic (mechanical checks + LLM-as-judge) scores; the orchestrator feeds failures back to the drafter and iterates until clean. Artifact-agnostic — works for HTML, code, schemas, prose, anything with a validator. Activates on "generator-critic loop", "iterate this artifact until it passes", "/critic-loop", or when designing a refinement pipeline. Consumed by `component-composer` for HTML data graphics; future consumers for other artifact types declare a dependency on this skill.
How this skill is triggered — by the user, by Claude, or both
Slash command
/generator-critic:generator-criticThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill defines the **abstract pattern** for iteratively refining
This skill defines the abstract pattern for iteratively refining LLM-produced artifacts against a declared quality bar. The pattern has four invariants:
The pattern is artifact-agnostic. HTML, code, schemas, prose, JSON, SVG — any output that can be judged against rules fits.
references/loop-protocol.md — the iterate-until-pass cycle, stuck
detection, audit-summary format, cost trackingreferences/drafter-contract.md — abstract drafter interface (inputs,
outputs, behavior rules)references/validator-contract.md — abstract hybrid-dispatch logic
(mechanical-first, LLM-judge fallback)references/hud-protocol.md — browser-injected loop state overlayreferences/audit-summary-format.md — final-iteration emit shapescripts/hud.js — vanilla-JS HUD implementation (browser artifacts)A consumer skill (e.g., component-composer):
generator-critic/references/drafter-contract.md for the abstract
interfacegenerator-critic/references/validator-contract.md for dispatch logicloop-protocol.md, hud-protocol.md, and hud.js directlyThe consumer narrows the abstract contracts; the loop pattern is shared.
You're designing a new <artifact-type>-composer skill and need the
refinement-loop machinery. Read these references in order:
loop-protocol.md — understand the cycledrafter-contract.md — design your concrete draftervalidator-contract.md — design your concrete validatorhud-protocol.md + audit-summary-format.md — wire up overlay + emithtml-sketch skill for casual HTML patterns)Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub infolog-io/skills-spraypixel --plugin generator-critic