Agent skill
distill
Distill PDF, URL, or text into Q&A pairs stored in memory. Use --context for domain-focused extraction.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/distill
Metadata
Additional technical details for this skill
- short description
- Distill content into Q&A pairs for memory
SKILL.md
Distill Skill
Distill PDF, URL, or text into Q&A pairs and store in memory.
Happy Path
# Distill a PDF into memory
./run.sh --file paper.pdf --scope research
# With domain focus (recommended for better relevance)
./run.sh --file paper.pdf --scope research --context "ML researcher"
# Preview before storing
./run.sh --file paper.pdf --dry-run
# From URL
./run.sh --url https://example.com/article --scope web
Parameters
| Flag | Description |
|---|---|
--file |
PDF, markdown, or text file |
--url |
URL to fetch and distill |
--scope |
Memory scope (default: research) |
--context |
Domain focus, e.g. "security expert" |
--dry-run |
Preview without storing |
--json |
JSON output |
--sections-only |
Extract sections only (no Q&A) |
What It Does
- Extract content from PDF/URL/text
- Split into logical sections
- Generate Q&A pairs via LLM
- Validate answers are grounded in source
- Store to memory via
memory-agent learn
Examples
# Research paper
./run.sh --file arxiv_paper.pdf --scope research --context "ML researcher"
# Technical documentation
./run.sh --file api_docs.md --scope project --context "backend developer"
# Just extract sections (no Q&A)
./run.sh --file paper.pdf --sections-only --json
Environment Variables (Optional Tuning)
| Variable | Default | Description |
|---|---|---|
DISTILL_PDF_MODE |
fast | PDF mode: fast, accurate, auto |
DISTILL_CONCURRENCY |
6 | Parallel LLM requests |
DISTILL_GROUNDING_THRESH |
0.6 | Grounding similarity threshold |
DISTILL_NO_GROUNDING |
- | Set to 1 to skip validation |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?