English

SkCC: Portable and Secure Skill Compilation for Cross-Framework LLM Agents

Cryptography and Security 2026-05-12 v2 Artificial Intelligence

Abstract

LLM agents increasingly rely on reusable skills (e.g., `SKILL.md`) to execute complex tasks, yet these artifacts lack portability: agent frameworks are highly sensitive to prompt formatting, leading to a large performance variation for the same skill. Nevertheless, most skills are authored once as format-agnostic Markdown, necessitating costly per-framework rewrites and also leaving security largely unaddressed, with widespread vulnerabilities in practice. To address this, we present SkCC, a compiler for LLM agents that introduces classical compilation design into agent skill development. SkCC centers on SkIR, a strongly-typed intermediate representation that decouples skill semantics from framework-specific formatting, thus enabling portable deployment across agent frameworks. Atop of this IR, a static Optimizer enforces security constraints, blocking vulnerabilities before deployment. Implemented as a four-phase pipeline, SkCC effectively reduces adaptation complexity from O(m×n)O(m \times n) to O(m+n)O(m + n) across mm skills and nn frameworks. Experiments on SkillsBench demonstrate that SkCC delivers consistent and substantial gains over original counterparts, with pass rate increases from 21.1% to 33.3% on Claude Code and from 35.1% to 48.7% on Kimi CLI. Further, the design achieves sub-10ms compilation latency, 94.8% proactive security trigger rate, and 10-46% runtime token savings across frameworks.

Keywords

Cite

@article{arxiv.2605.03353,
  title  = {SkCC: Portable and Secure Skill Compilation for Cross-Framework LLM Agents},
  author = {Yipeng Ouyang and Yi Xiao and Yuhao Gu and Xianwei Zhang},
  journal= {arXiv preprint arXiv:2605.03353},
  year   = {2026}
}

Comments

20 pages, 6 figures. Project page: https://skcc.nexa-lang.com/ Code: https://github.com/Nexa-Language/Skill-Compiler/

R2 v1 2026-07-01T12:49:49.870Z