arXiv:2606.09316cs.AI2026-06被引 4

将外部知识转化为可复用的技能,让智能体快速掌握领域专家能力。

Anything2Skill: Compiling External Knowledge into Reusable Skills for Agents

论文配图:Anything2Skill: Compiling External Knowledge into Reusable Skills for Agents
图 1 · 摘自论文原文
  • 基于技能树先验,从异构知识中提取可执行的程序化技能
  • 在qsv和GitHub-CLI任务中分别达到98.85%和94.10%的成功率
  • 适合需要快速部署专业能力的智能体系统开发者

检索增强生成(RAG)使智能体能在推理时访问外部知识,但主要获取的是碎片化的陈述性证据,导致智能体需反复从文档、手册、示例或轨迹中推断任务流程。这引发一个根本问题:能否将外部知识库中的技能提取并植入智能体,使其快速逼近领域专长?本文提出Anything2Skill,一种基于分类体系的框架,可将异构外部知识编译为可复用、可检索、可执行的技能。给定知识记录集,Anything2Skill首先将每条记录分解为证据窗口,在技能树先验下进行计划与扩展式技能提取。候选技能被转化为结构化技能合约,包含调用条件、禁忌项、动作步骤、工作流、约束、输出规范、支持证据及置信度。通过分类感知编译、注册层校正、生命周期追踪、版本更新与可见技能树投影,构建持久化的技能库(SkillBank)。推理时,智能体同时从原始知识库检索任务相关段落,并从技能库获取相关程序化技能,实现声明性证据与可复用流程指导的协同。在qsv和GitHub-CLI上的实验表明,Anything2Skill结合RAG在两项任务上分别取得98.85%和94.10%的成功率,显著优于仅使用RAG的智能体。结果表明,将隐含的程序性知识显式编译为技能,是推动检索增强型智能体从知识访问迈向能力复用的有效途径。

原文摘要 · Abstract (English)

Retrieval-augmented generation (RAG) enables agents to access external knowledge at inference time, but it primarily retrieves fragmented declarative evidence, leaving agents to repeatedly infer task procedures from passages, manuals, examples, logs, or trajectories. This raises a fundamental question: can skills extracted from external knowledge bases be installed into an agent, enabling it to rapidly approximate domain expertise? In this paper, we propose Anything2Skill, a taxonomy-guided framework that compiles heterogeneous external knowledge into reusable, retrievable, and executable skills for agents. Given a corpus of knowledge records, \textsc{Anything2Skill} first decomposes each record into evidence windows and performs plan-and-expand skill extraction under a skill-tree prior. The extracted candidates are then converted into structured skill contracts that specify invocation conditions, contraindications, action moves, workflow steps, constraints, output specifications, supporting evidence, and confidence scores. To construct a deployable procedural memory, Anything2Skill manages the extracted skills in a persistent SkillBank through taxonomy-aware compilation, registry-level reconciliation, lifecycle tracking, versioned updates, and visible skill-tree projection. At inference time, agents retrieve both task-specific passages from the original knowledge base and relevant procedural skills from the SkillBank, allowing RAG to provide declarative evidence while compiled skills provide reusable procedural guidance. Experiments on qsv and GitHub-CLI show that Anything2Skill combined with RAG achieves 98.85\% and 94.10\% success rates, respectively, substantially outperforming RAG-only agents. These results suggest that compiling latent procedural knowledge into explicit skills is an effective way to extend retrieval-augmented agents from knowledge access toward capability reuse.

智能体技能编译RAG知识提取

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