Skip to content
Back to skills

Distill

ASecurity

Distill PDF, URL, or text into Q&A pairs stored in memory. Use --context for domain-focused extraction.

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentsbashapibackendsecuritydocumentation

Works with

  • api

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add majiayu000/claude-skill-registry --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/majiayu000-distill-claude-skill-registry/badge)](https://www.skillsdirectory.com/skills/majiayu000-distill-claude-skill-registry)

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: >
  Distill PDF, URL, or text into Q&A pairs stored in memory.
  Use --context for domain-focused extraction.
allowed-tools: Bash, Read, WebFetch
triggers:
  - distill this
  - distill this pdf
  - distill this paper
  - extract knowledge from
  - remember this paper
  - store this research
  - learn from this document
  - ingest this pdf
metadata:
  short-description: Distill content into Q&A pairs for memory
---

# Distill Skill

Distill PDF, URL, or text into Q&A pairs and store in memory.

## Happy Path

```bash
# 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

1. **Extract** content from PDF/URL/text
2. **Split** into logical sections
3. **Generate** Q&A pairs via LLM
4. **Validate** answers are grounded in source
5. **Store** to memory via `memory-agent learn`

## Examples

```bash
# 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 |

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.

Comments

Loading comments…

Newsletter

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