arXiv:2610.23599cs.AIOct 2026

Manuscript Offprint

arXiv:2610.23599

From Trajectories to Differentiated Skills: Cognitive Differentiation for Self-Improving Agents

Yewei Zhao, Derong Xu, Wei Chen, Yin Xu, Peilun Zhou, Xiaohan Wang, Guojun Yin, Wei Lin, Mingjun Xiao

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

Abstract

Large language model (LLM) agents tackle complex tasks through reasoning and interaction with external environments. Agent skills provide persistent, transferable capabilities that guide task planning, inform contextual decisions, support tool use, and enable executable procedures. Yet existing skill-evolution methods largely organize knowledge around skill artifacts, overlooking the functional heterogeneity within individual skills and its implications for knowledge maintenance and use. Inspired by cognitive science, we propose Cognitive Differentiation in Skill Evolution (CDSE), which evolves a unified skill through four functionally distinct yet coordinated components: Meta, Experience, Tool, and Script. CDSE extracts evidence-grounded semantic gradients from successful and failed trajectories, consolidates them by functional role, and applies component-specific updates and validation with cross-component coordination and adaptive invocation. An analysis of 500 top-ranked skill packages shows that 96.8% contain knowledge spanning at least two functional roles. Across six benchmarks, three agent models, and two execution harnesses, CDSE achieves the highest scores in all 36 settings, improving over the Base agent by 7.6 percentage points and the strongest competing method in each setting by 2.6 points on average. Ablation studies further support the importance of functional differentiation and adaptive invocation.

1 Introduction

Large language model (LLM) agents tackle complex tasks through reasoning, planning, and interaction with external environments (Yao et al., 2023; Wang et al., 2024b; Yang et al., 2024). External skills extend these capabilities by providing a persistent, reusable knowledge state without modifying model parameters (Wang et al., 2024a, 2025; Zheng et al., 2025). By leveraging feedback from

Figure

(a) Task scores (%) on six benchmarks for GLM-5.2 under Claude Code.

Figure

(b) CDSE overview.

Figure 1: Performance and framework of CDSE.

evaluated execution trajectories, agents can continuously refine their skills to preserve effective behaviors, address recurring failures, and improve subsequent task performance. This has motivated growing research on trajectory-driven skill evolution as a means of continual agent self-improvement.

Recent studies have explored complementary approaches to transforming agent execution experience into persistent, reusable capabilities. Experience- and memory-based methods accumulate workflows, reasoning strategies, and procedural knowledge from past interactions, enabling knowledge reuse across tasks (Wang et al., 2025; Ouyang et al., 2026; Fang et al., 2026). Trajectory-to-skill approaches further distill successful and failed executions into reusable skill artifacts and executable routines (Zheng et al., 2025; Ni et al., 2026; Alzubi et al., 2026). More recent methods focus on refining and managing evolving skills through evaluation feedback, failure analysis, behavioral validation, and lifecycle management (Yang et al., 2026b; Gautam et al., 2026; Moll et al., 2026; Zhang et al., 2026a; Lin et al., 2026). Collectively, these studies have substantially advanced how agents acquire, refine, and maintain reusable capabilities from execution experience.

Despite these advances, existing approaches still largely organize learned knowledge around artifact boundaries, such as skill documents, memory entries, or skill banks, rather than systematically accounting for the distinct behavioral functions of individual updates. Yet a single execution trajectory can yield knowledge serving different purposes. For example, a spreadsheet task may suggest inspecting workbook structure before acting, verifying units before comparison, using a particular library to preserve formulas, or automating repeated sorting through a reusable script. Although derived from the same execution, these updates differ in scope, representation, validation requirements, and when they become useful. Organizing them around artifact boundaries alone does not determine how each should be maintained and used. The central challenge is therefore not merely what knowledge to retain, but how to organize, update, validate, and invoke it according to its functional role.

Cognitive science offers a useful perspective on how to organize such functionally diverse knowledge. Atkinson and Shiffrin distinguished task-dependent control processes from relatively stable memory structures (Atkinson and Shiffrin, 1968). For agent skills, this distinction points to Meta knowledge, which governs task-level planning, monitoring, verification, and stopping, while other knowledge supports specific decisions and actions. Yet the knowledge underlying these actions is itself diverse. Cohen and Squire's distinction between knowing how and knowing that (Cohen and Squire, 1980) highlights differences in how knowledge can be learned and retained. In agent skills, Experience captures context-conditioned heuristics and recovery strategies, Tool provides capability-specific operational guidance, and Script encodes reusable executable procedures with execution and validation contracts. These functional categories are tailored to agent execution rather than directly mapped from human cognitive systems. Finally, Miyake et al. highlighted the unity and diversity

Figure

Figure 2: Functional composition of 500 widely used skill packages. Left: prevalence of each component; right: the number of components per skill. Component labels are non-exclusive.

of executive functions (Miyake et al., 2000), underscoring the importance of coordination among specialized functions. Together, these perspectives suggest that different forms of skill knowledge should be maintained according to their functional roles while remaining coordinated during task execution.

To examine these functional distinctions in real-world agent skills, we analyze 500 widely used skill packages using an expert-derived annotation scheme (Appendix F). As shown in Figure 2, 96.8% of the packages contain content spanning at least two functional roles, with Experience, Meta, and Tool appearing more frequently than Script. These findings suggest that multiple forms of reusable knowledge commonly coexist within individual skills, supporting a coordinated yet functionally differentiated approach to skill evolution.

Building on these cognitive insights and empirical observations, we propose Cognitive Differentiation in Skill Evolution (CDSE), a framework that evolves a unified skill through four functionally distinct yet coordinated components. CDSE first performs Outcome-Contrastive Semantic Gradient Discovery to extract evidence-grounded directions for reusable behavioral change from successful and failed trajectories. It then applies Cognition-Guided Gradient Consolidation to identify which semantic gradients are worth retaining and assign them to Meta, Experience, Tool, or Script according to their functional roles. Finally, Adaptive Self-Improvement Update refines these components through specialized update and validation mechanisms, while cross-component coordination and adaptive invocation support their use as task demands change. In this way, CDSE aligns how knowledge is learned from trajectories with how it is maintained and used during subsequent tasks.

Across six benchmarks, three agent models, and two execution harnesses, CDSE achieves the highest scores in all 36 evaluation settings, improv-ing over the Base agent by 7.6 percentage points and over the strongest competing skill-evolution method in each setting by 2.6 points on average. Component-level analyses further reveal distinct patterns of contribution, invocation, and transfer. We summarize our main contributions as follows: (1) identifying and empirically characterizing functional heterogeneity in real-world agent skills; (2) proposing CDSE to organize and evolve trajectory-derived knowledge through function-specific yet coordinated mechanisms; and (3) systematically evaluating its effectiveness and examining the behavior of differentiated skill components across diverse tasks, models, and execution harnesses.