SkillOpt-Sleep

Offline nightly sleep-cycle that mines past sessions and gates CLAUDE.md/SKILL.md edits.

Tested · Works

Test report

Verdict
Tested · Works
Score
9.2/10
Tested
Jul 10, 2026
Environment
Claude Code 2.x (agent harness)
Upstream re-checked
Jul 18, 2026 · 22337ba

Compared a naive direct-rewrite approach against the skill's stage-then-gate-then-adopt flow with backups; reading the actual gate code confirmed the harmful-edit block is implemented exactly as documented.

Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works

  • Installs cleanly 5/5
  • Triggers reliably 5/5
  • Output vs. baseline 8/10
  • Docs & honesty 5/5

What SkillOpt-Sleep does

SkillOpt-Sleep runs an offline six-stage cycle -- harvest past Claude Code session logs, mine recurring tasks, replay them under the current skill/memory, and propose bounded CLAUDE.md/SKILL.md edits -- but only stages the results and requires a held-out validation gate to pass before any live file is touched. It triggers on phrases like 'run the sleep cycle,' 'learn my preferences,' or 'consolidate what you learned.' Ships as a real Claude Code plugin backed by a Python package, with a deterministic mock-backend demo that proves the gate blocks harmful edits without spending API budget.

How to install SkillOpt-Sleep

git clone https://github.com/microsoft/SkillOpt
cd SkillOpt
mkdir -p ~/.claude/skills
cp -r plugins/claude-code/skills/skillopt-sleep ~/.claude/skills/skillopt-sleep

Skills live in ~/.claude/skills/ (global) or .claude/skills/ (per-project). Restart Claude Code after installing.

Commands — how to trigger SkillOpt-Sleep

  • /skillopt-sleep Offline nightly sleep-cycle that mines past sessions and gates CLAUDE.md/SKILL.md edits.

It also activates on plain-language prompts like these:

  • Run the sleep cycle to mine my past sessions for recurring tasks
  • Learn my preferences and propose gated edits to CLAUDE.md
  • Consolidate what you learned from past sessions into SKILL.md

Frequently asked questions

Is the SkillOpt-Sleep skill free?
Yes. The skill itself is free from microsoft/SkillOpt. SkillProof publishes the install command and an independent test verdict at no cost.
Does SkillOpt-Sleep work with Claude Code?
We tested it with Claude Code 2.x (agent harness) on Jul 10, 2026. Verdict: Tested · Works. Compared a naive direct-rewrite approach against the skill's stage-then-gate-then-adopt flow with backups; reading the actual gate code confirmed the harmful-edit block is implemented exactly as documented.
What is the SkillOpt-Sleep SkillProof Score?
9.2/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 8/10, docs & honesty 5/5.
How do I install SkillOpt-Sleep?
Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
Can I use SkillOpt-Sleep with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.