- name
Use when the user wants the dsh agent to self-improve from past usage, asks about a nightly/offline 'sleep' or 'dream' cycle, skill/memory consolidation, or says things like 'make my agent better the
SKILL.md
The skill file stays in the publisher's repository.
Paste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add microsoft/SkillOpt --skill skillopt-sleep -a cursor -yPaste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add microsoft/SkillOpt --skill skillopt-sleep -a claude-code -yPaste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add microsoft/SkillOpt --skill skillopt-sleep -a codex -yPaste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add microsoft/SkillOpt --skill skillopt-sleep -a grok -ySend the copied message in a Grok Bot chat. The Bot fetches this SKILL.md from GitHub and adds it to the skills all your Bots share.
Install this skill: https://github.com/microsoft/SkillOpt/tree/HEAD/plugins/dsh/skills/skillopt-sleepFrom the publisher
SkillOpt-Sleep is Microsoft's SkillOpt deployment-time companion engine: it reviews your past sessions (harvest), mines recurring tasks (mine), replays them through a selected backend (replay), and consolidates what it learns into skill documents behind a held-out validation gate (consolidate).
This skill drives the engine through the 7 skillopt_* tools exposed by the
dsh-skillopt plugin. The default mock backend makes no model calls, which is
useful for verifying the plumbing; a real backend consumes your API budget.
AGENTS.md / SKILL.md / managed skills<project>/.skillopt-sleep/staging/<timestamp>/. Live files are unchanged. A rejected run still has a report but no proposal files.--auto-adopt) copies staged files over live ones, backing up first.Prefer the tools over hand-editing files:
Typical flow:
# 1. check state (default mock backend, zero cost)
skillopt_status
# 2. preview the cycle
skillopt_dry_run project=<dir> source=<claude|codex|…>
# 3. real run (consumes the selected backend's API budget)
skillopt_run project=<dir> backend=<codex|claude|…> preferences="Prefer pytest; keep commits imperative."
# 4. review the report, then adopt
skillopt_adopt project=<dir>
# 5. schedule nightly at 03:17
skillopt_schedule project=<dir> hour=3 minute=17 backend=<codex>
- insert:
- id: skillopt
name: './src/index.js'
config:
backend: codex
project: /path/to/project
preferences: 'Always use async/await'
# auto-adopt is OPERATOR-ONLY — the model cannot set it
autoAdopt: false
Advanced engine keys go in ~/.skillopt-sleep/config.json:
gate_mode (on/off), gate_metric (hard/soft/mixed), gate_no_regression,
dream_rollouts, recall_k, evolve_memory / evolve_skill.
AGENTS.md / SKILL.md around skillopt_adopt; let the
engine's explicit adopt (or operator-configured --auto-adopt) apply the
staging manifest, backing up live files first.mock replay has no side effects.skillopt_harvest output=<file>), redact, set
the top-level "reviewed" to true, then replay with --tasks-file; real
backends refuse unreviewed task files.pip install skillopt
python -m skillopt_sleep.experiments.run_experiment --persona researcher --assert-improves
Deterministic synthetic demo: the score rises and the gate blocks a regression. It validates the mechanism, not effectiveness on your own tasks.
See the SkillOpt-Sleep docs for recorded results and limitations.
© 2026 Skills Rack.
---name: skillopt-sleepdescription: Use when the user wants the dsh agent to self-improve from past usage, asks about a nightly/offline 'sleep' or…---# plugins/dsh/skills/skillopt-sleep/SKILL.mdOverview
Use when the user wants the dsh agent to self-improve from past usage, asks about a nightly/offline 'sleep' or 'dream' cycle, skill/memory consolidation, or says things like 'make my agent better the more I use it', 'review my past sessions', 'learn my preferences', 'consolidate what you learned', 'run the sleep cycle', or wants to schedule background self-optimization. Drives the skillopt_sleep engine through the skillopt_* tools: harvest past sessions -> mine recurring tasks -> replay via a selected backend -> consolidate validated skills behind a held-out gate.
FAQ
Download plugins/dsh/skills/skillopt-sleep/SKILL.md from the publisher, or copy the path and open the repository. PlugMCP lists the skill and does not host the file.
The publisher keeps it at https://github.com/microsoft/SkillOpt.
Claude, Cursor, Codex, and Grok Build can read a SKILL.md you add from the publisher's repository. Grok Bot installs it when you send the skill's GitHub folder link in a chat.