Skills for Real Engineers. Straight from my .agents directory.
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
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)
1# SkillOpt-Sleep: usage-driven self-evolution for a local Codex agent23SkillOpt-Sleep gives the user's Codex agent a sleep cycle. On demand or on a4nightly schedule, it reviews past local sessions, re-runs recurring tasks5through the selected backend, and proposes changes to a configured skill and to6the project's `CLAUDE.md`. With the default validation gate enabled, it keeps7only changes that improve a held-out score. Live files change only through8explicit adoption or a user-requested `--auto-adopt`. There is no model-weight9training.1011The current shared engine does **not** write `AGENTS.md`. For a Codex-visible12result, always select a Codex skill explicitly with `--target-skill-path` (for13example `.agents/skills/<name>/SKILL.md`). If project `CLAUDE.md` is not a14desired secondary target, set `"evolve_memory": false` in15`~/.skillopt-sleep/config.json` before running.1617## When to use1819Trigger when the user wants any of:2021- 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.2627## The cycle28291. **Harvest** - read local session transcripts according to the engine30 configuration and normalize them into session digests.312. **Mine** - turn digests into recurring `TaskRecord`s with outcomes and32…
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
