SkillOpt: Executive Strategy for Self-Evolving Agent Skills
A Comprehensive Tutorial for AI Engineers
Paper: SkillOpt: Executive Strategy for Self-Evolving Agent Skills
arXiv ID: 2605.23904
Code: https://aka.ms/SkillOpt
Date: May 2026
Target Audience: Advanced beginners to intermediate AI engineers
Table of Contents
- Introduction: Why Skills Need Training
- Core Concepts
- The SkillOpt Pipeline
- Method Details
- Architecture and Components
- Benchmarks and Datasets
- Training Configuration
- Inference Pipeline
- Experimental Results
- Comparison with Previous Methods
- Why SkillOpt Matters
- Practical Applications
- Implementation Insights
- Limitations
- Future Directions
- Conclusion
- Ecosystem and Resources
1. Introduction: Why Skills Need Training
The Domain Adaptation Challenge for Agents
Frontier language models are increasingly deployed as agents—systems that use tools, access files, and interact with external environments to accomplish multi-step tasks. From single-prompt callers to sophisticated execution harnesses with verifiers, these agents must adapt to specific domains. But domain adaptation for agents isn't just about updating model weights or tweaking system prompts. It's fundamentally about improving the procedures by which the agent gathers evidence, calls tools, follows domain conventions, and formats outputs.
This is where agent skills come in. A skill is a portable natural-language artifact that packages procedures, domain heuristics, tool policies, output constraints, and failure modes. When prepended to an agent's context (as system instruction in direct chat, or as persistent procedural memory in tool-use harnesses), a skill lets a frozen agent adapt through external text—without requiring weight updates.
Limitations of Manually Written Skills
Despite their promise, current approaches to skill development have critical limitations:
-
Manual writing is brittle: Human experts write skills from introspection, not from actual execution feedback. The skill may look reasonable on paper but fail in practice.
-
One-shot generation is unreliable: Even when using LLMs to generate skills in one shot, there's no guarantee the generated skill improves over a no-skill baseline. The LLM hasn't observed the agent's actual failures.
-
Existing self-revision is loosely controlled: Systems that let agents revise their own skills through "self-reflection" or "self-refinement" don't apply the discipline that makes optimization reproducible. Edits can erase useful rules, introduce incompatible instructions, or overfit to isolated failures.
The Key Insight: Skills Should Be Trained
The core insight behind SkillOpt is elegant and powerful:
Agent skills should be trained, not just written or one-shot generated.
Just as neural networks learn from data through systematic gradient-based optimization, skills should learn from execution feedback through systematic optimization over an external state (the skill document itself). This means:
- The skill document is external state (like model weights)
- A separate optimizer model generates improvements (like gradients)
- Training-style controls—learning rates, validation, momentum—make optimization stable
This isn't just an analogy; it's an operational framework that borrows the discipline of deep learning and applies it to text-space optimization.
What SkillOpt Achieves
SkillOpt is the first systematic controllable text-space optimizer for agent skills. It achieves:
- Best or tied-best on all 52 evaluated (model, benchmark, harness) cells
- +23.5 point average gain on GPT-5.5 in direct chat (no skill → with skill)
- +5.4 points better than the strongest per-cell baseline
- Works across 6 benchmarks, 7 target models, 3 execution harnesses
- Skills transfer across models, harnesses, and benchmarks
- Output is compact: 300–2,000 tokens after only 1–5 epochs
2. Core Concepts
What Is a Skill?
A skill is a natural-language policy artifact containing:
- Procedures: Step-by-step instructions for task execution
- Domain heuristics: Guidelines specific to the target domain
- Tool policies: Rules for when and how to use tools
- Output constraints: Formatting requirements and quality standards
- Failure modes: Known failure patterns and how to handle them
In direct-chat benchmarks, a skill is prepended to the system or developer instruction. In tool-use harnesses, it becomes persistent procedural memory that guides the agent across multiple steps.
Executive Strategy Defined
Executive Strategy is the high-level decision-making framework that determines:
- When to use which skill — skill selection based on task requirements
- How to combine skills — composing multiple skills for complex tasks
- How to adapt skills — modifying skills based on execution feedback
SkillOpt implements executive strategy as a controllable optimization process, where the "strategy" emerges from systematic training rather than manual design.
Text-Space Optimization Fundamentals
Text-space optimization means optimizing the textual representation directly, rather than the model's internal weights. Key characteristics:
- The optimization target is a text document (the skill)
- The optimizer is a separate model (not the target model being adapted)
- Updates are bounded edits (add/delete/replace operations)
- A validation gate prevents harmful changes from accumulating
The Training Analogy in Depth
Understanding the deep parallel between deep learning and SkillOpt is essential:
| Deep Learning Concept | SkillOpt Analog | Purpose |
|---|---|---|
| Training data | Rollout batches | Evidence for optimization |
| Loss function | Trajectory success/failure | Signal for what to improve |
| Gradient | Reflection analysis | Diagnose failure patterns |
| Optimizer | Frontier model | Generate edits |
| Learning rate | Edit budget | Control step size |
| Validation set | Selection split | Prevent overfitting |
| Momentum | Slow/meta update | Preserve long-term directions |
| Negative feedback | Rejected-edit buffer | Learn from failures |
This analogy isn't decorative—it's operational. Each component in SkillOpt plays the same role as its deep learning counterpart.
3. The SkillOpt Pipeline
Pipeline Overview
The SkillOpt pipeline has two main phases per epoch:
- Forward Pass: Collect trajectory evidence through rollout execution
- Backward Pass: Analyze evidence, generate edits, validate, and update
Here's how it works in detail:
┌─────────────────────────────────────────────────────────────────────────┐
│ SKILLOPT PIPELINE │
│ │
│ ┌──────────┐ ┌─────────────┐ ┌──────────────────┐ │
│ │ Target │───▶│ Rollout │───▶│ Trajectory │ │
│ │ Model │ │ Batch │ │ Evidence │ │
│ │ (frozen)│ │ (D_tr) │ │ (messages, │ │
│ └──────────┘ └─────────────┘ │ tool calls, │ │
│ │ scores) │ │
│ └────────┬─────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────────┐ │
│ │ Minibatch │ │
│ │ Reflection │ │
│ │ (optimizer │ │
│ │ model) │ │
│ └────────┬─────────┘ │
│ │ │
│ ▼ │
│ ┌───────────────────────────────────────────────────────────────┐ │
│ │ BOUNDED UPDATE │ │
│ │ ┌────────────┐ ┌────────────┐ ┌────────────┐ │ │
│ │ │ Edit │───▶│ Ranking │───▶│ Bounded │ │ │
│ │ │ Proposal │ │ (top L_t) │ │ Apply │ │ │
│ │ └────────────┘ └────────────┘ └─────┬──────┘ │ │
│ └────────────────────────────────────────────│───────────────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────────┐ │
│ │ Validation │ │
│ │ Gate │ │
│ │ (D_sel) │ │
│ └────────┬─────────┘ │
│ │ │
│ ┌────────────────┼────────────────┐ │
│ ▼ ▼ │
│ ┌──────────────────┐ ┌──────────────┐ │
│ │ Accept: │ │ Reject: │ │
│ │ Update skill │ │ Store in │ │
│ │ Export if best │ │ buffer │ │
│ └──────────────────┘ └──────────────┘ │
└─────────────────────────────────────────────────────────────────────────┘
Forward Pass: Rollout Evidence
At each optimization step, the target model executes a rollout batch from the training split with the current skill. The harness records:
- Task metadata
- Messages exchanged
- Tool calls and observations
- Command outputs
- Final answers and verifier feedback
- Benchmark-specific context (spreadsheet previews, document references, execution traces)
This batch is the evidence unit. The batch size matters:
- Small batches update quickly but noisily
- Large batches expose more recurring patterns before the skill changes
The implementation also supports accumulation: several rollout batches are reflected on separately and merged into one update, decoupling execution throughput from update frequency.
Backward Pass: Minibatch Reflection
The optimizer model (a frontier model separate from the target model) turns trajectories into skill edits. Following the line of trajectory-driven reflection and prompt evolution (Reflexion, Self-Refine, GEPA):
- Separate failures from successes
- Partition into reflection minibatches — This is crucial because single trajectories often produce anecdotal fixes, while minibatches expose reusable procedural errors (the agent consistently searches the wrong source, writes an answer in the wrong format, fails to verify a tool result)
- Failure minibatches propose missing or corrective rules
- Success minibatches preserve behaviors that already work
- Each reflection returns structured add/delete/replace edits
Local proposals are then merged hierarchically:
- First consolidate failure- and success-driven edits separately
- Then combine them with priority on failure corrections
- This filters duplicate, contradictory, and example-specific suggestions
Bounded Text Updates (Textual Learning Rate)
The textual learning rate is the edit budget $L_t$ — the maximum number of skill edits applied at step $t$:
- After aggregation, the optimizer ranks the merged edit pool by expected utility
- Clips to the top $L_t$ edits
- This is the key difference from ad hoc prompt rewriting
Unbounded rewrites can:
- Erase useful rules
- Introduce incompatible instructions
- Overfit to a local failure
Bounded updates preserve continuity while still allowing the skill to acquire new procedures.
SkillOpt supports constant, linear, cosine, and autonomous schedules. The default is cosine: larger edits early, decaying toward smaller consolidation steps.
The selected edits produce a candidate skill in one of two modes:
- Patch mode: Localized operations (append, insert, replace, delete)
- Rewrite mode: Full skill rewrite conditioned on suggestions
Step-level edits cannot overwrite the protected slow-update field, so fast local changes and slower epoch-wise consolidation remain separated.
Validation Gate and Rejected-Edit Buffer
Every candidate skill is evaluated on the selection split with the same frozen target model and harness:
- If it improves over the current selection score → becomes the new current skill
- If it also exceeds the best score so far → becomes
best_skill.md - Otherwise it is rejected
This gate turns reflection into propose-and-test optimization rather than unconditional self-editing. Plausible textual diagnoses can still hurt the actual target model—the validation gate prevents this.
Rejected updates are still useful. The optimizer records an epoch-local buffer containing:
- Observed failure patterns
- For rejected steps: the edits tried and the score drop they caused
Later reflection calls in the same epoch receive this buffer, so the optimizer can:
- Avoid repeating failed edits
- Focus on unresolved failures
This gives the loop negative feedback during training without adding inference-time cost.
Epoch-wise Slow/Meta Update
Across epochs, a slow/meta update carries stable editing directions, acting like a momentum term in gradient descent:
- Preserves longer-horizon regularities
- Protected field in the skill document
- Step-level edits cannot overwrite it
With bounded, validation-gated updates, each revision remains close enough to the previous one that later optimizer calls can learn from:
- What helped
- What failed
- What should be preserved
This stability is crucial for long-horizon skill refinement without bloating the deployed skill.
4. Method Details
Rollout Evidence Collection
The harness records comprehensive trajectory data during execution:
Trajectory = {
task_id: // Unique task identifier
messages: // Full conversation history
tool_calls: // Tool invocations and outcomes
observations: // Environment responses
final_answer: // Agent's final output
verifier_feedback: // Task-specific scoring
context: // Benchmark-specific info
}
Failure vs. Success Partitioning
The optimizer first separates trajectories into:
- Failures: Tasks where the verifier returned a low score
- Successes: Tasks where the verifier returned a passing score
Each group is partitioned into minibatches (typically 4-8 trajectories per minibatch) to identify recurring patterns rather than one-off events.
Edit Types: Add, Delete, Replace
The reflection outputs structured edits:
| Edit Type | Description | Example |
|---|---|---|
| ADD | Insert new content at specific location | ADD: "When searching for X, always verify the source date." |
| DELETE | Remove specific content | DELETE: "Ignore source dates" (line 5) |
| REPLACE | Substitute old content with new | REPLACE: "Cite sources in APA format" → "Cite sources using the format specified in the domain guide" |
Edit Budget Scheduling
The edit budget $L_t$ controls how many edits are applied at each step:
| Schedule | Behavior |
|---|---|
| Constant | Same $L_t$ every step |
| Linear | Linearly increasing/decreasing $L_t$ |
| Cosine (default) | Start with larger edits, decay to small consolidation |
| Autonomous | Model decides adaptively based on convergence |
Cosine schedule example:
- Epoch 1: $L_t = 10$ edits
- Epoch 3: $L_t = 6$ edits
- Epoch 5: $L_t = 2$ edits
Merge and Ranking Strategy
After minibatch reflection:
- Intra-batch merge: Consolidate edits within each minibatch
- Inter-batch merge: Combine failure-driven and success-driven edits
- Priority: Failure corrections take precedence
- Deduplication: Remove duplicate, contradictory, and example-specific suggestions
- Ranking: Rank by optimizer-assigned expected utility
- Clip: Keep only top $L_t$ edits
5. Architecture and Components
System Architecture
SkillOpt comprises four main components:
┌─────────────────────────────────────────────────────────────────┐
│ SKILLOPT ARCHITECTURE │
│ │
│ ┌────────────────┐ │
│ │ OPTIMIZER │ Frontier model generating edits │
│ │ MODEL │ Analyzes trajectories │
│ │ (separate) │ Proposes bounded updates │
│ └───────┬────────┘ │
│ │ │
│ │ Edit proposals (add/delete/replace) │
│ │ Ranking and guidance │
│ ▼ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ SKILL DOCUMENT │ │
│ │ ┌────────────────────────────────────────────────────┐ │ │
│ │ │ Procedures, heuristics, tool policies, │ │ │
│ │ │ output constraints, failure modes │ │ │
│ │ └────────────────────────────────────────────────────┘ │ │
│ │ ┌────────────────────────────────────────────────────┐ │ │
│ │ │ [Protected] Slow/Meta Update Field │ │ │
│ │ │ (Epoch-wise momentum-like consolidation) │ │ │
│ │ └────────────────────────────────────────────────────┘ │ │
│ └──────────────────────────┬─────────────────────────────────┘ │
│ │ │
│ │ Skill context │
│ ▼ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ TARGET MODEL │ │
│ │ (Frozen - weights NOT updated) │ │
│ │ Executes tasks using current skill │ │
│ └──────────────────────────────────────────────────────────┘ │
│ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ EXECUTION HARNESS │ │
│ │ Direct Chat | Codex | Claude Code │ │
│ └──────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
Optimizer Model Role
The optimizer model is a separate frontier model that:
- Receives trajectory evidence
- Performs reflection analysis
- Generates structured edit proposals
- Ranks candidates by expected utility
- Does NOT execute tasks directly
This separation ensures:
- Target model remains frozen (no weight updates)
- Optimization is controllable and reproducible
- Closed frontier models can be adapted via API
Target Model (Frozen)
The target model being adapted:
- Executes tasks with the current skill
- Produces trajectories for evidence
- Is NEVER updated during SkillOpt training
- Adapts purely through skill context
This is crucial for:
- Closed models: Can't update weights anyway
- Open models: Save compute by not fine-tuning
- Portability: Same skill works across model versions
Skill Document Structure
The skill document is a .md file with sections:
# [Domain] Skill
## Procedures
1. Step-by-step instructions...
2. ...
## Domain Heuristics
- Guideline 1
- Guideline 2
## Tool Policies
- When to use tool X...
- How to format tool calls...
## Output Constraints
- Format requirements...
- Quality standards...
## Failure Modes
- Known failure: [Description] → [Handling]
- ...
## Slow Update (Protected)
[Epoch-wise consolidated learnings - do not overwrite]
...
Protected Slow-Update Field
A special field in the skill document that:
- Accumulates epoch-wise consolidated learning
- Cannot be overwritten by step-level edits
- Acts like momentum in gradient descent
- Preserves long-term directional regularities
6. Benchmarks and Datasets
SkillOpt was evaluated across 6 benchmarks covering diverse domains:
SearchQA
| Aspect | Detail |
|---|---|
| Domain | Web search question answering |
| Task | Given a question, search the web and provide accurate answers |
| Metric | Accuracy |
| Key Challenge | Source verification, date awareness |
SpreadsheetBench
| Aspect | Detail |
|---|---|
| Domain | Spreadsheet task completion |
| Task | Perform operations on spreadsheets (Excel/Google Sheets) |
| Metric | Task completion rate |
| Key Challenge | Formula usage, cell references, multi-step operations |
OfficeQA
| Aspect | Detail |
|---|---|
| Domain | Office document QA |
| Task | Answer questions about documents (Word, PDF) |
| Metric | Accuracy |
| Key Challenge | Document structure understanding, context retrieval |
DocVQA
| Aspect | Detail |
|---|---|
| Domain | Document visual question answering |
| Task | Answer questions about document images |
| Metric | VQA accuracy |
| Key Challenge | Visual layout understanding, text extraction |
LiveMathematicianBench
| Aspect | Detail |
|---|---|
| Domain | Mathematical reasoning |
| Task | Solve math problems with reasoning steps |
| Metric | Accuracy |
| Key Challenge | Multi-step reasoning, equation solving |
ALFWorld
| Aspect | Detail |
|---|---|
| Domain | Embodied decision making (text-based) |
| Task | Complete household tasks in text-simulated environment |
| Metric | Task completion rate |
| Key Challenge | Sequential planning, tool use, state tracking |
7. Training Configuration
Epoch Structure
Each epoch consists of:
- K rollout batches → collect evidence
- K reflection passes → analyze evidence
- Merge and rank → select top edits
- Apply bounded update → modify skill
- Validate on selection split → accept/reject
- Slow/meta update → epoch-wise consolidation
Batch Sizes and Accumulation
| Parameter | Typical Value | Purpose |
|---|---|---|
| Rollout batch | 16-32 trajectories | Evidence collection |
| Reflection minibatch | 4-8 trajectories | Pattern identification |
| Accumulation steps | 1-4 | Decouple throughput from update frequency |
Learning Rate Schedules
The edit budget $L_t$ follows one of:
Constant: L_t = 5 for all t
Linear: L_t = 10 - 0.5*t
Cosine: L_t = 10 * cos(pi*t / 2T) [default]
Autonomous: L_t = model-decided adaptively
Edit Economy and Skill Compactness
A key finding: skills remain compact after optimization:
| Metric | Value |
|---|---|
| Initial skill | ~500-1000 tokens |
| After 1-5 epochs | 300-2000 tokens |
| Edit economy | ~2-10 edits per update |
This compactness means:
- Fast inference (no long context overhead)
- Easy auditing (readable in seconds)
- Portable (small files, easy sharing)
8. Inference Pipeline
Skill Loading at Inference Time
At inference time:
- Load
best_skill.mdinto context - Prepend to system/user instruction
- Execute with target model (no optimizer involved)
┌─────────────────────────────────────────────────────────┐
│ INFERENCE PIPELINE │
│ │
│ ┌────────────┐ │
│ │ best_ │ ← Load skill document │
│ │ skill.md │ │
│ └─────┬──────┘ │
│ │ │
│ ▼ │
│ ┌─────────────────────────────────────────────────┐ │
│ │ SYSTEM INSTRUCTION + SKILL + USER QUERY │ │
│ └─────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌─────────────────────────────────────────────────┐ │
│ │ TARGET MODEL (frozen, no weight updates) │ │
│ └─────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌─────────────────────────────────────────────────┐ │
│ │ EXECUTION HARNESS OUTPUT │ │
│ │ (Trajectory, answer, verifier feedback) │ │
│ └─────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────┘
Zero Extra Model Calls at Deployment
Critical advantage: SkillOpt adds zero inference-time model calls beyond the normal target model calls. The optimizer is used only during training.
This is because:
- The optimizer generates edits during training
- Edits are baked into
best_skill.md - At inference, only the target model executes
- No conditional branching on optimizer calls
Harness-Agnostic Deployment
The same skill artifact works across:
| Harness | Description |
|---|---|
| Direct Chat | API-based direct interaction |
| Codex | Code execution harness |
| Claude Code | Claude execution harness |
This is possible because:
- Skill is pure text (no code dependencies)
- Harness receives skill as context
- Target model adapts through context alone
9. Experimental Results
Main Results: 52/52 Cells Best or Tied-Best
SkillOpt achieves best-or-tied status on all 52 evaluated cells across:
- 7 target models
- 6 benchmarks
- 3 execution harnesses
GPT-5.5 Gains (Direct Chat)
| Benchmark | No Skill | + Skill | Gain |
|---|---|---|---|
| SearchQA | 77.7 | 87.3 | +9.6 |
| SpreadsheetBench | 41.8 | 80.7 | +38.9 |
| OfficeQA | 33.1 | 72.1 | +39.0 |
| DocVQA | 78.8 | 91.2 | +12.4 |
| LiveMathematicianBench | 37.6 | 66.9 | +29.3 |
| ALFWorld | 83.6 | 95.5 | +11.9 |
| Average | — | — | +23.5 |
Comparison vs. Baselines
SkillOpt beats every per-cell competitor:
| Baseline | Average vs. SkillOpt |
|---|---|
| Human skill | -4.1 to -5.4 points |
| One-shot LLM skill | -2.5 to -4.0 points |
| Trace2Skill | -1.5 to -3.0 points |
| TextGrad | +2.5 to +4.0 points (SkillOpt better) |
| GEPA | +1.0 to +2.5 points (SkillOpt better) |
| EvoSkill | -2.0 to -4.5 points |
Key result: +5.4 points better than strongest per-cell baseline on average.
Cross-Model Transfer
A SpreadsheetBench skill trained on GPT-5.4 improves every smaller GPT variant we tested.
Cross-Harness Transfer
A Codex-trained spreadsheet skill transfers to Claude Code with a +59.7 point gain.
Cross-Benchmark Transfer
An OlympiadBench skill yields positive gains on Omni-MATH.
10. Comparison with Previous Methods
vs. Manual Skill Writing
| Aspect | Manual Writing | SkillOpt |
|---|---|---|
| Feedback source | Introspection | Execution evidence |
| Iteration | Manual revision | Automated optimization |
| Reliability | Unpredictable | Validated improvement |
| Scalability | Expert-dependent | Automatic |
vs. One-Shot LLM Generation
| Aspect | One-Shot LLM | SkillOpt |
|---|---|---|
| Improvement guarantee | None | Validation gate |
| Pattern recognition | Single trajectory | Minibatch analysis |
| Stability | Uncontrolled rewrite | Bounded updates |
| Long-term refinement | Limited | Epoch-wise momentum |
vs. Trace2Skill (Trajectory Distillation)
Trace2Skill distills trajectory lessons into skills, but:
- No validation gate → harmful edits accumulate
- No bounded updates → can erase useful rules
- No epoch-wise consolidation → no momentum
vs. TextGrad (Text-Space Optimization)
TextGrad optimizes text for prompt tuning, but:
- Targets prompts, not persistent skill documents
- No explicit failure buffer → misses negative feedback
- No slow/meta update → less stable long-term
vs. GEPA (Reflective Prompt Evolution)
GEPA uses reflective prompt evolution, but:
- Targets prompts, not reusable skills
- No bounded edit constraint → overwrites previous learning
- No rejected-edit buffer → doesn't learn from failures
vs. EvoSkill (Automated Skill Discovery)
EvoSkill automates skill discovery, but:
- Co-evolutionary approach → complex, hard to control
- No validation gate → unreliable improvement
- No explicit optimization discipline → less reproducible
11. Why SkillOpt Matters
Practical Impact: No Weight Updates for Frontier Models
SkillOpt enables domain adaptation for closed frontier models that don't support weight updates:
- Works via API (no weight access needed)
- Adapts through external text context
- Same skill works across model versions
Portability: Skills Are Auditable Text Files
A skill is a simple .md file:
- Readable in seconds
- Auditable by domain experts
- Portable across models and harnesses
- Version-controllable via git
Theoretical Contribution: First Controllable Skill Optimizer
SkillOpt is the first systematic controllable text-space optimizer for agent skills:
- Formalizes skill optimization as domain adaptation
- Applies training discipline to text artifacts
- Provides rigorous validation-gated updates
Deep Learning Discipline Applied to Text Artifacts
The operational analogy with deep learning isn't just metaphor—it's precise:
| DL Component | SkillOpt Implementation |
|---|---|
| External weights | Skill document |
| Optimizer | Frontier model |
| Gradient | Reflection analysis |
| Learning rate | Edit budget |
| Momentum | Slow/meta update |
| Validation set | Selection split |
12. Practical Applications
Domain-Specific Agent Adaptation
Adapt general-purpose agents to specific domains:
- Legal: Document review, contract analysis
- Medical: Clinical note summarization, diagnosis assistance
- Financial: Report generation, data analysis
Cloud Technical Support Automation
Skills can encode:
- Troubleshooting procedures
- Escalation criteria
- Resolution patterns
Multi-Modal Document Understanding
Skills help agents handle:
- PDF structure parsing
- Table extraction and reasoning
- Figure interpretation
Code Generation and Debugging
Skills encode:
- Coding conventions
- API usage patterns
- Debug strategies
Spreadsheet and Office Productivity
Skills capture:
- Formula patterns
- Data cleaning procedures
- Report formatting
13. Implementation Insights
Skill Document Format
# Spreadsheet Skill v1.3
## Procedures
1. When opening a spreadsheet, first identify the header row
2. For calculations, use named ranges where possible
3. Always verify formula results against sample cells
## Domain Heuristics
- Dates should be in ISO format (YYYY-MM-DD)
- Currency values should include 2 decimal places
- Empty cells should be handled gracefully
## Tool Policies
- Use `read_sheet` for initial data access
- Use `write_cell` for targeted updates
- Use `apply_formula` for bulk calculations
## Output Constraints
- Present summary statistics before detailed tables
- Include data quality indicators
- Cite source cells for derived values
## Failure Modes
- **Circular reference detected** → Identify and break loops
- **Type mismatch** → Add type coercion
- **Out of bounds** → Verify range before write
## Slow Update (Protected)
[Epoch 1-3: Added date format handling after livecode failures]
[Epoch 2-5: Consolidated formula verification after spreadsheet errors]
Optimizer Prompt Contracts
The optimizer uses structured prompts:
| Contract | Purpose |
|---|---|
analyst_error.md | Analyze failure patterns |
analyst_success.md | Preserve working behaviors |
merge_failure.md | Consolidate failure edits |
merge_success.md | Consolidate success edits |
merge_final.md | Combine failure + success |
ranking.md | Rank by expected utility |
slow_update.md | Epoch-wise consolidation |
Edit Representation
Patch mode (default):
{
"ops": [
{"type": "add", "after": "## Tool Policies", "content": "..."},
{"type": "delete", "match": "Old content"},
{"type": "replace", "old": "Old", "new": "New"}
]
}
Rewrite mode:
- Full skill rewrite conditioned on suggestions
- Used when skill has fundamental issues
Safeguards and Design Principles
- Validation before application → Never apply unvalidated edits
- Bounded step size → Prevent catastrophic changes
- Protected fields → Preserve momentum-like updates
- Negative feedback buffer → Learn from rejections
- Compact output → Maintain readability
14. Limitations
Frontier Model Dependency for Optimizer
The optimizer must be a frontier model for best results:
- Smaller models may generate lower-quality edits
- Closed models have API costs
- Latency affects training speed
Validation Set Quality Dependence
The validation gate depends on the selection split:
- Poor validation set → acceptance of harmful edits
- Small validation set → noisy acceptance decisions
- Biased validation set → skill drifts toward bias
Epoch-Wise Slow Update Complexity
The slow/meta update adds complexity:
- Protected field management
- Convergence criteria for consolidation
- Hyperparameter sensitivity
Closed vs. Open Model Considerations
For closed models:
- No weight access limits some optimizations
- API rate limits constrain training speed
- Cost accumulates with optimizer calls
15. Future Directions
Automated Skill Library Construction
Future work could:
- Automatically discover needed skills from task distributions
- Organize skills in hierarchies
- Suggest skill compositions for complex tasks
Cross-Domain Skill Transfer
Transfer learning for skills:
- Source domain skill → Target domain adaptation
- Few-shot skill transfer
- Zero-shot skill composition
Skill Composition from Primitive Skills
Building complex skills from simpler ones:
- Identify primitive skill atoms
- Compose into higher-level procedures
- Verify composition correctness
Integration with Agent Memory Systems
Combining with memory:
- Episodic memory → Trajectory logging
- Semantic memory → Skill consolidation
- Procedural memory → Skill execution
Multi-Agent Skill Coordination
Multi-agent scenarios:
- Distributed skill libraries
- Complementary skill sets
- Skill negotiation protocols
16. Conclusion
Key Takeaways
-
Skills should be trained, not just written: The key insight is that agent skills benefit from systematic optimization, just like neural networks benefit from gradient-based learning.
-
Validation gate prevents harmful updates: By evaluating candidate skills on a held-out selection split, SkillOpt prevents plausible but harmful edits from accumulating.
-
Bounded updates enable stable optimization: The edit budget (textual learning rate) ensures each update is small enough to preserve continuity while still making progress.
-
Skills transfer across models and harnesses: A skill optimized for one model/harness often works well for others, enabling efficient reuse.
-
Compact artifacts are reusable: Skills remain small (300-2000 tokens), making them fast, auditable, and portable.
The Bigger Picture
SkillOpt represents a shift in how we think about agent adaptation:
- Old view: Adapt model weights through fine-tuning
- New view: Adapt skill documents through text-space optimization
This new view enables adaptation of closed frontier models, provides auditable artifacts, and applies the full discipline of optimization to the skill learning problem.
17. Ecosystem and Resources
Official Resources
| Resource | Link |
|---|---|
| Paper | https://arxiv.org/pdf/2605.23904 |
| Code | https://aka.ms/SkillOpt |
| arXiv HTML | https://arxiv.org/html/2605.23904 |
Related Works
| Work | Description |
|---|---|
| GEPA | Reflective prompt evolution (Li et al.) |
| Trace2Skill | Trajectory distillation into skills |
| TextGrad | Text-space optimization for prompts |
| EvoSkill | Automated skill discovery |
| SkillsBench | Benchmarking agent skills |
| Reflexion | Verbal reinforcement learning |
| Self-Refine | Iterative refinement with self-feedback |
| DSpy | Declarative LM call compilation |
| SkillForge | Self-evolving skills in cloud support |
| SKILLFOUNDRY | Building skill libraries from resources |
Image Credits
| Image | Source | Description |
|---|---|---|
| Figure 1 | arXiv HTML (SkillOpt paper) | Overview of SkillOpt architecture |
| Figure 2 | arXiv HTML (SkillOpt paper) | Pipeline of SkillOpt |
| Figure 3 | arXiv HTML (SkillOpt paper) | Experimental results comparison |
Tutorial generated from SkillOpt paper (arXiv 2605.23904) for educational purposes. Target audience: Advanced beginners to intermediate AI engineers.