Agentic AI
Microsoft's SkillOpt optimizes AI agent instructions as trainable parameters instead of fixed prompts
A new technique treats agent skills—sets of instructions—as adjustable learning targets, improving reliability without updating model weights.
Microsoft Research Blog
Deploying language models as autonomous agents presents a critical challenge: getting them to complete complex, multi-step tasks consistently. Current approaches—hand-crafted instructions, one-off generation, or loose revision cycles—lack the rigor of machine-learning optimization. Microsoft Research has introduced SkillOpt, a framework that transforms agent skill editing into a controlled training process, keeping instruction files compact and auditable while boosting performance across diverse models and tasks.
The problem with ad-hoc skill refinement#
Agent performance hinges on the quality of the instructions, or skills, they receive. Yet today's methods for creating and refining these skills are brittle. Expert-written instructions rely on manual labor and intuition; one-shot generation from frontier models provides no feedback loop; and post-execution revision often produces longer, more fragmented instructions that gradually drift from their original intent. Each revision may seem reasonable in isolation but can unexpectedly harm overall task completion. This uncontrolled evolution has become a major blocker for moving agent prototypes into production.
How SkillOpt reframes skill development#
Rather than asking "how do we write a better prompt?", SkillOpt poses "how do we train the skill?" The system treats a skill file as a learnable component separate from a frozen target model. This separation enables a disciplined optimization loop:
- Forward pass: A frozen agent runs training tasks using the current skill, generating execution traces.
- Backward pass: A separate optimizer model analyzes successful and failed trajectories, extracting patterns to preserve and mistakes to fix.
- Constrained updates: The optimizer proposes small add, delete, and replace edits. Candidates are ranked and limited by a text-based learning rate—an edit budget per step. Only changes that strictly improve performance on a held-out validation set are accepted.
- Negative feedback: Rejected edits enter a buffer that informs future optimizer decisions, preventing the same mistakes from recurring.
- Meta updates: On a longer timescale, the system consolidates lessons that single batches cannot reveal.
This combination of bounded edits, validation gates, and best-version selection prevents the skill from drifting toward incoherence.

