Free

SkillOpt: improve skills with scored tasks

Compare skill instructions with SkillOpt using scored tasks. Review quality and costs, then save the selected best_skill.md.

Tools

Installation instructions · First experiment · Download source code (ZIP)

SkillOpt helps improve reusable skill text by comparing answers with known expected results. It proposes instruction edits, compares candidates and saves a selected best_skill.md without retraining the model.

What it is useful for

Use it when an instruction runs repeatedly and errors are checkable. For example, an assistant extracts tasks and deadlines from anonymized notes but sometimes invents a missing deadline. You need examples with known expected outcomes, not just a judgment that the text sounds better.

Prompt Master is simpler for one request. SkillOpt makes sense when you can compare the original and revised skill on a task set, account for usage and retain failures. Evaluation on the examples used to edit a skill does not replace a separate test.

How to install and choose a workflow

Python 3.10 or later is required. Install the official package in a separate environment:

python -m pip install skillopt

It provides skillopt-train, skillopt-eval and skillopt-sleep. Benchmark configs, data preparation, tests and Codex integration files require the source repository; installing the PyPI package does not provide them. At review time, PyPI is 0.2.0 while main documentation includes newer features. Match the version to its --help before using a command.

Choose one workflow. Research SkillOpt optimizes text against explicit task sets. SkillOpt-Sleep examines approved session records and stages memory/skill proposals for review. They are not a required pair. Start with a separate anonymized task set rather than every chat's history.

The task-performing model and editing model are configured separately. Codex can be a supported execution target through the relevant adapter, but not every backend supports both roles. Approve connections, keys and paid runs separately. Installing a research package does not replace the working skill.

How to evaluate one skill improvement

  1. Codex finds the original instruction and recurring task, preserves the original and prepares a small set with checkable expected answers. It separates training, candidate selection and final testing. For example, a note without a deadline should yield “deadline unspecified,” not an invented date. Agree on criteria and ambiguous cases before running.
  2. The assistant chooses a supported workflow and config and checks data preparation and scoring. It first shows commands and counts for tasks, models, repeats and rounds. After spending approval, it measures the baseline and runs a bounded optimization in a separate output directory with candidate validation enabled. After failure, it checks saved results before restarting a paid experiment.
  3. It compares the original with best_skill.md on the same untouched test set using identical model settings. It shows new errors, omissions, cost and text changes as well as the overall score. If improvement is unproven or an important rule was lost, the original remains active. Installing an accepted candidate requires a separate diff review and approval.

The provided SearchQA configuration can introduce the research workflow. Official instructions first materialize runnable data with a separate script; repository IDs alone are insufficient. For your task, Codex prepares suitable data and scoring using the extension guide rather than treating an unrelated benchmark as evaluation of your skill.

How to check costs and results

Count target, editor and judge calls, retries and final evaluation. A task-count limit is not itself a monetary cap. Approve a small trial, inspect actual provider usage, then expand if justified.

SkillOpt-Sleep's mock backend makes no provider calls, but checks the process rather than real model improvement. A real-backend dry-run can transmit data and consume usage. Separately select and redact approved session-derived tasks before such a trial; do not harvest every chat automatically. Prompts and replies may be saved in local evidence files, which also need appropriate handling.

A passing score does not establish improvement for every task. Review new failures, preserved rules and real examples outside optimization. A proposal or best_skill.md is not yet the installed skill. Leave scheduling and automatic adoption off for a first evaluation.

Where it fits and how to disconnect

Use SkillOpt after connecting and testing a chosen tool when one skill repeats measurable errors. Skill Retrieval MCP helps find the skill itself; a one-off task can keep a simple prompt.

To revert, restore the preserved working SKILL.md and reverse only accepted memory edits, if any. Remove the experimental environment and integration separately. Keep reports and test sets until comparison is complete; do not publish keys or logs containing source data. This workflow creates no schedule, so there is no background job to disable.

The result is either a candidate with a clear comparison and a separate adoption decision, or evidence to keep the original. Next, test an approved version on a small real task using the tool connection plan.

Prompt for Codex

Paste into Codex with project access:

Help evaluate whether Microsoft SkillOpt can improve one reusable skill of mine. Find the project, its rules, original SKILL.md and relevant task examples. Ask for a missing skill or checkable outcome if undefined. Do not change the working instruction yet.
Read https://github.com/microsoft/SkillOpt, docs/guide/installation.md, first-experiment.md and the relevant benchmark-extension guide. Check the installed version and commands. Distinguish PyPI 0.2.0 from current main features; do not claim the wheel supplies Codex integration files. Select a separate environment and installation route, show changes and wait for approval.
Preserve the original. Prepare a small anonymized set with expected answers and a clear scorer. Separate training, selection and final test cases; do not give final-test answers to the editor model. Show criteria and ask me to resolve ambiguous cases. Do not read chat archives or start SkillOpt-Sleep for this trial.
Choose supported target and editor roles, data-preparation commands and an output directory. Before model calls, show example, repeat and round counts, usage accounting and stopping conditions, then wait for approval. Do not print keys into chat, Git or notes. Do not treat a real-backend dry-run as free.
After approval, measure the original, run bounded optimization with candidate validation and compare the original with best_skill.md on the untouched final set under identical settings. Show aggregate results, new errors, usage and a diff rather than just the best score. After interruption, verify saved actions before repeating paid work.
Do not install the candidate, alter project memory or rules, schedule runs or enable auto-adopt without separate approval. Keep the original if improvement is unproven. Return a checkable conclusion and a way to undo only this experiment's changes, preserving unrelated skills and data.
In This Article
Saved