Compiling LLM Skills into Portable Bundles: Structure-Preserving Compression and Its Lossless Limit

LLM agents work from skills: Markdown instruction files that reference other files and are loaded into the context on every run. To share or deploy a skill, it has to be compiled with what it references into one self-contained bundle that keeps its structure and behavioural rules intact. Compression is part of that compilation, since most of the text is written for human readers and every token is paid for on every run. This preprint studies Hybrid Hierarchical Compression (HHC), a bundling method whose central level keeps behavioural sections and imperative rules verbatim, keeps every rule, definition, threshold and step as a compact line, and drops examples, rationale and restatement. It measures what a bundle preserves on two levels: structure, with static checks, and information, with units extracted from the source and quizzed against every compressed level on three model sizes (Claude Haiku 5.5, Sonnet 5.5, Opus 5.5). The central level was the only compressed level that kept every behavioural section and imperative rule verbatim. A plain summary of the same size kept none of the ten behavioural sections of the process skill and 5 of its 31 imperative rules. On information, it was lossless or nearly so on three of four files, at reductions from 14% to 39%. On a dense review protocol it lost 6–7 points at 40%. Redundancy, not file type, set the limit, and a simple estimate of essential content predicted it for three of four files. At the same budget, a plain summary retained as much information as HHC, so HHC's advantage is the structure it keeps, not a higher fact density. Behaviour scenarios did not detect information loss that direct probes found.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-30
DOI
https://doi.org/10.5281/zenodo.24689058
Primary Topic
Algorithms and Data Compression
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Compiling LLM Skills into Portable Bundles: Structure-Preserving Compression and Its Lossless Limit

Ji Li
Zenodo (CERN European Organization for Nuclear Research)
Algorithms and Data Compression
preprint

Compiling LLM Skills into Portable Bundles: Structure-Preserving Compression and Its Lossless Limit

Ji Li
preprint en

Abstract

LLM agents work from skills: Markdown instruction files that reference other files and are loaded into the context on every run. To share or deploy a skill, it has to be compiled with what it references into one self-contained bundle that keeps its structure and behavioural rules intact. Compression is part of that compilation, since most of the text is written for human readers and every token is paid for on every run. This preprint studies Hybrid Hierarchical Compression (HHC), a bundling method whose central level keeps behavioural sections and imperative rules verbatim, keeps every rule, definition, threshold and step as a compact line, and drops examples, rationale and restatement. It measures what a bundle preserves on two levels: structure, with static checks, and information, with units extracted from the source and quizzed against every compressed level on three model sizes (Claude Haiku 5.5, Sonnet 5.5, Opus 5.5). The central level was the only compressed level that kept every behavioural section and imperative rule verbatim. A plain summary of the same size kept none of the ten behavioural sections of the process skill and 5 of its 31 imperative rules. On information, it was lossless or nearly so on three of four files, at reductions from 14% to 39%. On a dense review protocol it lost 6–7 points at 40%. Redundancy, not file type, set the limit, and a simple estimate of essential content predicted it for three of four files. At the same budget, a plain summary retained as much information as HHC, so HHC's advantage is the structure it keeps, not a higher fact density. Behaviour scenarios did not detect information loss that direct probes found.

Zenodo (CERN European Organization for Nuclear Research)
Algorithms and Data Compression
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon