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

  1. Introduction: Why Skills Need Training
  2. Core Concepts
  3. The SkillOpt Pipeline
  4. Method Details
  5. Architecture and Components
  6. Benchmarks and Datasets
  7. Training Configuration
  8. Inference Pipeline
  9. Experimental Results
  10. Comparison with Previous Methods
  11. Why SkillOpt Matters
  12. Practical Applications
  13. Implementation Insights
  14. Limitations
  15. Future Directions
  16. Conclusion
  17. 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:

  1. 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.

  2. 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.

  3. 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:

  1. When to use which skill — skill selection based on task requirements
  2. How to combine skills — composing multiple skills for complex tasks
  3. 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 ConceptSkillOpt AnalogPurpose
Training dataRollout batchesEvidence for optimization
Loss functionTrajectory success/failureSignal for what to improve
GradientReflection analysisDiagnose failure patterns
OptimizerFrontier modelGenerate edits
Learning rateEdit budgetControl step size
Validation setSelection splitPrevent overfitting
MomentumSlow/meta updatePreserve long-term directions
Negative feedbackRejected-edit bufferLearn 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:

  1. Forward Pass: Collect trajectory evidence through rollout execution
  2. 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):

  1. Separate failures from successes
  2. 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)
  3. Failure minibatches propose missing or corrective rules
  4. Success minibatches preserve behaviors that already work
  5. 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:

  1. If it improves over the current selection score → becomes the new current skill
  2. If it also exceeds the best score so far → becomes best_skill.md
  3. 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 TypeDescriptionExample
ADDInsert new content at specific locationADD: "When searching for X, always verify the source date."
DELETERemove specific contentDELETE: "Ignore source dates" (line 5)
REPLACESubstitute old content with newREPLACE: "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:

ScheduleBehavior
ConstantSame $L_t$ every step
LinearLinearly increasing/decreasing $L_t$
Cosine (default)Start with larger edits, decay to small consolidation
AutonomousModel 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:

  1. Intra-batch merge: Consolidate edits within each minibatch
  2. Inter-batch merge: Combine failure-driven and success-driven edits
  3. Priority: Failure corrections take precedence
  4. Deduplication: Remove duplicate, contradictory, and example-specific suggestions
  5. Ranking: Rank by optimizer-assigned expected utility
  6. 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

AspectDetail
DomainWeb search question answering
TaskGiven a question, search the web and provide accurate answers
MetricAccuracy
Key ChallengeSource verification, date awareness

SpreadsheetBench

AspectDetail
DomainSpreadsheet task completion
TaskPerform operations on spreadsheets (Excel/Google Sheets)
MetricTask completion rate
Key ChallengeFormula usage, cell references, multi-step operations

OfficeQA

AspectDetail
DomainOffice document QA
TaskAnswer questions about documents (Word, PDF)
MetricAccuracy
Key ChallengeDocument structure understanding, context retrieval

DocVQA

AspectDetail
DomainDocument visual question answering
TaskAnswer questions about document images
MetricVQA accuracy
Key ChallengeVisual layout understanding, text extraction

LiveMathematicianBench

AspectDetail
DomainMathematical reasoning
TaskSolve math problems with reasoning steps
MetricAccuracy
Key ChallengeMulti-step reasoning, equation solving

ALFWorld

AspectDetail
DomainEmbodied decision making (text-based)
TaskComplete household tasks in text-simulated environment
MetricTask completion rate
Key ChallengeSequential planning, tool use, state tracking

7. Training Configuration

Epoch Structure

Each epoch consists of:

  1. K rollout batches → collect evidence
  2. K reflection passes → analyze evidence
  3. Merge and rank → select top edits
  4. Apply bounded update → modify skill
  5. Validate on selection split → accept/reject
  6. Slow/meta update → epoch-wise consolidation

Batch Sizes and Accumulation

ParameterTypical ValuePurpose
Rollout batch16-32 trajectoriesEvidence collection
Reflection minibatch4-8 trajectoriesPattern identification
Accumulation steps1-4Decouple 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:

MetricValue
Initial skill~500-1000 tokens
After 1-5 epochs300-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:

  1. Load best_skill.md into context
  2. Prepend to system/user instruction
  3. 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:

HarnessDescription
Direct ChatAPI-based direct interaction
CodexCode execution harness
Claude CodeClaude 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)

BenchmarkNo Skill+ SkillGain
SearchQA77.787.3+9.6
SpreadsheetBench41.880.7+38.9
OfficeQA33.172.1+39.0
DocVQA78.891.2+12.4
LiveMathematicianBench37.666.9+29.3
ALFWorld83.695.5+11.9
Average——+23.5

Comparison vs. Baselines

SkillOpt beats every per-cell competitor:

BaselineAverage 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

AspectManual WritingSkillOpt
Feedback sourceIntrospectionExecution evidence
IterationManual revisionAutomated optimization
ReliabilityUnpredictableValidated improvement
ScalabilityExpert-dependentAutomatic

vs. One-Shot LLM Generation

AspectOne-Shot LLMSkillOpt
Improvement guaranteeNoneValidation gate
Pattern recognitionSingle trajectoryMinibatch analysis
StabilityUncontrolled rewriteBounded updates
Long-term refinementLimitedEpoch-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 ComponentSkillOpt Implementation
External weightsSkill document
OptimizerFrontier model
GradientReflection analysis
Learning rateEdit budget
MomentumSlow/meta update
Validation setSelection 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:

ContractPurpose
analyst_error.mdAnalyze failure patterns
analyst_success.mdPreserve working behaviors
merge_failure.mdConsolidate failure edits
merge_success.mdConsolidate success edits
merge_final.mdCombine failure + success
ranking.mdRank by expected utility
slow_update.mdEpoch-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

  1. Validation before application → Never apply unvalidated edits
  2. Bounded step size → Prevent catastrophic changes
  3. Protected fields → Preserve momentum-like updates
  4. Negative feedback buffer → Learn from rejections
  5. 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

  1. 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.

  2. Validation gate prevents harmful updates: By evaluating candidate skills on a held-out selection split, SkillOpt prevents plausible but harmful edits from accumulating.

  3. Bounded updates enable stable optimization: The edit budget (textual learning rate) ensures each update is small enough to preserve continuity while still making progress.

  4. Skills transfer across models and harnesses: A skill optimized for one model/harness often works well for others, enabling efficient reuse.

  5. 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

ResourceLink
Paperhttps://arxiv.org/pdf/2605.23904
Codehttps://aka.ms/SkillOpt
arXiv HTMLhttps://arxiv.org/html/2605.23904

Related Works

WorkDescription
GEPAReflective prompt evolution (Li et al.)
Trace2SkillTrajectory distillation into skills
TextGradText-space optimization for prompts
EvoSkillAutomated skill discovery
SkillsBenchBenchmarking agent skills
ReflexionVerbal reinforcement learning
Self-RefineIterative refinement with self-feedback
DSpyDeclarative LM call compilation
SkillForgeSelf-evolving skills in cloud support
SKILLFOUNDRYBuilding skill libraries from resources

Image Credits

ImageSourceDescription
Figure 1arXiv HTML (SkillOpt paper)Overview of SkillOpt architecture
Figure 2arXiv HTML (SkillOpt paper)Pipeline of SkillOpt
Figure 3arXiv 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.

SkillOpt: Executive Strategy for Self-Evolving Agent Skills(来自 Admin 的创作)