Configs2026年7月16日·1 分钟阅读

SkillOpt — Train Reusable Natural-Language Skills for LLM Agents

A Microsoft Research tool that trains reusable natural-language skills for frozen LLM agents through trajectory-driven edits and validation-gated updates.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
SkillOpt
直接安装命令
npx -y tokrepo@latest install b1c4e996-8132-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

SkillOpt is a Microsoft Research project that trains reusable natural-language skills for frozen LLM agents. Rather than fine-tuning weights, it iteratively refines a text-space skill document that an agent loads into its context to improve task performance. The result is a deployable best_skill.md artifact any compatible agent can consume.

What SkillOpt Does

  • Optimizes natural-language skill documents through trajectory-driven editing
  • Evaluates agent trajectories on validation tasks and proposes targeted revisions
  • Produces a standalone best_skill.md file for any frozen LLM agent
  • Supports multiple task families for cross-task generalization
  • Gates every update on validation performance to prevent regressions

Architecture Overview

SkillOpt runs a three-phase loop: execute, analyze, revise. The agent runs tasks with the current skill, SkillOpt examines trajectories for failure patterns, and a proposer model drafts edits that are accepted only if validation scores improve. Written in Python, it requires only API access to the target LLM.

Self-Hosting & Configuration

  • Install via pip from the cloned repository
  • Provide an LLM API key via environment variable
  • Define task suites as JSON with inputs and evaluation criteria
  • No GPU required — operates entirely through API calls

Key Features

  • Learns from actual agent trajectories rather than static benchmarks
  • Validation-gated updates ensure measurable improvement on every revision
  • Produces portable markdown skill files usable across agent frameworks
  • Open-source under MIT with example task suites included

Comparison with Similar Tools

  • DSPy — compiles prompts; SkillOpt optimizes skill documents via trajectory analysis
  • TextGrad — gradient-like text feedback; SkillOpt uses validation-gated discrete edits
  • OPRO — searches prompt variations; SkillOpt refines structured skills from trajectories

FAQ

Q: Does it require fine-tuning the LLM? A: No. The LLM stays frozen; only the text skill document is modified.

Q: What is the output format? A: A markdown file (best_skill.md) with structured instructions and heuristics.

Q: How many iterations does optimization take? A: Most tasks converge within 10 to 30 iterations depending on complexity.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产