SkillZip: Contract-Preserving Graph Compression for Scalable Agent Skill Libraries
Xingyu Tan, Xiaoyang Wang, Qing Liu, Xiwei Xu, Xin Yuan, Liming Zhu, Wenjie Zhang
cs.CL, cs.AI
Submitted: 2026-08-06
License: http://creativecommons.org/licenses/by/4.0/
The gist: Large Language Models (LLMs) increasingly act as agents whose procedural knowledge is stored in reusable skill packages and loaded at inference time.
Terminology
Abstract
Large Language Models (LLMs) increasingly act as agents whose procedural knowledge is stored in reusable skill packages and loaded at inference time. As skill libraries grow, a central challenge is to expose the smallest sufficient executable context under a limited context budget. Existing systems struggle to reuse routines below the whole-skill level, preserve procedural contracts during compression, keep compressed routines executable and expandable, and update the compressed library as skills evolve. These challenges reveal a unit mismatch: skills are retrieved as packages, compressed as text, and converted into execution graphs only after retrieval, whereas reliable reuse requires a contract-bearing procedural unit. We propose SkillZip, an execution-aware procedural abstraction framework that performs contract-preserving compression over section-level graphs. SkillZip rewrites recurring contract-valid motifs into reversible ported macros while preserving boundary signatures, dependency closure, verifier reachability, and source-level expansion. At inference time, it hydrates a compact, dependency-closed context and expands macros only when required. ReZip further integrates new skills and revises risky macros using execution evidence. Comprehensive experiments1 on technical and embodied agent benchmarks show SkillZip consistently outperforms the strongest baseline by up to 12.2 points, while achieving a 3.46x compression ratio with 99.2% dependency preservation and 98.7% verifier reachability. Scaling analyses further confirm robust retrieval across skill libraries ranging from 200 to 100K skills.
Sources
- SLUGGER: Lossless Hierarchical Summarization of Massive Graphs
- Organizing, Orchestrating, and Benchmarking Agent Skills at Ecosystem Scale
- SkillGraph: Skill-Augmented Reinforcement Learning for Agents via Evolving Skill Graphs
- SkillsBench: Benchmarking How Well Agent Skills Work Across Diverse Tasks
- From Skill Text to Skill Structure: The Scheduling-Structural-Logical Representation for Agent Skills
- SkillNet: Create, Evaluate, and Connect AI Skills
- Agent Skills: A Data-Driven Analysis of Claude Skills for Extending Large Language Model Functionality
- Graph-of-Skills: Dependency-Aware Structural Retrieval for Massive Agent Skills
- SkillRAE: Agent Skill-Based Context Compilation for Retrieval-Augmented Execution
- Skill-Pro: Learning Reusable Skills from Experience via Non-Parametric PPO for LLM Agents
- SkillLens: Adaptive Multi-Granularity Skill Reuse for Cost-Efficient LLM Agents
- LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compression
- SkillOps: Managing LLM Agent Skill Libraries as Self-Maintaining Software Ecosystems
- SkillDAG: Self-Evolving Typed Skill Graphs for LLM Skill Selection at Scale
- Managing Procedural Memory in LLM Agents: Control, Adaptation, and Evaluation
- AIP: A Graph Representation for Learning and Governing Agent Skills
- SkillRet: A Large-Scale Benchmark for Skill Retrieval in LLM Agents
- TextWorld: A Learning Environment for Text-based Games
- SkillReducer: Optimizing LLM Agent Skills for Token Efficiency
- SWE-Skills-Bench: Do Agent Skills Actually Help in Real-World Software Engineering?
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering