skillopt-sleep
यह क्या करती है
यह स्किल आपके पिछले स्थानीय Codex सेशनों की समीक्षा करती है, बार-बार होने वाले काम खोजती है, और स्किल में सुधार प्रस्तावित करती है। यह उन लोगों के लिए है जो चाहते हैं कि उनका Codex एजेंट बिना हाथ से दोबारा लिखे अपने इतिहास से बेहतर हो।
कब इस्तेमाल करें
- ✓जब आप चाहते हों कि आपका Codex एजेंट पिछले सेशनों से सीखे।
- ✓जब आप बार-बार होने वाले काम की रात्रिकालीन या माँग पर समीक्षा चाहते हों।
- ✓जब आप प्रस्तावित स्किल बदलाव जाँचना या अपनाना चाहते हों।
Skill का लिंक
https://github.com/microsoft/SkillOpt/blob/main/plugins/codex/skills/skillopt-sleep/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे पिछले Codex सेशन देखिए और मेरी प्रोजेक्ट स्किल में सुधार सुझाइए, लेकिन अभी कुछ भी लाइव मत बदलिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल स्थानीय सेशन रिकॉर्ड इकट्ठा करती है, बार-बार होने वाले काम खोजती है, उन्हें दोबारा चलाती है और बदलाव प्रस्तावित करती है। बदलाव तभी रखे जाते हैं जब वे अलग रखे गए अंक में सुधार करें, और आपके अपनाने तक कुछ भी लाइव नहीं बदलता।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
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)" --legacy
For 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" schedu
अक्सर पूछे जाने वाले सवाल
क्या यह मेरी फ़ाइलें अपने-आप बदलती है?
नहीं। आप प्रस्ताव साफ़ तौर पर अपनाएँ तभी लाइव फ़ाइलें बदलती हैं, जब तक आप auto-adopt न माँगें।
क्या यह मॉडल को प्रशिक्षित करती है?
नहीं। यहाँ मॉडल-वेट प्रशिक्षण नहीं होता, यह केवल स्किल और memory दस्तावेज़ संपादित करती है।
क्या यह पृष्ठभूमि में चल सकती है?
हाँ। इसे पृष्ठभूमि में, जैसे रात को, चलने के लिए शेड्यूल किया जा सकता है।
जानकारी
लेखक का मूल विवरण
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.
repo: microsoft/SkillOpt
लोकप्रियता
- GitHub स्टार
- 19k
- रैंकिंग में स्थान
- #10500
- लाइसेंस
- MIT
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
skillopt-sleep
19kआपके एजेंट को हाल के Cursor सेशनों से सीखने देती है, प्रोजेक्ट स्किल में सुधार प्रस्तावित करके, जो केवल बेहतर अंक आने पर रखे जाते हैं।
skillopt-sleep
19kआपके एजेंट को पिछले उपयोग से सुधारने में मदद करती है: रात में सेशनों की समीक्षा करके, और स्किल व memory में बदलाव प्रस्तावित करके, जो अलग रखे गए अंक से जाँचे जाते हैं।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।