본문으로 건너뛰기
cccskills
무료GitHub에 공개

skillopt-sleep

Review past dsh agent sessions to identify recurring tasks and test proposed skill or memory improvements. This skill guides preview runs, validation on reserved tasks, staged proposals, adoption with backups, and scheduled nightly cycles.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

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.

설치 방법 보기

이럴 때 유용합니다

  • Extract recurring tasks from past agent sessions
  • Test proposed skill and memory improvements
  • Review staged changes before adopting them
  • Schedule nightly improvement cycles

포함된 파일(1)

  • SKILL.md5.6 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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)

  1. Harvest — read-only scan of supported local session records → digests
  2. Mine — digests → recurring task records (intent + outcome labels + checkable refs)
  3. Replay — re-run tasks under the current skill+memory with the selected backend → (hard, soft) scores
  4. Consolidate — reflect on failures → propose bounded edits → validation gate on a held-out slice (default: accept only on strict improvement)
  5. 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.
  6. 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:

ToolBehavior
skillopt_statusstate, engine availability, latest staged proposal & report
skillopt_dry_runfull preview (harvest+mine+replay), stages nothing
skillopt_runfull cycle, stages a proposal (live files unchanged by default)
skillopt_adoptapply latest staged proposal (with backup) — the live-change boundary
skillopt_harvestread-only show/export of mined tasks
skillopt_schedule / skillopt_unscheduleinstall/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

ParameterDefaultMeaning
projectconfig or cwdproject directory to evolve
backendmockmock|claude|codex|copilot|cursor|pi|opencode|handoff|azure_openai (mock = no model calls)
sourceconfigtranscript source: claude|codex|copilot|cursor|pi|opencode|auto
modelbackend defaultreplay model override
maxTasks40mined-task cap
preferencesemptyhouse 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.md around skillopt_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; mock replay 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" to true, then replay with --tasks-file; real backends refuse unreviewed task files.
  • Show the user the held-out baseline → candidate score and the exact proposed edits before suggesting adoption. Evidence before adoption.

Validate / demo (no API spend)

pip install skillopt
python -m skillopt_sleep.experiments.run_experiment --persona researcher --assert-improves

Deterministic synthetic demo: the score rises and the gate blocks a regression. It validates the mechanism, not effectiveness on your own tasks.

See the SkillOpt-Sleep docs for recorded results and limitations.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use past local Codex sessions to propose updates to a selected skill and project memory file. Recurring tasks are replayed, changes are checked on separate validation tasks, and proposals are staged for review before adoption.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Turn recurring Codex requests into skill updates
  • Consolidate feedback into skills and project memory
  • Compare validation scores before applying changes
microsoft/SkillOpt1.9만2026년 10월 19일 업데이트

Study a reference adaptation connecting the shared skillopt_sleep cycle to a custom DeepSeek backend for OpenClaw. It provides prototype wrappers, sample tasks, and a porting checklist for developers building an integration.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Study a prototype DeepSeek backend for OpenClaw
  • Identify changes needed for current engine interfaces
  • Review sample tasks and environment-specific settings
microsoft/SkillOpt1.9만2026년 10월 19일 업데이트

Review past local Cursor sessions, identify recurring tasks, and propose changes to a project skill. Changes are tested on separate validation tasks and staged for review before adoption, with backups of existing files.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Turn recurring Cursor tasks into a reusable skill
  • Review proposed edits and validation scores before adoption
  • Try the workflow without provider calls using mock
microsoft/SkillOpt1.9만2026년 10월 19일 업데이트

Review past Claude Code sessions and turn recurring tasks into proposed updates to skills and project memory. Replay tasks, compare scores on separate validation tasks, and review staged edits before applying them with backups.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Consolidate repeated Claude Code corrections into reusable rules
  • Review proposed changes to SKILL.md and CLAUDE.md
  • Try the cycle without provider calls using mock
microsoft/SkillOpt1.9만2026년 10월 19일 업데이트

microsoft의 스킬 모두 보기

이 스킬의 문제 신고