skillopt-sleep
Use when the user wants Cursor to learn from recent local sessions, asks for an offline sleep or dream cycle, wants to consolidate recurring work into a…
Skill by microsoftOfficial
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/microsoft-skillopt-sleep-6b30c7
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/skillopt-sleep
What's inside
- Skill name
skillopt-sleep- Description
- Use when the user wants Cursor to learn from recent local sessions, asks for an offline sleep or dream cycle, wants to consolidate recurring work into a Cursor skill, or requests SkillOpt-Sleep status, harvest, dry-run, run, scheduling, review, or adoption. Drives the validation-gated skillopt_sleep engine with Cursor transcripts and the optional Cursor Agent CLI backend.
- License
- MIT
- Instructions
- 223 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# SkillOpt-Sleep for Cursor SkillOpt-Sleep reviews recent local Cursor sessions, mines recurring tasks, replays those tasks, and proposes bounded improvements to a project Cursor skill. With the default gate enabled, a proposal is accepted only when it improves the held-out score. A normal run stages the proposal for review; nothing live changes until explicit adoption. There is no model-weight training. This plugin has no session-end hook and no MCP server. Run the cycle only when the user asks, or install a schedule only when the user explicitly requests one. ## Cursor target Always use this project-relative target for Cursor-visible learning: ```text .cursor/skills/skillopt-sleep-learned/SKILL.md ``` Pass it through `--target-skill-path` on `harvest`, `dry-run`, and `run`. Without an explicit target, the shared engine uses a Claude-managed skill under `~/.claude/skills`, which is not the intended Cursor project skill. The shared engine can also evolve project `CLAUDE.md`. If that secondary memory target is unwanted, set `"evolve_memory": false` in `~/.skillopt-sleep/config.json` before running. ## Choose the runner Use one of these supported command paths consistently: 1. Source checkout on macOS/Linux: `bash "$SKILLOPT_SLEEP_REPO/plugins/run-sleep.sh" <action> ...` 2. Source checkout on Windows: `powershell -File "$env:SKILLOPT_SLEEP_REPO\plugins\run-sleep.ps1" <action> ...` 3. Installed engine on any platform: `skillopt-sleep <action> ...` If `SKILLOPT_SLEEP_REPO` is not set and `skillopt-sleep` is unavailable, stop and explain that the engine must be installed or a SkillOpt checkout must be selected. Do not substitute a hand-written edit for the engine workflow. ## Core workflow 1. **Harvest** local Cursor JSONL transcripts read-only. 2. **Mine** recurring, checkable task records from session digests. 3. **Replay** tasks under the current skill and memory through the selected backend. 4. **Reflect** on failures and propose bounded edits. 5. **Gate** the candidate on held-out real tasks. 6. **Stage** accepted proposals under `<project>/.skillopt-sleep/staging/<timestamp>/`. 7. **Adopt** only after review, backing up existing live targets first. ## Commands Use the installed-command form below, or replace `skillopt-sleep` with the platform-specific source runner described above. ```bash TARGET_SKILL=.cursor/skills/skillopt-sleep-learned/SKILL.md # Inspect current state and the latest staged proposal. skillopt-sleep status --project "$(pwd)" # Inspect mined tasks without provider spend. skillopt-sleep harvest --project "$(pwd)" --source cursor \ --target-skill-path "$TARGET_SKILL" --max-sessions 5 --max-tasks 3 # First smoke check: deterministic and no provider calls. skillopt-sleep dry-run --project "$(pwd)" --source cursor --backend mock \ --target-skill-path "$TARGET_SKILL" --max-sessions 5 --max-tasks 3 --json # Model-driven optimization through the authenticated Cursor Agent CLI. skillopt-sleep run --project "$(pwd)" --source cursor --backend cursor \ --target-skill-path "$TARGET_SKILL" \ --max-sessions 5 --max-tasks 3 --progress # Inspect selections, then apply the reviewed managed proposal. skillopt-sleep status --project "$(pwd)" skillopt-sleep adopt --project "$(pwd)" --legacy ``` For fan-out proposals, use repeatable `--skill NAME` or `--all-skills` after review. Bare adopt deliberately refuses a night containing fan-out rows. Actions are `status`, `harvest`, `dry-run`, `run`, `adopt`, `schedule`, and `unschedule`. - Default backend is `mock`, which is deterministic and makes no provider calls. - `--backend cursor` uses the user's authenticated Cursor Agent CLI budget for model-driven mining, replay, judging, and reflection. - `--source cursor` reads `~/.cursor/projects/<workspace>/agent-transcripts/*/*.jsonl`. - `--cursor-home PATH` overrides the Cursor home used for harvesting. - `--scope invoked` selects the current workspace; `--scope all` includes every Cursor workspace. - `--cursor-path PATH` or `SKILLOPT_SLEEP_CURSOR_PATH` selects a non-default `cursor-agent` executable. - `--model NAME` or `SKILLOPT_SLEEP_CURSOR_MODEL` overrides the Cursor model. - Check model identifiers with `cursor-agent --list-models`; when cost matters, verify the billed variant in Cursor's usage reporting. - Keep live runs bounded with `--max-sessions`, `--max-tasks`, and `--progress`. - A held-out gain is evidence for that run, not a promise of general improvement. The first harvest uses a 72-hour lookback. Use `--lookback-hours N` for a wider initial window or `--lookback-hours 0` for all available history. A stateful `run`, including a no-task run, records a harvest checkpoint; later runs use the checkpoint rather than the initial lookback. Inspect counts with `harvest` or `dry-run` before the first real run because those actions do not advance state. Available backends are: - `mock` - deterministic, with no provider calls (default); - `cursor` - the authenticated Cursor Agent CLI; - `claude` - the authenticated Claude CLI; - `codex` - the authenticated Codex CLI; - `copilot` - the authenticated GitHub Copilot CLI; - `handoff` - prompt/answer files for an interactive agent session;
From microsoft/SkillOpt, MIT.
More from microsoft/SkillOpt
- 0.714score
skillopt-sleep
microsoftOfficial
Reference-only OpenClaw adaptation of SkillOpt-Sleep.
SkillAFreshness: A★ 18.7KClaude Code +9 - 0.680score
skillopt-sleep
microsoftOfficial
Use when the user wants their Claude agent to self-improve from past usage, asks about a nightly/offline 'sleep' or 'dream' cycle, memory/skill consolidation…
SkillBFreshness: B★ 18.7KClaude Code +9 - 0.680score
skillopt-sleep
microsoftOfficial
Use when the user wants Codex to self-improve from past usage, asks about a nightly/offline 'sleep' or 'dream' cycle, wants Codex to review past sessions…
SkillBFreshness: B★ 18.7KClaude Code +9 - 0.680score
skillopt-sleep
microsoftOfficial
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…
SkillBFreshness: B★ 18.7KClaude Code +9
Signals
- Stars
- 18,658
- Forks
- 1,768
- Open issues
- 32
- Last commit (this folder)
- Aug 20, 2026 (2 months ago)
- Last release
- Jul 2, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/microsoft/SkillOpt
- Website
- aka.ms/skillopt
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from microsoft
- 0.714score
skillopt-sleep
microsoftOfficial
Reference-only OpenClaw adaptation of SkillOpt-Sleep.
SkillAFreshness: A★ 18.7KClaude Code +9 - 0.707score
Playwright MCP
microsoftOfficial
Playwright Tools.
ConnectorAFreshness: ALocal★ 38.6KClaude Code +5 - 0.687score
squad
microsoftOfficial
Squad's command catalog and interactive menu.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.687score
coordinator-response-mode
microsoftOfficial
Selecting WHO handles work is the Routing table; selecting HOW they handle it (Direct, Lightweight, Standard, Full) is Response Mode.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.687score
coordinator-source-of-truth
microsoftOfficial
The complete file-by-file source-of-truth hierarchy for Squad: which files are authoritative, which are derived/append-only, who may write each one, who may…
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.687score
squad-commands
microsoftOfficial
Categorized catalog of common Squad operations.
SkillAFreshness: A★ 1.4KClaude Code +9
Cite this page
skillopt-sleep. Agent Mart. https://agentmart.dev/skills/microsoft-skillopt-sleep-6b30c7 (last updated 2026-10-24)