Decomposing agent traces into workflow, semantics, and attachments beats prompted summaries by 10.5%
Notes on Workflow-to-Skill: Skill Creation via Routing-Workflow-Semantics-Attachments Decomposition (arXiv:2606.06893) — Yuyang Zhang, Xinyuan Han, Xudong Jiang, Runzhe Wang · June 2026
Note published · written by SkillFed’s research pipeline from the paper above · how these notes are made
AI-assisted notes · reviewed by SkillFed Skill evolutionMost Skill-authoring pipelines still turn a pile of agent traces into a single block of prose. RWSA (Routing–Workflow–Semantics–Attachments) is a representation built to stop that: it splits a skill into a routing header — when the skill applies — plus three separate runtime layers: workflow (control flow, branches, verification checkpoints), semantics (each step's objective and decision rule), and attachments (tools, validation, rollback, state management). The accompanying W2S pipeline builds this bottom-up from raw evidence. It segments traces, drafts a local skill per segment, then aligns shared structure across traces of the same task — reconciling branch cases instead of averaging them away, and compressing duplication while keeping every claim tagged back to the evidence and confidence level that produced it. Before it ships, a feedback pass hunts for holes: missing branches or criteria, steps that are vague or out of order. It also flags contradictions between the routing, workflow, and semantics layers.
Tested on WSASkill, a new 70-skill benchmark spanning all eight combinations of workflow, semantics, and attachment presence, with 10 real interaction traces backing every execution path. Fidelity is measured by behavioral replay — whether an agent handed the generated skill actually reproduces the reference behavior, not whether the resulting text reads well. W2S beats Anthropic Skill Creator (a structured-interview-and-drafting baseline) on seven of eight skill types, averaging 0.503 versus 0.455 fidelity — a 10.5% relative gain. The advantage is largest where a skill's value is almost pure decision logic, and it flips to a loss on the one type built from workflow and attachments without explicit semantics: there, prompting for a plain summary beats forcing structure onto a skill with little decision logic to extract. Even the strongest category tops out around three-quarters fidelity, and the hardest skill type — workflow only, no semantics or attachments — barely clears a quarter for W2S (0.276) and falls short of it for the baseline (0.227).
Key numbers
| Benchmark scale | 70 skills across 8 structural types |
| Replay fidelity gain | +10.5% relative vs. prompted baseline |
| Evidence depth | 10 traces collected per execution path |
| Where structure backfires | -0.070 vs. baseline on workflow+attachments-only skills |
| Fidelity ceiling | 0.503 avg (of 1.0) even for the winning method |
Skills related to this research
Related notes
- A skill grown from a 35B model's traces adds 57.65 points to a 122B agent on table QA it's never seen →
- Rubric-filtered training lifts a 9B model to 32% accuracy — outcome-only filtering caps out at 18% →
- 40,285 Skills Later, Supply Still Doesn't Match Demand →
- Splitting skill-writing into create, merge, and improve lifts a 27B agent up to 4.5 points -- merge drives generalization, improve drives specification, and neither alone gets you there →
- Ditch REINFORCE for a regression loss: agent-orchestration accuracy jumps +38 points in-distribution, +21 OOD →
- Skill evolution beats verifier-only refinement by 4 points, no refinement by 10 →
- The best skill scanner hits 98% recall — and still flags 937 of 4,000 safe skills as malicious →
- Matching skills to scene context takes 3D-agent tool use from 39% to 78% →
- One disguised setup line hits 89.3% attack success — while scanners already false-flag 74.6% of clean skills →
References
- Zhang, Han, Jiang & Wang, "Workflow-to-Skill: Skill Creation via Routing-Workflow-Semantics-Attachments Decomposition" (arXiv:2606.06893, 2026)
- Yao et al., "ReAct: Synergizing Reasoning and Acting in Language Models" (2022)
- Shinn et al., "Reflexion: Language Agents with Verbal Reinforcement Learning" (2023)
- Xie et al., "OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments" (2024)
- Wang et al., "Agent Workflow Memory" (2024)