Preprint
Machine Learning

Generative Skill Composition

Xinyu Zhao, Zhen Tan, Vaishnav Tadiparthi, Nakul Agarwal, Kwonjoon Lee, Ehsan Moradi-Pari, Hossein Nourkhiz Mahjoub, Tianlong Chen
June 30, 2026arXiv.org2 citations

2

Citations

0

Influential Citations

arXiv.org

Venue

2026

Year

Abstract

Recent LLM agents benefit from skills for solving complex tasks. Skills encapsulate modular packages of procedural knowledge and instructions for performing specialized tasks, such as setting up a sandboxed environment, running a test suite, or refactoring a function across multiple files. As skill libraries grow and become reusable across tasks and domains, selecting an appropriate skill composition has emerged as a central bottleneck. Existing approaches fall into two categories. One exposes the agent's reasoning to the entire skill collection; the other performs skill retrieval via embeddings or LLM-based rerankers. Both provide useful insights; however, they miss the structural nature of skill composition, which is a joint decision over which skills, how many, and in what order -- three dimensions that cannot be decoupled. We formalize this as structured skill composition: given a task and a skill library, predict an executable skill plan that jointly specifies the activated subset, count, and execution order. We propose SkillComposer, which instantiates structured skill composition as task-conditioned skill sequence prediction. SkillComposer uses a constrained autoregressive decoder over skill identifiers, so subset, count, and order emerge jointly from a single decoding pass, and dependencies between successive skills are captured naturally. We build a training set of task-composition pairs from a real, human-curated skill library. We then evaluate SkillComposer along two axes: composition quality on a held-out test set, and downstream task success on SkillsBench across two production-grade coding agents. On GPT-5.2-Codex, Gemini-3-Pro-Preview, SkillComposer raises the pass rate by +23.1, +18.2pp over the no-skill baseline, surpassing top-3 retrieval and matching the gold-skill retrieval upper bound at lower prompt-token cost.

Analysis

Why This Paper Matters

As LLM agents increasingly rely on modular skills to tackle complex tasks, the challenge of selecting the right combination of skills becomes critical. Existing methods either expose the entire skill library to the agent's reasoning or use retrieval techniques, but both overlook the structural nature of skill composition—the joint decision over which skills, how many, and in what order. This paper identifies this gap and formalizes it as structured skill composition, a problem that cannot be solved by decoupling these dimensions. By proposing SkillComposer, the authors introduce a novel approach that treats skill composition as a sequence prediction task, enabling joint optimization of all three dimensions in a single decoding pass. This is a significant step forward because it directly addresses the combinatorial complexity of skill selection while maintaining efficiency.

The paper's relevance is underscored by the growing use of skill libraries in production coding agents. The empirical results show substantial gains over strong baselines, indicating that the structured approach captures dependencies that retrieval methods miss. This work is likely to influence future agent designs, encouraging more principled handling of procedural knowledge.

Technical Contributions

  • Formalization of structured skill composition: The paper defines the problem as predicting an executable skill plan that jointly specifies the activated subset, count, and execution order, highlighting the interdependence of these dimensions.
  • SkillComposer architecture: A constrained autoregressive decoder over skill identifiers that generates skill sequences. The constraints ensure valid plans, while the autoregressive nature captures dependencies between successive skills.
  • Training data construction: The authors build a dataset of task-composition pairs from a real, human-curated skill library, enabling supervised training of the model.
  • Efficiency: By generating the plan in a single pass, SkillComposer avoids the overhead of retrieving and reranking multiple candidate skills, reducing prompt-token cost.

Results

The evaluation on SkillsBench with two production-grade coding agents (GPT-5.2-Codex and Gemini-3-Pro-Preview) shows that SkillComposer raises the pass rate by +23.1 and +18.2 percentage points over the no-skill baseline, respectively. It surpasses top-3 retrieval methods and matches the gold-skill retrieval upper bound, which assumes perfect retrieval. Notably, this is achieved at a lower prompt-token cost, making it both more accurate and more efficient. These results demonstrate that jointly modeling skill composition yields better performance than decoupled retrieval or full exposure.

Significance

This work addresses a central bottleneck in LLM agent skill reuse, offering a scalable and efficient solution that could be applied across domains beyond coding. By formalizing the problem and providing a practical method, it opens avenues for future research in structured prediction for agent planning. The approach's efficiency also has practical implications for reducing API costs in production systems. As skill libraries grow, SkillComposer's ability to generate compact, executable plans will become increasingly valuable, potentially enabling agents to handle more complex tasks with limited context windows.