Could an AI agent invent its own time-saving shortcuts mid-task, instead of only using ones programmed in advance?
Can skill creation happen inside the runtime loop instead of before?
This explores whether an AI agent can write its own reusable skills (saved procedures it can call on later) in the middle of doing a task, rather than having them authored ahead of time and handed to it.
This explores whether an agent can write its own reusable skills while it is working on a task, instead of receiving a library that was built beforehand. The corpus says yes, and it gives a specific reason to want it: skills written in advance are created in one context and used in another, and that gap is where they go wrong. MUSE-Autoskill makes skill creation a built-in tool the agent calls during its own run, so each skill is grounded in the exact situation that needed it. On SkillsBench those in-loop skills reached 87.94% accuracy with very little loss when reused elsewhere Does creating skills during execution prevent mismatch with usage?.
The idea has older roots. VOYAGER had agents write executable skills as they explored, store them in a searchable library, and build complex skills out of simpler ones, which let them keep learning without overwriting what they already knew Can agents learn new skills without forgetting old ones?. The same shift shows up with tools: agents that discover tools as they go, rather than being handed a pre-selected set, adapt better on long tasks Can agents discover tools dynamically instead of pre-selecting them?. In both cases the agent finds out what it needs by doing the work.
Why does timing matter so much? One analysis of 8,135 trials found that skills mostly help by anchoring a procedure, keeping the agent's actions steady, rather than by supplying missing facts. They fail when retrieved wrongly, invoked out of context, or followed too rigidly Do skills teach procedures or inject missing facts?. Those are all context-mismatch failures, which is what creating a skill at the point of use is meant to avoid.
The corpus does not treat in-loop creation as the settled answer, though. Letting an agent freely rewrite its own instructions turns out to be unstable; SkillOpt gets better results by capping how much can change per edit, testing edits on held-out tasks, and keeping rejected edits as a record of what not to try Does constraining edits make skill learning more stable?. SkillOS goes the opposite way from in-loop creation and separates the roles: a trained curator maintains the library while the agent doing the work stays frozen, and the library drifts from wordy generic entries toward actionable logic and cross-task strategies Can a separate trained curator improve skill libraries better than frozen agents?. Code2Skill skips experience altogether, lifting over a million checkable skills straight from GitHub source code Can source code replace experience as skill raw material?.
Read together, these suggest that creation and upkeep are separate jobs. Writing a skill in the moment gives it a good fit to the task, but a library that stays useful still seems to need something outside the moment: a gate on edits, a dedicated curator, or evidence that a skill actually runs. The notes here don't include a head-to-head test of in-loop creation against a curated or code-derived library on the same tasks, so which approach wins at scale is still open.
Sources 7 notes
MUSE-Autoskill couples skill creation to a built-in tool invoked during the agent's runtime loop, grounding skills in the exact context that needs them. On SkillsBench, in-loop skills reached 87.94% accuracy with minimal transfer loss, validating the approach as an architectural principle.
VOYAGER demonstrates that storing executable skills in an embedding-indexed library and composing complex skills from simpler ones allows agents to learn continuously while avoiding the forgetting that occurs with weight-update-based methods. Environmental feedback refines skills while an automatic curriculum drives continual exploration.
DeepAgent demonstrates that discovering tools as needed—rather than pre-retrieving a fixed set—enables agents to maintain global task perspective and adapt strategy mid-execution. This approach scales better for long-horizon tasks where the tool space is too large to enumerate.
Analysis of 8,135 trials shows procedural anchoring accounts for 65.7% of skill cases versus 4.5% for knowledge injection. Skills fail when retrieved incorrectly, invoked out of context, or followed too rigidly.
SkillOpt's ablations show that adding a textual learning-rate budget, held-out validation gate, and rejected-edit buffer (retaining failed edits as negative feedback) produces more stable and generalizable skill improvement than allowing agents to freely rewrite their own instructions.
Show all 7 sources
SkillOS shows that separating a trainable curator from a frozen executor, grouped by task streams, causes skill repositories to shift from generic verbose additions toward actionable execution logic and cross-task meta-strategies. The trained curator generalizes across different executor backbones and domains.
Code2Skill extracts over 1 million auditable skills from GitHub repositories through source-blind reconstruction verification, improving performance from 42.90 to 47.90 macro-average across eight benchmarks, outperforming trajectory and document-derived alternatives.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- Demystifying Agent Skills: Why They Work-Until They Don't
- SkillOS: Learning Skill Curation for Self-Evolving Agents
- MUSE-Autoskill: Self-Evolving Agents via Skill Creation, Memory, Management, and Evaluation
- SkillClaw: Let Skills Evolve Collectively with Agentic Evolver
- RESOURCE2SKILL: Distilling Executable Agent Skills from Human-Created Multimodal Resources
- Grounded Skill Synthesis from Code at Scale for Agentic Intelligence
- MetaClaw: Just Talk — An Agent That Meta-Learns and Evolves in the Wild
- Repo-To-Skill: Distilling GitHub Repositories Into AI4AI Skills