Manuscript Offprint

arXiv:2608.26563

SPT: Skills as Pre-Training Data for Agentic Language Models

Yufei Sun, Yudong Li, Yiming Cheng

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

Abstract

Agentic (tool-using) language models are mainly trained on tool-call traces and agent trajectories during post-training. These data provide direct behavioral supervision, but producing them requires task environments, execution, and verification, making broad tool and task coverage expensive. Publicly available skills offer another source of training data: they encode reusable tool semantics and workflows but are typically used only as inference-time context. We introduce Skill Pre-Training (SPT), a mid-training method that applies causal language modeling to SKILLCORPUS, a collection of public multi-file skill packages, optionally mixed with general data. To preserve relations among files within each package, we also introduce Reference Insert, a reference-aware assembly strategy that places supporting files near their mentions in the primary instruction. Experiments across multiple model scales and post-training recipes show that SPT consistently improves agentic performance over mid-training on general or trajectory data, while largely preserving general performance. Data mixture experiments show additional benefits from combining skill data with general annealing corpora. These results indicate that skill packages are a valuable data source for pre-training agentic language models.

Introduction

Large language models (LLMs) increasingly act as agents that use external tools for multi-step tasks (Yao et al. 2022; Schick et al. 2023; Hu et al. 2026). Tool use requires models to understand tool functions and carry out interactions over multiple steps. However, complete tool-use processes rarely appear in naturally collected corpora. Most models therefore acquire these capabilities during post-training through supervised fine-tuning (SFT) and reinforcement learning (RL) (Chen et al. 2024; Prabhakar et al. 2025; Qian et al. 2025; Dong et al. 2025).

Existing work mainly fills this data gap with synthetic function calls and agent trajectories (Tang et al. 2023; Liu et al. 2024; Prabhakar et al. 2025; Liang et al. 2026a; Fang et al. 2025). Producing valid trajectories requires task environments, execution, and verification, so the cost grows with tool and task coverage. In addition, a trajectory records one execution rather than a reusable workflow. The high production cost and execution-specific content make trajectories difficult to collect at the scale and coverage required for pre-training.

Figure

(a) Growth of publicly indexed skills.

Figure

(b) SPT as mid-training composition.

Figure 1: Public skill data growth and the SPT mid-training pipeline. (a) Snapshots from the npm registry show that the number of skills available on the platform grew 9.6×9.6 \times from February to June 2026. (b) SPT mixes an α\alpha fraction of SKILL-CORPUS with (1−α)(1 - \alpha) general data during mid-training, followed by post-training.

These limitations motivate a different source of agentic pre-training data: skills, which are reusable instructions written by humans for AI agents. Unlike a trajectory that records one execution, a skill describes how an agent should perform a task and can include references, scripts, templates, and configuration files. The count of publicly available skills on npm is growing rapidly. Based on snapshots from the npm registry 1^{1}, the number of available skills rose from 170,226 in February 2026 to 1,640,440 in June 2026 (Figure 1(a)). This scale makes skill packages a plausible source of pre-training

∗^{*}These authors contributed equally.

†^{\dagger}Corresponding author.

1^{1}https://www.npmjs.com/ data.

To test this hypothesis, we introduce SPT as a mid-training method that applies causal language modeling to skill data before behavior-oriented post-training. We construct SKILL-CORPUS from 38,040 cleaned and decontaminated ClawHub packages 2^{2}. To preserve the relations between an instruction and its supporting resources, we introduce Reference Insert, which places each referenced file near its first mention in the primary instruction file. SPT also allows SKILLCORPUS to be mixed with general data under a fixed training-token budget. The resulting checkpoint is then used to initialize downstream post-training.

We evaluate SPT across three model scales and multiple mid-/post-training configurations. Under both general instruction tuning and function-calling SFT, SPT consistently outperforms direct SFT and mid-training on general or trajectory data across all evaluated model scales, while largely preserving general performance. Data mixture experiments achieve further agentic gains when skill data is combined with general data. When SFT is followed by reinforcement learning, SPT retains its advantage over no mid-training and general-data mid-training. The consistent improvements across these experiments show that the benefit of SPT is robust to changes in model scale, mid-training data and organization, and post-training method. These results reveal the value of skill corpora as pre-training data for agentic language models.

Our contributions are as follows.

• We propose multi-file skill packages as scalable agentic pre-training data and construct the 38,040-package SKILLCORPUS.

• We introduce SPT, which applies the causal language-modeling objective to skill data before post-training, together with Reference Insert for reference-aware package assembly.

• We provide controlled corpus comparisons and ablations of mixture ratio and package organization across multiple backbones and SFT settings, plus a downstream RL robustness test.

References (52)