/minimise:loopfrom minimise
Runs a plan-implement-evaluate refinement loop on one artifact until a goal is met. Use when iterative improvement with scoring is needed, not fixed task lists.
Ships in minimise. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A job runs a fixed task list once — you already know the steps. A loop repeats
plan → implement → evaluate against one artifact until the planner decides the goal is met (or
max_iterations is hit), with each iteration's critique feeding forward into the next plan.
If the tasks are already known and finite, this is the wrong command — that is /minimise:job.
If mini --help fails, tell the user to run /minimise:setup and stop.
The user asked for a loop, but the goal and the rubric are what actually decide when it stops,
and those are theirs to approve. Never author a spec or run mini loop new before they agree.
Put in front of them:
max_iterations — the ceiling on cost. Suggest at least 5 unless the work argues
otherwise. The built-in planner prompt already treats a failing evaluate dimension as a
default reason to continue (it only stops early if its summary states why the failure is
acceptable) — a low ceiling defeats that by cutting the loop off before it can actually
converge.evaluate.max_concurrent — suggest at least 8 so dimensions fan out fully in one
round instead of queuing behind a low cap; only lower it if the dimension count is small or
the work argues for staggering.If the user says no, iterate inline and drop it.
Write the spec (to worklogs/scratch/ if it exists, else a plans dir the project already uses —
never the repo root). This is the whole schema; there are no other fields:
version: "1"
name: Refine the README
goal: Improve the README until a first-time reader can set up, use, and test the project unaided.
max_iterations: 5
loop:
plan:
prompt: >
You are the PLANNER. Read the goal and journal history, then decide the next
concrete step for the implementer — or stop the loop if the goal is met.
implement:
prompt: >
You are the IMPLEMENTER. Carry out the current plan by editing the working tree,
then report what you changed.
evaluate:
select: all # all (default) | failed — see below
max_concurrent: 8 # dimensions fan out in parallel, capped by this (code default 4)
dimensions:
- name: clarity # names must be unique
rubric: Is the README easy to follow for a first-time reader?
- name: completeness
rubric: Does it cover setup, usage, and testing without gaps?
evaluate.select: all | failed. The default, all, runs every dimension every iteration.
failed doesn't re-run a dimension whose latest earlier verdict is pass; that pass is carried
over. fail and blocked both count as failed and always re-run. A spec patch re-runs
everything. Before finishing, the loop re-checks carried-over passes: when everything that ran
passes, the carried ones run too, in the same iteration. In the journal, a carried pass has
evaluated_in_iteration and a re-check has "recheck": true; mini loop status marks
re-checks ✓ re-check. Pick failed when a loop has
several dimensions and each iteration's fix usually targets one of them: an iteration then pays
only for the failing evaluators, and the re-check still guards the finish. evaluate rejects
unknown keys, so a typo like selct: fails at mini loop new instead of silently running all.
Each of plan, implement, and every dimension is a worker: it may set at most one of
prompt:, prompt_file:, or persona:. Setting none uses the built-in step default; setting
two is a validation error. persona: accepts either a user-defined name from
~/.minimise/personas.yaml, or one of mini's built-in reviewer personas (mini persona list
to see them — reserved mini: namespace, no config needed). For a document-review loop, pointing
evaluate.dimensions at the built-in mini:doc-review:* / mini:software-design:* personas
gives a blind, multi-lens review; each dimension still needs its own rubric: naming the document
and what this run cares about — the persona supplies the reviewer's general judgment style, the
rubric supplies the specifics. Leave plan/implement unset: the planner reads what the personas
flagged and the implementer fixes it, same as any other loop.
Show the user the spec, then run it:
mini loop new --plan <file> # → Loop ID; validates the spec and every persona
mini loop start <id> # starts in the background, idempotent; returns immediately
mini loop status <id> # iteration progress, stage timing, per-dimension verdicts
mini loop journal <id> # the loop's memory: plan/implement/evaluate lines + commits
Report back from mini loop status and mini loop journal — what changed, what the evaluators
said, and whether it stopped because the goal was met or because it ran out of iterations. Those
two endings mean very different things and the user needs to know which one they got.
Status: completed only means the planner chose to stop — it does not mean every dimension
passed. Always surface the verdict table (or journal verdicts) alongside a "completed" report;
a planner can stop with failing dimensions if it judged that acceptable. End with one line from
tokens_total in mini loop status <id> --format json: Tokens: 16.2M (96% cache reads), where
the share is cache_read / total. Leave the line out when tokens_total is null.
Token figures: mini loop status prints the loop's Tokens: line and a tokens row per iteration
(Claude Code runs only; 0 = no agent ran, — = unknown: not reported, still running, or a loop
from before token tracking); --format json has tokens_total and each step's tokens.
README → Token Usage documents the object.
What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/brainstormAuthor a mini job or loop plan under control — triage loop-vs-job, run a retrieval-aware interview pre-filled from existing personas and recent runs, then preview the exact YAML behind an approve/edit/reject gate before handing off to the unchanged `mini job new` / `mini loop new`. Use when starting a new job or loop from a one-liner and you want to review the plan before anything runs./jobRun multi-step work as a background minimise job — authors a plan YAML, wires the review gates, runs it, and reports what landed. Also the reference for the job plan (reference/plan-schema.md) — read it before writing, reviewing or explaining one; `mini job new --help` lists the fields only briefly. Fields: plan.name, plan.briefing, plan.tasks (id, name, goal, description, estimated_duration_min, timeout_min, assignee | harness + model, pre_hooks, post_hooks), plan-level pre_hooks / post_hooks (name, shell, estimated_duration_min, timeout_min, on_failure)./review-implementationnpx claudepluginhub dosatos/minimise --plugin minimiseOther plugins' skills for the same job