NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SkillCore: Internalizing Generalizable Skills via Scaffolding-Removed Fine-Tuning

Yi Liu, Changqing Ai, Peijie Dong, Xiankun Lin, Yongkang Yang, Zhezheng Hao, Xilin Xia, Hande Dong, Qiang Lin, Qiang XuarXiv 2026

TL;DR

AI agents get a lot smarter when given external "instruction manuals" (runtime skills) for tasks like debugging or code review, yet in the wild, they actually open those manuals just 3.2% of the time. SkillCore solves this by taking successful agent runs, surgically deleting the instruction manuals from the transcripts, and fine-tuning the model on the remaining actions—teaching it to perform complex procedures from memory while still knowing when to look up genuinely external, private APIs.

What Problem Does This Paper Address?

Imagine handing a junior engineer a brilliant, step-by-step playbook for systematic debugging. When they actually read it, their work is stellar. The catch? Almost nobody bothers to pull the binder off the shelf.

In the world of LLM agents, these playbooks are called runtime skills—reusable packages of instructions, scripts, and workflows loaded into the model's context on demand. While analyzing over 3.3 million real-world agent interactions, the authors noticed a glaring "skill utilization gap": trajectories that successfully load and use a skill succeed much more often, yet they make up a tiny 3.2% of real-world usage. Most users and agents simply don't invoke them proactively.

Figure 1: The skill utilization gap. Skill-invoked trajec- tories 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.

That raises a natural question: why keep universal best practices—like how to review code or extract tables—locked away as optional add-ons? Why not bake them directly into the model's weights? The tricky part is doing this selectively. You want the model to internalize generalizable procedures, without making it arrogant enough to stop looking up task-specific skills (like proprietary company APIs or private system rules) that genuinely live outside its weights.

Methods

While recent approaches try to internalize skills using reinforcement learning in live, simulated environments, real-world user logs rarely come with reconstructable sandboxes. SkillCore works entirely offline via standard supervised fine-tuning (SFT), putting its novelty into a clever data curation and "scaffolding-removal" pipeline:

  1. Sorting the Universal from the Specific: Using an LLM judge (Claude Opus 4.8), the authors score real-world skill-using trajectories on quality and generalizability—separating broadly reusable workflows from private, system-bound instructions.
  2. Coupling-Aware Scaffold Removal: For high-quality generalizable runs, SkillCore strips out the "scaffolding"—the use_skill tool call, the returned instruction document, and any assistant chatter announcing the skill load—while keeping the user's prompt and all the smart downstream actions the skill inspired. If the skill call is cleanly separated, it is deleted deterministically; if it's tangled up in the assistant's reasoning, an LLM rewrites just that local window. A two-stage validator (strict programmatic rules plus an LLM semantic check) ensures the edited transcript still makes complete sense.
  3. The 25% "Stay Humble" Mix: If you train only on scaffold-removed data, the model forgets how to ask for help altogether. SkillCore mixes the scaffold-removed trajectories with a small proportion (25% by default) of untouched, skill-native trajectories featuring task-specific skills, preserving the instinct to look things up when external info is required.
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).

Datasets

  • Training Corpus: Curated from 3,352,057 real-world agent trajectories, filtered down to 108,514 effective skill uses, from which 10,037 validated scaffold-removed trajectories (plus a 25% ratio of task-specific skill-native trajectories) were built.
  • Skill-Content-Free Continuation (New): 348 manually reviewed tasks across 274 generalizable skills. Models continue a trajectory right before a skill would have been loaded—without access to the skill—replaying recorded tool outputs for up to three turns.
  • Task-Specific Skill Routing (New): 228 tasks spanning 188 private or environment-specific skills, testing whether the model still invokes use_skill at the right moment.
  • SWE-bench Verified: An existing, standard software-engineering benchmark used to ensure general coding skills didn't degrade.

Key Insights and Ideas

  • Deleting the prompt beats training on it: In a head-to-head control, training on the exact same trajectories with the skill documents left in actually hurt Qwen2.5-72B when skills were withheld at test time (-11.7% quality), and caused models to fruitlessly call missing skills up to 59.5% of the time. Removing the scaffold is the secret sauce that forces behaviors into the parameters.
  • Over-internalization breaks when to call, not what to call: Training purely on scaffold-removed data caused task-specific skill calls to plummet (from 65.4% down to 7.0% on the 72B model). Interestingly, on the rare occasions the model did make a call, it picked the exact right skill 100% of the time! It didn't forget the skill catalog; it just became overconfident about answering directly.
  • Generalization beyond seen skills: Even on held-out skills completely absent from the final training set, the internalized 8B model beat the base model 82.2% of the time—suggesting it learned broader habits of structured problem-solving, not just memorized checklists.

Key Results

Tested via full-parameter fine-tuning on Qwen3-8B and an agent-post-trained Qwen2.5-72B:

  • Big Quality Jumps Without Manuals: In skill-free evaluations, internalization boosted LLM-judged task quality by +54.4% on Qwen3-8B (winning 82.8% of pairwise matchups against the base model) and up to +24.8% on Qwen2.5-72B when scaling the clean dataset (winning 71.3% of matchups).
  • Balanced Routing with SkillCore: With the default 25% skill-native mix, SkillCore kept quality gains strong (+42.8% on 8B; +7.3% on 72B) while matching the base models' propensity to invoke task-specific skills (52.6% vs. 50.0% on 8B; 65.8% vs. 65.4% on 72B).
  • Coding Intact: SWE-bench Verified scores held steady or ticked upward, rising from 4.2% to 6.2% on Qwen3-8B and from 43.4% to 45.0% on Qwen2.5-72B.

Limitations and Future Work

  • No Closed-Loop Execution in Custom Suites: Because real user environments couldn't be rebuilt, the continuation benchmark replays recorded tool outputs rather than executing live code, and the routing suite only checks the single next action rather than end-to-end task completion.
  • Single-Run Point Estimates: Due to the heavy compute required for full-parameter fine-tuning at a 64K token context length (16x H200 GPUs), experiments used a single seed, deterministic decoding, and one judge pass without confidence intervals.
  • Privacy & Compute Barriers: Relying on real-world user logs introduces privacy constraints for data sharing, and long-context full fine-tuning remains expensive. Future directions were not explicitly discussed in the paper.

Summary updated

BibTeX
@misc{liu2026skillcore,
  author = {Yi Liu and Changqing Ai and Peijie Dong and Xiankun Lin and Yongkang Yang and Zhezheng Hao and Xilin Xia and Hande Dong and Qiang Lin and Qiang Xu},
  title = {{SkillCore: Internalizing Generalizable Skills via Scaffolding-Removed Fine-Tuning}},
  year = {2026},
  eprint = {2611.32246},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32246},
}
Figure