skillopt-sleep
ما الذي تفعله
تراجع الجلسات السابقة لوكيل dsh، وتدمج ما تعلمه في مستندات مهارات، وتختبر كل تغيير قبل الاحتفاظ به. وهي لمن يريد أن يتحسن وكيله كلما استخدمه أكثر.
متى تستخدمها
- ✓عندما تريد أن يتعلم الوكيل تفضيلاتك عبر الجلسات.
- ✓عندما تريد مراجعة لمرة واحدة دون اتصال للجلسات السابقة.
- ✓عندما تريد دورة خلفية تدمج العمل المتكرر في مهارات.
رابط المهارة
https://github.com/microsoft/SkillOpt/blob/main/plugins/dsh/skills/skillopt-sleep/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“راجع جلساتي السابقة وتعلّم تفضيلاتي، لكن اجعل التغييرات معلّقة لحين موافقتي فقط.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تجمع المهارة سجلات الجلسات السابقة، وتستخرج المهام المتكررة، وتعيد تشغيلها وتقترح تعديلات محدودة. لا يُقبل التعديل إلا إذا حسّن نتيجة تحقق محجوزة. وتتيح الخلفية الافتراضية الوهمية اختبار الإعداد دون تكاليف النموذج.
المحتوى التقني (ملف 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;
الأسئلة الشائعة
هل يكلّف تشغيل الاختبار مالاً؟
الخلفية الحقيقية تستهلك ميزانية نموذجك، أما الخلفية الوهمية الافتراضية فلا تجري استدعاءات للنموذج.
هل يمكنني اعتماد اقتراح معلّق لاحقاً؟
نعم. تُحفظ الاقتراحات للمراجعة، ولا تتغير إلا عندما تعتمدها.
ما الذي يمكن أن تغيّره؟
مستندات المهارات والذاكرة، ويتحقق منها بنتيجة قبل قبول أي شيء.
التفاصيل
الوصف الأصلي من المؤلف
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
التعليقات
- …
المزيد من المهارات من هذا المستودع
skillopt-sleep
19kيساعد وكيلك على التعلم من جلسات Codex السابقة في مراجعة ليلية، فيختبر تعديلات المهارة المقترحة ويحتفظ فقط بما يحقق نتيجة أفضل.
skillopt-sleep
19kيساعد وكيلك على التعلم من جلسات Cursor الأخيرة، فيقترح تحسينات لمهارة مشروع ويحتفظ بها فقط عندما تحقق نتيجة أفضل.
مهارات مشابهة
add-model-provider
394kتتيح لوكيلك ربط مزوّد نموذج ذكاء اصطناعي جديد بـ OpenClaw باستخدام أوامر إعداد آمنة، وإبقاء مفاتيح API خارج النص العادي، وإجراء اختبار حي.
acp-router
394kيساعد وكيلك على إرسال مهمة إلى مساعد برمجة مثل Claude Code أو Cursor عبر OpenClaw، فيعمل العمل داخل تلك الأداة.
browser-automation
394kتعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.