dot_config/ai_templates/skills/distill/distill/SKILL.md
Explicitly triggered when the user mentions `distill`. It distills a local file into notes or a summary.
npx skillsauth add pascalandy/dotfiles distillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Apply a named distill prompt to a local text file. Output lands in a timestamped folder right next to the input.
Load references/ROUTER.md to determine which sub-skill handles this request.
There is a good prompt library (distill-prompt) and two capable LLM CLIs (claude, codex), but no thin tool that glues them together for local files. Every time a user wants to apply one of the distill prompts to an article on disk, they either:
None of that is repeatable, versioned, or friction-free.
claude and codex agree on low/medium/high but diverge at the top (max vs xhigh); users should not track thatThe fundamental issue: applying a distill prompt to a local file should be one command, not a workflow.
meta/distill is a thin CLI (distill.py) that takes a local text file and a prompt stem, resolves that prompt from meta/distill-prompt, runs the chosen LLM, and writes the output to a timestamped folder next to the source. It is intentionally file-only in v1 -- URL and media inputs are out of scope. The directory structure (references/from-file/) keeps room for future from-url / from-media sub-skills without requiring a rename.
Core capabilities:
low|medium|high|max; script translates to per-vendor values internally--provider claude or --provider codex, same interface--help reads help.md so rich markdown help is version-controlled{slug}_{timestamp}_{prompt}/ beside the input filedistill-prompt which prompt fits the user's need. Use that prompt's stem with --prompt.--help to see all flags, defaults, and exit codes:
uv run ~/.config/opencode/skill/meta/distill/scripts/distill.py --help
uv run ~/.config/opencode/skill/meta/distill/scripts/distill.py \
~/Documents/article.md \
--prompt follow_along_note
~/Documents/article_2026-04-06_14-32-08_follow_along_note/
├── article_follow_along_note.md # the distilled result
├── article_raw.md # a copy of the original input file
└── article_meta.yml # YAML run metadata (provider, model, effort, duration, tokens)
For dry-run, alternate providers, or custom output locations, read help.md via --help.
| Component | Path | Purpose |
|-----------|------|---------|
| Router | references/ROUTER.md | Routes request patterns to the right input sub-skill |
| from-file sub-skill | references/from-file/MetaSkill.md | Docs for the local-file input path (v1 default) |
| CLI help | help.md | Full user-facing CLI help, rendered by --help via glow |
| Script | scripts/distill.py | PEP 723 single-file Python script |
Summary:
distill-prompt (prompt library), claude or codex CLI, uv runtime, tiktoken + rich (auto-installed by uv), optional glow for rich help rendering| Trigger | What Happens |
|---------|--------------|
| "distill my article.md" | Routes to from-file -- runs distill.py on the file with default prompt (follow_along_note) |
| "summarize this file with short-summary" | Routes to from-file -- invokes distill-prompt to choose short_summary, then passes it via --prompt |
| "distill with codex max effort" | Routes to from-file -- same flow with --provider codex --effort max |
| "what distill options exist" | Run distill.py --help to see full flag reference |
| URL or YouTube link | Out of scope in v1. Use utils/transcript-sk for YouTube. |
No configuration required. Defaults cover the common case:
claudeclaude-opus-4-6mediumAll defaults are overridable via flags. See help.md via --help.
meta/distill-prompt -- the prompt library that distill reads fromutils/transcript-sk -- YouTube transcription skill (separate workflow, remains unchanged)| Out of Scope | Why |
|---|---|
| URL input | Deferred. meta/distill remains a meta-skill so from-url can be added later without renaming. |
| Media input (audio/video) | Deferred. from-media is a future sub-skill. |
| Stdin / piped input | v1 accepts file paths only. |
| Batch input (distill *.md) | Single input per invocation. Use shell loops for batching. |
| Inline prompt text flag | Use the prompt library. Add a folder in distill-prompt for new prompts. |
| Prompt chaining | Run distill twice with intermediate files. |
development
Explicitly triggered when the user mentions `wiki-map`. It ingests, queries, lints, or compiles a markdown wiki.
testing
Explicitly triggered when the user mentions `single-skill-creator`. It scaffolds a new `SKILL.md`.
testing
Explicitly triggered when the user mentions `qmd`. It searches local markdown or QMD collections.
development
Explicitly triggered when the user mentions `ontology-map`. It builds, refreshes, or checks an ontology.