Microsoft SkillOpt Unlocks New Skills in Frozen LLMs.

Jeff Liu··3 min read·GitHub
Microsoft SkillOpt Unlocks New Skills in Frozen LLMs.
ListenMicrosoft SkillOpt Unlocks New Skills in Frozen LLMs.
0:00
--:--

Key Takeaways

  1. 1Microsoft launched SkillOpt, an open-source tool, on July 2, 2026, to optimize AI agent skills without altering LLM weights.
  2. 2SkillOpt improves frozen LLMs by treating natural language skills as trainable components, generating a portable `best_skill.md` file.
  3. 3SkillOpt's validation-gated process prevents performance regressions, accepting edits only if they improve scores on a held-out set.
  4. 4Testing shows SkillOpt lifted GPT-5.5 model accuracy by +23.5 points in chat and +24.8 points in a Codex agent loop.
  5. 5The v0.2.0 release introduced SkillOpt-Sleep, a nightly offline engine that enables continuous, self-improving agent training.

Microsoft has released SkillOpt, an open-source tool that optimizes AI agent abilities using a novel training loop. The v0.2.0 update on July 2, 2026, treats natural language skills as trainable components for frozen LLMs, improving them without altering model weights, according to the project's GitHub repository.

Traditionally, agent skills are hand-crafted or evolved through loosely controlled self-revision. These methods often fail to produce reliable improvements. SkillOpt introduces a structured, disciplined approach modeled after deep-learning optimization.

The process treats a skill document, typically a Markdown file, as the trainable state. An optimizer model analyzes agent performance on tasks and proposes edits. The final output is a compact `best_skill.md` file that can be deployed with the original, unchanged LLM, adding no inference-time overhead.

How Does SkillOpt Train Agent Skills?

SkillOpt trains skills through a deterministic loop: rollout, reflect, aggregate, select, and update. An optimizer LLM proposes edits to the skill text based on the agent's performance on a task. Crucially, a candidate edit is only accepted if it improves a score on a separate, held-out validation set.

This validation-gated process prevents performance regressions, a common problem in agent self-improvement. The framework also includes concepts like a textual learning-rate budget and a rejected-edit buffer to stabilize the training process, making skill evolution more predictable and reproducible.

What Are the Performance Gains?

Testing shows significant improvements across multiple benchmarks and models. For example, SkillOpt lifted a GPT-5.5 model's average accuracy by +23.5 points in direct chat and +24.8 points within a Codex agent loop. The optimized skills are also transferable across different models and tasks.

The framework supports a variety of backends, including OpenAI, Azure, Claude, and Qwen, as well as execution harnesses for agentic frameworks like Codex and Claude Code. This makes it adaptable to diverse development environments.

Method

Process

Output

Reliability

Hand-Crafting

Manual prompt engineering by a human.

Static prompt text.

Low; depends entirely on human intuition.

Self-Revision

Agent critiques and rewrites its own prompts.

Evolving prompt text.

Variable; can lead to regressions without strict validation.

SkillOpt

Automated, validation-gated edits based on performance.

Optimized `best_skill.md` file.

High; strictly improves or maintains validation score.

The New SkillOpt-Sleep Feature

The v0.2.0 release introduces SkillOpt-Sleep, a nightly offline engine for self-evolution. It automatically harvests an agent's daily task history, mines recurring patterns, replays them to test new strategies, and consolidates the best results into an improved skill file behind a validation gate.

This feature provides a mechanism for continuous, on-the-job training for agents. It allows a local coding assistant like Codex or Copilot to learn from its own work overnight, creating a self-improving loop. This approach is similar in spirit to other reinforcement learning frameworks like the Agent Reinforcement Trainer from OpenPipe, which also focuses on improving agents through experience.

How SkillOpt Optimizes AI Agent Skills

Understand the deterministic, validation-gated loop SkillOpt uses to train and improve natural language skills for frozen Large Language Models (LLMs).

  1. 1

    Perform Task Rollout

    The AI agent executes tasks, generating performance data that will be used for skill optimization.

  2. 2

    Analyze Performance and Propose Edits

    An optimizer Large Language Model (LLM) analyzes the agent's performance on the tasks and proposes edits to the natural language skill document.

  3. 3

    Aggregate Proposed Skill Edits

    The proposed edits to the skill document, generated by the optimizer LLM, are collected and prepared for evaluation.

  4. 4

    Validate and Select Edits

    Candidate edits are rigorously validated against a separate, held-out validation set, and only accepted if they demonstrably improve the agent's score.

  5. 5

    Update Skill Document

    The skill document is updated with the validated and accepted edits, resulting in an optimized `best_skill.md` file that can be deployed with the original LLM.

Related Articles

More insights on trending topics and technology

The Signal

What shipped in AI this week, with the sources.

One email a week.