How Much Skill Orchestration Can LLM Agents Compile Away? Execution-Grounded Specialization for Token-Efficient Skill Use

Jiayi Ni, Zac Wang, Alex Zhang, Zheng Liu and Roopa Prabhu (NVIDIA) ask how much of a skill's orchestration an agent can compile into an executable fast path, and introduce SkillCache.
Ask this paper
Zero-shot compilation fails. Compiling a skill and request into a reusable capsule before execution used more tokens than direct skill use on 58 of 84 SkillsBench tasks, 1.24x per task in geometric mean, because wrong assumptions about runtime bindings make plans brittle.
SkillCache. Compiles one completed invocation (a single execution trace) into a capsule of programs and natural-language steps, stored separately from the human-written skill, which stays the source of truth.
Token savings. In the Claude Code harness, warm runs cut tokens on 87 SkillsBench tasks by 81% with Claude Sonnet 4.6 and 74% with Claude Opus 4.8 at comparable reward, and capsules hold up under controlled request changes.
Cross-model transfer. Capsules raise three open-weight models' mean reward by 12-25 points while cutting their tokens by 72-81%.
Abstract
Reusable skills guide large language model (LLM) agents through recurring requests, but each invocation still requires the model to interpret the skill and reconstruct its orchestration. Can agents automatically compile this orchestration into an executable fast path without human intervention? We first study zero-shot skill specialization, which compiles without execution evidence, and find that despite the skill's procedural guidance, incorrect assumptions about runtime bindings can make generated plans brittle and recovery costly. This motivates SkillCache, a one-trace skill specialization method that compiles a completed invocation into a parameterized capsule of programs and natural-language steps, replays it before reuse, and drives it with a plan executor that returns control to the model only when needed, keeping the source skill for recovery. With the Claude Code harness, warm execution of the same request reduces tokens on 87 SkillsBench tasks by 81% with Claude Sonnet 4.6 and by 74% with Claude Opus 4.8 at comparable reward, and capsules stay effective under controlled request changes. Capsules also transfer across models, raising three open-weight models' mean reward by 12-25 percentage points while reducing their tokens by 72-81%, suggesting that execution-grounded compilation is a promising approach to efficient repeated skill use and cross-model transfer.