DistiLL: Mine Your Claude Code History for Reusable Skills
Mine Your Claude Code History for Reusable Skills
Reads your Claude Code conversation history, clusters the patterns you keep repeating, and drafts reusable artifacts from them: a SKILL.md from repeated context, a slash command from a repeated workflow, a findings note from a repeated failure. It is read-only on your transcripts, and you approve what to keep.

- Year
- Jul 2026
- Scope
- solo build
- Type
- Developer Tools
- Status
- Live
15 messages max
A full run sends at most 15 short representative messages per cluster, plus aggregate stats. Transcripts stay on your machine, and --dry-run and --local-only make no network call.
Overview
If you use Claude Code every day, you repeat yourself: the same background re-explained across sessions, the same multi-step procedure requested again, the same failures happening the same way. DistiLL mines that history and turns the repetition into reusable artifacts. Repeated context becomes a draft SKILL.md, a repeated workflow becomes a draft slash command, and a repeated failure becomes a findings note. Everything lands in ./output/ for review, and DistiLL never installs anything.
The hard parts
- 01
Finding real repetition across hundreds of conversations without drowning in noise like greetings and pasted logs.
- 02
Doing pattern discovery without shipping private transcripts to an API.
- 03
Keeping re-runs cheap as history grows.
- 04
Turning a fuzzy cluster of similar messages into a clean, usable draft artifact.
The approach
Messages are filtered by length (dropping "yes"-sized noise and pasted files), embedded and clustered. Each cluster is classified as repeated context, workflow or failure, and the largest clusters are drafted first, up to a configurable per-run cap. Privacy is built into the structure: --dry-run and --local-only never make a network call, and a full run sends only a few short cluster representatives plus aggregate stats. Re-runs are incremental because embeddings are cached per text hash, so only new messages get embedded. The report shows every cluster, its classification, confidence and a cost estimate before anything is drafted.
Outcome
distill scan ingests transcripts and prints stats. distill run --dry-run embeds, clusters and writes output/report.md with zero API calls. distill run drafts the artifacts. Nothing is installed for you: SKILL.md and command drafts land in ./output/ and you move the ones you approve into ~/.claude/skills/ yourself. Tests run fully offline with an injectable embedding model and a mocked Anthropic client.
What I'd do differently
The main design rule was to make privacy a property of the architecture: the local-only and dry-run paths have no code that can reach the network. The MVP mines only human-typed messages. Mining assistant messages and tool_use sequences for workflow patterns is planned for v2.
Stack
Like what you see?
Let's build the next one.
Hiring, or have a problem that needs this kind of engineering? I read every message myself.

