Improve Loop logo

Improve Loop

Community
Motaghi
improve-loop

Improve any artifact (code, copy, plan, deck, UI (user interface)) in rounds until a review panel puts it at the bar. Each round a panel of independent reviewers scores it and lists findings, the orchestrating session makes the smallest fix per agreed finding, and the loop stops at the bar, the budget, a stall, or a dispute the owner decides. UI mode adds browser screenshots and side-by-side reference shots. Use for /improve-loop, "improve loop", "loop until 9/10", "keep improving X until it beats Y". Not for writing a loop prompt for another session, or a one-off review (deepreview family).

Overview

PublisherMotaghi
Repositorymimir-skills
Skill nameimprove-loop
Stars
51
Forks
0
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Motaghi on GitHub. Read the source before you install it.

Installation

Install the Improve Loop AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Motaghi/mimir-skills/tree/main/skills/improve-loop
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Motaghi/mimir-skills.git /tmp/mimir-skills
mkdir -p .claude/skills
cp -r /tmp/mimir-skills/skills/improve-loop .claude/skills/improve-loop
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Improve Loop in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Improve Loop on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Improve Loop is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

improve-loop

You run the loop yourself. The panel reviews, you fix. Reviewers never edit, and you never grade your own work. Your second job is to keep scope small: make the smallest change that answers each agreed finding and decline the rest.

Inputs

  • Target. The artifact and where it lives (repo and branch, file path, URL (Uniform Resource Locator)). UI mode also needs the pages and widths to shoot.
  • Bar. Default: every panel member at 9/10 or better on the current version, no open blocker, the approved references beaten, and every main-intent check passing (see Before round 1).
  • Budget. Default: 3 rounds, plus a stall stop after 2 rounds in a row in which the lowest panel score does not rise.
  • Panel. Default: the two members in "Default panel" below. The owner can name others, for example four judges.
  • References. Named by the caller, or found as below when the bar includes them.
  • Guardrails. Fixed rules from the caller that every fix must keep (see the last section).

Owner overrides win in any phrasing: "up to 20 rounds or until 9/10", "until 11:00 tomorrow or 10/10", "skip references". Restate the resolved bar, budget and panel in two lines before round 1.

Before round 1

  1. Pin the main intent. Restate what the owner most wants changed as 1 to 3 explicit pass or fail checks (for example "the first sentence states the reader's value" or "no headline over 10 words"). Show them in one short question and get a yes or an edit before round 1. They become part of the bar: every round and the final check run them through a separate checker context, not the panel and not you, and any fail blocks the bar whatever the scores say. A run can score 9/10 and still miss the point; these checks are what stop that.
  2. Resolve the panel. Confirm each member's provider, model and effort is reachable through the routes the governing platform policy allows. If a member the owner named explicitly is unreachable, report it and stop. Otherwise use what is available: provider diversity is a preference, not a requirement.
  3. Baseline. Record the start (commit or file hash) before any change. In UI mode, take browser screenshots of the named pages at the named widths.
  4. Clean start. Fix only the known issues the caller names, list them in the report as pre-loop changes, and run the artifact's own checks (tests, build, lint, voice lint).
  5. References. When the bar includes references and the owner has not already approved a set, start two researchers in parallel, on two different providers when two are available, otherwise in two fresh contexts on one provider (defaults below). Each proposes 3 to 5 references with real user praise (quoted, linked, dated); candidates the caller named go through the same check. Each reference must be named, fetchable and comparable. Merge both lists for the owner, who approves the set before round 1. No approval, no round 1. Shoot each approved reference at the same widths as the baseline.
  6. Held-out parts. When sampling (a big target), set aside 2 to 4 parts (UI: pages) before round 1, covering different kinds of content where possible. They are never sampled or shown to the panel during rounds and are used only in the final blind pick (see Stop). Record the list in the report.
  7. Run folder. Create improve-loop-<date>-<slug>/ in the owner's docs and start the report there.

Each round

  1. Prepare. For a big target (a whole site, a long document set), pick a rotating sample: the fixed core the caller names plus parts not seen recently, so every part is reviewed over the run, never the held-out parts. Retake UI screenshots for the sample. When the bar includes references, put the current version and every reference into one unlabelled batch: neutral item letters, a fresh shuffle per panel member, file names and metadata that reveal nothing. References are rescored every round together with ours, so a drift in leniency moves both.
  2. Review. Start one fresh, isolated, read-only review context per panel member, all in parallel. Never reuse an earlier round's context. Do not edit the target while the panel runs. A timeout, error or missing reply is not a score; rerun that member once. If it fails again, stop and report the bar as not reached, naming the member. Never judge the bar or a stall from a partial panel.
  3. Answer findings. Check each finding and its severity yourself. Agree: smallest fix, preferring delete or narrow over adding. Disagree: reply with evidence. Nit or scope creep: decline in one line. A dispute still open after two replies goes to the owner.
  4. Verify. Run the artifact's checks and the guardrails after the fixes. If a fix breaks one, undo the fix. If the change grew, cut before the next round.
  5. Record. Add the scores to the table and the outcomes to the ledger (id, severity, outcome, reviewer, round).

Brief per member (review contexts get no history, so it must stand alone). Judges get no project context: no project or brand history, no earlier scores, no round number, no target score, and no hint which batch item is the version being improved. In UI mode they see only the lettered batch; for a non-visual target they get the artifact itself, without its project history.

Review only. Do not edit, commit, push, deploy, or start subagents.
Items: <letters, each with its screenshots or files>
Criteria: <the bar's quality description, without target numbers> Rules: <guardrails>
Open findings to recheck: <ids and claims only, no scores>
Score every item against the criteria.
blocker = fails the criteria or a rule. should = a real gap a user would notice. nit = the rest.
Reply:
SCORE <letter>: <n>/10   (one line per item)
R1 [blocker|should|nit] <item letter> <location> <claim>. Fix: <suggestion>
(keep ids stable; mark rechecked ids resolved or still open)

You hold the letter mapping and translate the replies: the version being improved gets its score and findings, and each reference's score is used only for the "references beaten" part of the bar.

Stop

  • Bar met on the current version. When sampling, a full final check must pass too: a fresh review of the whole target (UI: every page and width) by every panel member against the same bar. It does not count as a round. If it fails, its findings start the next round within budget; with no budget left, the bar is not reached. Then a final blind pick on the held-out parts: each member, in a fresh context, makes A-or-B picks with the order swapped, the current version against the best-scoring reference and against the starting version. It passes when every member prefers the current version over the start in both orders and no member prefers the reference in both orders. A failed pick works like a failed final check.
  • Budget, cap or stall reached. Report "bar not reached", never approval.
  • Dispute unresolved after two replies. Show both sides in two or three lines each. The owner decides.

Output

Write report.md in the run folder with frontmatter (date, title, status: open, tags, description) and:

  • a score table, reviewer by round (no score where a member gave none; never invent one);
  • the ledger with one-line reasons for every decline and dispute;
  • what changed, with before and after (diff size, key screenshots side by side in UI mode);
  • the stop reason, references used, and any missing provider or model;
  • whether the panel was a single-provider panel.

Keep screenshots in shots/ inside the folder. Commit, push and deploy follow the project's own rules; the loop does none of them by default.

Guardrails

The caller can add fixed rules that hold for every fix and every round. They go into each brief and are checked in the Verify step. Example for a marketing-site run: copy may be reworded and restructured, but no new facts, numbers, customer names or claims; the style linter and the banned-words list apply.

Default panel

This section is configuration, not core behavior. Default members: two independent reviewers in fresh read-only contexts, each at high reasoning effort, from different model providers when two are available. With one provider, both members run on it, and the report records single-provider panel and says that same-provider reviewers can share blind spots. Default reference researchers: two, on two different providers when two are available, otherwise in two fresh contexts on one provider. Start each member as a new review task per round with a read-only role; never reuse an earlier round's task. UI screenshots use a browser automation tool such as Playwright.

On engineering targets (code, plan, spec, platform) or when the owner asks for it, add a third scored member with a principal-engineer stance: it must meet the same bar.

Any extra reviewer the owner names is added as an extra scored member, judging by the same criteria. Extra members never replace a default member, and the loop ends only when they also meet the bar.

Frequently asked questions

What does the Improve Loop AI skill do?

Improve any artifact (code, copy, plan, deck, UI (user interface)) in rounds until a review panel puts it at the bar. Each round a panel of independent reviewers scores it and lists findings, the orchestrating session makes the smallest fix per agreed finding, and the loop stops at the bar, the budget, a stall, or a dispute the owner decides. UI mode adds browser screenshots and side-by-side reference shots. Use for /improve-loop, "improve loop", "loop until 9/10", "keep improving X until it beats Y". Not for writing a loop prompt for another session, or a one-off review (deepreview family).

Why use Improve Loop on TypingMind?

Because you install it once and use it with any model. Improve Loop is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Improve Loop in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Motaghi/mimir-skills/tree/main/skills/improve-loop. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Improve Loop?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Improve Loop?

As many as you like. As long as a model supports skills, you can use Improve Loop with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Improve Loop AI skill free?

Yes. It is published on GitHub by Motaghi under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇