skillopt-sleep
यह क्या करती है
यह स्किल dsh एजेंट के पिछले सेशनों की समीक्षा करती है, जो उसने सीखा उसे स्किल दस्तावेज़ों में समेकित करती है, और हर बदलाव को रखने से पहले परखती है। यह उन लोगों के लिए है जो चाहते हैं कि उनका एजेंट जितना ज़्यादा इस्तेमाल हो, उतना बेहतर हो।
कब इस्तेमाल करें
- ✓जब आप चाहते हों कि एजेंट सेशनों के बीच आपकी पसंद सीखे।
- ✓जब आप पिछले सेशनों की एक बार की ऑफ़लाइन समीक्षा चाहते हों।
- ✓जब आप पृष्ठभूमि चक्र चाहते हों जो बार-बार होने वाले काम को स्किल में समेटे।
Skill का लिंक
https://github.com/microsoft/SkillOpt/blob/main/plugins/dsh/skills/skillopt-sleep/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे पिछले सेशन देखिए और मेरी पसंद सीखिए, लेकिन बदलावों को केवल मेरी मंज़ूरी के लिए तैयार रखिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल पिछले सेशन रिकॉर्ड इकट्ठा करती है, बार-बार होने वाले काम खोजती है, उन्हें दोबारा चलाती है, और सीमित संपादन प्रस्तावित करती है। कोई संपादन तभी स्वीकार होता है जब वह अलग रखे गए validation अंक में सुधार करे, और एक डिफ़ॉल्ट mock backend आपको मॉडल खर्च के बिना सेटअप परखने देता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
SkillOpt-Sleep: usage-driven self-evolution for the dsh agent
SkillOpt-Sleep is Microsoft's SkillOpt deployment-time companion engine: it reviews your past sessions (harvest), mines recurring tasks (mine), replays them through a selected backend (replay), and consolidates what it learns into skill documents behind a held-out validation gate (consolidate).
This skill drives the engine through the 7 skillopt_* tools exposed by the
dsh-skillopt plugin. The default mock backend makes no model calls, which is
useful for verifying the plumbing; a real backend consumes your API budget.
When to use
- "make my agent better the more I use it" / "learn my preferences across sessions"
- a one-off offline self-evolution / sleep / dream run (immediate or scheduled)
- review past sessions/trajectories and distill recurring tasks
- consolidate feedback into
AGENTS.md/SKILL.md/ managed skills - schedule (cron) the cycle, or adopt a staged proposal
The cycle (six stages)
- Harvest — read-only scan of supported local session records → digests
- Mine — digests → recurring task records (intent + outcome labels + checkable refs)
- Replay — re-run tasks under the current skill+memory with the selected backend → (hard, soft) scores
- Consolidate — reflect on failures → propose bounded edits → validation gate on a held-out slice (default: accept only on strict improvement)
- Stage — write accepted proposals to
<project>/.skillopt-sleep/staging/<timestamp>/. Live files are unchanged. A rejected run still has a report but no proposal files. - Adopt — explicit (or operator-configured
--auto-adopt) copies staged files over live ones, backing up first.
Driving it
Prefer the tools over hand-editing files:
| Tool | Behavior |
|---|---|
skillopt_status |
state, engine availability, latest staged proposal & report |
skillopt_dry_run |
full preview (harvest+mine+replay), stages nothing |
skillopt_run |
full cycle, stages a proposal (live files unchanged by default) |
skillopt_adopt |
apply latest staged proposal (with backup) — the live-change boundary |
skillopt_harvest |
read-only show/export of mined tasks |
skillopt_schedule / skillopt_unschedule |
install/remove the nightly cron entry for this project |
Typical flow:
# 1. check state (default mock backend, zero cost)
skillopt_status
# 2. preview the cycle
skillopt_dry_run project=<dir> source=<claude|codex|…>
# 3. real run (consumes the selected backend's API budget)
skillopt_run project=<dir> backend=<codex|claude|…> preferences="Prefer pytest; keep commits imperative."
# 4. review the report, then adopt
skillopt_adopt project=<dir>
# 5. schedule nightly at 03:17
skillopt_schedule project=<dir> hour=3 minute=17 backend=<codex>
Parameters
| Parameter | Default | Meaning |
|---|---|---|
project |
config or cwd | project directory to evolve |
backend |
mock |
mock|claude|codex|copilot|cursor|pi|opencode|handoff|azure_openai (mock = no model calls) |
source |
config | transcript source: claude|codex|copilot|cursor|pi|opencode|auto |
model |
backend default | replay model override |
maxTasks |
40 | mined-task cap |
preferences |
empty | house rules for the reflection prior (e.g. "always use async/await") |
Configuration (cordis.yml / bundle patch)
- insert:
- id: skillopt
name: './src/index.js'
config:
backend: codex
project: /path/to/project
preferences: 'Always use async/await'
# auto-adopt is OPERATOR-ONLY — the model cannot set it
autoAdopt: false
Advanced engine keys go in ~/.skillopt-sleep/config.json:
gate_mode (on/off), gate_metric (hard/soft/mixed), gate_no_regression,
dream_rollouts, recall_k, evolve_memory / evolve_skill.
Hard rules
- Never hand-edit
AGENTS.md/SKILL.mdaroundskillopt_adopt; let the engine's explicit adopt (or operator-configured--auto-adopt) apply the staging manifest, backing up live files first. - Harvest is read-only;
mockreplay has no side effects. - Real backends send truncated transcript excerpts and derived tasks to the
selected provider for mining/replay/judging/reflection. For sensitive
sessions, export tasks first (
skillopt_harvest output=<file>), redact, set the top-level"reviewed"totrue, then replay with--tasks-file;
अक्सर पूछे जाने वाले सवाल
क्या परीक्षण चलाने में पैसे लगते हैं?
असली backend आपके मॉडल बजट का इस्तेमाल करता है, जबकि डिफ़ॉल्ट mock backend कोई मॉडल कॉल नहीं करता।
क्या मैं बाद में तैयार प्रस्ताव अपना सकता हूँ?
हाँ। प्रस्ताव समीक्षा के लिए तैयार रखे जाते हैं, और आपके अपनाने पर ही बदलते हैं।
यह क्या बदल सकती है?
स्किल दस्तावेज़ और memory, जिन्हें कुछ भी स्वीकार होने से पहले अंक से जाँचा जाता है।
जानकारी
लेखक का मूल विवरण
Use when the user wants the dsh agent to self-improve from past usage, asks about a nightly/offline 'sleep' or 'dream' cycle, skill/memory 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.
repo: microsoft/SkillOpt
लोकप्रियता
- GitHub स्टार
- 19k
- रैंकिंग में स्थान
- #10502
- लाइसेंस
- MIT
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
skillopt-sleep
19kआपके एजेंट को रात की समीक्षा में पिछले Codex सेशनों से सीखने देती है, प्रस्तावित स्किल बदलावों को परखकर, और केवल बेहतर अंक वाले बदलाव रखकर।
skillopt-sleep
19kआपके एजेंट को हाल के Cursor सेशनों से सीखने देती है, प्रोजेक्ट स्किल में सुधार प्रस्तावित करके, जो केवल बेहतर अंक आने पर रखे जाते हैं।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।