# Skillopt Sleep

Reference-only OpenClaw adaptation of SkillOpt-Sleep.

- Repository: https://github.com/microsoft/SkillOpt (18804 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add microsoft/SkillOpt --skill skillopt-sleep -g -a claude-code -y`
Codex: `npx skills add microsoft/SkillOpt --skill skillopt-sleep -g -a codex -y`
Cursor: `npx skills add microsoft/SkillOpt --skill skillopt-sleep -g -a cursor -y`
Gemini CLI: `npx skills add microsoft/SkillOpt --skill skillopt-sleep -g -a gemini-cli -y`

## Description

Reference-only OpenClaw adaptation of SkillOpt-Sleep. Use it to study or port the contributed DeepSeek wrapper, not as a ready-to-run installation.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# SkillOpt-Sleep OpenClaw reference adaptation

This directory is a contributed **reference**, not a supported, plug-and-play
OpenClaw integration. It illustrates one way to connect the shared
`skillopt_sleep` cycle to a custom DeepSeek Chat Completions backend and a set of
environment-specific task fixtures.

Do not run or schedule the files unchanged. Several scripts and the sample
configuration preserve assumptions from the contributor's original machine,
and parts of the wrapper have not yet been ported to the current shared-engine
interfaces. Start with the directory's [README.md](README.md), which is the
authoritative status and adaptation guide.

## What is included

- `skillopt_sleep_openclaw.py`, a contributed DeepSeek backend prototype. It
  also contains an Ollama embedding helper, but that helper is not wired into
  the current shared sleep cycle.
- `run_sleep.py`, a custom cycle wrapper with environment-specific paths and a
  backend-registration shim.
- `slash_sleep.py`, an experimental command helper written for an older
  staging-manifest shape.
- `run_sleep_cron.sh`, a machine-specific category runner, not a portable cron
  installer.
- `config.json`, a sample configuration, not a set of guaranteed or enforced
  runtime limits.
- `tests/*.json`, example task fixtures from one environment, not a universal
  OpenClaw benchmark.

## Known porting gaps

Before treating this as an integration, a maintainer must at least:

The rest: https://github.com/microsoft/SkillOpt/blob/HEAD/plugins/openclaw/SKILL.md
