Skip to content
Back to skills

Distill

ASecurity

Set up and run a project-local reference-learning area: extract notable features from reference sources (git repos, papers, living docs) into per-source indexes with incremental cursors, compare across sources, and track porting decisions. Use when the user asks to learn from / analyze / scan a reference project or document, set up reference learning in a project, run a delta scan since the last analysis, triage the intake queue, or check the learning area's consistency. Not for porting or im...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 6, 2026
ai-agentsrustgonodenodejsgit

Works with

  • cursor

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned November 6, 2026

npx -y skills add vantt/skillstation --skill distill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Distill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Distill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vantt-distill/badge)](https://www.skillsdirectory.com/skills/vantt-distill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: distill
description: >-
  Set up and run a project-local reference-learning area: extract notable
  features from reference sources (git repos, papers, living docs) into
  per-source indexes with incremental cursors, compare across sources, and
  track porting decisions. Use when the user asks to learn from / analyze /
  scan a reference project or document, set up reference learning in a
  project, run a delta scan since the last analysis, triage the intake queue,
  or check the learning area's consistency. Not for porting or implementing
  the features themselves.
metadata:
  version: "0.1"
  ecosystem: forgent
  dependencies:
    nodejs-runtime:
      kind: command
      command: node
      missing_effect: degraded
      reason: scripts/distill.mjs automates init/delta/seal/check; without node the lifecycle still works manually.
    git:
      kind: command
      command: git
      missing_effect: degraded
      reason: git-repo sources need a local clone for delta computation.
---

# distill

Learning pipeline over reference sources: **observe** (per-source index) →
**compare** (matrix) → **decide** (porting log), incremental by cursor so a
source is never re-analyzed from scratch. All state is markdown in the host
project; the script only automates the mechanical steps.

Helper (all commands below): `node <skill-dir>/scripts/distill.mjs`

## Invocation routing (`/distill [subcommand]`)

| Invocation | Workflow |
|---|---|
| `/distill` (no args) | run script `status`, present dashboard in work language, recommend next action |
| `/distill status --repo` | run script `status --repo`; bare list of managed upstreams (name/type/clone path, ●/○ = cloned or not), no cursors or pipeline counts — answers "which sources do we manage?" |
| `/distill setup` | script `init`, explain layout, offer to add first sources |
| `/distill triage` | walk intake.md row by row: present + recommend, HUMAN decides; accept → script `add` + clone, drop the row; reject → delete row, reason goes to porting-log if it was feature-shaped |
| `/distill scan <source>` | the Extract lifecycle below (delta → inventory → extract → compare → seal → check) |
| `/distill backfill <source>` | scan CURRENT snapshot for missing domains only, then `seal --domains` |
| `/distill deep-dive <topic>` | follow `references/deep-dive-protocol.md` (ends with a synthesis) |
| `/distill consult <feature-desc>` | follow `references/consult-protocol.md`: recall-first materials brief for designing a new host feature when you do NOT yet know the keywords — maps feature → taxonomy domains by DEFINITION, walks every mapped domain across ALL source indexes, ends with a coverage ledger (no domain silently skipped) |
| `/distill rank` | script `rank`; present porting priorities + deep-dive picks |
| `/distill find <term>` | script `find`; read matched entries, answer from them |
| `/distill check` | script `check`; fix mechanical issues, report the rest |
| `/distill outcome <feature> <note>` | append `Outcome:` (confirmed/ineffective/adjusted) to that porting-log row |
| `/distill map [term]` | script `map`; show source↔local mapping of ported features (both directions) |

## Learning area layout (created by `init`)

```
docs/distillery/
  taxonomy.txt          # learning domains, machine-read (host-editable)
  intake.md             # capture queue — sources awaiting triage
  sources/<name>.md     # per-source feature index + cursor frontmatter
  comparison-matrix.md  # curated cross-source comparison
  porting-log.md        # single source of truth for adoption decisions
  deep-dives/<topic>.md # theme deep-dives across sources (on demand)
upstreams/<name>/       # source copies (clones/PDFs) — gitignored via managed block
```

`init` is idempotent: it never overwrites existing files and only manages the
`# DISTILL:START/END` block in `.gitignore`, preserving every byte outside it.

## Lifecycle

```
Capture → Triage → Extract → Compare → Seal
```

1. **Capture** — user (or you, when research surfaces something notable)
   drops a row into `intake.md`. Ten seconds, no judgment.
2. **Triage** — HUMAN decides what is worth learning. On accept:
   `add <name> --type git-repo|paper|living-doc --url <u>`, clone/save the
   copy under `upstreams/<name>/`, delete the intake row.
3. **Extract** — `delta <name>` tells you what to read (full scan on first
   run; commit range / version gap after). Follow
   `references/extract-rules.md` for entry format, update-vs-new rules, and
   the cost-tiering protocol (mechanical inventory → cheap subagents;
   classification and judgment → you).
4. **Compare** — new or changed features worth cross-referencing get a
   matrix row; porting-worthy ones get a `candidate` row in the porting log
   scored `R# E# F#` AT CREATION (rubric in extract-rules.md; rejects are
   recorded WITH a reason — never silently dropped). `rank` derives the
   priority view for the human — for both porting and deep-dive selection.
5. **Seal** — `seal <name> [--domains all|d1,d2] [--version <v>]` writes the
   cursor atomically. MANDATORY last step of every analysis session; an
   unsealed scan will be re-done from the old cursor next time.

Run `check [<name>]` after sealing: it verifies cursors resolve, Where paths
exist at HEAD, matrix anchors resolve, deep-dives are not stale against
source cursors, and lists domains needing backfill. `status --json` is the
machine surface for future automation (session-start nudges, cron sweeps).

## Source types and cursors

| type | cursor | delta semantics |
|---|---|---|
| `git-repo` | `last_analyzed_commit` | `delta` pulls the clone and prints the commit range + changed files |
| `paper` | `extracted_date` | immutable — extract once, seal, never delta again |
| `living-doc` | `last_analyzed_version` + date | fetch the URL, compare changelog/version against the recorded cursor yourself, extract the gap, seal with `--version` |

Adding a domain to `taxonomy.txt` marks every sealed source as needing
**backfill**: scan the CURRENT snapshot for that domain only (never replay
history), then `seal <name> --domains <new-domain>`.

## Deep-dive mode

When the human names a theme to đào sâu ("how do the references solve X?"),
follow `references/deep-dive-protocol.md`: assemble from matrix + indexes
(free) → reuse existing inventory reports → targeted reads of cited `Where:`
files only — never re-scan a source. Output
`docs/distillery/deep-dives/<topic>.md`, Bottom Line first, and it MUST end
with a synthesis: a combined best-of design fitted to the host project, not
just a comparison.

## Consult mode

When the human is designing a NEW host feature and does not yet know which
keywords to search for, follow `references/consult-protocol.md`: map the
feature onto taxonomy domains by their DEFINITIONS (not keywords), walk
every mapped domain's section across ALL source indexes (recall is
guaranteed by the backfill invariant — that is what makes this exhaustive
without search infrastructure), overlay matrix/porting-log/deep-dives,
keyword-sweep last, and END with a coverage ledger where every domain is
either consulted or ruled out with a signed reason. Output is a report in
the host's reports directory, not a distillery artifact.

## Headless mode

Never block on a question. Run delta → extract → compare for the given
source, apply only unambiguous updates, queue ambiguous classifications and
porting decisions under an `Outstanding Questions` section in your report,
and still seal (cursor moves; open questions are recorded, not lost). Output
structured markdown.

## Hard gates & red flags

- Everything under `references/` is READ-ONLY. Never edit, never commit it.
- Never seal without having updated the index for what the delta covered.
- Never hand-guess a cursor; `seal` computes it from the clone.
- Never rename an entry slug (matrix anchors break) — supersede with a new
  entry instead. Upstream-deleted features get a `Status:` marker, never
  silent deletion.
- Never trust a diff hunk alone — re-read the touched file at HEAD before
  updating an entry.
- Porting status lives ONLY in porting-log.md; triage and porting decisions
  belong to the human — propose `candidate` rows, never decide adoption.
  distill finds and scores what is worth porting; the actual port of a
  chosen feature is a separate job (e.g. the `xia` skill when available).
- Do not build search infrastructure for the learning area; the grep recipe
  in extract-rules.md is the supported lookup path.

Extraction complete and sealed. Report what was learned (new/changed/removed
features, matrix updates, proposed candidates) in work language, then hand
the porting candidates to the human for triage.

Files in this skill

  • CREATION-LOG.md3 KB
  • SKILL.md8.6 KB
  • references/consult-protocol.md5.3 KB
  • references/deep-dive-protocol.md3.2 KB
  • references/extract-rules.md7.2 KB
  • scripts/distill.mjs32 KB
  • scripts/migrate-porting-state-backfill.mjs3.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.