TL;DR
While Retrieval-Augmented Generation (RAG) excels at giving LLM agents factual knowledge ("what to know"), it struggles with procedural knowledge ("how to do"). Anything2Skill bridges this gap by compiling raw documents, logs, and manuals into structured, executable "skill contracts" managed in a persistent SkillBank. By combining traditional RAG with skill retrieval, agents achieve massive performance boosts on complex, multi-step command-line tasks.
What Problem Does This Paper Address?
Current Large Language Model (LLM) agents rely heavily on RAG to reason over external information. However, traditional RAG treats external knowledge purely as declarative evidence—retrieving fragmented text snippets that tell the agent what facts are relevant, but not how a task should actually be performed.
As a result, when faced with complex, multi-step workflows (like debugging via logs or navigating a software manual), agents must repeatedly reconstruct procedural logic from scratch at inference time. This process is highly inefficient, prone to hallucinations, and often leads to execution failures. The authors address this by asking a fundamental question: Can we extract latent procedural knowledge from external sources and "install" it directly into an agent as reusable capabilities?
Methods
The authors introduce Anything2Skill, a taxonomy-guided framework that transforms heterogeneous external knowledge into a structured, deployable procedural memory called a SkillBank.
The pipeline consists of three main phases:
- Skill Extraction with a Skill-Tree Prior: Raw knowledge records (documents, dialogues, execution logs) are broken down into strict "evidence windows." An LLM-based planner uses a two-stage plan-and-expand strategy to identify distinct skill candidates. These candidates are passed through a procedural validity filter and converted into structured Skill Contracts that explicitly define invocation conditions, contraindications, action moves, workflow steps, constraints, and output specifications.
- Skill Management in the SkillBank: To turn raw extractions into a clean repository, Anything2Skill performs document-level compilation to merge overlapping window-level drafts. It then uses a registry-level reconciliation mechanism (combining dense embeddings and BM25 lexical matching) to determine lifecycle actions for incoming skills—such as
CREATE,STRENGTHEN,REVISE, orMERGE. - Skill-Augmented Retrieval (Inference): At runtime, the downstream agent performs a dual-retrieval process. It queries the original knowledge base for task-specific declarative evidence ($C_q$) and simultaneously queries the SkillBank for relevant procedural skills ($S_q$). The agent then executes the task conditioned on both sources.
Datasets
The framework was evaluated on two challenging command-line interface (CLI) benchmarks that require precise tool documentation understanding and multi-step execution:
- qsv benchmark: Focused on command-line CSV data manipulation and data wrangling operations grounded in official
qsvdocumentation. - GitHub-CLI benchmark: Constructed from
ghcommand documentation and repository-management guides covering 110 source documents. From this corpus, Anything2Skill compiled 179 distinct skills (comprising 1 global skill, 6 top-level skills, 62 second-level skills, and 110 micro-skills).
Key Insights and Ideas
- The Declarative-Procedural Synergy: The core "aha moment" is that RAG and structured skills address entirely different, yet complementary, aspects of agent execution. RAG grounds the agent in specific facts, while the SkillBank provides a stable, reusable recipe for action.
- Taxonomy as a Guardrail: By enforcing a strict structural prior (the skill taxonomy), the framework prevents the LLM from generating vague, free-form summaries. It also ensures that updates and merges only happen between compatible asset layers (e.g., preventing a safety rule from being incorrectly merged into an executable micro-skill).
- Offline Compilation Lowers Online Cognitive Load: Shifting the burden of procedural synthesis from online inference-time prompting to an offline compilation phase drastically reduces execution errors in complex workflows.
Key Results
The authors evaluated their framework using gpt5.4-mini as the base model, comparing a Base Agent, RAG-only, Anything2Skill-only, and the combined Anything2Skill + RAG approach.
| Method | qsv Success Rate | GitHub-CLI Success Rate |
|---|---|---|
| Base Agent | 81.60% | 64.70% |
| RAG | 95.41% | 76.50% |
| Anything2Skill | 91.95% | 82.30% |
| Anything2Skill + RAG | 98.85% | 94.10% |
On the highly complex GitHub-CLI benchmark, Anything2Skill alone actually outperformed RAG alone (82.30% vs 76.50%), demonstrating that structured procedural knowledge can be more valuable to an agent than raw documentation. When combined, Anything2Skill + RAG achieved the highest performance across both benchmarks, yielding absolute success rate gains of 17.25% on qsv and 29.40% on GitHub-CLI compared to the Base Agent.
Limitations and Future Work
The limitations and future directions are not explicitly detailed in a dedicated section within the provided text. However, based on the framework's design, it implicitly relies on a well-defined, pre-existing skill taxonomy ($T$) to guide the compilation process. Future work could naturally extend toward automated taxonomy induction or enabling agents to dynamically update their SkillBank in real time based on interactive environment feedback.
Summary updated