distill

distill is a skill for Claude Code, Codex from hxy91819/mason-skills. It costs 69 tokens per session (2,425 once invoked), scanned A, original, MIT.

A retrospective workflow that reviews a conversation or a bounded set of recent sessions as evidence about a project's instructions, skills, tools, documentation, and checks.

In plain words
What is it for?
Use it to audit session evidence, review AGENTS.md and repository skills, propose the smallest useful improvements, and strengthen project knowledge or verification practices.
Why use it?
It helps identify recurring problems and keep the project guidance and working setup accurate. It only makes changes after the proposed candidate changes receive approval.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present. Also seen: mentions AGENTS.md.

Good fit Use it to audit session evidence, review AGENTS.md and repository skills, propose the smallest useful improvements, and strengthen project knowledge or verification practices.

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

Made for: Claude Code, Codex.

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/hxy91819/mason-skills/distill/github.svg)](https://agentmods.dev/skills/hxy91819/mason-skills/distill)
Your own site
<a href="https://agentmods.dev/skills/hxy91819/mason-skills/distill"><img src="https://agentmods.dev/badge/skills/hxy91819/mason-skills/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/hxy91819/mason-skills/distill"><img src="https://agentmods.dev/badge/skills/hxy91819/mason-skills/distill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,425 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.00069 $0.02425
Opus 5.5 $0.00028 $0.00970
Sonnet 5.5 $0.00014 $0.00485
Haiku 4.5 $0.00007 $0.00243

Measured yesterday against content hash 375fa6fd8850, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 yesterday.

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.

common-skills/distill/SKILL.md · 207 lines

How it starts

The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Distill Session Evidence into the Harness and Project Knowledge

Turn session evidence into the smallest verified changes that make future work more reliable. The harness is everything that shapes an agent's run: intent and specs, the applicable AGENTS.md chain, repository Skills and their invocation metadata, tools and scripts, environment and permissions, and verification. Project knowledge is the durable documentation and decision rationale that give humans and agents an accurate global view of the project.

Run the four phases in order. Phase 3 is the single approval gate: the user's confirmation of the candidate set authorizes its smallest in-scope edits. Ask again only for a materially different target, an external repository, or a destructive change. Finish without edits when no candidate survives.

The evidence is the current conversation and its tool output. Other sessions are out of scope; a pattern that spans sessions shows up here when an existing rule or Skill failed to prevent it again.

Phase 1: Replay

Reconstruct the trajectory and record:

  • The intended outcome and acceptance criteria.
  • Actions, tool feedback, failures, retries, and repeated work.
  • Every explicit user correction, clarification, or rejected assumption, as a belief delta: what the agent believed, what the user established, and the intended scope.
  • Every non-obvious gotcha whose root cause and recovery were verified, kept apart from the ordinary error that exposed it.
  • Shortcuts worth making repeatable, and interaction friction (avoidable questions, excessive output).
  • Every repository instruction or Skill that shaped the work: missed or surprising invocation, unclear steps, ignored guidance, and places the user had to compensate.
  • Every durable decision the user made or clarified, with its rationale and constraints.
  • Every material decision the agent introduced, what consequences were disclosed, and whether the user confirmed it.

Compare the actual path with the shortest reliable one. Classify each signal as a harness gap, project-knowledge gap, execution defect, environment or tool defect, request ambiguity, or one-off. An agent mistake becomes a harness candidate only when the harness could reliably prevent, expose, or shorten it.

Read the full file on GitHub · 207 lines

Files

What ships with it

2 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. yesterday Changed · +2 lines 375fa6fd8850
  2. 1mo ago Changed · -225 lines · -17 tokens per session 5e9fe3860ca9
  3. 1mo ago Changed · +1 lines 44ded5a5d802
  4. 1mo ago Changed · +2 lines aa8a0db4d929
  5. 1mo ago Changed · +24 lines fa2d30dd9ab5
  6. 2mo ago First seen · 403 lines · 86 tokens per session scan A 32cf02578181

Subscribe to this mod's changes

distill is a skill published in the GitHub repository hxy91819/mason-skills (3 stars, last pushed today), licensed MIT. It adds 69 tokens to every session and 2,425 once invoked, about $0.0003 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-08-31.

Related

distill compared with skills from other repositories

distill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
distillhxy91819/mason-skillsSkill3todayMITA69Claude Code, Codex
knowledge-ingestopenclaw/openclawSkill394ktodayMITA80Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill69kyesterdayApache-2.0A217Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill71kyesterdayCC0-1.0A0Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill20k2d agoMITA184Claude Code
memoryopensquilla/opensquillaSkill7.1kyesterdayApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex