/distill-corpus:distill-corpusfrom distill-corpus
Manages a distillr research corpus: ingests sources, reads artifacts, runs verification audits, and coordinates worker tasks for topic synthesis.
Ships in distill-corpus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A distillr library is plain files under library/, with no required database.
Its Markdown artifacts, JSON state, and manifests have explicit contracts, but
remain readable with rg, Get-Content, cat, and ls.
Core orientation and live examples live in the generated AGENTS.md /
CLAUDE.md files inside the corpus (and per-topic). Read those first for the
current state of a specific library. This file stays small; the corpus itself
provides the detailed, up-to-date references.
library/
CLAUDE.md / AGENTS.md # library index (identical content; regenerated)
topics/<topic>/
CLAUDE.md / AGENTS.md # topic orientation + example queries
channels/<creator>/videos/<video>/
<slug>_Transcript.txt # raw capture (the receipt)
<slug>_Insights.md # structured analysis of that source
sites/<host>/pages/<page>/
<slug>_Content.md + <slug>_Insights.md
papers/<paper>/
<slug>_Paper.md + <slug>_Insights.md
<topic>_Topic_Synthesis.md # cross-source claims, comparisons, disagreements
<topic>_Corpus_Synthesis.md # mixed-source view
intent.json # the topic's goal/lens/rigor (drives analysis)
AGENTS.md (or CLAUDE.md - same content), then the
synthesis files; only then drill into per-source _Insights.md._Insights.md carries YAML frontmatter: title, source_id, url,
topic, tags, analyzed_by, prompt_id. The raw source artifact
(transcript / paper text / page content) sits in the same directory - that
is the receipt; cite it, and verify against it when a claim is load-bearing.rg "<term>" library/topics/<topic> --glob "*_Insights.md" - search analysisrg "<term>" library/topics/<topic> --glob "*_Transcript.txt" - search raw sourcesrg -l 'tags:.*<tag>' library/topics - find topics/files by tagVerification skills and habits have the largest measurable impact.
_Insights.md (the _Transcript.txt,
_Content.md, or _Paper.md).distill ask "<q>" --topic <t> --save for questions whose answers
should compound: it runs the same verify gate used on ingest.distill audit <t> (free, deterministic) before trusting a body of work.
It surfaces verification coverage, staleness, thin transcripts, near-duplicates,
contested concepts, and gaps.Use the CLI for all repeatable, deterministic steps (ingest, audit, cost tracking, export). Do not re-implement parsing, slugging, or dedup logic in the agent.
Model-backed runs consume compute and may cost money. Always preview before
ingesting, respect the user's cost mode and budget, and inspect recorded usage
with distill costs.
Local Ollama or LM Studio changes the model that analyzes fetched receipts. It does not make discovery answer from model memory or stop Distill from fetching current public sources. Direct plan-quota CLI adapters are not live Distill providers until their adapter and evaluation gates ship.
For Ollama, a loopback endpoint alone does not prove no-metered inference.
With Ollama selected, run distill doctor for the configured model. The daemon
must prove cloud features are disabled and the exact model must have local
metadata without remote routing. Missing or malformed proof blocks inference.
distill discover "<research goal>" --topic <t> --preview - goal-ranked
shortlist across papers + videos (+ curated site seeds) with a cost
estimate; nothing is ingested.distill discover --from-preview <id> --topic <t> - ingest exactly the
previewed set (the preview prints the id).distill papers "<query>" --topic <t> --limit N / distill latest "<query>" --limit N - single-source ingest with the same preview/rigor flags.distill ingest <url-or-path> --topic <t> - one source by URL or file:
X posts, GitHub repos, podcast/newsletter feeds, local documents and media.distill ask "<question>" --topic <t> - answer grounded ONLY in the corpus,
every claim cited as a [[wiki-link]]; --save promotes a verified answer
back into the corpus (refused if any claim lacks source support).distill audit <t> --report-only - free trust report: verification
coverage, prompt staleness, near-duplicates, contested concepts, links, gaps.distill claude-md --all - regenerate every orientation file.distill doctor - health and API-key check; distill costs - spend history
(including estimator accuracy once runs accrue).When the active host session is asked to complete a Distill task, follow
references/worker.md. The short contract is:
distill --json worker list.task.json and prompt.md needed for the task.result.md.This is an explicit handoff to the already active session, not a direct CLI
adapter and not proof of no-metered billing. Distill records it as
host-managed, with external cost unavailable unless a future adapter can
prove more.
CLAUDE.md/AGENTS.md, _Insights.md,
syntheses). They are regenerated; fix by re-running analysis or editing the
source pipeline, not the artifact.url/source_id so the human can check the receipt.See references/gotchas.md for the current list of
high-signal gotchas drawn from real failures. Update it as new modes are
discovered.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
research-library, corpus-management, knowledge-base, distill
Other plugins' skills for the same job
npx claudepluginhub pueo-labs/distillr --plugin distill-corpus