Skills for Real Engineers. Straight from my .agents directory.
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
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)
1# SkillOpt-Sleep: usage-driven self-evolution for a local Claude agent23SkillOpt-Sleep gives the user's agent a **sleep cycle**. On demand or on a4nightly schedule, it reviews real past Claude Code sessions, re-runs recurring5tasks through the selected backend, and consolidates what it6learns into **memory** (`CLAUDE.md`) and **skills** (`SKILL.md`). With the7default validation gate enabled, it keeps only changes that improve a held-out8score. Live files change only through explicit adoption or a user-requested9`--auto-adopt`. It aims to improve this user's recurring work, while making10each 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.1314It synthesizes three ideas:15- **SkillOpt** — the skill/memory doc is trainable text; bounded add/delete/replace16 edits; accepted only through a held-out gate; rejected edits are recorded in17 the run report for review.18- **Claude Dreams** — consolidation that reads past sessions and proposes changes19 inside protected learned blocks; the input is never mutated, and output is20 reviewed before adoption.21- **Agent sleep** — periodic background replay turns episodes into durable skill.2223## When to use this skill2425Trigger 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
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
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
