[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69AVR9TG4AP9WJE9QYEY79X":3,"skill-same:01M69AVR9TG4AP9WJE9QYEY79X":64},{"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":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":45,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M69AVR9TG4AP9WJE9QYEY79X","skillopt-sleep","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）后整合经校验的技能。","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\u002Fdsh\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],"skillopt sleep","review","memory","sessions","2026-11-10 10:12:30",false,"---\nname: skillopt-sleep\ndescription: \"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.\"\n---\n\n# SkillOpt-Sleep: usage-driven self-evolution for the dsh agent\n\nSkillOpt-Sleep is Microsoft's [SkillOpt](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FSkillOpt)\ndeployment-time companion engine: it reviews your past sessions (harvest), mines\nrecurring tasks (mine), replays them through a selected backend (replay), and\nconsolidates what it learns into skill documents behind a **held-out validation\ngate** (consolidate).\n\nThis skill drives the engine through the 7 `skillopt_*` tools exposed by the\ndsh-skillopt plugin. The default `mock` backend makes no model calls, which is\nuseful for verifying the plumbing; a real backend consumes your API budget.\n\n## When to use\n\n- \"make my agent better the more I use it\" \u002F \"learn my preferences across sessions\"\n- a one-off **offline self-evolution \u002F sleep \u002F dream** run (immediate or scheduled)\n- review past sessions\u002Ftrajectories and distill recurring tasks\n- consolidate feedback into `AGENTS.md` \u002F `SKILL.md` \u002F managed skills\n- schedule (cron) the cycle, or adopt a staged proposal\n\n## The cycle (six stages)\n\n1. **Harvest** — read-only scan of supported local session records → digests\n2. **Mine** — digests → recurring task records (intent + outcome labels + checkable refs)\n3. **Replay** — re-run tasks under the current skill+memory with the selected backend → (hard, soft) scores\n4. **Consolidate** — reflect on failures → propose bounded edits → **validation gate** on a held-out slice (default: accept only on strict improvement)\n5. **Stage** — write accepted proposals to `\u003Cproject>\u002F.skillopt-sleep\u002Fstaging\u002F\u003Ctimestamp>\u002F`. **Live files are unchanged.** A rejected run still has a report but no proposal files.\n6. **Adopt** — explicit (or operator-configured `--auto-adopt`) copies staged files over live ones, backing up first.\n\n## Driving it\n\nPrefer the tools over hand-editing files:\n\n| Tool | Behavior |\n|---|---|\n| `skillopt_status` | state, engine availability, latest staged proposal & report |\n| `skillopt_dry_run` | full preview (harvest+mine+replay), stages nothing |\n| `skillopt_run` | full cycle, stages a proposal (live files unchanged by default) |\n| `skillopt_adopt` | apply latest staged proposal (with backup) — the live-change boundary |\n| `skillopt_harvest` | read-only show\u002Fexport of mined tasks |\n| `skillopt_schedule` \u002F `skillopt_unschedule` | install\u002Fremove the nightly cron entry for this project |\n\nTypical flow:\n\n```text\n# 1. check state (default mock backend, zero cost)\nskillopt_status\n\n# 2. preview the cycle\nskillopt_dry_run project=\u003Cdir> source=\u003Cclaude|codex|…>\n\n# 3. real run (consumes the selected backend's API budget)\nskillopt_run project=\u003Cdir> backend=\u003Ccodex|claude|…> preferences=\"Prefer pytest; keep commits imperative.\"\n\n# 4. review the report, then adopt\nskillopt_adopt project=\u003Cdir>\n\n# 5. schedule nightly at 03:17\nskillopt_schedule project=\u003Cdir> hour=3 minute=17 backend=\u003Ccodex>\n```\n\n## Parameters\n\n| Parameter | Default | Meaning |\n|---|---|---|\n| `project` | config or cwd | project directory to evolve |\n| `backend` | `mock` | `mock\\|claude\\|codex\\|copilot\\|cursor\\|pi\\|opencode\\|handoff\\|azure_openai` (mock = no model calls) |\n| `source` | config | transcript source: `claude\\|codex\\|copilot\\|cursor\\|pi\\|opencode\\|auto` |\n| `model` | backend default | replay model override |\n| `maxTasks` | 40 | mined-task cap |\n| `preferences` | empty | house rules for the reflection prior (e.g. \"always use async\u002Fawait\") |\n\n## Configuration (cordis.yml \u002F bundle patch)\n\n```yaml\n- insert:\n    - id: skillopt\n      name: '.\u002Fsrc\u002Findex.js'\n      config:\n        backend: codex\n        project: \u002Fpath\u002Fto\u002Fproject\n        preferences: 'Always use async\u002Fawait'\n        # auto-adopt is OPERATOR-ONLY — the model cannot set it\n        autoAdopt: false\n```\n\nAdvanced engine keys go in `~\u002F.skillopt-sleep\u002Fconfig.json`:\n`gate_mode` (on\u002Foff), `gate_metric` (hard\u002Fsoft\u002Fmixed), `gate_no_regression`,\n`dream_rollouts`, `recall_k`, `evolve_memory` \u002F `evolve_skill`.\n\n## Hard rules\n\n- **Never** hand-edit `AGENTS.md` \u002F `SKILL.md` around `skillopt_adopt`; let the\n  engine's explicit adopt (or operator-configured `--auto-adopt`) apply the\n  staging manifest, backing up live files first.\n- Harvest is read-only; `mock` replay has no side effects.\n- Real backends send truncated transcript excerpts and derived tasks to the\n  selected provider for mining\u002Freplay\u002Fjudging\u002Freflection. For sensitive\n  sessions, export tasks first (`skillopt_harvest output=\u003Cfile>`), redact, set\n  the top-level `\"reviewed\"` to `true`, then replay with `--tasks-file`; real\n  backends refuse unreviewed task files.\n- Show the user the **held-out baseline → candidate** score and the exact\n  proposed edits before suggesting adoption. Evidence before adoption.\n\n## Validate \u002F demo (no API spend)\n\n```bash\npip install skillopt\npython -m skillopt_sleep.experiments.run_experiment --persona researcher --assert-improves\n```\n\nDeterministic synthetic demo: the score rises and the gate blocks a regression.\nIt validates the mechanism, not effectiveness on your own tasks.\n\nSee the [SkillOpt-Sleep docs](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FSkillOpt\u002Ftree\u002Fmain\u002Fdocs\u002Fsleep)\nfor recorded results and limitations.\n","# SkillOpt-Sleep: usage-driven self-evolution for the dsh agent\n\nSkillOpt-Sleep is Microsoft's [SkillOpt](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FSkillOpt)\ndeployment-time companion engine: it reviews your past sessions (harvest), mines\nrecurring tasks (mine), replays them through a selected backend (replay), and\nconsolidates what it learns into skill documents behind a **held-out validation\ngate** (consolidate).\n\nThis skill drives the engine through the 7 `skillopt_*` tools exposed by the\ndsh-skillopt plugin. The default `mock` backend makes no model calls, which is\nuseful for verifying the plumbing; a real backend consumes your API budget.\n\n## When to use\n\n- \"make my agent better the more I use it\" \u002F \"learn my preferences across sessions\"\n- a one-off **offline self-evolution \u002F sleep \u002F dream** run (immediate or scheduled)\n- review past sessions\u002Ftrajectories and distill recurring tasks\n- consolidate feedback into `AGENTS.md` \u002F `SKILL.md` \u002F managed skills\n- schedule (cron) the cycle, or adopt a staged proposal\n\n## The cycle (six stages)\n\n1. **Harvest** — read-only scan of supported local session records → digests\n2. **Mine** — digests → recurring task records (intent + outcome labels + checkable refs)\n3. **Replay** — re-run tasks under the current skill+memory with the selected backend → (hard, soft) scores\n4. **Consolidate** — reflect on failures → propose bounded edits → **validation gate** on a held-out slice (default: accept only on strict improvement)\n5. **Stage** — write accepted proposals to `\u003Cproject>\u002F.skillopt-sleep\u002Fstaging\u002F\u003Ctimestamp>\u002F`. **Live files are unchanged.** A rejected run still has a report but no proposal files.\n6. **Adopt** — explicit (or operator-configured `--auto-adopt`) copies staged files over live ones, backing up first.\n\n## Driving it\n\nPrefer the tools over hand-editing files:\n\n| Tool | Behavior |\n|---|---|\n| `skillopt_status` | state, engine availability, latest staged proposal & report |\n| `skillopt_dry_run` | full preview (harvest+mine+replay), stages nothing |\n| `skillopt_run` | full cycle, stages a proposal (live files unchanged by default) |\n| `skillopt_adopt` | apply latest staged proposal (with backup) — the live-change boundary |\n| `skillopt_harvest` | read-only show\u002Fexport of mined tasks |\n| `skillopt_schedule` \u002F `skillopt_unschedule` | install\u002Fremove the nightly cron entry for this project |\n\nTypical flow:\n\n```text\n# 1. check state (default mock backend, zero cost)\nskillopt_status\n\n# 2. preview the cycle\nskillopt_dry_run project=\u003Cdir> source=\u003Cclaude|codex|…>\n\n# 3. real run (consumes the selected backend's API budget)\nskillopt_run project=\u003Cdir> backend=\u003Ccodex|claude|…> preferences=\"Prefer pytest; keep commits imperative.\"\n\n# 4. review the report, then adopt\nskillopt_adopt project=\u003Cdir>\n\n# 5. schedule nightly at 03:17\nskillopt_schedule project=\u003Cdir> hour=3 minute=17 backend=\u003Ccodex>\n```\n\n## Parameters\n\n| Parameter | Default | Meaning |\n|---|---|---|\n| `project` | config or cwd | project directory to evolve |\n| `backend` | `mock` | `mock\\|claude\\|codex\\|copilot\\|cursor\\|pi\\|opencode\\|handoff\\|azure_openai` (mock = no model calls) |\n| `source` | config | transcript source: `claude\\|codex\\|copilot\\|cursor\\|pi\\|opencode\\|auto` |\n| `model` | backend default | replay model override |\n| `maxTasks` | 40 | mined-task cap |\n| `preferences` | empty | house rules for the reflection prior (e.g. \"always use async\u002Fawait\") |\n\n## Configuration (cordis.yml \u002F bundle patch)\n\n```yaml\n- insert:\n    - id: skillopt\n      name: '.\u002Fsrc\u002Findex.js'\n      config:\n        backend: codex\n        project: \u002Fpath\u002Fto\u002Fproject\n        preferences: 'Always use async\u002Fawait'\n        # auto-adopt is OPERATOR-ONLY — the model cannot set it\n        autoAdopt: false\n```\n\nAdvanced engine keys go in `~\u002F.skillopt-sleep\u002Fconfig.json`:\n`gate_mode` (on\u002Foff), `gate_metric` (hard\u002Fsoft\u002Fmixed), `gate_no_regression`,\n`dream_rollouts`, `recall_k`, `evolve_memory` \u002F `evolve_skill`.\n\n## Hard rules\n\n- **Never** hand-edit `AGENTS.md` \u002F `SKILL.md` around `skillopt_adopt`; let the\n  engine's explicit adopt (or operator-configured `--auto-adopt`) apply the\n  staging manifest, backing up live files first.\n- Harvest is read-only; `mock` replay has no side effects.\n- Real backends send truncated transcript excerpts and derived tasks to the\n  selected provider for mining\u002Freplay\u002Fjudging\u002Freflection. For sensitive\n  sessions, export tasks first (`skillopt_harvest output=\u003Cfile>`), redact, set\n  the top-level `\"reviewed\"` to `true`, then replay with `--tasks-file`; real\n  backends refuse unreviewed task files.\n- Show the user the **held-out baseline → candidate** score and the exact\n  proposed edits before suggesting adoption. Evidence before adoption.\n\n## Validate \u002F demo (no API spend)\n\n```bash\npip install skillopt\npython -m skillopt_sleep.experiments.run_experiment --persona researcher --assert-improves\n```\n\nDeterministic synthetic demo: the score rises and the gate blocks a regression.\nIt validates the mechanism, not effectiveness on your own tasks.\n\nSee the [SkillOpt-Sleep docs](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FSkillOpt\u002Ftree\u002Fmain\u002Fdocs\u002Fsleep)\nfor recorded results and limitations.\n",{"name":5,"description":7},"main","bc0a392ef0a7f92840ec673d80204d34ced169d0","plugins\u002Fdsh\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":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add microsoft\u002FSkillOpt --skill skillopt-sleep",{"tool":56,"command":57},"bunx","bunx skills add microsoft\u002FSkillOpt --skill skillopt-sleep",{"tool":59,"command":60},"pnpm","pnpm dlx skills add microsoft\u002FSkillOpt --skill skillopt-sleep","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FSkillOpt\u002Fblob\u002Fmain\u002Fplugins\u002Fdsh\u002Fskills\u002Fskillopt-sleep\u002FSKILL.md",true,[],[65,76,88,99],{"skillNo":66,"name":5,"nameZh":67,"description":68,"descriptionZh":69,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":70,"categories":71,"keywords":74,"publishedAt":35},"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",[72,73],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[31,75],"openclaw",{"skillNo":77,"name":5,"nameZh":78,"description":79,"descriptionZh":80,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":81,"categories":82,"keywords":85,"publishedAt":35},"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",[83,84],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[31,86,34,87,32],"status","cli",{"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":35},"01M69AVMGBV7KJX0NF043FPDQ6","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）后整合经校验的记忆 + 技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FSkillOpt\u002Fblob\u002Fmain\u002Fplugins\u002Fcodex\u002Fskills\u002Fskillopt-sleep\u002FSKILL.md",[95,96],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[31,86,34,33,98,32],"codex",{"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":35},"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,33]]