distill

distill is a skill for Claude Code from WinterDDo/claude-skill-flywheel. It costs 54 tokens per session (350 once invoked), scanned A, original, MIT.

A maintenance process for a flywheel log: it reviews recorded corrections, turns repeated lessons into durable principles, and removes stale ones.

In plain words
What is it for?
Use it during reviews or after several corrections to promote recurring lessons, demote principles that no longer work, and prune old entries.
Why use it?
It prevents the learning log from becoming a growing list of one-off notes while preserving lessons that apply across different situations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the flywheel plugin — 3 skills, 4 hooks shipped together

Good fit Use it during reviews or after several corrections to promote recurring lessons, demote principles that no longer work, and prune old entries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/winterddo/claude-skill-flywheel/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 WinterDDo/claude-skill-flywheel --skill distill
Clone the repo
git clone --depth 1 https://github.com/WinterDDo/claude-skill-flywheel

Made for: Claude Code.

Or install flywheel, the plugin that ships this one along with the rest of its 3 skills, 4 hooks.

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 distill

README.md
[![agentmods](https://agentmods.dev/badge/skills/winterddo/claude-skill-flywheel/distill/github.svg)](https://agentmods.dev/skills/winterddo/claude-skill-flywheel/distill)
Your own site
<a href="https://agentmods.dev/skills/winterddo/claude-skill-flywheel/distill"><img src="https://agentmods.dev/badge/skills/winterddo/claude-skill-flywheel/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 distill

Your own site · 80×15
<a href="https://agentmods.dev/skills/winterddo/claude-skill-flywheel/distill"><img src="https://agentmods.dev/badge/skills/winterddo/claude-skill-flywheel/distill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 350 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.00054 $0.00350
Opus 5 $0.00027 $0.00175
Sonnet 5 $0.00011 $0.00070
Haiku 4.5 $0.00005 $0.00035

Measured 9d ago against content hash 740150df7f16, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

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 9d 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.

plugins/flywheel/skills/distill/SKILL.md · 26 lines

What it actually says

Distill the flywheel

Read ~/.claude/.flywheel/corrections.md and ~/.claude/.flywheel/principles.md.

For each recurring theme across the corrections, test it against the three promotion gates:

  1. Seen 3+ times in genuinely different situations (not the same task replayed).
  2. Holds across 3 domains (for example coding, writing, decisions) — not a one-off quirk.
  3. Deletion test: removing the principle would cause an observable regression.

For every theme that passes all three:

  • Append a one-line principle to the In force section of principles.md, using the format [date] | domains: [d1, d2] | the principle in one or two sentences.
  • Note which corrections it subsumes so they can be thinned from the log.

Then maintain the rest:

  • Demote any in-force principle whose violations have recurred (it was stated wrong); remove it from In force so it stops re-entering sessions.
  • Prune pool entries with no recurrence in 60 days.

Be ruthless: maturity is fewer principles, not more. If "In force" only ever grows, you are collecting scenarios instead of finding root causes.

Finish by reporting what you promoted, demoted, and pruned, and how many corrections remain unconsolidated.

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. 9d ago First seen · 26 lines · 54 tokens per session scan A 740150df7f16

Subscribe to this mod's changes

distill is a skill published in the GitHub repository WinterDDo/claude-skill-flywheel (2 stars, last pushed 3mo ago), licensed MIT. It adds 54 tokens to every session and 350 once invoked, about $0.0003 per session on Opus 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-08-31.

Related

Other skills, from other repositories

weekly-digests

Generate a serial week-by-week narrative digest of a project's full claude-mem timeline. Splits the timeline into per-ISO-week files, then runs one consecutive subagent per week — each receiving the prior week's carry-forward block — to produce one chapter per ISO week of data. Use when asked for "weekly digests"…

thedotmack/claude-mem · 93 tokens

mode-creator

Interactively create, install, activate, and verify custom claude-mem modes, including domain-specific observation types, concept tags, optional Telegram alerts, bot setup, worker restart, and startup-context verification. Use this whenever someone asks to customize what claude-mem remembers, create or change a mode…

thedotmack/claude-mem · 94 tokens

cloud-sync

Set up or check claude-mem cloud sync with cmem.ai Pro. Use when the user says "set up cloud sync", "sync my memories", "cmem pro", "cloud backup", "sync status", or wants their memory database backed up or synced to their cmem.ai account.

thedotmack/claude-mem · 64 tokens

knowledge-agent

Build and query AI-powered knowledge bases from claude-mem observations. Use when users want to create focused "brains" from their observation history, ask questions about past work patterns, or compile expertise on specific topics.

thedotmack/claude-mem · 46 tokens

claude-mem-install

Use this when setting up claude-mem on Cursor: local or remote worker, local host-login observer or remote cmem.ai inference.

thedotmack/claude-mem · 34 tokens

how-it-works

Explain how claude-mem captures observations, when memory injection kicks in, and where data lives. Use when the user asks "how does claude-mem work?" or "what is this thing doing?".

thedotmack/claude-mem · 47 tokens