Logo: Skillopt

Skillopt

Organisatioun
skillberry-ai
skillopt

Féiert d'SkillOpt-Optimiséierungsschleef mat enger eenzeger Entwécklungslinn aus. Si deelt Hill-Climb an Epochen op, déi jeeweils Minibatches vun Train-Aufgaben ënner engem textuelle Léier-Taux ofschaffen — engem ganzzueleger Ännerungsbudget, dee no engem konstante, linearen oder kosinusfërmege Schema schrumpft. Um Enn vun all Epoch kënnt ee weidere Konsolidéierungsschrëtt mat Gate derbäi. Den Elterekandidat ass ëmmer de momentan beschte Kandidat; d'Val-Signifikanzschwell decidéiert iwwer d'Unhuele vun Ännerungen. Benotzt dëse Skill, wann e Duerchlaf mat breeden Ännerunge soll ufänken, déi no an no méi kleng ginn, an d'Resultater eemol pro Epoch konsolidéiert solle ginn — amplaz vun Hill-Climb sengem eenzege Virschlag fir de ganzen Trainingssaz oder der Pareto-Frontière vu gepa.

Add to TypingMind

Iwwersiicht

Editeurskillberry-ai
Repositorycap-evolve
Skill-Nummskillopt
Stären
67
Forks
18
Matgeliwwert Dateien
6
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 6 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    skillberry-ai huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Skillopt an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/skillberry-ai/cap-evolve/tree/main/skills/algorithms/skillopt
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/skillberry-ai/cap-evolve.git /tmp/cap-evolve
mkdir -p .claude/skills
cp -r /tmp/cap-evolve/skills/algorithms/skillopt .claude/skills/skillopt
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Skillopt an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Skillopt automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Skillopt net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

skillopt — annealed single-lineage climb (epochs × mini-batches)

SkillOpt (arXiv:2605.23904, Executive Strategy for Self-Evolving Agent Skills) organizes a hill-climb into epochs × mini-batches under a decaying integer edit budget. The name is the paper's; the algorithm edits whatever the selected capability owns — a prompt, a tool surface, a skill package — and never assumes which.

Read the shared step first, then this file. Parent materialization, the optimizer call, the val evaluation, the significance gate, accept/reject, snapshot/best, the memory and handover files: all of that is harness.run_step, documented once in algorithms/hill-climb/SKILL.md § "One iteration, end to end" and algorithms/hill-climb/references/run-step.md. This file states only what SkillOpt does differently.

Know the bound before reaching for this algorithm: run_step lets a caller vary exactly two things — parent_dir and instructions. SkillOpt pins parent_dir to the current best, identical to hill-climb, so everything novel lives in the instructions string plus the choice to run one extra step per epoch. It is prompt shaping and step scheduling, not a different search.

What SkillOpt does differently

  1. A decaying integer edit budget L. lr_schedule.build_schedule emits one integer per step over constant | linear | cosine, clamped to [--min-edit-budget, --edit-budget] (core/cap_evolve/lr_schedule.py:42-55). L is stated to the optimizer in prose — "at most L bounded edits" — and is never mechanically enforced. See the next section before you tune it.
  2. A per-epoch rejected-edit list. Each reject appends its candidate id and val Δ, and the next step's prompt asks the optimizer to avoid them (skillopt.py:120-125, :330-335). It carries no description of what the rejected edit changed, so treat it as a weak signal — the run-global LEDGER.md that run_step already injects names the tasks each prior edit broke and fixed, which is strictly more useful.
  3. One extra gated step per epoch boundary (from epoch 2). It compares the epoch-start candidate against the current best, buckets tasks as regressed / persistent-failure / stable-success, and asks for a consolidating edit that fixes regressions without breaking the stable passes. It goes through the same run_step and the same val gate — it is never force-accepted (skillopt.py:493-499). Disable with --no-slow-update. A fourth bucket, improved, is computed and logged but is not exclusive with the others and never reaches the prompt (skillopt.py:184-191, :139-166).

Epochs shuffle the train ids seeded by epoch number, so a rerun is reproducible. steps_per_epoch = ceil(len(train) / (batch_size × accumulation)).

The textual learning rate, stated without the analogy

The knob is real: L decays, it is an integer, and the schedules are correct. The justification is weaker than the ML vocabulary implies, and pretending otherwise would mislead anyone tuning it.

What plausibly holds: the gate accepts or rejects a whole candidate. A candidate bundling six edits where five help and one hurts is rejected entirely, and you learn nothing about which edit was the problem. Fewer edits per candidate means an accepted candidate is more likely to contain only good edits and a rejected one is cheaper to attribute and revert. That argues for small edits — it does not by itself argue for decay.

What does not transfer: in SGD, LR decay exists because nothing stops a large step from overshooting near an optimum. Here the val significance gate already rejects an overshooting edit before it can become the parent. The overshoot protection is the gate, so the decay is not doing that job.

What is unmeasured: no ablation in this repo isolates the schedule's effect. At realistic step counts the choice barely exists — over 12 steps from 4 down to 2, linear and cosine differ at 2 of 12 positions. Prefer constant or linear and spend your tuning budget on --n-trials and the gate instead. This is a heuristic that has not been isolated; do not present it as a proven one.

Known gaps

These are shipped-behavior defects in core/cap_evolve/skillopt.py. The skill describes what the code does today, not what it intends to do. Line numbers are against current main — check them; if one no longer says what it is cited for, the gap has moved and this section is what needs re-deriving.

  • The mini-batch never reaches the optimizer (issue #371). Mini-batch ids come from train (skillopt.py:237, sliced at :291) but are handed to ctx.instructions (:300) to filter the parent's val rows (harness.py:2270-2272; the same train-vs-val mismatch at :323, :327), and splits are disjoint slices (splits.py:117-119). So the focus summary always renders 0 solid / 0 flaky / 0 failing of 0 focused task(s) of N on val, the failure index is empty, and ## Failure patterns still unsolved never appears — while the (mini-batch of N train tasks, L=…) label still prints, which is why it looked healthy. (The whole-val protect-these-ids block is populated, from harness.py:2279 — that is the only per-task content a step gets, and #391 added the of N on val scope precisely so those two numbers stop contradicting each other.) Until #371 lands the per-step signal is the label plus the L sentence, so the epoch/mini-batch structure is bookkeeping rather than focus. PR #370 fixed the same defect in hill-climb's cyclic/hardest-first modes.
  • The epoch-boundary re-evaluation scores the whole train split, not a sample. skillopt.py:467-472 calls evaluate_candidate(..., split="train") twice with no ids=, then discards everything outside the ~20 sampled ids (:473-475). Budget it as 2 × len(train) × n_trials rollouts per boundary.
  • When an epoch accepted nothing, the comparison is vacuous. The re-eval is guarded by prev_epoch_best_id != run_dir.best_id (skillopt.py:464); if nothing moved, both sides stay current_val — the same list — so 0 regressed and 0 improved are reported over val tasks while the log line claims a train sample size (:478-482). The consolidation step still runs.
  • requested_edits vs applied_changes surfaces nothing, and the number is wrong. _changed_components (skillopt.py:406-435) counts files whose bytes differ, not edits, and applied_changes is written at :346/:353 and read nowhere — no dashboard column, no check, no warning. It also over-counts, because its ignore list (:420) matches seven .md basenames while run_step injects a whole read-context — guidance/, trajectories/, prior_iterations/*/diff.patch — that _SNAPSHOT_IGNORE keeps out of the parent snapshot, so every injected file reads as an applied edit. Measured zero-API on examples/toy_calc at L=4: a step whose optimizer edited exactly one file logged applied_changes: 10 (9 injected + 1 real), and the next step logged 10 again with the capability file byte-identical to its parent. The metric has no zero, so it cannot detect the one thing it exists to detect: an optimizer that made no edit at all.
  • "skill" leaks into the live prompt. skillopt.py:147 tells the optimizer to compare "the skill" regardless of which capability is under optimization. An algorithm must be capability-agnostic; this text is not.

Key flags

--epochs, --batch-size, --accumulation (mini-batches per step; multiplies the effective batch), --edit-budget / --min-edit-budget / --lr-schedule, --slow-update-sample, --no-slow-update. --resume, --no-regression, --n-trials, --workers, --gate-mode, --k-se, --protected-paths, --store behave as in hill-climb.

--max-iterations is accepted and ignored — the loop is epoch-driven, so cap-evolve run's iteration cap has no effect here (scripts/run.py:42-43, whose help text now says so). Control the step count with --epochs/--batch-size.

bash
python scripts/run.py --run-dir .capevolve/run_X --project .capevolve/project \
  --optimizer 'python .../run-optimizer/scripts/run.py --name mock --workdir {workdir} --prompt {prompt}' \
  --epochs 4 --batch-size 8 --accumulation 1 \
  --edit-budget 4 --lr-schedule linear --min-edit-budget 2 --n-trials 4

Requires baseline.json first, like its sibling algorithms.

References

  • references/concepts.md — the loop step by step, the schedule shapes with worked values, and the buffer / consolidation mechanics. Load it when you need to change the loop or reason about its rollout cost, not to run it.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Skillopt?

Féiert d'SkillOpt-Optimiséierungsschleef mat enger eenzeger Entwécklungslinn aus. Si deelt Hill-Climb an Epochen op, déi jeeweils Minibatches vun Train-Aufgaben ënner engem textuelle Léier-Taux ofschaffen — engem ganzzueleger Ännerungsbudget, dee no engem konstante, linearen oder kosinusfërmege Schema schrumpft. Um Enn vun all Epoch kënnt ee weidere Konsolidéierungsschrëtt mat Gate derbäi. Den Elterekandidat ass ëmmer de momentan beschte Kandidat; d'Val-Signifikanzschwell decidéiert iwwer d'Unhuele vun Ännerungen. Benotzt dëse Skill, wann e Duerchlaf mat breeden Ännerunge soll ufänken, déi...

Firwat Skillopt op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Skillopt besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Skillopt an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/skillberry-ai/cap-evolve/tree/main/skills/algorithms/skillopt an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Skillopt benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Skillopt benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Skillopt domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Skillopt gratis?

Jo. skillberry-ai huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇