harness-distillator

Compress source documents into lossless token-efficient JSON distillates.

1|Updated May 23, 2026
One-click install
npx skills add https://github.com/baobao0303/harness --skill harness-distillator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: harness-distillator
Source: https://github.com/baobao0303/harness/tree/main/.agents/skills/harness-distillator
Command: npx skills add https://github.com/baobao0303/harness --skill harness-distillator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill solves the problem of wasting tokens and losing critical context when feeding many source documents into an LLM workflow, by producing hyper-compressed, lossless distillates that preserve every fact, decision, constraint, and relationship.

Core Features & Use Cases

  • Lossless document compression: Converts source documents into token-efficient distillates optimized for LLM consumption (not lossy summaries).
  • Semantic splitting with token budgets: Produces a single dense distillate or a semantically split multi-part distillate when size constraints demand it.
  • Completeness verification and optional round-trip losslessness: Ensures extracted headings/entities appear in the output, and (optionally) reconstructs the originals to detect gaps or hallucinations.
  • Purpose-aware filtering: Uses downstream_consumer context to drop irrelevant items while never dropping decisions, rejected alternatives, constraints, open questions, or scope boundaries.

Quick Start

Use the harness-distillator skill to distill all files matching 'docs/*.md' for a downstream workflow that creates PRDs.

Frequently Asked Questions about harness-distillator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compress source documents for LLM context without losing critical information?

Lossless document compression converts source documents into token-efficient distillates that preserve every fact, decision, constraint, and relationship for LLM consumption. This approach avoids the information loss typical of standard summarization techniques.

What is the best way to fit multiple large markdown files into a strict LLM token budget?

Semantic splitting with token budgets produces either a single dense distillate or a semantically split multi-part distillate when size constraints demand it. This ensures multiple large documents fit within strict LLM token limits.

How do I verify lossless extraction when distilling PRDs and architecture design documents?

Completeness verification and optional round-trip losslessness checks ensure extracted headings and entities appear in the output and can reconstruct originals to detect gaps or hallucinations. This validates that distillation is truly lossless.

Can I filter irrelevant items from document ingestion workflows while preserving rejected alternatives and scope boundaries?

Purpose-aware filtering uses downstream consumer context to drop irrelevant items while never dropping decisions, rejected alternatives, constraints, open questions, or scope boundaries. This ensures critical constraints remain intact during document ingestion workflows.

Does document distillation work for validation-gated reasoning workflows requiring deterministic compression?

Deterministic compression with compression rules applies to document ingestion scenarios such as PRD creation, architecture design, and validation-gated reasoning. It requires input routing analysis and outputs structured JSON for these validation-gated reasoning workflows.