Qualitative-Judge + Deterministic-Gate Loop

Improve output toward a qualitative goal ('until it's simple enough', 'until it's fast enough') judged by an LLM, while a separate deterministic gate enforces correctness; loop exits only when both pass at once.

Prompt
→ Claude Code
You are improving [code/output] toward the qualitative goal: "[GOAL - e.g. until it is simple enough / reads cleanly / is fast enough]". Each iteration: 1. Generate or revise the output. 2. Run the DETERMINISTIC GATE: [tests / benchmark / lint]. If it fails, fix the regression before anything else - never skip this. 3. Ask an LLM judge: "Does this satisfy the goal '[GOAL]'? Rate 1-5 and explain." If below [THRESHOLD e.g. 4], revise and repeat. Stop when the deterministic gate passes AND the judge scores >= [THRESHOLD] in two consecutive rounds. Constraint: the judge may never lower the deterministic bar or waive the gate. Qualitative goals are the judge's domain; correctness is the gate's domain. Both must hold simultaneously to exit.
claude-code

Source: keysersoose/loop-library ↗MITgraded C · 65/100 — how grades work (Safety Score v2) →

/loopEvaluationmedium risknew

The expert scorecard loop

A quality-improvement workflow that defines expert scoring dimensions, fixes the lowest score, and requires fresh independent rescoring after every pass.

prompt
→ Claude Code
Bring one artifact to a verified 5 out of 5 on every dimension of an expert scorecard. Name the governing expert perspective and define five to nine scored dimensions, wiring objective checks such as tests, lint, build, accessibility, performance, or security scans to any dimensions they cover. Fix only the lowest-scoring dimension each pass. Then have a fresh independent reviewer rescore the whole artifact and name what remains below 5. Never score your own work, fake a 5, pad dimensions, or weaken checks. Stop when every dimension is 5, the lowest score has not risen for two rounds, the budget is spent, blocked, or approval is required.
/loopEvaluationmedium risknew

The world-state accountability loop

A general agent-control workflow that turns each meaningful action into a bounded prediction, verification, and continue-or-stop decision.

prompt
→ Claude Code
Before a meaningful action, build a compact current-state model: known facts, uncertainties, missing evidence, relevant systems, constraints, user goals, and granted authority. Identify the risky assumption the agent is tempted to make, then propose the smallest useful next action. Before acting, predict what should change, what should remain unchanged, what evidence will confirm success, and what would count as surprise or failure. Act only if the action is in scope and verifiable. Afterward, compare predicted and actual state, record the trace, and continue only if the model still holds, risk has not increased, and another bounded pass is justified. Stop at target state, material prediction failure, blocker, approval boundary, or no justified next action.
/loopEvaluationhigh risknew

The product journey feedback loop

A product research workflow that observes target personas across the complete user journey, separates usability friction from unmet needs, and ranks evidence-backed feature suggestions.

prompt
→ Claude Code
Define two or three target-audience personas from the product positioning, asking if the positioning is unavailable. For one persona at a time, walk the full journey from landing and signup through core workflow, secondary features, limits, return visit, and offboarding using only what that persona could realistically see. Observe only. Record expected versus actual behavior, friction, confusion, delight, and comparable-product mental models. Split findings into usability friction, unmet needs, and feature suggestions tied to a specific journey moment. Stop after one pass per persona and return the personas, journey map, evidence log, ranked suggestions, and any approval boundaries before roadmap or production changes.