goal-loop-designer
Skill16 starsChanged 5 months agoMITView on GitHub
Compile a raw agent goal into a bounded loop harness before execution. Use before launching long Codex, Claude Code, MiMo Code, or local-LLM coding loops when the goal needs clearer stop rules, verification rubric, judge prompt, budget policy, retry limits, memory policy, and portable YAML/JSON/Mermaid artifacts.
In this repository94 other files it gives its agents.
- agent-friction-ledgerSkill
- agent-learning-layer-triageSkill
- agent-operations-contractSkill
- agents-best-practicesSkill
- agent-tool-contract-reviewSkill
- anti-slop-reviewSkill
- architecture-deepening-reviewSkill
- assumption-excavationSkill
- authorized-security-routerSkill
- book-to-skillSkill
- bounded-evaluationSkill
- bounded-growth-loopSkill
- bounded-orchestration-contractSkill
- brief-first-executionSkill
- browser-verificationSkill
- bug-evidence-protocolSkill
- codex-review-loopSkill
- compaction-survivalSkill
- complexity-optimizerSkill
- confidence-fragility-reviewSkill
- context-degradation-reviewSkill
- corporate-surfaceSkill
- delivery-baseline-auditSkill
- delivery-preflight-gateSkill
- design-critique-polishSkill
- designmd-brand-kitSkill
- design-register-bootstrapSkill
- diagnoseSkill
- doc-grounded-grillingSkill
- doc-to-lora-evaluatorSkill
- durable-context-maintenanceSkill
- dynamic-workflow-packetsSkill
- editorial-surfaceSkill
- evidence-ledger-researchSkill
- filesystem-context-disciplineSkill
- fluid-interaction-reviewSkill
- frontend-product-builderSkill
- frontend-taste-layerSkill
- git-native-context-contractSkill
- graph-guided-code-readingSkill
- handoffSkill
- happy-handoffSkill
- html-brief-artifactSkill
- html-diagram-artifactSkill
- hypothesis-diversificationSkill
- idea-to-ship-gatesSkill
- knowledge-base-enrichmentSkill
- lean-context-layoutSkill
- local-inference-tuningSkill
- loop-hardening-contractSkill
- loopops-protocolSkill
- loop-readiness-reviewSkill
- lottie-motion-builderSkill
- minimal-diff-builderSkill
- motion-review-gateSkill
- overengineering-reviewSkill
- personal-workspace-routerSkill
- phase-spec-executionSkill
- pipeline-readiness-gateSkill
- plan-to-issuesSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 13 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Use this skill before starting a long agent loop.
- Distinctive: line 28
If key limits are missing, choose conservative defaults and mark them as assumptions.
- Distinctive: line 32
Before drafting the harness, critique the raw goal:
- Distinctive: line 38
no budget or retry cap;
- Distinctive: line 55
Prefer the lowest level that can succeed.
- Distinctive: line 57
If a loop produces a reusable lesson, do not automatically add it to memory or a skill.
- Distinctive: line 61
Every loop harness must define:
- Distinctive: line 88
Use deterministic verification before LLM judgment when a real check exists.
- Distinctive: line 104
If an LLM judge is useful, produce a judge prompt that:
- Distinctive: line 113
Use a separate model when possible.
- Distinctive: line 124
stop after the same blocker appears twice.
- Distinctive: line 127
If the user asks for a free budget, still define escalation rules and a review checkpoint.
- Distinctive: line 143
Keep the artifacts copy-pasteable.
- Distinctive: line 147
Use this base pattern and adapt labels:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Goal Loop Designer
Use this skill before starting a long agent loop. It turns a raw /goal or task prompt into a portable loop harness that another agent or model can execute and evaluate.
This skill designs the loop. It does not run autonomous tools, log in to providers, change repos, or approve edits.
Intake
Collect or infer the smallest useful context:
- raw goal or task prompt;
- target host: Codex, Claude Code, MiMo Code, Ollama/OpenAI-compatible, or generic CLI agent;
- repo or artifact scope;
- allowed actions and forbidden actions;
- available verification commands or manual checks;
- judge options: deterministic check, human review, Codex, MiMo Auto, local Ollama, or external LLM;
- hard limits: iterations, time, token/tool budget, file scope, network, credentials, destructive actions.
If key limits are missing, choose conservative defaults and mark them as assumptions.
Goal Critique
Before drafting the harness, critique the raw goal:
- ambiguous completion condition;
- missing non-goals;
- missing verification;
- unclear permission boundary;
- no budget or retry cap;
- self-judging without independent evidence;
- broad file or repo scope;
- hidden external dependencies;
- failure mode that would cause repeated retries.
Rewrite the goal so it is specific, bounded, and testable.
Loop Fit
Classify the work:
- single pass: one execution plus verification is enough;
- supervised workflow: multiple ordered steps, but human approval should gate progress;
- bounded loop: iteration is useful and an evaluator can decide whether to continue;
- do not loop: the work is too risky, under-specified, or unverifiable.
Prefer the lowest level that can succeed.
If a loop produces a reusable lesson, do not automatically add it to memory or a skill. Use agent-learning-layer-triage after the run to decide whether the lesson belongs in a context note, durable doc, checklist, SKILL.md, script/tool, eval, golden fixture, or rejected buffer.
Harness Contract
Every loop harness must define:
name:
raw_goal:
improved_goal:
scope:
non_goals:
host:
worker_model:
judge:
loop_type: single_pass | supervised_workflow | bounded_loop | do_not_loop
max_iterations:
budget:
allowed_actions:
forbidden_actions:
setup:
iteration_steps:
verification:
rubric:
stop_conditions:
retry_policy:
memory_policy:
artifacts:
manual_run_commands:Use deterministic verification before LLM judgment when a real check exists.
Verification Rubric
Build a rubric with 5-9 criteria. Each criterion should have:
- name;
- pass condition;
- evidence expected;
- severity if failed: blocker, major, minor;
- evaluator: command, static inspection, browser check, human, or model judge.
The rubric should make "done" observable. Avoid vague criteria such as "good quality" unless they are decomposed into visible checks.
Judge Prompt
If an LLM judge is useful, produce a judge prompt that:
- receives the improved goal, rubric, changed files or artifacts, and verification output;
- refuses to infer success without evidence;
- returns
pass,fail, orneeds_human; - lists failed rubric criteria;
- recommends one next action only;
- treats missing verification as failure or human escalation.
Use a separate model when possible. MiMo Auto is a good lightweight reviewer for Codex work when network and provider access are available. Local Ollama is appropriate for private fallback only after a direct response smoke test passes.
Budget Policy
Set explicit limits:
- max iterations, usually 1-3;
- max wall-clock time if relevant;
- max model calls if measurable;
- max changed files or directories;
- narrowest verification first;
- stop after the same blocker appears twice;
- human approval before destructive, external, credentialed, expensive, or privacy-sensitive actions.
If the user asks for a free budget, still define escalation rules and a review checkpoint.
Portable Artifacts
Return all of these when designing a loop:
- Improved goal.
- Supervisor contract.
- Verification rubric.
- Judge prompt.
- Budget policy.
- Mermaid diagram.
- YAML spec.
- JSON spec.
- Manual run commands for the chosen host.
Keep the artifacts copy-pasteable. Do not include secrets.
Mermaid Shape
Use this base pattern and adapt labels:
flowchart TD
A["Start: improved goal"] --> B["Setup and baseline checks"]
B --> C["Worker iteration"]
C --> D["Verification evidence"]
D --> E{"Rubric passes?"}
E -- "yes" --> F["Stop: done"]
E -- "retryable" --> G["Record summary and next action"]
G --> C
E -- "blocked or budget exhausted" --> H["Escalate / handoff"]Output Discipline
For small requests, output a compact harness. For risky or long loops, include the full artifacts.
Final response should state:
- whether to run a loop at all;
- chosen host and judge;
- hard limits;
- exact next command or manual step;
- files or artifacts produced, if any.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

