Tooluck logoTooluck
SKILL.md

skillopt-sleep

Agent skill frommicrosoft/SkillOpt

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, learn preferences, consolidate memory/skills, run dry-run/run/adopt/status for SkillOpt-Sleep, or schedule background self-optimization. Drives the skillopt_sleep engine: harvest past sessions -> mine recurring tasks -> replay through a selected backend -> consolidate validated memory + skills 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/codex/skills/skillopt-sleep/

# into

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

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

plugins/codex/skills/skillopt-sleep/SKILL.md

MITFull file
1# SkillOpt-Sleep: usage-driven self-evolution for a local Codex agent
2
3SkillOpt-Sleep gives the user's Codex agent a sleep cycle. On demand or on a
4nightly schedule, it reviews past local sessions, re-runs recurring tasks
5through the selected backend, and proposes changes to a configured skill and to
6the project's `CLAUDE.md`. With the default validation gate enabled, it keeps
7only changes that improve a held-out score. Live files change only through
8explicit adoption or a user-requested `--auto-adopt`. There is no model-weight
9training.
10
11The current shared engine does **not** write `AGENTS.md`. For a Codex-visible
12result, always select a Codex skill explicitly with `--target-skill-path` (for
13example `.agents/skills/<name>/SKILL.md`). If project `CLAUDE.md` is not a
14desired secondary target, set `"evolve_memory": false` in
15`~/.skillopt-sleep/config.json` before running.
16
17## When to use
18
19Trigger when the user wants any of:
20
21- Codex to learn from past sessions or get better the more they use it;
22- a nightly/scheduled or on-demand sleep/dream/offline self-improvement run;
23- to review past sessions and distill recurring tasks;
24- to consolidate feedback into memory or managed skills;
25- to run `status`, `harvest`, `dry-run`, `run`, or `adopt` for SkillOpt-Sleep.
26
27## The cycle
28
291. **Harvest** - read local session transcripts according to the engine
30 configuration and normalize them into session digests.
312. **Mine** - turn digests into recurring `TaskRecord`s with outcomes and
32…

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