Anything2Skill: Compiling External Knowledge into Reusable Skills for Agents
The paper proposes Anything2Skill, a framework that compiles heterogeneous external knowledge into reusable, structured procedural skills stored in a SkillBank, enabling agents to achieve significantly higher success rates than standard RAG approaches by combining declarative evidence with executable domain expertise.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you have a brilliant but inexperienced assistant (an AI agent) who is very good at reading books and finding facts. You ask them to fix a complex machine, and they can quickly find the manual, read the parts list, and tell you what the machine is made of. This is how current AI systems work, a method called RAG (Retrieval-Augmented Generation). They are great at finding "declarative evidence"—facts and descriptions.
But here's the problem: The manual tells the assistant what a screwdriver is, but it doesn't always clearly say how to use it to fix a specific broken gear in the right order. The assistant has to read the manual, guess the steps, try to fix it, fail, read the manual again, and guess again. It's like trying to learn how to cook a complex dish just by reading a grocery list and a description of the ingredients, without ever seeing a recipe or a chef cook it.
ANYTHING2SKILL is a new system designed to solve this. Think of it as a "Skill Compiler" or a "Cookbook Creator."
The Core Idea: Turning Manuals into Recipes
Instead of just letting the AI read the raw manuals, logs, and documents every time it faces a task, ANYTHING2SKILL takes all that messy information and compiles it into reusable "skills."
Here is how it works, using a simple analogy:
- The Raw Ingredients (The Knowledge Base): Imagine a giant library filled with scattered notes, old repair logs, chat transcripts, and official manuals. Right now, an AI has to search through this library every single time it needs to do something.
- The Chef's Prep (The Extraction): ANYTHING2SKILL acts like a master chef who reads all those scattered notes. It doesn't just summarize them; it looks for procedures. It asks: "What are the exact steps to do this? What tools are needed? What mistakes should be avoided?"
- The Skill Tree (The Organization): The system organizes these procedures into a structured "Skill Tree." It's like a family tree for tasks.
- Macro-protocols: Big-picture strategies (e.g., "How to manage a software project").
- Micro-skills: Specific, tiny actions (e.g., "How to run this specific command to delete a file").
- Safety Rules: Warnings (e.g., "Never do X if Y is happening").
- The SkillBank (The Reusable Library): Once the "recipes" are written, they are stored in a permanent, organized SkillBank. This isn't just a pile of documents; it's a database of executable instructions. Each "skill" has a contract that says: "If you see situation X, do steps A, B, and C, but avoid D."
How It Helps the AI Agent
When the AI agent faces a new task, it now has two superpowers working together:
- Power 1: The Librarian (RAG): It still searches the original library to find specific facts or the latest updates (the "what").
- Power 2: The Veteran Mentor (SkillBank): It pulls a pre-made "skill" from the SkillBank. This skill tells the agent exactly how to do the task, step-by-step, based on what worked before.
The Result:
The paper tested this on two real-world tasks: managing CSV data files (qsv) and managing GitHub repositories (GitHub-CLI).
- Without ANYTHING2SKILL: The AI was like a smart student reading a manual for the first time. It got about 65–82% of the tasks right.
- With ANYTHING2SKILL: The AI had the "compiled recipes." It got about 82–92% right.
- With BOTH: The AI had the facts and the recipes. It got 98.85% of the CSV tasks and 94.10% of the GitHub tasks right.
The Big Takeaway
The paper claims that we shouldn't just treat external knowledge as a pile of facts to be read. We should treat it as a source of hidden procedures that can be extracted, organized, and turned into reusable "skills."
By compiling these latent procedures into a SkillBank, we move AI agents from simply "accessing knowledge" (reading the manual) to "reusing capabilities" (knowing exactly how to do the job). It's the difference between giving someone a dictionary and giving them a well-organized instruction manual for every possible job they might need to do.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.