PicoClaw Agent
sipeed/picoclaw
Answers questions about running and changing PicoClaw, from onboarding and model selection to MCP server setup, skill loading and scheduled jobs.
Runs a usage-driven self-improvement cycle for the dsh agent: harvest past sessions, mine recurring tasks, replay them and stage validated skill edits.
$ npx skills add microsoft/SkillOpt --skill skillopt-sleep -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install microsoft/SkillOpt skillopt-sleep --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/microsoft/SkillOpt.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/dsh/skills/skillopt-sleep .claude/skills/skillopt-sleep && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "skillopt-sleep" agent skill from https://github.com/microsoft/SkillOpt/tree/main/plugins/dsh/skills/skillopt-sleep into .claude/skills/skillopt-sleep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skillopt-sleep", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/microsoft/SkillOpt/tree/main/plugins/dsh/skills/skillopt-sleepType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add microsoft/SkillOpt --skill skillopt-sleep -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install microsoft/SkillOpt skillopt-sleep --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/SkillOpt.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/dsh/skills/skillopt-sleep .agents/skills/skillopt-sleep && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "skillopt-sleep" agent skill from https://github.com/microsoft/SkillOpt/tree/main/plugins/dsh/skills/skillopt-sleep into .agents/skills/skillopt-sleep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skillopt-sleep", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add microsoft/SkillOpt --skill skillopt-sleep -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install microsoft/SkillOpt skillopt-sleep --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/SkillOpt.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/dsh/skills/skillopt-sleep .cursor/skills/skillopt-sleep && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "skillopt-sleep" agent skill from https://github.com/microsoft/SkillOpt/tree/main/plugins/dsh/skills/skillopt-sleep into .cursor/skills/skillopt-sleep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skillopt-sleep", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/microsoft/SkillOpt.git --path plugins/dsh/skills/skillopt-sleep--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add microsoft/SkillOpt --skill skillopt-sleep -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install microsoft/SkillOpt skillopt-sleep --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/SkillOpt.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/dsh/skills/skillopt-sleep .gemini/skills/skillopt-sleep && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "skillopt-sleep" agent skill from https://github.com/microsoft/SkillOpt/tree/main/plugins/dsh/skills/skillopt-sleep into .gemini/skills/skillopt-sleep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skillopt-sleep", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install microsoft/SkillOpt skillopt-sleepInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add microsoft/SkillOpt --skill skillopt-sleep -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/microsoft/SkillOpt.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/dsh/skills/skillopt-sleep .github/skills/skillopt-sleep && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "skillopt-sleep" agent skill from https://github.com/microsoft/SkillOpt/tree/main/plugins/dsh/skills/skillopt-sleep into .github/skills/skillopt-sleep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skillopt-sleep", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add microsoft/SkillOpt --skill skillopt-sleep -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install microsoft/SkillOpt skillopt-sleep --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/SkillOpt.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/dsh/skills/skillopt-sleep .opencode/skills/skillopt-sleep && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "skillopt-sleep" agent skill from https://github.com/microsoft/SkillOpt/tree/main/plugins/dsh/skills/skillopt-sleep into .opencode/skills/skillopt-sleep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "skillopt-sleep", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skillopt-sleepRuns a usage-driven self-improvement cycle for the dsh agent: harvest past sessions, mine recurring tasks, replay them and stage validated skill edits.
SkillOpt-Sleep is the deployment-time companion engine of Microsoft's SkillOpt. It works in six stages: harvest local session records read-only, mine recurring tasks, replay them with the selected backend, consolidate by reflecting on failures and proposing bounded edits behind a held-out validation gate, stage accepted proposals in a project folder, and adopt them on explicit request. Live files stay unchanged until adoption, and adoption backs them up first.
The agent drives it through seven skillopt tools: status, dry run, run, adopt, harvest, and schedule and unschedule for a nightly cron entry. The default mock backend makes no model calls and is useful for checking the plumbing, while a real backend consumes your API budget. Typical targets are AGENTS.md, SKILL.md and managed skills.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 343db22. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pippythonFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
SkillOpt Sleep Cycle loads about 1.4k tokens when it runs. Until then it costs about 146 tokens; SKILL.md has 486 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from microsoft/SkillOpt at commit 343db22, republished under its MIT licence (© microsoft). 486 words, ~1,436 tokens.
.claude/skills/skillopt-sleep/SKILL.md (or your agent's skills folder).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:
| Tool | Behavior |
|---|---|
skillopt_status | state, engine availability, latest staged proposal & report |
skillopt_dry_run | full preview (harvest+mine+replay), stages nothing |
skillopt_run | full cycle, stages a proposal (live files unchanged by default) |
skillopt_adopt | apply latest staged proposal (with backup) — the live-change boundary |
skillopt_harvest | read-only show/export of mined tasks |
skillopt_schedule / skillopt_unschedule | install/remove the nightly cron entry for this project |
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>| Parameter | Default | Meaning |
|---|---|---|
project | config or cwd | project directory to evolve |
backend | mock | mock|claude|codex|copilot|cursor|pi|opencode|handoff|azure_openai (mock = no model calls) |
source | config | transcript source: claude|codex|copilot|cursor|pi|opencode|auto |
model | backend default | replay model override |
maxTasks | 40 | mined-task cap |
preferences | empty | house rules for the reflection prior (e.g. "always use async/await") |
- 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: falseAdvanced 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-improvesDeterministic 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.
© microsoft, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in plugins/dsh/skills/skillopt-sleep of microsoft/SkillOpt.
Open the folder on GitHubat commit 343db22
SkillOpt Sleep Cycle next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| SkillOpt Sleep Cycle this skillmicrosoft/SkillOpt | 18k | — | ~1.4k | Automated safety check: Pass | MIT | |
| PicoClaw Agentsipeed/picoclaw | 30k | — | ~7.2k | Automated safety check: Notes | MIT | |
| Watchmen Setupfirstbatchxyz/watchmen | 297 | — | ~1.1k | Automated safety check: Notes | MIT | |
| Watchmen Setupfirstbatchxyz/watchmen | 297 | — | ~1.2k | Automated safety check: Notes | MIT | |
| MetaBot CLIxvirobotics/metabot | 990 | — | ~573 | Automated safety check: Pass | MIT | |
| Loopany Reflectsuperdesigndev/loopany | 140 | — | ~1.4k | Automated safety check: Pass | None |
sipeed/picoclaw
Answers questions about running and changing PicoClaw, from onboarding and model selection to MCP server setup, skill loading and scheduled jobs.
firstbatchxyz/watchmen
Walks through installing watchmen, running its init wizard, wiring the plugin into Codex or Claude Code and checking the result with doctor.
firstbatchxyz/watchmen
Sets up watchmen on the current machine: installs the CLI, hands off the init wizard, wires the plugin and statusline into Claude Code and Codex, and verifies with doctor.
xvirobotics/metabot
Documents the unified `metabot` CLI for personal memory, the skill hub, durable agent messaging, the agent registry, T5T status and scheduling.
superdesigndev/loopany
Runs a self-improvement loop for loopany: reads recent task outcomes and dismissed signals, finds patterns, writes learnings and skill proposals, and applies accepted ones.
diegosouzapw/OmniRoute
Command reference for the omniroute CLI's memory, plugin, marketplace and skills commands: search and manage stored memory, install and scaffold plugins, and find skill packages.
microsoft/SkillOpt
Runs an on-demand or nightly sleep cycle that reviews past Claude Code sessions and proposes validated updates to CLAUDE.md and skills.
microsoft/SkillOpt
Runs a nightly or on-demand sleep cycle for a local Codex agent: review past sessions, replay recurring tasks and stage validated skill and memory edits for adoption.
microsoft/SkillOpt
Mines recurring tasks from recent local Cursor sessions, replays them to test bounded skill edits, and stages validated improvements to a project Cursor skill for review.
microsoft/SkillOpt
Reference-only OpenClaw adaptation of SkillOpt-Sleep. Use it to study or port the contributed DeepSeek wrapper, not as a ready-to-run installation.
Categories
Runs a usage-driven self-improvement cycle for the dsh agent: harvest past sessions, mine recurring tasks, replay them and stage validated skill edits. SkillOpt-Sleep is the deployment-time companion engine of Microsoft's SkillOpt. It works in six stages: harvest local session records read-only, mine recurring tasks, replay them with the selected backend, consolidate by reflecting on failures and proposing bounded edits behind a held-out validation gate, stage accepted proposals in a project folder, and adopt them on explicit request.
SkillOpt Sleep Cycle fits situations like: letting the agent learn your preferences from past sessions; running a one-off offline self-improvement review; scheduling a nightly sleep cycle for a project; previewing proposed skill edits before applying them.
Run `npx skills add microsoft/SkillOpt --skill skillopt-sleep -a claude-code`. Or copy the skill folder (plugins/dsh/skills/skillopt-sleep in microsoft/SkillOpt) into .claude/skills/skillopt-sleep in your project. Claude Code loads it when a task matches its description.
Run `npx skills add microsoft/SkillOpt --skill skillopt-sleep -a codex`. Or copy the skill folder (plugins/dsh/skills/skillopt-sleep in microsoft/SkillOpt) into .agents/skills/skillopt-sleep in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microsoft/SkillOpt --skill skillopt-sleep -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/skillopt-sleep, .gemini/skills/skillopt-sleep, .github/skills/skillopt-sleep and .opencode/skills/skillopt-sleep in your project.
Going by SKILL.md and its folder, SkillOpt Sleep Cycle needs the command-line tools its instructions call (pip and python). Our summary lists: The dsh-skillopt plugin with its skillopt tools; API budget when using a real backend.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
SkillOpt Sleep Cycle is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with SkillOpt Sleep Cycle: PicoClaw Agent (sipeed/picoclaw, 30k stars), Watchmen Setup (firstbatchxyz/watchmen, 297 stars), Watchmen Setup (firstbatchxyz/watchmen, 297 stars) and MetaBot CLI (xvirobotics/metabot, 990 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
microsoft (a GitHub organization, an official publisher) maintains it in microsoft/SkillOpt, which has 18,087 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 6, 2026.
Source: microsoft/SkillOpt on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.