skillopt-sleep
하는 일
dsh 에이전트의 과거 세션을 검토하고, 배운 내용을 스킬 문서로 정리한 뒤 각 변경을 유지하기 전에 시험합니다. 많이 사용할수록 에이전트가 나아지기를 바라는 사람을 위한 스킬입니다.
사용하는 경우
- ✓에이전트가 세션을 넘어 내 선호를 배우기를 원할 때.
- ✓과거 세션을 한 번만 오프라인으로 검토하고 싶을 때.
- ✓반복되는 작업을 스킬로 정리하는 백그라운드 사이클을 원할 때.
스킬 링크
https://github.com/microsoft/SkillOpt/blob/main/plugins/dsh/skills/skillopt-sleep/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“과거 세션을 검토해 제 선호를 배워 주세요. 다만 변경안은 제 승인을 받을 수 있도록 대기 상태로만 두세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 과거 세션 기록을 수집하고, 반복 작업을 찾아 재현한 뒤 제한된 편집안을 제안합니다. 편집은 보류 검증 점수가 오를 때만 받아들여지며, 기본 모의 백엔드를 쓰면 모델 비용 없이 설정을 시험할 수 있습니다.
기술 내용 (원본 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
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
skillopt-sleep
19k에이전트가 밤마다 과거 Codex 세션을 검토해 배우도록 돕습니다. 제안된 스킬 변경을 시험하고, 점수가 더 좋아진 것만 남깁니다.
skillopt-sleep
19k에이전트가 최근 Cursor 세션에서 배우도록 돕습니다. 점수가 더 좋아진 경우에만 남기는 프로젝트 스킬 개선안을 제안합니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.