deep-document-processor

Compress large documents into token-efficient context artifacts for agent reasoning.

7|2|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/AndurilCode/craftwork --skill deep-document-processor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deep-document-processor
Source: https://github.com/AndurilCode/craftwork/tree/main/skills/deep-document-processor
Command: npx skills add https://github.com/AndurilCode/craftwork --skill deep-document-processor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It compresses large documents into a token-efficient context artifact that preserves decision-relevant structure for downstream agent reasoning, avoiding wasted context budget from full inclusion, naive truncation, or human-oriented summaries.

Core Features & Use Cases

  • Four-pass disciplined extraction: builds a structural survey, performs selective extraction under a strict token-compression budget, scans cross-references and conflicts, and assembles a single context artifact for the agent.
  • Decision-optimized output: prioritizes constraints, dependencies, counter-intuitive facts, and anything that would change recommendations or outcomes.
  • Document scale trigger: targets inputs longer than ~2000 tokens to keep context within limits while maintaining reasoning fidelity.

Quick Start

Use the deep-document-processor skill to process the attached document and produce a maximum-signal, compression-bounded context artifact optimized for agent decision-making.

Frequently Asked Questions about deep-document-processor

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

FAQPage Schema
How do I extract decision-relevant information from large documents without exceeding context limits?

To extract information from large documents without exceeding context limits, use a four-pass structural survey and selective extraction process. This compresses inputs into a token-efficient context artifact, preserving critical structure and constraints for downstream agent reasoning while avoiding naive truncation.

What is the best way to compress long specifications for agent reasoning?

The best way to compress long specifications for agent reasoning is transforming them into decision-optimized context artifacts. This method applies a strict ≤20% compression constraint during selective extraction, ensuring maximum signal retention while prioritizing constraints, dependencies, and counter-intuitive facts.

When do I need context engineering for research writeups?

You need context engineering for research writeups when full document inclusion would waste your context budget or lose critical structure. Specifically, this process targets inputs longer than approximately 2000 tokens to maintain reasoning fidelity and keep context within limits.

Does document processing work with codebase documentation to avoid wasted context budget?

Document processing works effectively with codebase documentation by applying a four-pass disciplined extraction. It scans cross-references and conflicts, then assembles a single context artifact that avoids wasted context budget from full inclusion and prevents the loss of structural details.

Why does naive truncation fail for long papers in downstream reasoning?

Naive truncation fails for long papers because it discards decision-relevant structure and critical constraints. Instead of truncating, a four-pass extraction process builds a structural survey and selectively extracts information under a strict token-compression budget to produce a maximum-signal context artifact.

What distinguishes deep document processing from human-oriented summaries?

Deep document processing differs from human-oriented summaries by optimizing specifically for agent decision-making. It prioritizes machine-readable constraints and counter-intuitive facts through structural surveys and cross-reference scanning, producing a token-efficient artifact rather than a high-level human narrative.