agentleFS
TheophilusChinomonaTheophilusChinomona/idev/skills/skillopt/SKILL.md

skillopt

Skill0 starsChanged 5 months agoMITView on GitHub

Benchmarks and optimizes idev skills using Microsoft SkillOpt. Use when asked to test a skill's quality, optimize a skill, benchmark skill performance, or run SkillOpt on a skill.

  • Installs packages

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use Microsoft SkillOpt to evaluate and improve idev skills through trajectory-driven edits and validation-gated updates.

    line 8
  2. Very specific:

    If --optimize is used, SkillOpt produces best_skill.md — the optimized version.

    line 75
  3. Distinctive:

    Read the optimized skill

    line 77
  4. Distinctive:

    Check that it preserves the original intent

    line 78
  5. Distinctive:

    Verify it doesn't overfit to the test scenarios

    line 79
  6. Distinctive:

    Do NOT optimize without test scenarios — you need data to validate against

    line 84
  7. Distinctive:

    Do NOT blindly adopt optimized skills — review for correctness

    line 85
  8. Distinctive:

    Do NOT run optimization on skills that are already passing all scenarios

    line 86
  9. Distinctive:

    Do NOT use a different model for optimization than what the skill targets

    line 87

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SkillOpt Skill — Benchmark & Optimize Agent Skills

Use Microsoft SkillOpt to evaluate and improve idev skills through trajectory-driven edits and validation-gated updates.

Activation

  • User says "benchmark this skill" or "test skill quality"
  • User says "optimize this skill" or "improve this skill with SkillOpt"
  • User runs /idev:skillopt <skill-path>
  • User wants to know if a skill actually helps the agent succeed (not just static analysis)

How It Works

SkillOpt treats the skill document as trainable state and uses a separate optimizer model to improve it through scored rollouts. The flow:

  1. Generate scenarios from the skill's described behavior
  2. Run rollouts — execute the skill against scenarios using the target model (Codex CLI)
  3. Score results — check if the skill guided the agent to correct outcomes
  4. Reflect on failures — analyze what went wrong and why
  5. Propose edits — bounded add/delete/replace on the skill text
  6. Validate — only accept edits that improve held-out validation scores

Prerequisites

  • pip install --break-system-packages skillopt
  • codex CLI installed and authenticated (codex login)
  • Skill file exists at the given path

Using the Command

/idev:skillopt skills/branch-sync/SKILL.md
/idev:skillopt skills/build-check/SKILL.md --optimize

What Gets Generated

For each skill, a benchmark directory is created:

benchmarks/<skill-name>/
├── __init__.py
├── dataloader.py      # Loads test scenarios
├── evaluator.py       # Scores responses
├── rollout.py         # Runs skill against scenarios
├── adapter.py         # SkillOpt integration
├── config.yaml        # Training config
├── skills/
│   └── initial.md     # Current skill text (seed)
└── data/
    ├── train/items.json
    ├── val/items.json
    └── test/items.json

Evaluation Dimensions

Each scenario is scored on three dimensions:

DimensionWeightWhat it checks
Commands40%Correct commands present in response
Anti-patterns30%No forbidden patterns (--ours, --theirs, force push, etc.)
Behaviors30%Expected behaviors demonstrated

A scenario passes if the weighted soft score ≥ 0.6.

After Optimization

If --optimize is used, SkillOpt produces best_skill.md — the optimized version. Review it before adopting:

  1. Read the optimized skill
  2. Check that it preserves the original intent
  3. Verify it doesn't overfit to the test scenarios
  4. Merge improvements into the original skill

Anti-Patterns

  1. Do NOT optimize without test scenarios — you need data to validate against
  2. Do NOT blindly adopt optimized skills — review for correctness
  3. Do NOT run optimization on skills that are already passing all scenarios
  4. Do NOT use a different model for optimization than what the skill targets

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.