Organizations: The Chinese University of Hong Kong · Tencent, WorkBuddy Team · The Hong Kong University of Science and Technology (Guangzhou) · Zhejiang University
Runtime skills can improve agents' problem-solving capabilities by providing procedural guidance for tasks such as code review and debugging. However, these benefits reach only a minority of users, as most do not proactively invoke skills in practice. We argue that such generalizable procedures should become part of the model's capabilities rather than remain optional external add-ons, making them directly available without explicit skill loading. To this end, we present SkillCore, a data pipeline and supervised fine-tuning recipe for internalizing generalizable skills. We transform real agent trajectories by removing skill-loading scaffolding while preserving the task context and subsequent agent actions, thereby supervising direct execution without external skill content. To preserve access to task-specific skills that provide genuinely external information, we mix these scaffold-removed trajectories with a small proportion of skill-native trajectories that preserve supervision for skill invocation. On a held-out skill-free evaluation, SkillCore improves task completion quality over the base Qwen3-8B and Qwen2.5-72B models by 54.4% and 24.8%, respectively, while preserving task-specific skill invocation on a separate probe and general coding performance on SWE-bench Verified.
Figures & tables
Figure 1: The skill utilization gap. Skill-invoked trajectories are rare but associated with higher observed task success than those without skill use. This high-value, low-utilization pattern motivates internalizing reusable procedures from generalizable skills so their benefits are available without runtime invocation.
Figure 2: Overview of SkillCore. (1) Skill-Scaffolded Demonstrations: Given a user task, a skill retriever selects and loads a relevant skill (e.g., Filter Rows Skill ) into the agent’s context. Guided by the skill, the agent interacts with the environment to produce a successful trajectory of agent actions and environment observations. (2) Scaffolding-Removed Fine-Tuning: We remove the skill scaffold while preserving the task context and subsequent agent actions, yielding scaffold-removed trajectories for supervised fine-tuning that transfer the demonstrated procedure into the model’s parameters. (3) Evaluation: We assess generalizable skill internalization (base vs. fine-tuned agent on the same task without external skill content, judged by an LLM), task-specific skill invocation retention (appropriate skill invocation when task-specific skill content is not provided in context but remains accessible at runtime), and preservation of general coding capability (the auxiliary SWE-bench Verified evaluation).
Figure 3: SkillCore’s trajectory curation and transformation pipeline. We select skill-using trajectories, score them for quality and generalizability, and keep the high-quality ones with generalizable skills. Each is then transformed to remove the skill scaffold, validated for structural and semantic faithfulness, and filtered by context length to form the scaffold-removed training corpus.
Task-specific routing
Skill-content-free continuation
Coding
Model
Training
Call
Over-int. ↓
Corr@Call ↑
Win ↑
Δ Quality ↑
Residual ↓
SWE-b ↑
Qwen3-8B
Base
50.0
50.0
89.5
–
–
16.7
4.2
Scaffold-retaining
–
–
–
58.9
+0.42 (+16.4%)
44.5
5.2
Internalization only
13.2
86.8
93.3
82.8
+1.23 (+54.4%)
2.6
4.4
SkillCore
52.6
46.5
91.7
75.9
+1.00 (+42.8%)
19.5
6.2
Qwen2.5-72B
Base
65.4
28.5
98.7
–
–
33.6
43.4
Table 1: Main results across the base model and three fine-tuning settings. Scaffold-retaining preserves the generalizable-skill scaffolds, whereas Internalization only trains exclusively on Dremoved . Δ Quality reports absolute and relative changes in the mean 1–5 judge score against the paired base continuation.
Metric
No mix
mix10
mix25
mix50
Qwen3-8B
Call
13.2%
44.3%
52.6%
66.7%
Over-int. ↓
86.8%
55.3%
46.5%
32.9%
Corr@Call ↑
93.3%
92.1%
91.7%
88.2%
Win ↑
82.8%
75.9%
75.9%
74.7%
Δ Quality ↑
+1.23
+0.95
+1.00
+0.91
Table 2: Routing–internalization trade-off across skill-native mixture ratios. No mix denotes internalization-only training, and mix25 is the default SkillCore configuration. Δ Quality denotes absolute judge-score changes.
Figure 4: Quality analysis for the selected Qwen3-8B internalization-only checkpoint. (a) Mean judge scores of the fine-tuned and base models across target-skill frequency groups; n denotes evaluated task–skill pairs. (b) Number of tasks by paired judge-score change after fine-tuning.
Corpus
Win ↑
Δ Quality ↑
Residual ↓
Qwen3-8B
Core
82.8%
+1.23 (+54.4%)
2.6%
Expanded ( ≤ 64K)
82.2%
+1.21 (+53.1%)
6.0%
Expanded ( > 64K, trunc.)
81.3%
+1.21 (+54.0%)
5.5%
Qwen2.5-72B
Core
62.4%
+0.45 (+16.0%)
0.9%
Table 3: Data scalability results for the core corpus and two doubled variants.
Human-written agent skills encode rich workflows for real-world problem solving, but are typically used as external inference-time instructions rather than internalized as reusable model capabilities. We introduce SkillGym, a framework that transforms these skills into executable, verifiable training environments for large language model agents. Its skill-to-task pipeline instantiates concrete tasks, verifies outcomes with code-based checkers, and assesses empirical skill dependence through contrastive executions. We construct and release 2,756 environments across 12 categories and collect 8,364 successful trajectories from multiple models and harnesses, averaging 49 tool calls and over 60k logged text tokens. These resources support supervised fine-tuning on verified workflows and reinforcement learning with outcome-based rewards. Under Claude Code, supervised fine-tuning improves Qwen3.5-35B-A3B by 199 Elo on GDPval-AA v2, 19.10 percentage points on Terminal-Bench 2.1, and 28.13 and 12.38 points on SkillsBench v1.1 with and without skills, respectively. Our 35B SkillGym-Agent reaches 51.47% on skill-assisted SkillsBench, exceeding reported scores for Claude Sonnet 4.6, GPT-5.4 Mini, and DeepSeek V4 Pro. Without skills, it also surpasses skill-assisted bases under Codex and Claude Code, suggesting reusable procedural competence.
Zhilong Ge, Yuting Shao, Yutao Yang +6
School of Computer Science and Technology, East China Normal University, Shanghai · Shanghai AI Laboratory
Agent skills, which consist of reusable strategies that guide agent reasoning and action, have shown strong potential for improving model capability at inference time. However, current skill construction methods treat the problem as one-shot extraction, overlooking a fundamental tension: a skill tailored to the specific task fails to transfer, while the abstracted skill often provides insufficient guidance. We attribute this fragility to the absence of explicit mechanisms for skill specification and generalization. To address this gap, we introduce SkillComposer, a framework that decomposes skill construction into three learnable operations: create, improve, and merge. Trained via systematic rejection sampling recipe, SkillComposer enables language models to self-evolve skills at inference time and supports three deployment modes: offline for building generalized libraries, online for task-specific refinement, and hybrid for combining both. Comprehensive experiments on τ2-Bench, LiveCodeBench v6, and AppWorld show that SkillComposer consistently outperforms baselines. Our SkillComposer-4B improves a 27B executor by up to +4.5 on agent tasks and +3.4 on code tasks, while generalizing across domains and task types unseen during training. Analysis reveals that merge and improve address orthogonal quality dimensions and that skill composition is a transferable meta-ability, providing a practical recipe for skill-augmented inference.
Qi Zhang, Zhaopeng Feng, Xiaonan Shi +8
1Zhejiang University · 2Tongyi Lab · 3National University of Singapore
Skills are a promising way to improve LLM agent capabilities without retraining, while keeping the added procedure reusable and controllable. However, high-quality skills are still largely written by hand. We introduce SkillGen, a multi-agent framework that synthesizes a single auditable skill from trajectories generated by a base agent. The output is a human-readable artifact that can be inspected before use. Rather than merely summarizing trajectories, SkillGen leverages contrastive induction over both successful and failed trajectories to identify reusable success patterns, recurring failure modes, and behaviors that appear in nearby successes but are missing from failures. SkillGen then generates candidate skills and iteratively refines the skill. A key novelty in SkillGen is that we model agent skills as interventions to empirically verify the net effect of skills on the overall performance. Specifically, we compare outcomes on the same instances with and without the skill, so that we account for both repairs (cases where the skill fixes a baseline failure) and regressions (cases where the skill breaks a baseline success). Across a broad range of agents and datasets, SkillGen consistently improves held-out performance, outperforms existing skill-generation baselines, and produces skills that transfer across models.
Yuchen Ma, Yue Huang, Han Bao +5
Munich Center for Machine Learning, LMU Munich · University of Notre Dame · Microsoft Research