claude/skills/distill/SKILL.md
Reduce a document to its minimum effective dose — the least information needed to fully convey the purpose and key concepts. Use when asked to simplify, condense, distill, or strip a document down to essentials. Triggers on: "simplify this", "distill this", "trim this down", "what's the minimum I need", "make this shorter without losing anything important".
npx skillsauth add lanej/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.
Reduce a document to its minimum effective dose: the smallest amount of information that delivers full understanding.
Model: Use claude-opus-4-7 for this task — it requires deep comprehension before cutting.
Read the entire document. Identify:
For each section or major block, identify what it unlocks downstream and what it requires upstream. Write the map as: [Section] → unlocks [Section(s)]. A section with no downstream dependents is a Cut candidate. A section multiple later sections require is Keep regardless of local salience.
Enter plan mode (EnterPlanMode). Write the plan file as a structured edit manifest — not the document content. The plan file must contain:
Distill Plan: <filename>
~55% of current length[Section] → unlocks [Section(s)], concise listEdit decisions — one row per section/block:
| Section | Action | Rationale | |---------|--------|-----------| | Intro | Cut | Audience already knows context; no downstream dependents | | Background | Compress | Needed by §3 but overwritten — 3 sentences → 1 | | ... | ... | ... |
Relocations (key claims or numbers rescued from Cut sections before removing them):
"X metric" from §2 → §4Do not include any document content in the plan. The plan describes edit operations only. Exit plan mode (ExitPlanMode) to get user approval before applying anything.
After plan approval, rewrite the document according to the plan:
Before writing the final version, generate 5–8 questions a reader would need the original to answer — questions testing key claims, dependencies, and core concepts from steps 1–2. Answer each from the distilled version alone.
Questions must be specific and falsifiable — not "is the concept clear?" but "what is the threshold for X?" or "what happens if Y fails?"
When the input is a .qmd file, apply these rules before the standard cut process:
--- delimiters): always keep — it is configuration, not prosestyle.apply_style(), data = {}): cut — boilerplate with no content valuecache.read_cache(), scalar extraction): keep — they feed inline {python} expressions in the prose; removing them breaks the document{=latex} raw blocks, \needspace, title block inputs, etc.): ignore and leave untouched — they are required for PDF layout and identityApply the standard distill process only to the prose sections between these structural elements.
Figure verification: After identifying which figure cells to keep, locate the rendered PNGs in {project}_files/figure-pdf/ and read each one using the Read tool. Verify that what the figure actually shows supports the claims made in the distilled prose. If a figure contradicts or fails to support a claim, surface the discrepancy rather than silently keeping both.
After plan approval and apply:
Cut §1 Intro (−120w), Compressed §3 Background: 200→80w, Merged §6+§7 (−60w)original_words → distilled_words (X% reduction)data-ai
Delegate research and context-gathering tasks to a sub-agent to protect the primary context window. Use when the user asks to "research X", "look into X", "find out about X", "gather context on X", or any investigative framing where answering requires 2+ searches or multiple sources. Also use proactively before starting substantive work when prior context is unknown. Never run research inline — always delegate.
documentation
--- name: qmd-math description: Math notation conventions for Quarto/EPQ documents rendered via lualatex. Use when: writing or adding a formula, equation, or mathematical expression to a .qmd file; asked about display math, inline math, or LaTeX notation in a QMD/Quarto context; defining a where-clause or variable definitions for an equation; converting prose variable descriptions into structured math notation; fixing math that renders badly in a PDF; using \lvert, \begin{aligned}, \tfrac, \text
development
Trim a prose document (README, design doc, blog post, notes) for readability by cutting redundancy, filler, and dead weight in the author's own words. Invoke with /trim [file path], or /trim alone to be prompted for a file. Not for source code, data files, or summarization.
business
Query and analyze Josh Lane's org headcount from the staffing DuckDB at ~/workspace/areas/staffing/staffing.duckdb. Use when asked about headcount counts, org structure, direct reports, team breakdown, hiring/attrition trends, international employees, salary/pay grade distribution, offboarding lag, or any question about people in Josh's org. Triggers on questions about how many people, who reports to whom, headcount by team/country/level, who joined or left, org size, staffing, headcount trend.