skillopt-sleep
Skill18k starsChanged 4 months agoMITView on GitHub
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.
2 other projects use a version of this, 1 of them edited.
Trending
Less talk lately.about the whole repository
Most recently taken up by
- Hassaan146/claude-skillstheir own version, first seen Jul 25, 2026
- wm2313/my-skillsedited, first seen Jul 2, 2026
Who's talking about microsoft/SkillOpt
- @camilleroux.com“SkillOpt (Microsoft) : un optimizer de skills en langage naturel pour agents LLM. Le skill s'améliore via …”Bluesky · Aug 21, 2026 · 6 likes
- A Hacker News story“SkillOpt: Executive Strategy for Self-Evolving Agent Skills”Hacker News · Jul 6, 2026 · 2 points
- bradygaster/squad“Think about using SkillOpt”GitHub · Sep 17, 2026 · 1 reactions
- All-The-Vibes/ATV-Phoenix“feat(learn): adopt SkillOpt-style bounded-edit proposer -- keep the measured-gain gate”GitHub · Jul 29, 2026 · 1 reactions
- @agentpalisade.bsky.social“SkillOpt treats a single skill document as trainable state, editing it through validation-gated updates …”Bluesky · Jul 28, 2026 · 1 likes
The biggest 5 of 51 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 51
Talked about on GitHub, Bluesky and Hacker News (51 times).
On GitHub · 48
- Sep 17, 2026Think about using SkillOpt — bradygaster/squad1 reaction · 3 comments
- Jul 29, 2026feat(learn): adopt SkillOpt-style bounded-edit proposer -- keep the measured-gain gate — All-The-Vibes/ATV-Phoenixsays it tested it1 reaction
- Oct 24, 2026[Plugin]: SkillOpt-Sleep (dsh-skillopt) — kaixinbaba/dshub1024-submissions0 reactions
- Oct 18, 2026A skill trainer: optimize a plugin's skill with SkillOpt, starting from Jira — lucabro81/mercury-fw0 reactions · 8 comments
- Oct 15, 2026[P1][Research] Evaluate SkillOpt mechanisms for role guidance and offline reliability evaluation — catchmeee2002/cc-builder-loop0 reactions
43 more on GitHub
- Oct 11, 2026Spike: validate SkillOpt for optimising Snotra's skills — kkrafft1999/snotra0 reactions
- Oct 8, 2026[Candidate] microsoft/skillopt/plugins/cursor/skills/skillopt-sleep - skillopt-sleep — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 8, 2026[Candidate] microsoft/skillopt/plugins/claude-code/skills/skillopt-sleep - skillopt-sleep — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 5, 2026feat: integrate an eval-gated skill improvement loop — Goldziher/ai-rulez0 reactions · 1 comment
- Oct 4, 2026Clean up the Google Sheet so the graph gets real topics (Category values, duplicates, empty tabs) — Amitro123/knowledgeBase-Agent0 reactions · 3 comments
- Oct 3, 2026AET learning plane: governed intake of EvoSkill and SkillOpt -- pinned provenance, read-only security review, PROPOSED registration (nothing executed) — bstBizEra/badf0 reactions
- Sep 30, 2026agent-skills.github.microsoft.skillopt: init at 0.2.0 — sudosubin/agents.nix0 reactions
- Sep 29, 2026[Research] Trajectory diagnosis → evidence eval → validation-gated improvement — serevy/agent-kpt0 reactions · 4 comments
- Sep 29, 2026feat(catalog): add SLSA provenance review skill — turenlabs/turenos0 reactions · 1 comment
- Sep 28, 2026Skills Optimiser — Beneficial-AI-Foundation/formal-verification-skills0 reactions
- Sep 27, 2026[Research] Agentic Evidence / Skill Evolutionの外部事例をPDDRへどう接続するか — serevy/pddr-kit0 reactions · 4 comments
- Sep 12, 2026Build Ascendant skill assurance and tighten council routing — jeffgreen726-creator/openclaw-skills0 reactions
- Sep 10, 2026Ship the strict-Dart guidance as a skill, and keep it in sync with the rules — peter-trost/flutter_agent_lints0 reactions · 2 comments
- Aug 23, 2026Prototype: SkillOpt evaluation spike - skill optimizer behind the §31 port (ADR-016) — rian010194/cortxt0 reactions · 2 comments
- Aug 15, 2026Eval infrastructure: measure whether a skill rewrite still routes — Lancetnik/slop-writer0 reactions
- Jul 28, 2026[FEATURE] Validation-gated skill self-optimization (SkillOpt: rewrite-reject-validate loop) — Lexus2016/hermes-agent-evolution0 reactions · 1 comment
- Jul 28, 2026feat: add tk-skill-diagnose for empirical Agent Skill behavior and efficiency diagnosis — MTGVim/tiger-kit0 reactions · 1 comment
- Jul 27, 2026[FEATURE] Validation-gated skill self-optimization (SkillOpt: rewrite-reject-validate) — Lexus2016/hermes-agent-evolution0 reactions · 2 comments
- Jul 23, 2026docs(evaluating-skill-quality): SkillOpt pilot precondition-check finding (#319) — tvna/gitapex0 reactions
- Jul 22, 2026Evaluate & integrate Microsoft SkillOpt-Sleep (self-optimizing agent skills) into workspaces — imran31415/kube-coder0 reactions · 1 comment
- Jul 22, 2026Adopt SkillOpt-style validation gate and edit-optimization discipline in the improve loop — itlackey/akm0 reactions · 2 comments
- Jul 22, 2026Self-improvement loop over skills/harness (SkillOpt discipline, AIDE² safeguards) — michaeljabbour/amplifier-app-tui0 reactions · 2 comments
- Jul 16, 2026Optimization: Implement SkillOpt-style Loop for benchmarks — boston-harness-group/remote-factorysays it tested it0 reactions · 2 comments
- Jul 10, 2026fix(eval): move the SkillOpt git pin out of published metadata (unblocks the pydocs-mcp-eval publish) — msobroza/pydocs-mcp0 reactions
- Jul 4, 2026chore(skillopt-sleep): report review findings on vendored engine to upstream microsoft/SkillOpt — pleaseai/claude-code-plugins0 reactions · 2 comments
- Jul 3, 2026Audit candidate: microsoft/SkillOpt — xiaolai/nlpm0 reactions · 2 comments
- Jul 1, 2026Implement agent skill learning runtime surface — pomazanbohdan/vida-stack0 reactions
- Jun 28, 2026Eval framework: run-record telemetry contract (Option 1 keystone) — jstoup111/ai-conductor0 reactions · 2 comments
- Jun 26, 2026docs(governance): ADR-135 — agent-skill evolution gate (held-out validation, propose-and-test) [IL-559] — CarmiBanxe/banxe-architecture0 reactions · 1 comment
- Jun 16, 2026SkillOpt ビジュアル解説ページの追加 — 53able/docs-site0 reactions
- Jun 12, 2026[Feature] Implement skill_improver trigger:'scheduled' as a sleep-time consolidation pass (SkillOpt-Sleep shape) — ZaxbyHub/opencode-swarm0 reactions · 2 comments
- Jun 12, 2026[Feature] Validation-gated skill changes (SkillOpt pattern): replay-based strict-improvement gate + rejected-edit buffer before any skill is promoted — ZaxbyHub/opencode-swarm0 reactions · 2 comments
- Jun 8, 2026feat(sme): enable external skill research — ZaxbyHub/opencode-swarm0 reactions · 1 comment
- Jun 8, 2026Track opt-in SkillOpt-style external skill curation pipeline — ZaxbyHub/opencode-swarm0 reactions · 2 comments
- Jun 8, 2026[프로젝트] SkillOpt: 자연어 스킬 문서를 평가로 개선하는 방식 — sergiobuilds/til0 reactions · 1 comment
- Jun 7, 2026Add optional SkillOpt-based skill optimization setting — can1357/oh-my-pi0 reactions · 7 comments
- Jun 5, 2026Actually use microsoft/SkillOpt as an optional optimizer backend (feature 006) — objectivlabs/reposkillopt0 reactions
- Jun 5, 2026feat: SkillOpt integration + gardener memory + anti-cheat gate (建议 1+2+4) — leonluo2008-ops/hermes-skill-toolkit0 reactions · 1 comment
- Jun 1, 2026Add daily paper summary for 2026-06-01: SkillOpt — SihoonSung/Daily-Paper-Summary0 reactions
- May 29, 2026[scout:integrate] SkillOpt — Self-Evolving Agent Skills (skill optimization loop) — baekenough/oh-my-customcode0 reactions · 3 comments
- May 27, 2026[분석] SkillOpt: frozen LLM 에이전트 스킬을 텍스트 공간에서 최적화 (Microsoft Research) — roomedia/ax-trend0 reactions
- May 26, 2026[Roadmap 68] SkillOpt-lite inside adaptive skill amendments — HybridAIOne/hybridclaw0 reactions · 3 comments
- May 12, 2026may 2026 — kimtth/azure-openai-llm-notes0 reactions
On Bluesky · 2
- Aug 21, 2026SkillOpt (Microsoft) : un optimizer de skills en langage naturel pour agents LLM. Le skill s'améliore via des rollouts scorés, sans toucher… — @camilleroux.com6 likes and reposts · 2 replies
- Jul 28, 2026SkillOpt treats a single skill document as trainable state, editing it through validation-gated updates until a frozen model improves, then… — @agentpalisade.bsky.social1 likes and repost
On Hacker News · 1
- Jul 6, 2026SkillOpt: Executive Strategy for Self-Evolving Agent Skills2 points
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- wm2313/my-skills★ 071% same
Wrote their own version · 1
- Hassaan146/claude-skills★ 18same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- skillopt-sleepSkill
- skillopt-sleepSkill
- skillopt-sleepSkill
- skillopt-sleepSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
Harvest: - read local session transcripts according to the engine configuration and normalize them into session digests.
- Very specific: line 43
Stage: - write the proposal under <project>/.skillopt-sleep/staging/<date>/.
- Very specific: line 86
Default backend is mock, which is deterministic and spends no API budget.
- Very specific: line 95
Keep dry-run --backend mock as the first smoke check unless the user explicitly asked for a real optimization run.
- Distinctive: line 149
Run the requested action; capture stdout.
- Very specific: line 152
If a staging directory is printed, read report.md before summarizing.
- Distinctive: line 156
Never hand-edit the configured CLAUDE.md or target skill as a substitute for the engine's adopt path.
- Distinctive: line 168
Keep raw secrets, credentials, private user data, and transcript contents out of messages, logs, generated artifacts, and commits.
- Distinctive: line 171
Treat generated edits as proposals, not as source of truth.
- Very specific: line 172
Do not rely on deprecated custom prompts or /sleep slash commands for this Codex integration.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SkillOpt-Sleep: usage-driven self-evolution for a local Codex agent
SkillOpt-Sleep gives the user's Codex agent a sleep cycle. On demand or on a
nightly schedule, it reviews past local sessions, re-runs recurring tasks
through the selected backend, and proposes changes to a configured skill and to
the project's CLAUDE.md. With the default validation gate enabled, it keeps
only changes that improve a held-out score. Live files change only through
explicit adoption or a user-requested --auto-adopt. There is no model-weight
training.
The current shared engine does not write AGENTS.md. For a Codex-visible
result, always select a Codex skill explicitly with --target-skill-path (for
example .agents/skills/<name>/SKILL.md). If project CLAUDE.md is not a
desired secondary target, set "evolve_memory": false in
~/.skillopt-sleep/config.json before running.
When to use
Trigger when the user wants any of:
- Codex to learn from past sessions or get better the more they use it;
- a nightly/scheduled or on-demand sleep/dream/offline self-improvement run;
- to review past sessions and distill recurring tasks;
- to consolidate feedback into memory or managed skills;
- to run
status,harvest,dry-run,run, oradoptfor SkillOpt-Sleep.
The cycle
- Harvest - read local session transcripts according to the engine configuration and normalize them into session digests.
- Mine - turn digests into recurring
TaskRecords with outcomes and checkable references where possible. - Replay - re-run mined tasks through the selected backend under the current skill and memory.
- Consolidate - reflect on failures and propose bounded edits.
- Gate - with the default gate enabled, accept edits only when the held-out validation score improves.
- Stage - write the proposal under
<project>/.skillopt-sleep/staging/<date>/; nothing live changes. - Adopt - explicitly, or through user-requested auto-adopt, copy staged files over live files with backups for existing targets.
How to drive it
Invoke the bundled runner via shell (Codex exec has shell access). The runner
finds the engine and a Python >= 3.10 automatically.
# point at the repo if it isn't auto-detected from CWD:
export SKILLOPT_SLEEP_REPO=/path/to/SkillOpt
TARGET_SKILL=.agents/skills/example/SKILL.md
bash "$SKILLOPT_SLEEP_REPO/plugins/run-sleep.sh" status --project "$(pwd)"
bash "$SKILLOPT_SLEEP_REPO/plugins/run-sleep.sh" harvest --project "$(pwd)" \
--source codex --target-skill-path "$TARGET_SKILL"
bash "$SKILLOPT_SLEEP_REPO/plugins/run-sleep.sh" dry-run --project "$(pwd)" \
--source codex --target-skill-path "$TARGET_SKILL" --backend mock
bash "$SKILLOPT_SLEEP_REPO/plugins/run-sleep.sh" run --project "$(pwd)" \
--source codex --target-skill-path "$TARGET_SKILL" --backend codex \
--max-sessions 5 --max-tasks 3 --progress
bash "$SKILLOPT_SLEEP_REPO/plugins/run-sleep.sh" status --project "$(pwd)"
bash "$SKILLOPT_SLEEP_REPO/plugins/run-sleep.sh" adopt --project "$(pwd)" --legacyFor a fan-out night, select reviewed proposals with repeatable
--skill NAME or --all-skills; do not treat bare adopt as “adopt everything.”
On Windows (CMD / PowerShell):
:: CMD
set SKILLOPT_SLEEP_REPO=C:\path\to\SkillOpt-Sleep
"%SKILLOPT_SLEEP_REPO%\plugins\run-sleep.cmd" status --project "%CD%"# PowerShell
$env:SKILLOPT_SLEEP_REPO = "C:\path\to\SkillOpt-Sleep"
powershell -File "$env:SKILLOPT_SLEEP_REPO\plugins\run-sleep.ps1" status --project "$(pwd)"Actions are status, harvest, dry-run, run, adopt, schedule, and unschedule.
- Default backend is
mock, which is deterministic and spends no API budget. --backend codexuses the user's Codex budget for model-driven optimization. An accepted held-out gain is run-specific evidence, not a guarantee of broader improvement; results depend on the tasks, model, and checks.--source codexreads Codex Desktop archived sessions from~/.codex/archived_sessions; use--codex-home /path/to/.codexif the archive lives elsewhere.--target-skill-pathis required for a Codex skill target. Without it, the shared default is a Claude-managed skill under~/.claude/skills/, not an.agentsskill.- Keep
dry-run --backend mockas the first smoke check unless the user explicitly asked for a real optimization run.
Scheduling
bash "$SKILLOPT_SLEEP_REPO/plugins/run-sleep.sh" schedule --project "$(pwd)" \
--backend codex --hour 3 --minute 17
bash "$SKILLOPT_SLEEP_REPO/plugins/run-sleep.sh" unschedule --project "$(pwd)"The scheduler persists the project, backend, time, and optional auto-adopt flag;
it does not persist --source or --target-skill-path from this command. Before
scheduling a Codex-targeted run, set "transcript_source": "codex" and an
absolute "target_skill_path" in ~/.skillopt-sleep/config.json. On systems
without crontab, schedule prints a line for manual installation.
unschedule --all removes every managed entry.
All backends
--backend mock— deterministic, no API spend (default)--backend claude— uses the Claude CLI--backend codex— uses the Codex CLI--backend copilot— uses the GitHub Copilot CLI--backend handoff— emits prompt/answer files for an interactive session--backend azure_openai— uses the configured Azure OpenAI endpoint
Additional flags
| Flag | Description |
--auto-adopt | Auto-adopt if the gate passes (default: stage only) |
--edit-budget N | Max bounded edits per night (default: 4) |
--lookback-hours N | Harvest window in hours (default: 72) |
--json | Machine-readable JSON output |
Config keys (~/.skillopt-sleep/config.json)
preferences— free-text house rules for the optimizergate_mode—on(validation-gated, default) oroff(greedy)gate_metric—hard|soft|mixed(default)gate_no_regression—falseby default; set it totrueto reject a candidate when any validation task's gate score decreasesdream_rollouts— >1 for multi-rollout contrastive reflectionrecall_k— >0 recalls similar past tasks from the archive
Memory consolidation
The shared sleep cycle consolidates project memory (CLAUDE.md) and the
selected skill (SKILL.md) by default. It does not update AGENTS.md.
Each target is independently toggleable through evolve_memory /
evolve_skill, and both are gated by the same held-out validation score.
Steps
- Run the requested action; capture stdout.
- For
dry-runandrun, report the held-out baseline -> candidate score, gate action, task count, session count, and exact proposed edits. - If a staging directory is printed, read
report.mdbefore summarizing. runstages by default; if--auto-adoptwas explicitly supplied, report the paths it updated instead of claiming nothing changed.- Offer adoption only after the user has reviewed a still-staged proposal.
- Never hand-edit the configured
CLAUDE.mdor target skill as a substitute for the engine's adopt path; adoption is the safety boundary and backs up existing targets first.
Hard rules
- Harvest is read-only. Do not edit archived sessions or raw transcripts.
- Codex transcript harvesting removes known secret-shaped strings, developer
instructions, and raw tool payloads, but pattern-based redaction is not a
guarantee. A real backend still sends truncated transcript/task content to
its provider. Review sensitive sessions and provider policy first; prefer a
reviewed
--tasks-fileworkflow when the data boundary matters. - Keep raw secrets, credentials, private user data, and transcript contents out of messages, logs, generated artifacts, and commits.
- Show validation evidence before recommending adoption.
- Treat generated edits as proposals, not as source of truth.
- Do not rely on deprecated custom prompts or
/sleepslash commands for this Codex integration. This skill is the entrypoint.
Validate
python -m skillopt_sleep dry-run --project "$(pwd)" --source codex \
--target-skill-path .agents/skills/example/SKILL.md --backend mock --json
python -m skillopt_sleep.experiments.run_gbrain --backend codex \
--seeds brief-writer --data-root /path/to/gbrain-evals/eval/data/skillopt-v1 \
--nights 2 --limit-replay 3 --limit-holdout 3In the recorded brief-writer gbrain run, the deliberately deficient fixture
went 0.00 -> 1.00 on that run's held-out set. Treat this as reproducible
benchmark evidence for that configuration, not a guarantee for other skills,
tasks, or models; see the
recorded results
for context and limitations.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

