Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add grburgess/mindgap --skill loop-distillgit clone --depth 1 https://github.com/grburgess/mindgapWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/grburgess/mindgap/loop-distill)<a href="https://agentmods.dev/skills/grburgess/mindgap/loop-distill"><img src="https://agentmods.dev/badge/skills/grburgess/mindgap/loop-distill/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/grburgess/mindgap/loop-distill"><img src="https://agentmods.dev/badge/skills/grburgess/mindgap/loop-distill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00187 | $0.04622 |
| Opus 5.5 | $0.00075 | $0.01849 |
| Sonnet 5.5 | $0.00037 | $0.00924 |
| Haiku 4.5 | $0.00019 | $0.00462 |
Grade A, and why
loop-distill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 337 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Loop Distill
A project grows loops; each loop's memory is local to itself and knows
nothing of its siblings. This is the reconciler: one pass over every
self-learning-loop/*/ and meta-training/*/ (meta-trainer run) in a
project, yielding one ledger, a health audit of the loops, and a small
set of gated promotions outward. "Loop" below covers both unless a rule
names meta-training explicitly. It is
read-mostly, and it is never a gate — nothing found here can fail a loop.
Hierarchy
GLOBAL global-learnings.md + mindgap
~/.claude/skills/** (tier-2, gated)
mindgap-plugin/skills/** (tier-2, gated)
|
PROJECT <project>/CLAUDE.md <- one marked block, gated diff
<project>/.claude/PROJECT-LEARNINGS.md <- ledger, authoritative
|
LOOP self-learning-loop/<name>/{GOAL,STATE,STRATEGY}.md
meta-training/<name>/{GOAL.md,STATE.json + STATE.md render}
<project>/.claude/skills/<loop>-lessons/ (optional)
Each layer reads the one above it: a loop reads the ledger at RESUME, the
ledger reads global learnings, and every session in the project reads the
marked CLAUDE.md block. This skill owns the PROJECT layer — it rewrites
the ledger outright, proposes the CLAUDE.md block, and touches the
layers above and below it only under the phase-5 gates.
Phase 0 · discover & lock
Locate, in this order: the project root; every
self-learning-loop/*/STATE.md AND every meta-training/*/STATE.json
beneath it; the ledger at
<project>/.claude/PROJECT-LEARNINGS.md; the project CLAUDE.md;
<project>/.claude/skills/*-lessons/.
A meta-training run's STATE.md is a RENDER of STATE.json (meta_loop's
state of record) — read both, but this skill NEVER writes either: no
stuck reset, no ## Consult seeding, no memory-section edit. Every fix
on a meta-training run is proposed in ledger §7, and the field mapping
for the audit checks is in references/audit-checks.md § Meta-training
runs.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 23d ago Changed · -1 lines 43fcdd48ad01
- 27d ago Changed · +2 lines 02d780f6234c
- 1mo ago Changed c4922f91d4de
- 1mo ago Changed · +43 lines a5ce45ac6b19
- 2mo ago First seen · 293 lines · 187 tokens per session scan A 92844523ea76
loop-distill is a skill published in the GitHub repository grburgess/mindgap (0 stars, last pushed 23d ago), licensed MIT. It adds 187 tokens to every session and 4,622 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.
loop-distill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| loop-distillgrburgess/mindgap | Skill | 0 | 23d ago | MIT | A | 187 | Claude Code |
| ingeststevepridemore/graph-memory | Skill | 2 | 3d ago | MIT | A | 62 | Claude Code |
| doc-readerHKUDS/Vibe-Trading | Skill | 38k | yesterday | MIT | A | 65 | Claude Code, Codex |
| xberg-extracting-tablesxberg-io/xberg | Skill | 9.5k | yesterday | MIT | A | 36 | Claude Code |
| skill-doc-deliverynyldn/claude-octopus | Skill | 4.4k | yesterday | MIT | A | 29 | Claude Code |
| report-generatorforyourhealth111-pixel/Vibe-Skills | Skill | 3.8k | 3d ago | Apache-2.0 | A | 24 | Claude Code |
| kordocchrisryugj/kordoc | Skill | 2.9k | yesterday | MIT | A | 253 | Claude Code |