Logo vun Loop Designer

Loop Designer

Communautéit
frankxai
loop-designer

Compile a goal into a durable, file-backed agent loop — a .loop/<name>/ charter any coding agent (Claude Code, Codex, Gemini, Grok) can execute unattended. Use when the user wants to "build a loop", "design a loop", "run X continuously/24-7", "make an agent keep working on Y", automate recurring work, or convert a big backlog into autonomous iteration. Produces LOOP.md + state.json + backlog.md, ready for loop-runner.

Iwwersiicht

Editeurfrankxai
Repositoryclaude-skills-library
Skill-Nummloop-designer
Stären
47
Forks
6
Matgeliwwert Fichieren
6
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 6 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum frankxai op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Loop Designer an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/frankxai/claude-skills-library/tree/main/free-skills/loop-designer
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/frankxai/claude-skills-library.git /tmp/claude-skills-library
mkdir -p .claude/skills
cp -r /tmp/claude-skills-library/free-skills/loop-designer .claude/skills/loop-designer
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Loop Designer an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Loop Designer automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Loop Designer net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Loop Designer

You are compiling a loop, not writing a prompt. A prompt asks an agent to do something once; a loop is a durable program — goal, state, iteration discipline, verification, and exit conditions — stored in files so that any agent can pick it up cold, run exactly one iteration, and leave it resumable. The agent is the interpreter; the loop is the program. Design accordingly: everything that matters must survive a context wipe.

Trigger Boundaries

  • Activate when: Converting a recurring or multi-iteration objective into a file-backed .loop/<name>/ contract (LOOP.md, state.json, backlog.md, signs.md, runs.jsonl), defining ratchet metrics, budgets, independent verifier gates, or stall/escalation triggers.
  • Do NOT activate when: Executing a one-shot task that fits in a single session, or when no mechanically checkable Done-when predicate exists (fix verifiability first).

The compilation pipeline

Work through these six steps in order. Steps 1–3 are thinking; 4–6 emit files.

1. Extract the invariant goal

Interview the user (or the task description) until you can state:

  • Goal — one sentence, outcome-shaped, stable across weeks ("all 40 hub pages pass the a11y audit", not "work on a11y").
  • Done-when — a mechanically checkable predicate. If you cannot express done-when as a command, script, or countable file state, the loop is not designable yet; push back and narrow the goal.
  • Never-do — the guardrail list (no deploys, no sends, no deletes, no spend, no force-push…). Inherit the repo's hard stops; add loop-specific ones.

2. Pick the archetype

Match against the taxonomy in references/archetypes.md (read it now). Summary:

ArchetypeCore mechanicTerminates?
backlog-drainpick top item → do → verify → strike throughyes — backlog empty
ratchet-climbmove one metric monotonically; revert regressionsyes — target reached
red-greenwrite failing test → make it pass → refactoryes — spec covered
watch-and-reportread-only scan → diff vs last state → reportno — runs on cadence
evaluate-optimizegenerate → judge against rubric → keep best → retryyes — rubric satisfied
babysitterpoll external state (CI/PR) → kick until terminalyes — merged/green
pipelinestage N's output is stage N+1's input, each gatedyes — final gate passes

Hybrids are normal (a backlog-drain whose verify step is a ratchet). Name the primary archetype in the charter — it tells the runner which discipline applies.

3. Size the iteration

The single highest-leverage design decision — undersized units are the #1 divergence cause across every loop system studied. Think blast radius: files touched × duration per unit; many small bombs, never one big one. One iteration = one fresh-context agent session that must complete its unit and verify it inside the context "smart zone" (~40–60% utilization). Heuristics:

  • One backlog item, one test, one page, one file-family per iteration.
  • If a unit needs >~15 tool calls to verify, split it in the backlog, not in the iteration.
  • The iteration must end with the working tree clean or committed — never leave uncommitted mid-work for the next iteration to misinterpret.

4. Emit the charter

Create .loop/<name>/LOOP.md from references/loop-charter-template.md (read it, don't improvise the format — the runner and orchestrator parse these sections). The charter's load-bearing sections: Goal, Done-when, Archetype, Iteration contract, Verification (exact commands), Ratchet (metric + direction + regression policy), Guardrails, Escalation (stall definition + who to ping + how), Budget (max iterations / tokens / wall-clock).

5. Emit the state files

  • .loop/<name>/state.json — from the schema in references/state-schema.md: {name, archetype, status: "designed", iteration: 0, ratchet: {...}, promotion: {mode: "propose-only", clean_cycles: 0, required_cycles: 3}, budget, last_run: null}.
  • .loop/<name>/backlog.md — prioritized checklist of units, each sized per step 3. For non-backlog archetypes, this holds the watch-list or rubric instead. The backlog is disposable: regenerating it from goal + current code costs one planning pass and is always cheaper than a loop going in circles against a stale plan. When building it, never assume something is unimplemented — verify by searching the code first.
  • .loop/<name>/signs.md — starts with any known failure patterns for this domain; the runner appends a "sign" after every observed failure (see the signs rule below).
  • .loop/<name>/journal.md — created empty with just the header row; the runner appends.

6. Run the doctor and hand off

Run the checks in references/loop-doctor.md against what you just wrote (done-when checkable? verification commands actually runnable here? units sized? guardrails inherited?). Fix failures before handoff. Then tell the user exactly how to start it, e.g.:

  • Claude Code: /loop 30m run one iteration of .loop/<name> per the loop-runner skill
  • Codex / any CLI: while :; do codex exec "run one iteration of .loop/<name> per the loop-runner skill"; sleep 1800; done
  • Cloud cron: schedule the same one-iteration instruction.

Self-Contained Worked Example: .loop/skill-hygiene-ratchet/

Below is a complete, self-contained .loop/skill-hygiene-ratchet/ package (LOOP.md, state.json, and backlog.md) that runs cleanly in any sandbox without external dependencies:

1. .loop/skill-hygiene-ratchet/LOOP.md

markdown
# Loop Charter: skill-hygiene-ratchet

- **Goal**: Bring all 30 flagship skills in `graph/skills.graph.json` to 100% deterministic and adversarial eval pass rate (`30/30 PASS`, `0` conflicts).
- **Done-when**: `node tools/eval-skills-suite.mjs && node tools/gen-skills-graph.mjs --check` exits `0` with `verdicts.FAIL === 0` and `verdicts.REVISE === 0`.
- **Archetype**: `backlog-drain` + `ratchet-climb`
- **Actor Model**:
  - **Maker**: Single agent on branch `agent/<harness>/skill-hygiene` (max 1 skill per iteration).
  - **Independent Verifier**: Separate harness running `node tools/eval-skills-suite.mjs` in read-only mode.
  - **Human Gate**: Frank approves any public catalog release or pricing/spend action.
- **Verification**:
  - Primary: `node tools/eval-skills-suite.mjs`
  - Fallback: `node tools/gen-skills-graph.mjs --check`
- **Ratchet**:
  - Metric: `counts.verdicts.PASS` (monotonic non-decreasing, target `30`).
  - Regression Policy: `git checkout -- <touched-files>` immediately if `PASS` count drops or planted-fault recall falls below `90/90`.
- **Guardrails (Never-Do)**:
  - Never delete or weaken tests, rubric checks, or planted-fault probes to make a skill pass.
  - Never push directly to `main` or modify files outside `free-skills/*/SKILL.md`.
- **Budgets**: `max_iterations: 10`, `max_elapsed_minutes: 120`, `no_progress_stop: 3`, `max_spend_usd: 0`.
- **Escalation**: After 3 consecutive iterations with `delta_pass === 0`, set `status: "stalled"` in `state.json` and emit a blocker report.

2. .loop/skill-hygiene-ratchet/state.json

json
{
  "name": "skill-hygiene-ratchet",
  "archetype": "ratchet-climb",
  "status": "designed",
  "iteration": 0,
  "ratchet": {
    "metric": "counts.verdicts.PASS",
    "direction": "up",
    "baseline": 22,
    "current": 22,
    "target": 30
  },
  "promotion": {
    "mode": "propose-only",
    "clean_cycles": 0,
    "required_cycles": 3
  },
  "budget": {
    "max_iterations": 10,
    "max_elapsed_minutes": 120,
    "no_progress_stop": 3,
    "max_spend_usd": 0
  },
  "last_run": null
}

3. .loop/skill-hygiene-ratchet/backlog.md

markdown
# Backlog: skill-hygiene-ratchet

- [ ] Unit 1: Fix unguarded `$<digit>` token at line 72 of `free-skills/book-publishing/SKILL.md`
- [ ] Unit 2: Fix unguarded `$<digit>` tokens across lines 264, 505–532 of `free-skills/social-media-strategy/SKILL.md`
- [ ] Unit 3: Upgrade `free-skills/hooks-automation/SKILL.md` to native `.claude/settings.json` hooks

Design rules (the ones that decide convergence)

  1. State in files, never in conversation. Every iteration starts from a fresh context reading LOOP.md + state.json + journal tail. If a fact matters, it's in a file.
  2. Verification inside the iteration, not after the loop. pick → do → verify → record. An unverified unit is not done and must not be struck through.
  3. The ratchet only moves one way. Define the metric so regressions are detectable and the policy is automatic: revert, don't debug forward.
  4. New loops are propose-only. Write access (commits to main, publishes, sends) is earned via the promotion gate — N clean verified cycles, human-reviewed. Design the read-only form first.
  5. Stall is a first-class outcome. K iterations without ratchet movement (default 3) → status stalled, escalate per charter. A loop that spins without progress is worse than a stopped loop.
  6. Budgets are hard. Max iterations, max wall-clock, max spend — enforced by the runner, declared by you.
  7. Smaller charter beats smarter charter. The agent reading LOOP.md is already smart; encode constraints and checks, not lectures.
  8. Mechanical verification catches correctness, not taste. A loop that never shows a human its output slops itself into a corner — the anti-pattern the loop-engineering practitioners all converge on. Design a taste checkpoint into the cadence: every K iterations (or every promotion review), a human looks at the artifact, not the metrics. Loops automate iteration, not judgment. The operator sits on the loop, not in it: their job is upgrading charter, signs, and gates between runs.
  9. Watch loops need a silence contract. A monitor that reports "all fine" every cycle trains the human to stop reading. Charter the exact OK-token for no-change cycles ("reply LOOP_OK, suppressed from the channel") and cap proactive reports (~3–5/day); "check whether X failed" is a valid watch item, "keep an eye on things" is not.
  10. Every failure becomes a sign. When the loop fails a specific way, a one-line rule goes into signs.md so that exact failure cannot recur ("SLIDE DOWN, DON'T JUMP"). Signs are written reactively from observed failures, never speculatively; prune signs that newer models make obsolete. This accumulation layer is what makes a loop converge over weeks instead of circling.
  11. Forbid weakening the ratchet, in writing. Agents under pressure delete tests, skip gates, and relax lint rules to "pass". The charter's Guardrails must say verbatim that removing or editing tests/checks to make work pass is unacceptable, and protect gate configs as no-touch paths.

Verification Checklist & Anti-Slop Guardrails

  1. Mechanically Checkable Done-when: Every LOOP.md must specify an exact shell command that returns exit code 0 when done and non-zero otherwise.
  2. Actor Separation: LOOP.md explicitly names one Maker, one Independent Verifier, and the Human Gate.
  3. Hard Budgets Declared: state.json and LOOP.md declare max_iterations, max_elapsed_minutes, no_progress_stop, and max_spend_usd.
  4. Ratchet Integrity: Removing or weakening test assertions or gate scripts is explicitly forbidden in Guardrails.

References

  • references/archetypes.md — full taxonomy with worked examples, failure modes, and the signs meta-layer.
  • references/loop-charter-template.md — the LOOP.md template (parse-stable section names).
  • references/state-schema.md — state.json schema + journal.md and signs.md formats.
  • references/loop-doctor.md — pre-flight checklist the designer runs before handoff.
  • references/loop-native-skills.md — how skills and loops compose; guidance for skill-creator/plugin-creator authors.
  • references/loop-canon.md — the source lineages (Huntley/Ralph, Steinberger, Cherny, Anthropic harnesses, 12-factor), where they agree, and the disagreements this family resolved.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Loop Designer?

Compile a goal into a durable, file-backed agent loop — a .loop/<name>/ charter any coding agent (Claude Code, Codex, Gemini, Grok) can execute unattended. Use when the user wants to "build a loop", "design a loop", "run X continuously/24-7", "make an agent keep working on Y", automate recurring work, or convert a big backlog into autonomous iteration. Produces LOOP.md + state.json + backlog.md, ready for loop-runner.

Firwat Loop Designer op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Loop Designer besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Loop Designer an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/frankxai/claude-skills-library/tree/main/free-skills/loop-designer an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Loop Designer benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Loop Designer benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Loop Designer domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Loop Designer gratis?

Jo. De Skill gëtt vum frankxai ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇