Skill2Env: Capability-Oriented Environment Synthesis from Skills for General Agents

Weiyi Xu, Xiaowen Yang, Wen Da, Hang Xu, Canwei Li, Hongjie You, Pusen Dong, Yucheng Zeng, Zhaokai Luo, Mu ChuanarXiv 2026

TL;DR

Skill2Env is a new framework that automatically generates complex, executable training environments for AI agents by transforming simple "skills" into challenging, multi-step tasks. By using a library of 100 "difficulty patterns" and an iterative "hardening" process that makes tasks progressively harder based on agent performance, the authors produced a high-quality dataset that significantly boosts agent performance across seven major benchmarks, even allowing a 35B model to outperform a 397B giant.

What Problem Does This Paper Address?

Training effective AI agents—models that can use tools, plan multi-step actions, and navigate complex environments—requires high-quality, executable data. However, there is a massive scaling bottleneck. While we have libraries of "skills" (basic instructions on how to use a specific tool or perform a simple procedure), there is a huge gap between a skill and a realistic, challenging task.

Manually building these environments (configuring Docker containers, setting up workspaces with realistic files, and writing robust evaluators) is too slow to scale. Previous automated methods often lacked the depth needed to truly challenge an agent's reasoning, planning, and error-recovery capabilities.

Methods

The authors introduce Skill2Env, a pipeline that bridges the gap from basic skills to complex environments through a "capability-oriented" approach.

Figure 2: Overview of Skill2Env. Curated skills and capability demands are connected through difficulty patterns and organized into task blueprints, which guide the construction of executable tasks and their en- vironments. Solver rollouts provide rubric results, and behavioral evidence for environment validation and task diagnosis. This feedback further supports difficulty-pattern expansion and Iterative Task Hardening through coordinated updates to task blueprints and environments.

The process follows these key stages:

  1. Skill Curation: They filtered 47k public skill folders from ClawHub down to 3k high-quality, executable candidates.
  2. Capability-Oriented Design: Instead of just generating random tasks, they target five core agent capabilities: Environment Understanding, Planning, Skill Usage, Long-Horizon Consistency, and Error Recovery.
  3. Difficulty Patterns: They developed a library of 100 reusable "difficulty patterns" (e.g., "Distributed Evidence," where facts are spread across multiple files, or "Coupled Constraints," where requirements conflict).
  4. Blueprint-Based Synthesis: A "Task Blueprint" acts as a contract, coordinating the generation of task instructions, the workspace (files/data), the execution substrate (tools), and rubric-based evaluators.
  5. Iterative Task Hardening: This is the "aha" feature. If a solver agent completes a task too easily, the system diagnoses how it succeeded and revises the blueprint to be harder—perhaps by adding more distractors, increasing dependency depth, or introducing partial failures.

Datasets

  • Source Data: 47k+ skill folders from ClawHub, filtered to ~3k.
  • Generated Data: 2,963 unique executable tasks. For training, they selected 1.5K high-scoring trajectories generated by a teacher model (DeepSeek-V4-Flash).
  • Evaluation Benchmarks: The framework was tested against seven diverse agent benchmarks:
  • Terminal-Bench 2.1 (CLI tasks)
    • SWE-bench Multilingual (Software engineering)
    • SkillsBench (Cross-domain skill use)
    • Claw-Eval (Autonomous execution)
    • $\tau^3$-Banking, AutomationBench, and VitaBench (Knowledge-grounded and interactive tasks).

Key Insights and Ideas

  • Blueprints as Contracts: By using an explicit blueprint to coordinate the environment, instruction, and evaluator, the system ensures that the "ground truth" remains consistent even as the task becomes more complex.
  • Hardening via Diagnosis: The "Iterative Task Hardening" process doesn't just add random noise; it uses execution evidence to find "shortcuts" the agent took and closes them, forcing the agent to exercise higher-level reasoning.
  • Transferability of Capability: The most important finding is that training on these synthesized environments improves performance on completely different downstream benchmarks. This suggests that the "capability demands" (like planning and error recovery) are universal across agent tasks.

Key Results

The impact of Skill2Env-based fine-tuning is substantial. Using only 1.5k trajectories to fine-tune a Qwen3.6-35B model, the authors observed:

  • Universal Gains: Improvements across all seven benchmarks, with an unweighted average increase of +8.4 points (from 36.6 to 45.0).
  • Small Model, Big Impact: The fine-tuned 35B model outperformed the much larger Qwen3.5-397B on six out of seven benchmarks.
  • Benchmark Leaders: The model achieved significant jumps on SkillsBench (+14.3) and Terminal-Bench 2.1 (+13.5).
Figure 1: Skill2Env performance on Terminal-Bench 2.1 and SkillsBench.

As shown in Figure 1, the Skill2Env-enhanced model (blue bar) significantly closes the gap between standard open-weight models and closed-source frontier models like GPT-5.4 or Gemini-3.1 Pro.

Limitations and Future Work

  • Frontier Gap: While Skill2Env significantly boosts mid-sized models, there is still "substantial remaining headroom" compared to the top-tier closed-source frontier models.
  • Teacher Dependency: The quality of the training data relies on the teacher model's ability to generate high-scoring trajectories. If the teacher cannot solve a "hardened" task, no training signal is produced.
  • Future Directions: The authors suggest that as agent capabilities improve, the pool of difficulty patterns can be expanded, providing a foundation for a "co-evolution" where environments and agents become increasingly sophisticated together.

Summary updated

BibTeX
@misc{xu2026skill,
  author = {Weiyi Xu and Xiaowen Yang and Wen Da and Hang Xu and Canwei Li and Hongjie You and Pusen Dong and Yucheng Zeng and Zhaokai Luo and Mu Chuan},
  title = {{Skill2Env: Capability-Oriented Environment Synthesis from Skills for General Agents}},
  year = {2026},
  eprint = {2609.33772},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.33772},
}
Figure