skillfed

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 evolution

Most 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 scale70 skills across 8 structural types
Replay fidelity gain+10.5% relative vs. prompted baseline
Evidence depth10 traces collected per execution path
Where structure backfires-0.070 vs. baseline on workflow+attachments-only skills
Fidelity ceiling0.503 avg (of 1.0) even for the winning method

Skills related to this research

Related notes

References

  1. Zhang, Han, Jiang & Wang, "Workflow-to-Skill: Skill Creation via Routing-Workflow-Semantics-Attachments Decomposition" (arXiv:2606.06893, 2026)
  2. Yao et al., "ReAct: Synergizing Reasoning and Acting in Language Models" (2022)
  3. Shinn et al., "Reflexion: Language Agents with Verbal Reinforcement Learning" (2023)
  4. Xie et al., "OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments" (2024)
  5. Wang et al., "Agent Workflow Memory" (2024)