SkillX: Automatically Constructing Skill Knowledge Bases for Agents

Chenxi Wang, Zhuoyun Yu, Xin Xie, Wuguannan Yao, Runnan Fang, Shuofei Qiao, Kexin Cao, Guozhou Zheng, Xiang Qi, Peng Zhang, Shumin Deng

TL;DR

SkillX is a fully automated framework that builds a hierarchical, plug-and-play skill library from agent experiences. By distilling raw task trajectories into structured strategic plans and reusable code subroutines, it allows "weaker" agents to inherit the expertise of "stronger" ones, boosting performance by up to 10% on complex, long-horizon benchmarks.

What Problem Does This Paper Address?

Despite the rapid advancement of Large Language Model (LLM) agents, most still suffer from a "Groundhog Day" problem: they approach every new task from scratch. Current self-evolving paradigms are often inefficient because agents learn in isolation, repeatedly rediscovering the same behaviors from limited data.

Furthermore, when agents do try to remember past experiences, they often store them as raw trajectories (which are hard to generalize) or vague "insights" (which are hard to execute). This creates a "Model Capability Bottleneck"—an agent can only learn what its own current reasoning allows. The authors of SkillX ask: How can we represent experience so it is broadly reusable across different agents and diverse environments?

Methods

The authors introduce SkillX, a pipeline that transforms raw agent trajectories into a structured Skill Knowledge Base (SkillKB). The framework relies on three core innovations:

  1. Multi-Level Skills Design: Instead of one-size-fits-all "memories," SkillX organizes knowledge into a three-tiered hierarchy:
  2. Planning Skills: High-level strategic steps (the "game plan").
  3. Functional Skills: Reusable, tool-based subroutines (the "macros").
  4. Atomic Skills: Specific usage patterns and constraints for individual tools (the "fine print").
  5. Iterative Skills Refinement: The system doesn't just extract skills once. It uses execution feedback to merge redundant skills, filter out "hallucinated" tool calls, and decompose overly complex skills into modular pieces.
  6. Exploratory Skills Expansion: To avoid being limited by the initial training data, SkillX proactively identifies under-utilized tools and generates synthetic tasks to "stress test" them, discovering new skills in the process.

The workflow involves a "strong" backbone model (like GLM-4.6) performing the initial heavy lifting of exploration and extraction, creating a library that can then be "plugged into" other models during inference.

Datasets

The researchers evaluated SkillX on three challenging, long-horizon benchmarks that require complex tool use and user interaction:

  • AppWorld: A simulated ecosystem of 9 apps (email, Spotify, etc.) where agents must complete multi-step tasks.
  • BFCL-v3 (Berkeley Function Calling Leaderboard): A benchmark focused on the precision of API calls across multiple programming languages.
  • $\tau^2$-Bench: A benchmark for real-world domains like retail and airlines, emphasizing multi-turn user-agent dialogues and policy compliance.

Key Insights and Ideas

  • The Power of Distillation: One of the most significant findings is that experience is transferable. A "weaker" model like Qwen3-32B can significantly improve its success rate by using a skill library built by a "stronger" model like GLM-4.6.
  • Structure Over Raw Data: The authors found that hierarchical skills are far more effective than simply providing the agent with past trajectories (few-shot prompting). Structured skills are easier to retrieve and less likely to cause the agent to "over-imitate" specific, irrelevant details of a past case.
  • Efficiency Gains: Beyond just succeeding more often, agents using SkillX are more efficient. The "Planning Skills" in particular help agents skip unnecessary exploration steps, leading to shorter trajectories and lower token costs.
  • The "Aha" Moment on Model Fit: Interestingly, different models prefer different skill levels. While the strongest models benefit from the full hierarchy, some mid-tier models actually perform better with just the high-level Planning Skills, as they can sometimes get "confused" or over-reliant when given too much low-level code.

Key Results

  • Performance Boost: SkillX improved the performance of the Qwen3-32B model by approximately 10% across multiple benchmarks.
  • Superiority over Baselines: SkillX consistently outperformed existing memory frameworks like A-Mem, AWM (Agent Workflow Memory), and ExpeL.
  • Robustness: On the AppWorld benchmark, SkillX helped agents handle complex API sequences (like pagination) that caused baseline agents to fail.
  • Transferability: The results proved that a pre-built SkillKB is truly "plug-and-play," providing immediate gains to models that were never involved in the initial skill extraction process.

Limitations and Future Work

  • Static vs. Dynamic: Currently, SkillX focuses on "static construction"—building the library before the task starts. The authors note that "dynamic updating" (refining the library during live task execution) is a vital next step for true lifelong learning.
  • Overfitting Risks: When training data is extremely scarce, the iterative refinement process can occasionally lead to overfitting, where the skills become too specific to the training examples.
  • The "Headroom" Problem: For the absolute strongest models (like GLM-4.6), the gains from SkillX were more modest. This suggests that as models reach a certain level of native reasoning and planning capability, the benefit of external skill libraries may diminish, or require even more complex, "expert-level" skills to show improvement.

Summary updated

BibTeX
@inproceedings{wang2026skillx,
  author = {Chenxi Wang and Zhuoyun Yu and Xin Xie and Wuguannan YAO and Runnan Fang and Shuofei Qiao and Kexin Cao and Guozhou Zheng and Xiang Qi and Peng Zhang and Shumin Deng},
  title = {{SkillX: Automatically Constructing Skill Knowledge Bases for Agents}},
  booktitle = {AI4Math @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=091ziax0aV},
}
Figure