arXiv:2605.03353cs.CRcs.AI2026-05中稿 · the Agent Skills W…被引 5

让大模型技能跨框架通用且安全,编译后性能显著提升

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

论文配图:SkCC: Portable and Secure Skill Compilation for Cross-Framework LLM Agents
图 1 · 摘自论文原文
  • 用强类型中间表示解耦技能逻辑与框架格式,实现一次编写多框架运行
  • 在多个框架上将任务通过率提升至33.3%~48.7%,运行时节省10%-46%令牌
  • 编译延迟低于10毫秒,可主动检测94.8%的安全漏洞,适合开发者部署

大模型智能体依赖可复用的技能(如SKILL Markdown文件)完成复杂任务,但这些技能缺乏可移植性:不同框架对提示格式敏感,导致同一技能在不同框架表现差异巨大。尽管多数技能以格式无关的Markdown编写,仍需针对每个框架重写,成本高昂,且安全问题长期被忽视。为此,我们提出SkCC,一种面向大模型智能体的编译器,将经典编译设计引入技能开发。SkCC核心是强类型中间表示SkIR,将技能语义与框架特有格式解耦,实现跨框架可移植部署。在此基础上,静态优化器强制执行安全约束,部署前阻断漏洞。该系统采用四阶段流水线,将跨m个技能和n个框架的适配复杂度从O(m×n)降至O(m+n)。在SkillsBench上的实验表明,相比原始版本,SkCC在Claude Code上通过率从21.1%提升至33.3%,在Kimi CLI上从35.1%提升至48.7%。此外,编译延迟低于10毫秒,安全漏洞主动触发率达94.8%,各框架运行时令牌消耗减少10%-46%。

原文摘要 · Abstract (English)

LLM agents increasingly rely on reusable skills (e.g., SKILL markdown files) 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 \times n)$ to $O(m + n)$ across $m$ skills and $n$ 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.

大模型智能体技能编译跨框架安全增强

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。