skillopt-sleep
Run or manage the SkillOpt-Sleep self-evolution cycle (review past sessions, replay tasks through a selected backend, consolidate validated memory + skills, or…
Run the SkillOpt-Sleep cycle with the handoff backend — no API subprocess; this session answers the engine's model calls via prompt/answer files, in isolated fresh-context subagents
$ npx -y skills add microsoft/SkillOpt --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/skillopt-sleep-handoffContext preview
What this command does when you run it.
Run the SkillOpt-Sleep cycle with the handoff backend — no API subprocess; this session answers the engine's model calls via prompt/answer files, in isolated fresh-context subagents
description: Run the SkillOpt-Sleep cycle with the handoff backend — no API subprocess; this session answers the engine's model calls via prompt/answer files, in isolated fresh-context subagents argument-hint: "[run | dry-run] [--preferences \"...\"] (default: run)" allowed-tools: Bash, Read, Write, Task
You are driving **SkillOpt-Sleep in handoff mode**: the Python engine runs every deterministic stage (harvest → mine → replay scoring → gate → stage) and outsources each model call (attempt / judge / reflect) to YOU via prompt files. No `claude -p` subprocess, no API key — the model work runs on this session's budget, but each prompt MUST be answered in a fresh, isolated context so the validation gate stays honest.
(If `$ARGUMENTS` is empty, treat it as `run`.)
Repeat until the engine exits 0 (done) — at most 8 rounds:
1. **Run the engine** via the bundled runner. Split `$ARGUMENTS` into the action and remaining options, and preserve those options on every resumed round:
"${CLAUDE_PLUGIN_ROOT}/scripts/sleep.sh" <action> --backend handoff --project "$(pwd)" --scope invoked <remaining options>2. **Read the batch**: `Read` `.skillopt-sleep-handoff/pending.json` in the project. Each entry has `id`, `prompt`, `max_tokens`, `answer_file`.
3. **Answer each prompt in ISOLATION** — this is the integrity rule:
the `prompt` text verbatim. Add nothing: no summary of this session, no mention of SkillOpt, no other prompts from the batch.
commentary, no code fences) to the entry's `answer_file`.
mined tasks and their references, so inline answers would contaminate the held-out gate and fake the improvement score.
4. **Re-run the same engine command** — it resumes from the answers directory and either finishes or stages the next batch.
and show the user: held-out baseline → candidate score, the gate decision, the proposed edits, and where the proposal is staged. If an accepted proposal was staged, tell the user nothing live changed, inspect `status`, and offer the exact reviewed selection: `adopt --legacy`, repeatable `adopt --skill NAME`, or `adopt --all-skills`.
final stdout instead.
do not delete it yourself.
that, with a backup.
one, so sessions created while answering prompts cannot shift the task set. Do not edit that file.
want re-processed, stop and ask before answering.
guarantee that prompts are free of sensitive data. Treat the pending batch as private user data and do not copy it into chat, logs, or commits.
Train agent skills like you train neural networks — with epochs, (mini-)batchsize, learning rates, and validation gates — but without touching model weights.
Run or manage the SkillOpt-Sleep self-evolution cycle (review past sessions, replay tasks through a selected backend, consolidate validated memory + skills, or…