Skill2Env: Capability-Oriented Environment Synthesis from Skills for General Agents
Organizations: AllSpark Team
Abstract
Executable environments are critical for post-training agents on tasks that require tool use and multi-step interaction, but constructing executable tasks together with their environments remains difficult to scale. Skills provide reusable domain knowledge, operational procedures, and tool-use instructions, but a substantial gap remains between the information contained in a skill and a concrete, challenging task with a complete executable environment. To address this gap, we introduce Skill2Env, a capability-oriented framework that starts from a skill and uses agent capability demands to guide task and environment synthesis. Skill2Env represents these demands through reusable difficulty patterns and instantiates them into task blueprints that specify objectives, challenges, environment facts, information boundaries, and acceptance criteria. These blueprints guide the joint construction of task instructions, execution substrates, workspaces, and rubric-based evaluators around source skills. We further propose Iterative Task Hardening, which uses solver execution evidence to identify insufficiently challenging task designs, strengthen or extend their difficulty-pattern instantiations, and revise the corresponding blueprints and environments. Using 1.5K high-scoring trajectories generated from Skill2Env environments for supervised fine-tuning, we observe consistent improvements across a broad range of agent benchmarks, demonstrating the effectiveness of capability-oriented environment synthesis for agent post-training.
Figures & tables
| Model | Terminal- Bench 2.1 | SWE-bench Multilingual | Skills Bench | Claw- Eval | - Banking | Automation Bench | VitaBench | Avg. |
|---|---|---|---|---|---|---|---|---|
| Frontier Closed-Source Models | ||||||||
| GPT-5.4 | 78.3 | 71.7 | 51.7 | 60.3 | 28.5 | 27.7 | 47.1 | 52.2 |
| Claude Opus 4.6 | 71.2 | 77.8 | 50.2 | 70.4 | 20.3 | 25.5 | 38.3 | 50.5 |
| Gemini-3.1 Pro | 73.8 | 44.0 | 60.8 | 57.8 | 23.7 | 28.2 | 52.7 | 48.7 |
| Open-Weight Models | ||||||||
| DeepSeek-V4-Flash-0731 | 78.7 | 76.0 | 53.8 | 49.3 | 30.3 | 36.3 | 56.3 | 54.4 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Capability Demand | Agent Requirements |
|---|---|
| Environment Understanding | Identify task-relevant facts from the information provided by the environment and understand the task objectives and constraints. |
| Planning | Identify dependencies between operations and continually adapt the execution plan based on evolving environment states. |
| Skill Usage | Understand and appropriately apply the tool-use instructions and execution procedures provided by the skill according to the current task requirements. |
| Long-Horizon Consistency | Continuously track state changes during multi-step execution and maintain consistency between intermediate results and the environment state. |
| Error Recovery | Locate errors using execution feedback, adjust operations, and resume task execution. |
| Pattern | Construction and hardening control |
|---|---|
| U01 Target discrimination | Provide near-identical files or records; relational clues uniquely identify the requested target. Control: candidate similarity. |
| U02 Distributed evidence | Split complementary facts across known sources so no single source supports the complete answer. Control: source count. |
| U03 Nested discovery | Place accessible evidence inside nested archives, linked records, or embedded objects. Control: access depth. |
| U04 Scope enumeration | Require all qualifying objects across partitions or pages, with a discoverable completeness criterion. Control: partition count. |
| U05 Sparse-signal retrieval | Embed a small set of relevant facts among topically similar but irrelevant passages. Control: distractor ratio. |
| U06 Authority resolution | Provide conflicting claims with an explicit, accessible hierarchy of authoritative sources. Control: authority tiers. |
| Pattern | Construction and hardening control |
|---|---|
| P01 State dependencies | Make later actions require specific earlier outputs or state transitions, forming a nontrivial dependency graph. Control: dependency depth. |
| P02 Bootstrap dependencies | Introduce an apparent dependency cycle with a documented bootstrap action that makes the workflow feasible. Control: cycle size. |
| P03 Conditional workflows | Make the correct continuation depend on an earlier result, requiring an explicit contingent plan. Control: branch depth. |
| P04 Subgoal decomposition | Specify one coherent objective that must be decomposed into intermediate milestones and actionable work units. Control: milestone count. |
| P05 Probe scheduling | Offer several informative probes with different costs; require choosing which uncertainty to resolve next. Control: probe alternatives. |
| P06 Coupled constraints | Make individually feasible requirements share decision variables, so they must be solved jointly. Control: coupling density. |
| Pattern | Construction and hardening control |
|---|---|
| S01 Capability routing | Provide several documented skill entry points; require selecting the one implementing an already chosen operation. Control: entry-point similarity. |
| S02 Applicability checks | Make a skill procedure valid only under stated input assumptions that must be checked before applying it. Control: precondition count. |
| S03 Procedural exceptions | Provide a default procedure with explicit exceptions; some inputs require the exception-specific local handling. Control: exception density. |
| S04 Example adaptation | Supply a worked skill example whose incidental constants differ from the current case; require transferring the procedure correctly. Control: example mismatch. |
| S05 Version-specific behavior | Fix a known installed version whose documented operation differs from another version or common example. Control: version divergence. |
| S06 Parameter binding | Require exact binding of arguments, flags, or option values for a selected operation whose meaning is already known. Control: parameter coupling. |
| Pattern | Construction and hardening control |
|---|---|
| L01 Identity continuity | Rename or relocate an object during a valid workflow while later steps must continue tracking the same logical object. Control: identity transitions. |
| L02 Revision coherence | Produce several valid revisions; downstream steps must consistently consume the designated current revision. Control: revision distance. |
| L03 Derivation lineage | Require intermediate and final artifacts to retain traceable links to the exact source records used to generate them. Control: lineage depth. |
| L04 Assumption continuity | Choose a convention or mapping early in the workflow and require later steps to preserve that choice. Control: retention span. |
| L05 Configuration continuity | Run valid steps across sessions or tools whose defaults differ; maintain the intended shared configuration throughout. Control: context switches. |
| L06 Reference integrity | Update linked objects while preserving valid cross-references, keys, paths, or foreign-key relationships. Control: reference fan-out. |
| Pattern | Construction and hardening control |
|---|---|
| R01 Failure recognition | Return a success-like status despite a violated postcondition; expose independent evidence enabling detection of the deviation. Control: signal discrepancy. |
| R02 Fault localization | Surface an error downstream from its cause; provide logs or checks that identify the faulty component or step. Control: propagation distance. |
| R03 Cause discrimination | Make several causes produce the same symptom within a localized component; provide probes distinguishing the actual cause. Control: competing causes. |
| R04 Persistence diagnosis | Provide observable evidence distinguishing a transient interruption from a persistent defect requiring an altered action. Control: diagnostic delay. |
| R05 Diagnostic preservation | Make inspection or repair alter ephemeral recovery evidence; require preserving a faithful copy before intervening. Control: evidence lifetime. |
| R06 Input repair | Supply recoverably malformed input with sufficient repair evidence; require restoring validity without inventing missing semantics. Control: defect extent. |
| Blueprint challenge | Instantiated difficulty patterns |
|---|---|
| H1 | S01 Capability routing; S06 Parameter binding; S08 Invocation context |
| H2 | U02 Distributed evidence |
| H3 | U01 Target discrimination; U06 Authority resolution; U07 Temporal validity |
| H4 | S15 Precision control; S16 Rule realization |
| H5 | L07 Cross-format agreement; L09 Aggregate agreement; L10 Claim-evidence agreement |
| H6 | S13 Schema mismatches |