loop-distill

loop-distill is a skill for Claude Code from grburgess/mindgap. It costs 187 tokens per session (4,622 once invoked), scanned A, original, MIT.

A skill that turns files placed in an inbox into individual knowledge claims in a mind map, while keeping the original files as archived references.

In plain words
What is it for?
Use it to process PDFs, slides, documents, spreadsheets, screenshots, saved pages, and emails into connected project knowledge.
Why use it?
It prevents a document folder from becoming the only place where useful information can be found.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Part of the mindgap plugin — 13 skills shipped together

Good fit Use it to process PDFs, slides, documents, spreadsheets, screenshots, saved pages, and emails into connected project knowledge.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/grburgess/mindgap/loop-distill
Install

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.

Any agent
npx skills add grburgess/mindgap --skill loop-distill
Clone the repo
git clone --depth 1 https://github.com/grburgess/mindgap

Made for: Claude Code.

Or install mindgap, the plugin that ships this one along with the rest of its 13 skills.

Wrote 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.

agentmods badge for loop-distill

README.md
[![agentmods](https://agentmods.dev/badge/skills/grburgess/mindgap/loop-distill/github.svg)](https://agentmods.dev/skills/grburgess/mindgap/loop-distill)
Your own site
<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.

agentmods 80×15 button for loop-distill

Your own site · 80×15
<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>
Per session 187 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,622 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 23d ago against content hash 43fcdd48ad01, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

mindgap-plugin/skills/loop-distill/SKILL.md · 337 lines

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.

Read the full file on GitHub · 337 lines

Files

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.

Changes

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.

  1. 23d ago Changed · -1 lines 43fcdd48ad01
  2. 27d ago Changed · +2 lines 02d780f6234c
  3. 1mo ago Changed c4922f91d4de
  4. 1mo ago Changed · +43 lines a5ce45ac6b19
  5. 2mo ago First seen · 293 lines · 187 tokens per session scan A 92844523ea76

Subscribe to this mod's changes

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.

Related

loop-distill compared with skills from other repositories

loop-distill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loop-distillgrburgess/mindgapSkill023d agoMITA187Claude Code
ingeststevepridemore/graph-memorySkill23d agoMITA62Claude Code
doc-readerHKUDS/Vibe-TradingSkill38kyesterdayMITA65Claude Code, Codex
xberg-extracting-tablesxberg-io/xbergSkill9.5kyesterdayMITA36Claude Code
skill-doc-deliverynyldn/claude-octopusSkill4.4kyesterdayMITA29Claude Code
report-generatorforyourhealth111-pixel/Vibe-SkillsSkill3.8k3d agoApache-2.0A24Claude Code
kordocchrisryugj/kordocSkill2.9kyesterdayMITA253Claude Code