arXiv:2610.24630cs.AIOct 2026

Manuscript Offprint

arXiv:2610.24630

Selm: Self-Evolving Library Management for Multi-Skill Agent Optimization

Mengxi Hu, Yuxuan Hu, Jinbo Su, Ke Wang, Honghao Shi, Wenli Wu, Cuiping Li, Hong Chen, Jing Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Large language model (LLM) agents increasingly use skills as a lightweight way to acquire task-specific knowledge. Recent work enables skills to evolve from task trajectories. However, these methods often lack systematic management of evolved skills, making it difficult for agents to reuse and accumulate skills across domains, thus limiting performance on subsequent tasks. To reliably accumulate, reuse, and maintain useful skills across tasks, we present SELM (Self-Evolving Library Management), a framework that formulates skill evolution as library-level management. SELM jointly manages skill retrieval, updating, and lifecycle by maintaining skill confidence and utility signals. It introduces utility-aware retrieval to select useful skills, a Map-Reduce framework to generate targeted updates from task-specific experience, and lifecycle controls to retain or remove skills based on their effectiveness. These mechanisms enable the skill library to continuously accumulate useful experience while preserving and pruning skills across tasks, improving agent performance on complex tasks across diverse domains. We evaluate SELM on four agent benchmarks covering diverse tasks and execution environments, and SELM consistently outperforms in most settings.

1 INTRODUCTION

Large language model (LLM) agents are increasingly used to solve complex tasks across different domains. To improve agents' behaviors on specific tasks, recent work introduced skills (Anthropic, 2025), which are pieces of text that can be plugged into the agent context to provide task-specific knowledge, procedures, or experience. This gives agents a simple way to gain specialized knowledge without additional model training.

Recent work has explored how skills can evolve as the agent runs. Early skills were mostly static: they were written by experts or saved from successful experiences and then kept unchanged (Zhao et al., 2024; Anthropic, 2025). More recent methods allow agents to update skills from their execution trajectories (Yang et al., 2026a; Alzubi et al., 2026; Liu et al., 2026; Zhang et al., 2026a; Zheng et al., 2025; Ni et al., 2026; Ma et al., 2026; Zhou et al., 2026; Zhang et al., 2026b). After running tasks, the agent can examine which skill worked or failed, then edit existing skills or create new ones. In this way, skills can change with the agent's experience and adapt to new tasks and environments.

However, although these evolution methods propose many strategies to evolve skills (Alzubi et al., 2026; Zhang et al., 2026a; Zheng et al., 2025; Zhou et al., 2026; Zhang et al., 2026b), few of them focus on how to manage them. A skill revision that best fits the current round can be harmful to later processes. For instance, a skill that is unused or unhelpful for the present task may be overwritten or discarded; once that change is committed, a later task can never recover the deleted skill. Meanwhile, failed or redundant skills that have remained in the system may still be loaded,

Figure

Figure 1: Prior skill-evolution methods can overwrite useful procedures or keep weak skills retrievable, causing task failures when experience from different tasks conflicts. SELM instead uses utility-aware retrieval, category-wise Map–Reduce updates, and lifecycle validation to preserve useful skills and retire ineffective ones, enabling more reliable task completion.

giving the agent wrong instructions. The core problem is that existing methods always treat skill updates as separate, one-round edits, rather than managing skills as a dynamic, long-term library. Thus, a skill management library is needed to decide not only how a skill should change, but also which skills should be retrieved, which skills should be updated, and which skills should remain in the library.

To address these limitations, we propose SELM (Self-Evolving Library Management), a framework that manages skills as a library and jointly controls their retrieval, updates and lifecycle. By tracking and leveraging skill confidence and utility, SELM enables the library to evolve with task experience and improves the performance of the agent across complex tasks in different domains.

Specifically, SELM introduces a skill library with explicit mechanisms for managing skill states. To dynamically evaluate skill usefulness, each skill is associated with a confidence score and a utility score. Confidence reflects how strongly the skill is supported by update operations, while utility reflects how useful it has been across tasks. These mechanisms provide a clear basis for deciding which skills should stay active, which skills should be removed, and which failed skills should not be added again. The library can thus keep a skill that is unused on the current task but still useful later, and drop one that keeps failing, instead of committing every local edit, enabling reliable, long-term skill management.

Second, SELM designs a Map-Reduce framework for skill updates. Applying every trajectory to all the skills will make experience from different types of task overwrites each other. SELM therefore groups execution trajectories by task category(Map) and analyzes each group separately, identifying which skills are affected and what changes are needed. It then combines these analyses into operations(Reduce), such as adding new skills, editing existing ones, and deleting those that no longer help. All these operations apply only to the relevant skills and unrelated skills are left unchanged, so a change that helps the current category won't erase skills required later, which enhances skill effectiveness.

Third, SELM proposes utility-aware skill retrieval. Existing methods mainly retrieve skills based on their semantic relevance to the current task (Yang et al., 2026b), which overlooks whether the skill has been useful in previous tasks. SELM leverages historical utility to enhance skill retrieval. It first selects skills from the same task category and then ranks them by their relevance to the current task and their past usefulness. This helps the agent distinguish skills that are relevant to task on hand and have proven useful through previous execution experience, thus enabling more effective skill selection.

Finally, we evaluate SELM on four agent benchmarks covering diverse execution environments and areas. SELM achieves state-of-the-art results among skill-evolution methods, outperforming both single-document optimization and prior multi-skill baselines without updating model parameters.

Our contributions are (1) introducing a skill library that tracks skill confidence and utility, managing skill validation, retention, and removal, enabling reliable skill management throughout the evolution process; (2) designing a Map-Reduce framework that analyzes trajectories by task category and generates targeted operations, allowing the agent to update relevant skills based on task-specific experience; and (3) developing a utility-aware retrieval method that ranks skills using both task relevance and historical utility, enabling the agent to select skills that are both relevant and useful. Across our experiments, SELM outperforms existing skill optimization methods, demonstrating the effectiveness of the proposed framework.