The Research Report
SkillOpt v0.2.0: Microsoft Research Treats Your Agent's Skills as Trainable Parameters
What if the prompt is the parameter?
Most people tuning LLM agents today play a guessing game. They rewrite system prompts by hand. They ask a stronger model to generate a better instruction in one shot. They let the agent revise its own instructions through unstructured self-reflection. None of this works the way real model training works. None of it reliably improves over a starting point under feedback.
Microsoft Research has a different idea. What if you stopped treating skill documents as static text and started treating them as trainable parameters? Not the weights inside the model. The words in the prompt.
SkillOpt is the result. Released as v0.2.0 on July 2, 2026, it is the first systematic text-space optimizer for agent skills. It applies the discipline of deep learning to natural-language skill documents. Epochs, batch size, learning rate, validation gates. All the machinery of gradient descent, pointed at a markdown file instead of a weight matrix.
The deployed artifact is a compact best_skill.md file, typically 300 to 2,000 tokens. It runs against any unchanged target model. No fine-tuning. No LoRA adapters. No extra inference-time calls. Just a better instruction document, produced the way a good optimizer produces better weights.
The core idea: text as the trainable state
Here is the framing. You have a frozen LLM agent. You cannot or will not touch its weights. But you can change what it knows by editing the skill document it reads before acting. That skill document is the external state of the agent. It is the thing you can train.
SkillOpt formalizes this with a training loop that mirrors weight-space optimization:
- Rollout. The agent executes tasks using the current skill document. Each rollout produces a score.
- Reflect. A separate optimizer model reviews the scored rollouts and proposes bounded edits to the skill document. Add a line here. Delete a paragraph there. Replace a vague instruction with a specific one.
- Aggregate. Edits get collected and ranked across a batch of rollouts.
- Select. The system picks which edits to apply based on expected improvement.
- Update. Accepted edits modify the skill document.
- Evaluate. The updated skill runs on a held-out validation set. An edit is accepted only when it strictly improves the validation score.
That last step is the critical one. The validation gate is what separates SkillOpt from unstructured self-revision. An edit that feels good but does not actually improve held-out performance gets rejected. This is the text-space equivalent of a loss curve. It keeps training honest.
A textual learning-rate budget controls how much text can change per epoch. A rejected-edit buffer stores failed proposals so the optimizer does not waste cycles repeating them. An epoch-wise slow update stabilizes the document over time. These mechanisms map directly to techniques that make weight-space optimization stable.
The results: best or tied-best across 52 cells
The paper, published as arXiv:2605.23904 by Yifan Yang and colleagues at Microsoft Research, reports results across six benchmarks, seven target models, and three execution harnesses (direct chat, Codex CLI, and Claude Code CLI). That is 52 evaluated cells. SkillOpt is best or tied-best on all 52.
The competitors include human-written skills, one-shot LLM-generated skills, and four automated methods: Trace2Skill, TextGrad, GEPA, and EvoSkill. SkillOpt beats every one of them on every cell.
The headline numbers on GPT-5.5 tell the story. In direct chat, optimized skills lift average no-skill accuracy by 23.5 points. Inside the Codex agentic loop, the lift is 24.8 points. Inside Claude Code, it is 19.1 points. These are not marginal gains. They are the difference between an agent that sometimes works and one that consistently works.
Transfer experiments add another layer. A skill optimized for one model scale works when moved to a different scale. A skill optimized inside Codex works when moved to Claude Code. A skill optimized for one benchmark even transfers to a nearby benchmark without further optimization. The artifacts generalize.
v0.2.0: SkillOpt-Sleep changes the game
The v0.1.0 release in June 2026 shipped the core training loop. The v0.2.0 release on July 2 adds something new and significant: SkillOpt-Sleep.
The name is deliberate. SkillOpt-Sleep is a nightly offline self-evolution engine. While a human sleeps, the agent reviews its own past sessions, mines recurring task patterns, replays them offline, and consolidates short-term experience into long-term memory and validated skills.
The cycle has four stages:
- Harvest. Collect transcripts from real coding sessions. v0.2.0 supports harvesting from Codex Desktop transcripts, with plugin shells for Claude Code, Copilot, Devin, and OpenClaw.
- Mine. Identify recurring tasks and patterns worth replaying.
- Replay. Re-execute those tasks offline using the current skill document.
- Consolidate. Turn the replay results into skill updates, validated behind the same held-out gate that keeps the daytime training honest.
The whole Sleep engine ships as a standalone top-level package called skillopt_sleep with zero dependency on the research code. You install it and run skillopt-sleep from the command line. It is decoupled, practical, and built for production use rather than just experimentation.
v0.2.0 also adds multi-objective reward optimization. You can optimize for accuracy, token cost, and latency simultaneously with user-defined preferences. Multi-rollout contrastive reflection runs under a token and time budget. Experience replay and controllable dream rollouts are available as opt-in features. A slow-update long-term memory field runs even when the validation gate is off.
Why this matters for the agent ecosystem
The agent skill problem is real and unsolved in practice. Teams ship agents with hand-crafted prompts that nobody tests systematically. When the agent fails, someone guesses at a fix and redeploys. There is no loss function. There is no validation set. There is no training loop.
SkillOpt brings all three. The skill document becomes a first-class trainable artifact. The training loop is reproducible. The validation gate prevents drift. The deployed artifact is portable markdown.
This matters because the industry is moving toward agent systems that depend on skill documents. OpenClaw, Claude Code, Codex, Copilot, and Devin all use some form of natural-language skill or instruction document to steer agent behavior. If those documents are the parameters of the system, they should be trained like parameters. SkillOpt is the first framework to do this with the rigor of a deep-learning optimizer.
Ecosystem adoption and community growth
The numbers tell a story of rapid adoption. The GitHub repository at github.com/microsoft/SkillOpt has accumulated 12.8K stars. The project landed on TrendShift. Three external projects have already integrated SkillOpt: gbrain (a coding agent framework), gbrain-evals (its evaluation suite), and darwin-skill (an evolutionary skill system).
The v0.2.0 release credits 11 community contributors by name. They built backends for GitHub Copilot, Codex Desktop transcript harvesting, Devin MCP integration, OpenClaw shell support, SearchQA benchmark materialization, and a verifier-discipline stress test suite. The community is not just watching. They are shipping production integrations.
The PyPI package skillopt is installable with a single pip install skillopt. The WebUI dashboard runs locally on port 7860. The documentation includes a full reproduction guide, technical blog, and API reference. This is open-source research infrastructure built for real use.
How the validation gate works
The validation gate deserves a closer look because it is the mechanism that prevents SkillOpt from becoming an expensive random walk.
During training, the system maintains a 3-way train/validation/test split. Edits are proposed based on training-set performance. Each proposed edit is accepted only if it strictly improves the held-out validation score. The test set is held back for final reporting.
This means the optimizer cannot game the training data. An edit that helps on training examples but hurts on validation gets rejected. The skill document evolves only when there is real evidence that the change generalizes. This is the principle behind good weight-space optimization applied to text.
The verifier-discipline stress test suite, contributed by community member Tanmay9223 in v0.2.0, pushes the gate harder. It tests whether the verifier is doing its job or rubber-stamping edits. Without a real gate, text-space optimization degrades into self-congratulation. With one, it converges.
The learning rate is made of words
One of the most clever ideas in SkillOpt is the textual learning rate. In weight-space training, the learning rate controls how much each parameter changes per step. Too high and training diverges. Too low and it never converges.
SkillOpt implements the same concept for text. The learning-rate budget controls how many words can change per epoch. A small budget means the skill document evolves slowly and carefully. A larger budget means faster changes but higher risk of instability. The rejected-edit buffer acts as a momentum dampener. Failed edits are stored so the optimizer can avoid repeating them.
The epoch-wise slow update adds another stabilization layer. Instead of applying every accepted edit immediately, the system batches them into epoch-level meta-updates. This reduces noise and prevents the document from oscillating. The result is training dynamics that look surprisingly like a well-tuned SGD run.
Deployment: zero extra model calls
A practical concern with any agent optimization method is cost. If the optimized skill requires extra inference-time calls or larger context windows, the deployment cost may outweigh the training benefit.
SkillOpt avoids this entirely. The deployed artifact is a markdown file. The target model reads it as part of its prompt. No additional model calls are needed at inference time. The optimizer model runs only during training. At deployment, the agent uses the same number of calls it would have used with the original skill, just a better one.
This makes SkillOpt compatible with any LLM backend that accepts text prompts. The training framework supports OpenAI, Azure, Claude, Qwen, MiniMax, and any provider implementing the OpenAI Chat Completions protocol. Adding a new backend requires writing one Python module and registering it. The repository includes clear templates.
What is next
The v0.2.0 release notes hint at the trajectory. The SkillOpt-Sleep engine is the first step toward agents that improve themselves overnight. The dream-rollout feature, currently opt-in and experimental, suggests future work on agents that generate synthetic training tasks. The multi-objective reward system points toward agents that optimize for cost and speed alongside accuracy.
The paper's transfer experiments are the strongest signal. Skills optimized for one model work on another. Skills optimized for one harness work in another. Skills optimized for one benchmark help on a related one. This means SkillOpt is not overfitting to a particular setup. It is producing genuinely useful skill documents.
Microsoft Research has built something that the agent ecosystem desperately needed. A principled, reproducible, open-source way to train the most important and most neglected parameter in modern AI systems: the words you give the model before it starts.
References
- SkillOpt GitHub repository: github.com/microsoft/SkillOpt
- SkillOpt v0.2.0 release notes: github.com/microsoft/SkillOpt/releases/tag/v0.2.0
- Research paper (arXiv:2605.23904): arxiv.org/abs/2605.23904
- PyPI package: pypi.org/project/skillopt
- Project page: microsoft.github.io/SkillOpt
- Demo video: youtu.be/JUBMDTCiM0M
- TrendShift listing: trendshift.io/repositories/38498
Suggested title: SkillOpt v0.2.0: Microsoft Research Treats Your Agent's Skills as Trainable Parameters
Word count: ~1,450
Fact-check notes:
- GitHub star count of 12.8K is from the trend-scout report context. The GitHub page itself did not display a visible star count in the fetched content. This figure should be verified against the live GitHub page.
- The paper lists 16 authors, not just Yifan Yang. Yang is the first author and corresponding submitter.
- v0.1.0 shipped June 2, 2026. v0.2.0 shipped July 2, 2026. Both dates confirmed from the GitHub release notes and PyPI listing.
- The 52-cell evaluation grid (6 benchmarks x 7 models x 3 harnesses minus some combinations) is stated in the paper abstract. The exact cell count comes from the abstract: "best or tied-best on all 52 evaluated (model, benchmark, harness) cells."
- The accuracy improvements (+23.5, +24.8, +19.1) are specific to GPT-5.5 and come from the paper abstract.
- SkillOpt-Sleep ships as
skillopt_sleeppackage andskillopt-sleepCLI, confirmed in v0.2.0 release notes. - Community contributors and their PRs are listed in the v0.2.0 release acknowledgements section.
- The arXiv paper was submitted May 22, 2026, with a v2 revision on May 25, 2026.