[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69AVMGBV7KJX0NF043FPDQ6":3,"skill-same:01M69AVMGBV7KJX0NF043FPDQ6":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M69AVMGBV7KJX0NF043FPDQ6","skillopt-sleep","Codex 技能记忆自我优化","Use when the user wants Codex to self-improve from past usage, asks about a nightly\u002Foffline 'sleep' or 'dream' cycle, wants Codex to review past sessions, learn preferences, consolidate memory\u002Fskills, run dry-run\u002Frun\u002Fadopt\u002Fstatus 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.","当用户希望 Codex 从过往使用中自我改进、询问夜间\u002F离线\"睡眠（sleep）\"或\"梦境（dream）\"周期、希望 Codex 回顾历史会话、学习用户偏好、整合记忆\u002F技能、运行 SkillOpt-Sleep 的 dry-run\u002Frun\u002Fadopt\u002Fstatus，或安排后台自我优化时使用。驱动 skillopt_sleep 引擎：采集历史会话 -> 挖掘重复性任务 -> 通过选定的后端重放 -> 在留出验证门（held-out gate）后整合经校验的记忆 + 技能。","microsoft\u002FSkillOpt","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69AVF76KYARHPEXXWV3G0QZ",19078,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FSkillOpt\u002Fblob\u002Fmain\u002Fplugins\u002Fcodex\u002Fskills\u002Fskillopt-sleep\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",[31,32,33,34,35,36],"skillopt sleep","review","codex","memory","sessions","status","2026-11-10 10:12:30",false,"---\nname: skillopt-sleep\ndescription: \"Use when the user wants Codex to self-improve from past usage, asks about a nightly\u002Foffline 'sleep' or 'dream' cycle, wants Codex to review past sessions, learn preferences, consolidate memory\u002Fskills, run dry-run\u002Frun\u002Fadopt\u002Fstatus 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.\"\n---\n\n# SkillOpt-Sleep: usage-driven self-evolution for a local Codex agent\n\nSkillOpt-Sleep gives the user's Codex agent a sleep cycle. On demand or on a\nnightly schedule, it reviews past local sessions, re-runs recurring tasks\nthrough the selected backend, and proposes changes to a configured skill and to\nthe project's `CLAUDE.md`. With the default validation gate enabled, it keeps\nonly changes that improve a held-out score. Live files change only through\nexplicit adoption or a user-requested `--auto-adopt`. There is no model-weight\ntraining.\n\nThe current shared engine does **not** write `AGENTS.md`. For a Codex-visible\nresult, always select a Codex skill explicitly with `--target-skill-path` (for\nexample `.agents\u002Fskills\u002F\u003Cname>\u002FSKILL.md`). If project `CLAUDE.md` is not a\ndesired secondary target, set `\"evolve_memory\": false` in\n`~\u002F.skillopt-sleep\u002Fconfig.json` before running.\n\n## When to use\n\nTrigger when the user wants any of:\n\n- Codex to learn from past sessions or get better the more they use it;\n- a nightly\u002Fscheduled or on-demand sleep\u002Fdream\u002Foffline self-improvement run;\n- to review past sessions and distill recurring tasks;\n- to consolidate feedback into memory or managed skills;\n- to run `status`, `harvest`, `dry-run`, `run`, or `adopt` for SkillOpt-Sleep.\n\n## The cycle\n\n1. **Harvest** - read local session transcripts according to the engine\n   configuration and normalize them into session digests.\n2. **Mine** - turn digests into recurring `TaskRecord`s with outcomes and\n   checkable references where possible.\n3. **Replay** - re-run mined tasks through the selected backend under the\n   current skill and memory.\n4. **Consolidate** - reflect on failures and propose bounded edits.\n5. **Gate** - with the default gate enabled, accept edits only when the held-out\n   validation score improves.\n6. **Stage** - write the proposal under\n   `\u003Cproject>\u002F.skillopt-sleep\u002Fstaging\u002F\u003Cdate>\u002F`; nothing live changes.\n7. **Adopt** - explicitly, or through user-requested auto-adopt, copy staged\n   files over live files with backups for existing targets.\n\n## How to drive it\n\nInvoke the bundled runner via shell (Codex `exec` has shell access). The runner\nfinds the engine and a Python >= 3.10 automatically.\n\n```bash\n# point at the repo if it isn't auto-detected from CWD:\nexport SKILLOPT_SLEEP_REPO=\u002Fpath\u002Fto\u002FSkillOpt\nTARGET_SKILL=.agents\u002Fskills\u002Fexample\u002FSKILL.md\nbash \"$SKILLOPT_SLEEP_REPO\u002Fplugins\u002Frun-sleep.sh\" status --project \"$(pwd)\"\nbash \"$SKILLOPT_SLEEP_REPO\u002Fplugins\u002Frun-sleep.sh\" harvest --project \"$(pwd)\" \\\n  --source codex --target-skill-path \"$TARGET_SKILL\"\nbash \"$SKILLOPT_SLEEP_REPO\u002Fplugins\u002Frun-sleep.sh\" dry-run --project \"$(pwd)\" \\\n  --source codex --target-skill-path \"$TARGET_SKILL\" --backend mock\nbash \"$SKILLOPT_SLEEP_REPO\u002Fplugins\u002Frun-sleep.sh\" run --project \"$(pwd)\" \\\n  --source codex --target-skill-path \"$TARGET_SKILL\" --backend codex \\\n  --max-sessions 5 --max-tasks 3 --progress\nbash \"$SKILLOPT_SLEEP_REPO\u002Fplugins\u002Frun-sleep.sh\" status --project \"$(pwd)\"\nbash \"$SKILLOPT_SLEEP_REPO\u002Fplugins\u002Frun-sleep.sh\" adopt --project \"$(pwd)\" --legacy\n```\n\nFor a fan-out night, select reviewed proposals with repeatable\n`--skill NAME` or `--all-skills`; do not treat bare adopt as “adopt everything.”\n\nOn Windows (CMD \u002F PowerShell):\n```cmd\n:: CMD\nset SKILLOPT_SLEEP_REPO=C:\\path\\to\\SkillOpt-Sleep\n\"%SKILLOPT_SLEEP_REPO%\\plugins\\run-sleep.cmd\" status --project \"%CD%\"\n```\n```powershell\n# PowerShell\n$env:SKILLOPT_SLEEP_REPO = \"C:\\path\\to\\SkillOpt-Sleep\"\npowershell -File \"$env:SKILLOPT_SLEEP_REPO\\plugins\\run-sleep.ps1\" status --project \"$(pwd)\"\n```\n\nActions are `status`, `harvest`, `dry-run`, `run`, `adopt`, `schedule`, and `unschedule`.\n\n- Default backend is `mock`, which is deterministic and spends no API budget.\n- `--backend codex` uses the user's Codex budget for model-driven optimization.\n  An accepted held-out gain is run-specific evidence, not a guarantee of\n  broader improvement; results depend on the tasks, model, and checks.\n- `--source codex` reads Codex Desktop archived sessions from `~\u002F.codex\u002Farchived_sessions`;\n  use `--codex-home \u002Fpath\u002Fto\u002F.codex` if the archive lives elsewhere.\n- `--target-skill-path` is required for a Codex skill target. Without it, the\n  shared default is a Claude-managed skill under `~\u002F.claude\u002Fskills\u002F`, not an\n  `.agents` skill.\n- Keep `dry-run --backend mock` as the first smoke check unless the user\n  explicitly asked for a real optimization run.\n\n### Scheduling\n\n```bash\nbash \"$SKILLOPT_SLEEP_REPO\u002Fplugins\u002Frun-sleep.sh\" schedule --project \"$(pwd)\" \\\n  --backend codex --hour 3 --minute 17\nbash \"$SKILLOPT_SLEEP_REPO\u002Fplugins\u002Frun-sleep.sh\" unschedule --project \"$(pwd)\"\n```\n\nThe scheduler persists the project, backend, time, and optional auto-adopt flag;\nit does not persist `--source` or `--target-skill-path` from this command. Before\nscheduling a Codex-targeted run, set `\"transcript_source\": \"codex\"` and an\nabsolute `\"target_skill_path\"` in `~\u002F.skillopt-sleep\u002Fconfig.json`. On systems\nwithout `crontab`, `schedule` prints a line for manual installation.\n`unschedule --all` removes every managed entry.\n\n### All backends\n\n- `--backend mock` — deterministic, no API spend (default)\n- `--backend claude` — uses the Claude CLI\n- `--backend codex` — uses the Codex CLI\n- `--backend copilot` — uses the GitHub Copilot CLI\n- `--backend handoff` — emits prompt\u002Fanswer files for an interactive session\n- `--backend azure_openai` — uses the configured Azure OpenAI endpoint\n\n### Additional flags\n\n| Flag | Description |\n|------|-------------|\n| `--auto-adopt` | Auto-adopt if the gate passes (default: stage only) |\n| `--edit-budget N` | Max bounded edits per night (default: 4) |\n| `--lookback-hours N` | Harvest window in hours (default: 72) |\n| `--json` | Machine-readable JSON output |\n\n### Config keys (`~\u002F.skillopt-sleep\u002Fconfig.json`)\n\n- **`preferences`** — free-text house rules for the optimizer\n- **`gate_mode`** — `on` (validation-gated, default) or `off` (greedy)\n- **`gate_metric`** — `hard` | `soft` | `mixed` (default)\n- **`gate_no_regression`** — `false` by default; set it to `true` to reject a candidate when any validation task's gate score decreases\n- **`dream_rollouts`** — >1 for multi-rollout contrastive reflection\n- **`recall_k`** — >0 recalls similar past tasks from the archive\n\n### Memory consolidation\n\nThe shared sleep cycle consolidates project **memory** (`CLAUDE.md`) and the\nselected **skill** (`SKILL.md`) by default. It does not update `AGENTS.md`.\nEach target is independently toggleable through `evolve_memory` \u002F\n`evolve_skill`, and both are gated by the same held-out validation score.\n\n## Steps\n\n1. Run the requested action; capture stdout.\n2. For `dry-run` and `run`, report the held-out baseline -> candidate score,\n   gate action, task count, session count, and exact proposed edits.\n3. If a staging directory is printed, read `report.md` before summarizing.\n4. `run` stages by default; if `--auto-adopt` was explicitly supplied, report\n   the paths it updated instead of claiming nothing changed.\n5. Offer adoption only after the user has reviewed a still-staged proposal.\n6. Never hand-edit the configured `CLAUDE.md` or target skill as a substitute\n   for the engine's adopt path; adoption is the safety boundary and backs up\n   existing targets first.\n\n## Hard rules\n\n- Harvest is read-only. Do not edit archived sessions or raw transcripts.\n- Codex transcript harvesting removes known secret-shaped strings, developer\n  instructions, and raw tool payloads, but pattern-based redaction is not a\n  guarantee. A real backend still sends truncated transcript\u002Ftask content to\n  its provider. Review sensitive sessions and provider policy first; prefer a\n  reviewed `--tasks-file` workflow when the data boundary matters.\n- Keep raw secrets, credentials, private user data, and transcript contents out\n  of messages, logs, generated artifacts, and commits.\n- Show validation evidence before recommending adoption.\n- Treat generated edits as proposals, not as source of truth.\n- Do not rely on deprecated custom prompts or `\u002Fsleep` slash commands for this\n  Codex integration. This skill is the entrypoint.\n\n## Validate\n\n```bash\npython -m skillopt_sleep dry-run --project \"$(pwd)\" --source codex \\\n  --target-skill-path .agents\u002Fskills\u002Fexample\u002FSKILL.md --backend mock --json\npython -m skillopt_sleep.experiments.run_gbrain --backend codex \\\n  --seeds brief-writer --data-root \u002Fpath\u002Fto\u002Fgbrain-evals\u002Feval\u002Fdata\u002Fskillopt-v1 \\\n  --nights 2 --limit-replay 3 --limit-holdout 3\n```\n\nIn the recorded `brief-writer` gbrain run, the deliberately deficient fixture\nwent 0.00 -> 1.00 on that run's held-out set. Treat this as reproducible\nbenchmark evidence for that configuration, not a guarantee for other skills,\ntasks, or models; see the\n[recorded results](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FSkillOpt\u002Fblob\u002Fmain\u002Fdocs\u002Fsleep\u002FRESULTS.md)\nfor context and limitations.\n","# SkillOpt-Sleep: usage-driven self-evolution for a local Codex agent\n\nSkillOpt-Sleep gives the user's Codex agent a sleep cycle. On demand or on a\nnightly schedule, it reviews past local sessions, re-runs recurring tasks\nthrough the selected backend, and proposes changes to a configured skill and to\nthe project's `CLAUDE.md`. With the default validation gate enabled, it keeps\nonly changes that improve a held-out score. Live files change only through\nexplicit adoption or a user-requested `--auto-adopt`. There is no model-weight\ntraining.\n\nThe current shared engine does **not** write `AGENTS.md`. For a Codex-visible\nresult, always select a Codex skill explicitly with `--target-skill-path` (for\nexample `.agents\u002Fskills\u002F\u003Cname>\u002FSKILL.md`). If project `CLAUDE.md` is not a\ndesired secondary target, set `\"evolve_memory\": false` in\n`~\u002F.skillopt-sleep\u002Fconfig.json` before running.\n\n## When to use\n\nTrigger when the user wants any of:\n\n- Codex to learn from past sessions or get better the more they use it;\n- a nightly\u002Fscheduled or on-demand sleep\u002Fdream\u002Foffline self-improvement run;\n- to review past sessions and distill recurring tasks;\n- to consolidate feedback into memory or managed skills;\n- to run `status`, `harvest`, `dry-run`, `run`, or `adopt` for SkillOpt-Sleep.\n\n## The cycle\n\n1. **Harvest** - read local session transcripts according to the engine\n   configuration and normalize them into session digests.\n2. **Mine** - turn digests into recurring `TaskRecord`s with outcomes and\n   checkable references where possible.\n3. **Replay** - re-run mined tasks through the selected backend under the\n   current skill and memory.\n4. **Consolidate** - reflect on failures and propose bounded edits.\n5. **Gate** - with the default gate enabled, accept edits only when the held-out\n   validation score improves.\n6. **Stage** - write the proposal under\n   `\u003Cproject>\u002F.skillopt-sleep\u002Fstaging\u002F\u003Cdate>\u002F`; nothing live changes.\n7. **Adopt** - explicitly, or through user-requested auto-adopt, copy staged\n   files over live files with backups for existing targets.\n\n## How to drive it\n\nInvoke the bundled runner via shell (Codex `exec` has shell access). The runner\nfinds the engine and a Python >= 3.10 automatically.\n\n```bash\n# point at the repo if it isn't auto-detected from CWD:\nexport SKILLOPT_SLEEP_REPO=\u002Fpath\u002Fto\u002FSkillOpt\nTARGET_SKILL=.agents\u002Fskills\u002Fexample\u002FSKILL.md\nbash \"$SKILLOPT_SLEEP_REPO\u002Fplugins\u002Frun-sleep.sh\" status --project \"$(pwd)\"\nbash \"$SKILLOPT_SLEEP_REPO\u002Fplugins\u002Frun-sleep.sh\" harvest --project \"$(pwd)\" \\\n  --source codex --target-skill-path \"$TARGET_SKILL\"\nbash \"$SKILLOPT_SLEEP_REPO\u002Fplugins\u002Frun-sleep.sh\" dry-run --project \"$(pwd)\" \\\n  --source codex --target-skill-path \"$TARGET_SKILL\" --backend mock\nbash \"$SKILLOPT_SLEEP_REPO\u002Fplugins\u002Frun-sleep.sh\" run --project \"$(pwd)\" \\\n  --source codex --target-skill-path \"$TARGET_SKILL\" --backend codex \\\n  --max-sessions 5 --max-tasks 3 --progress\nbash \"$SKILLOPT_SLEEP_REPO\u002Fplugins\u002Frun-sleep.sh\" status --project \"$(pwd)\"\nbash \"$SKILLOPT_SLEEP_REPO\u002Fplugins\u002Frun-sleep.sh\" adopt --project \"$(pwd)\" --legacy\n```\n\nFor a fan-out night, select reviewed proposals with repeatable\n`--skill NAME` or `--all-skills`; do not treat bare adopt as “adopt everything.”\n\nOn Windows (CMD \u002F PowerShell):\n```cmd\n:: CMD\nset SKILLOPT_SLEEP_REPO=C:\\path\\to\\SkillOpt-Sleep\n\"%SKILLOPT_SLEEP_REPO%\\plugins\\run-sleep.cmd\" status --project \"%CD%\"\n```\n```powershell\n# PowerShell\n$env:SKILLOPT_SLEEP_REPO = \"C:\\path\\to\\SkillOpt-Sleep\"\npowershell -File \"$env:SKILLOPT_SLEEP_REPO\\plugins\\run-sleep.ps1\" status --project \"$(pwd)\"\n```\n\nActions are `status`, `harvest`, `dry-run`, `run`, `adopt`, `schedule`, and `unschedule`.\n\n- Default backend is `mock`, which is deterministic and spends no API budget.\n- `--backend codex` uses the user's Codex budget for model-driven optimization.\n  An accepted held-out gain is run-specific evidence, not a guarantee of\n  broader improvement; results depend on the tasks, model, and checks.\n- `--source codex` reads Codex Desktop archived sessions from `~\u002F.codex\u002Farchived_sessions`;\n  use `--codex-home \u002Fpath\u002Fto\u002F.codex` if the archive lives elsewhere.\n- `--target-skill-path` is required for a Codex skill target. Without it, the\n  shared default is a Claude-managed skill under `~\u002F.claude\u002Fskills\u002F`, not an\n  `.agents` skill.\n- Keep `dry-run --backend mock` as the first smoke check unless the user\n  explicitly asked for a real optimization run.\n\n### Scheduling\n\n```bash\nbash \"$SKILLOPT_SLEEP_REPO\u002Fplugins\u002Frun-sleep.sh\" schedule --project \"$(pwd)\" \\\n  --backend codex --hour 3 --minute 17\nbash \"$SKILLOPT_SLEEP_REPO\u002Fplugins\u002Frun-sleep.sh\" unschedule --project \"$(pwd)\"\n```\n\nThe scheduler persists the project, backend, time, and optional auto-adopt flag;\nit does not persist `--source` or `--target-skill-path` from this command. Before\nscheduling a Codex-targeted run, set `\"transcript_source\": \"codex\"` and an\nabsolute `\"target_skill_path\"` in `~\u002F.skillopt-sleep\u002Fconfig.json`. On systems\nwithout `crontab`, `schedule` prints a line for manual installation.\n`unschedule --all` removes every managed entry.\n\n### All backends\n\n- `--backend mock` — deterministic, no API spend (default)\n- `--backend claude` — uses the Claude CLI\n- `--backend codex` — uses the Codex CLI\n- `--backend copilot` — uses the GitHub Copilot CLI\n- `--backend handoff` — emits prompt\u002Fanswer files for an interactive session\n- `--backend azure_openai` — uses the configured Azure OpenAI endpoint\n\n### Additional flags\n\n| Flag | Description |\n|------|-------------|\n| `--auto-adopt` | Auto-adopt if the gate passes (default: stage only) |\n| `--edit-budget N` | Max bounded edits per night (default: 4) |\n| `--lookback-hours N` | Harvest window in hours (default: 72) |\n| `--json` | Machine-readable JSON output |\n\n### Config keys (`~\u002F.skillopt-sleep\u002Fconfig.json`)\n\n- **`preferences`** — free-text house rules for the optimizer\n- **`gate_mode`** — `on` (validation-gated, default) or `off` (greedy)\n- **`gate_metric`** — `hard` | `soft` | `mixed` (default)\n- **`gate_no_regression`** — `false` by default; set it to `true` to reject a candidate when any validation task's gate score decreases\n- **`dream_rollouts`** — >1 for multi-rollout contrastive reflection\n- **`recall_k`** — >0 recalls similar past tasks from the archive\n\n### Memory consolidation\n\nThe shared sleep cycle consolidates project **memory** (`CLAUDE.md`) and the\nselected **skill** (`SKILL.md`) by default. It does not update `AGENTS.md`.\nEach target is independently toggleable through `evolve_memory` \u002F\n`evolve_skill`, and both are gated by the same held-out validation score.\n\n## Steps\n\n1. Run the requested action; capture stdout.\n2. For `dry-run` and `run`, report the held-out baseline -> candidate score,\n   gate action, task count, session count, and exact proposed edits.\n3. If a staging directory is printed, read `report.md` before summarizing.\n4. `run` stages by default; if `--auto-adopt` was explicitly supplied, report\n   the paths it updated instead of claiming nothing changed.\n5. Offer adoption only after the user has reviewed a still-staged proposal.\n6. Never hand-edit the configured `CLAUDE.md` or target skill as a substitute\n   for the engine's adopt path; adoption is the safety boundary and backs up\n   existing targets first.\n\n## Hard rules\n\n- Harvest is read-only. Do not edit archived sessions or raw transcripts.\n- Codex transcript harvesting removes known secret-shaped strings, developer\n  instructions, and raw tool payloads, but pattern-based redaction is not a\n  guarantee. A real backend still sends truncated transcript\u002Ftask content to\n  its provider. Review sensitive sessions and provider policy first; prefer a\n  reviewed `--tasks-file` workflow when the data boundary matters.\n- Keep raw secrets, credentials, private user data, and transcript contents out\n  of messages, logs, generated artifacts, and commits.\n- Show validation evidence before recommending adoption.\n- Treat generated edits as proposals, not as source of truth.\n- Do not rely on deprecated custom prompts or `\u002Fsleep` slash commands for this\n  Codex integration. This skill is the entrypoint.\n\n## Validate\n\n```bash\npython -m skillopt_sleep dry-run --project \"$(pwd)\" --source codex \\\n  --target-skill-path .agents\u002Fskills\u002Fexample\u002FSKILL.md --backend mock --json\npython -m skillopt_sleep.experiments.run_gbrain --backend codex \\\n  --seeds brief-writer --data-root \u002Fpath\u002Fto\u002Fgbrain-evals\u002Feval\u002Fdata\u002Fskillopt-v1 \\\n  --nights 2 --limit-replay 3 --limit-holdout 3\n```\n\nIn the recorded `brief-writer` gbrain run, the deliberately deficient fixture\nwent 0.00 -> 1.00 on that run's held-out set. Treat this as reproducible\nbenchmark evidence for that configuration, not a guarantee for other skills,\ntasks, or models; see the\n[recorded results](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FSkillOpt\u002Fblob\u002Fmain\u002Fdocs\u002Fsleep\u002FRESULTS.md)\nfor context and limitations.\n",{"name":5,"description":7},"main","bc0a392ef0a7f92840ec673d80204d34ced169d0","plugins\u002Fcodex\u002Fskills\u002Fskillopt-sleep",1830,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FSkillOpt","https:\u002F\u002Faka.ms\u002Fskillopt","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-11 04:10:50",{"source":9,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add microsoft\u002FSkillOpt --skill skillopt-sleep",{"tool":58,"command":59},"bunx","bunx skills add microsoft\u002FSkillOpt --skill skillopt-sleep",{"tool":61,"command":62},"pnpm","pnpm dlx skills add microsoft\u002FSkillOpt --skill skillopt-sleep","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FSkillOpt\u002Fblob\u002Fmain\u002Fplugins\u002Fcodex\u002Fskills\u002Fskillopt-sleep\u002FSKILL.md",true,[],[67,78,88,99],{"skillNo":68,"name":5,"nameZh":69,"description":70,"descriptionZh":71,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":72,"categories":73,"keywords":76,"publishedAt":37},"01M69AVT3C6TRVF93BQ4T5MJFS","SkillOpt-Sleep 适配参考","Reference-only OpenClaw adaptation of SkillOpt-Sleep. Use it to study or port the contributed DeepSeek wrapper, not as a ready-to-run installation.","仅供参考的 OpenClaw 版 SkillOpt-Sleep 适配。用于研究或移植所贡献的 DeepSeek 包装器，而非作为可直接运行的安装方案。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FSkillOpt\u002Fblob\u002Fmain\u002Fplugins\u002Fopenclaw\u002FSKILL.md",[74,75],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[31,77],"openclaw",{"skillNo":79,"name":5,"nameZh":80,"description":81,"descriptionZh":82,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":83,"categories":84,"keywords":87,"publishedAt":37},"01M69AVR9TG4AP9WJE9QYEY79X","dsh Agent 技能记忆自我优化","Use when the user wants the dsh agent to self-improve from past usage, asks about a nightly\u002Foffline 'sleep' or 'dream' cycle, skill\u002Fmemory 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 through the skillopt_* tools: harvest past sessions -> mine recurring tasks -> replay via a selected backend -> consolidate validated skills behind a held-out gate.","当用户希望 dsh 智能体从过往使用中自我改进、询问夜间\u002F离线\"睡眠（sleep）\"或\"梦境（dream）\"周期、技能\u002F记忆整合，或说出类似\"让我的智能体越用越好\"\"回顾我过去的会话\"\"学习我的偏好\"\"整合你学到的内容\"\"运行睡眠周期\"等请求，或希望安排后台自我优化时使用。通过 skillopt_* 工具驱动 skillopt_sleep 引擎：采集历史会话 -> 挖掘重复性任务 -> 通过选定的后端重放 -> 在留出验证门（held-out gate）后整合经校验的技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FSkillOpt\u002Fblob\u002Fmain\u002Fplugins\u002Fdsh\u002Fskills\u002Fskillopt-sleep\u002FSKILL.md",[85,86],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[31,32,34,35],{"skillNo":89,"name":5,"nameZh":90,"description":91,"descriptionZh":92,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":93,"categories":94,"keywords":97,"publishedAt":37},"01M69AVPDW8T7960QBW29F3ZEW","Cursor 技能记忆自我优化","Use when the user wants Cursor to learn from recent local sessions, asks for an offline sleep or dream cycle, wants to consolidate recurring work into a Cursor skill, or requests SkillOpt-Sleep status, harvest, dry-run, run, scheduling, review, or adoption. Drives the validation-gated skillopt_sleep engine with Cursor transcripts and the optional Cursor Agent CLI backend.","当用户希望 Cursor 从近期的本地会话中学习、要求执行离线睡眠（sleep）或梦境（dream）周期、希望将重复性工作整合为 Cursor 技能，或请求 SkillOpt-Sleep 的 status、harvest、dry-run、run、scheduling、review 或 adoption 时使用。基于 Cursor 会话记录（transcripts）和可选的 Cursor Agent CLI 后端，驱动带验证门（validation-gated）的 skillopt_sleep 引擎。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FSkillOpt\u002Fblob\u002Fmain\u002Fplugins\u002Fcursor\u002Fskills\u002Fskillopt-sleep\u002FSKILL.md",[95,96],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[31,32,98,35,36],"cli",{"skillNo":100,"name":5,"nameZh":101,"description":102,"descriptionZh":103,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":104,"categories":105,"keywords":108,"publishedAt":37},"01M69AVJA0DE796EKHGVMY10Q1","Claude 智能体睡眠周期优化","Use when the user wants their Claude agent to self-improve from past usage, asks about a nightly\u002Foffline 'sleep' or 'dream' cycle, memory\u002Fskill 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\u002FSKILL.md behind a held-out gate.","当用户希望其 Claude 智能体根据过往使用记录自我改进、询问夜间\u002F离线的「sleep」或「dream」周期、记忆\u002F技能巩固，或说出诸如「让我用得越多，智能体越好」「回顾我过去的会话」「学习我的偏好」「巩固你学到的内容」「运行睡眠周期」等要求，或希望安排后台自我优化时使用。驱动 skillopt_sleep 引擎：采集历史会话 -> 挖掘高频重复任务 -> 通过选定后端重放 -> 在留出验证门禁后巩固经校验的 CLAUDE.md\u002FSKILL.md。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FSkillOpt\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-code\u002Fskills\u002Fskillopt-sleep\u002FSKILL.md",[106,107],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[31,32,34,35]]