skillopt is a Python library that treats an agent's skill document as trainable state for a frozen model, improving it through validation-gated edits. The trained result is a compact best_skill.md that runs against the unchanged target model with zero added inference-time model calls.
Project overview
It addresses a concrete gap: hand-crafted, one-shot LLM-generated, or loosely self-revised skills rarely improve reliably over their starting point, and skillopt's validation-gated training loop plus nightly self-evolution engine target exactly that problem without adding inference-time cost.
Project type
AI Agent · Prompt Engineering
Deployment
Refer to project documentation
License
MIT
Best for
AI engineers doing prompt and skill research who want to reuse and systematically improve agent skill documents against a frozen target model.
Users comfortable running Python training and evaluation commands and preparing their own rollout data.
Key capabilities
A separate optimizer model turns scored rollouts into bounded add/delete/replace edits on a single skill document; a candidate edit is accepted only when it strictly improves a held-out validation score.
Nightly offline self-evolution engine with harvest, mine, replay and consolidate stages behind a held-out validation gate, shipped as the skillopt-sleep CLI.
Optional monitoring dashboard launched with python -m skillopt_webui.app; the default host is loopback-only.
Limitations and risks
You need a separate optimizer model to turn scored rollouts into skill edits, and a target LLM that stays frozen and runs the best_skill.md artifact.
The training loop consumes scored agent rollouts as its input, so you must prepare this data before training.
Getting started
Difficulty is medium: it requires pip install, data preparation, and running training/eval commands via Python. First success path: pip install skillopt, prepare data following the versioned SkillOpt documentation, then run the documented training/eval commands.
Evidence and sources
GitHub project description: SkillOpt is a text-space optimizer that trains reusable natural-language skills for frozen LLM agents through trajectory-driven edits, validation-gated updates, and deployable bes…
README: Headline feature: **SkillOpt-Sleep**, a nightly offline self-evolution engine (harvest → mine → replay → consolidate behind a held-out validation gate), now shipped as the `skillo…
README: Modern agent skills are usually hand-crafted, generated one-shot by a strong LLM, or evolved through loosely controlled self-revision — none of which behaves like a deep-learning…
README: A separate optimizer model turns scored rollouts into bounded add / delete / replace edits on a single skill document; in the default paper-style path, a candidate edit is accepte…
README: The deployed artifact is a compact `best_skill.md` (typically 300–2,000 tokens) that runs against the unchanged target model.