Tooluck logoTooluck
SKILL.md

skillopt-sleep

Agent skill frommicrosoft/SkillOpt

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, 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: harvest past sessions -> mine recurring tasks -> replay through a selected backend -> consolidate validated CLAUDE.md/SKILL.md behind a held-out gate.

How to install skillopt-sleep

install skillopt-sleep
# install the SkillOpt pack with the skills CLI
npx skills add microsoft/SkillOpt

# or add only this skill to Claude Code: copy the folder

plugins/claude-code/skills/skillopt-sleep/

# into

~/.claude/skills/skillopt-sleep/ (all projects)

.claude/skills/skillopt-sleep/ (one project)

plugins/claude-code/skills/skillopt-sleep/SKILL.md

MITFull file
1# SkillOpt-Sleep: usage-driven self-evolution for a local Claude agent
2
3SkillOpt-Sleep gives the user's agent a **sleep cycle**. On demand or on a
4nightly schedule, it reviews real past Claude Code sessions, re-runs recurring
5tasks through the selected backend, and consolidates what it
6learns into **memory** (`CLAUDE.md`) and **skills** (`SKILL.md`). With the
7default validation gate enabled, it keeps only changes that improve a held-out
8score. Live files change only through explicit adoption or a user-requested
9`--auto-adopt`. It aims to improve this user's recurring work, while making
10each accepted proposal measurable on the run's held-out tasks,
11with no model-weight training. It is the deployment-time analogue of training:
12short-term experience → long-term competence.
13
14It synthesizes three ideas:
15- **SkillOpt** — the skill/memory doc is trainable text; bounded add/delete/replace
16 edits; accepted only through a held-out gate; rejected edits are recorded in
17 the run report for review.
18- **Claude Dreams** — consolidation that reads past sessions and proposes changes
19 inside protected learned blocks; the input is never mutated, and output is
20 reviewed before adoption.
21- **Agent sleep** — periodic background replay turns episodes into durable skill.
22
23## When to use this skill
24
25Trigger when the user wants any of:
26- "make my agent learn from how I use it" / "get better the more I use it" / "remember my preferences across sessions"
27…

Excerpt shown under the repository's MIT license.

More skills in SkillOpt

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates