Shanghai AI Laboratory SkillGym trains better agents from verified skill runs
Training on verified execution traces can bake retrieval-dependent prompt skills into model weights, reducing reliance on the agent finding and following instructions at runtime. Teams building coding agents can replicate the recipe by turning their own skill libraries into checkable sandbox tasks. The work comes from a Chinese lab and benchmarks on Claude Code with Qwen, making it a useful reference point against prompt-based skill systems like Claude Skills.
Shanghai AI Laboratory published a paper introducing SkillGym, a method that converts each agent skill file into a sandboxed task with a pass-or-fail code checker and trains on verified successful runs.
Fine-tuning on these runs lifted Qwen3.5-35B-A3B from 39.
33% to 58.43% on Terminal-Bench 2.
1 inside Claude Code.Without any skill files at inference, the fine-tuned model scored 26.
81% on SkillsBench, beating the base model with skill files loaded at 23.34%.
Loading skill files on top of the trained model pushed Terminal-Bench 2.1 performance to 51.
47%.
New Shanghai AI Laboratory paper finds that training on verified runs of human-written agent skills makes a model a better agent, even without the skill files.
Prompt-time skills depend on retrieval and instruction following, and fine-tuning on verified skill runs reduces that dependence.
Turning each skill file into a sandboxed task with a pass-or-fail checker produced training data that lifted Terminal-Bench 2.1 success by 19.10 points in Claude Code.
Skill files usually sit in the prompt, so they only help if the agent finds and follows them.
SkillGym turns each skill into a sandboxed task with a code checker, then trains on the runs that pass.
In Claude Code, Qwen3.5-35B-A3B jumped from 39.33% to 58.43% on Terminal-Bench 2.1. With no skill files, it scored 26.81% on SkillsBench, beating the base model with skills at 23.34%.
Loading the skills on top still helps, lifting it to 51.47%.
This report is categorized under AITOP's "Papers" desk, focusing on China's AI industry and domestic foundation model ecosystem. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include SkillGym, Qwen3.5, Claude Code, agents.
Source attribution: curated from rohanpaul_ai (@rohanpaul_ai). Cross-source corroboration: 3 independent sources have covered this development (including kimmonismus, arXiv cs.AI), confirming industry-wide signal strength.