skillopt-sleep

A reference-only OpenClaw adaptation shows how to connect a self-improvement cycle to a DeepSeek chat service. OpenClaw is an agent platform, and this adaptation is not ready to run unchanged.

In plain words
What is it for?
Use it as a starting point for adapting the SkillOpt-Sleep cycle to OpenClaw and a DeepSeek backend.
Why use it?
It helps developers study or port the integration while making clear that the included files contain machine-specific assumptions and unfinished interfaces.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/microsoft/skillopt/openclaw
Any agent
npx skills add microsoft/SkillOpt --skill openclaw
Clone the repo
git clone --depth 1 https://github.com/microsoft/SkillOpt

Made for: Claude Code, Codex.

Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,090 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00037 $0.01090
Opus 5 $0.00018 $0.00545
Sonnet 5 $0.00007 $0.00218
Haiku 4.5 $0.00004 $0.00109

Measured 2d ago against content hash d1d9dcd81214, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

skillopt-sleep scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (run_sleep_cron.sh, run_sleep.py, skillopt_sleep_openclaw.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/openclaw/SKILL.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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, 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:

  1. Replace every absolute workspace, repository, state, skill, log, and task path with explicit user configuration.
  2. Update the custom backend factory to the current get_backend call contract, including the project directory, and update its backend methods and edit records to the current protocol.
  3. Replace the experimental adoption logic with the current staging manifest and skillopt_sleep.staging.adopt behavior. Current staging artifacts use proposed_SKILL.md / proposed_CLAUDE.md, manifest.json, and report files; they do not expose the old manifest.proposed_skill field.
  4. Decide how real OpenClaw transcripts are converted into a supported session format. Pointing claude_home at an arbitrary agent directory does not by itself make its files Claude Code-compatible JSONL.
  5. Build scheduling around the adapted wrapper. The shared scheduler launches the shared CLI; it does not automatically preserve this custom backend or its category task-file flow.
  6. Add isolated end-to-end tests for dry-run, accepted/rejected gates, staging, adoption and backup, credential failure, and scheduled execution.

Read the full file on GitHub · 104 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 104 lines · 37 tokens per session scan A d1d9dcd81214

Subscribe to this mod's changes

skillopt-sleep is a skill published in the GitHub repository microsoft/SkillOpt (16,489 stars, last pushed 2d ago), licensed MIT. It adds 37 tokens to every session and 1,090 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

macbook-optimizer

Complete MacBook optimization suite: monitoring, troubleshooting, cleanup, and performance tuning. Works on all Macs (Intel & Apple Silicon). No extra tools required.

YunjueTech/Yunjue-Agent · 36 tokens

pptx

Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for creating new presentations, modifying content, working with layouts, adding speaker notes, or any presentation tasks.

YunjueTech/Yunjue-Agent · 44 tokens

apple-mail

Apple Mail.app integration for macOS. Read inbox, search emails, send emails, reply, and manage messages with fast direct access (no enumeration).

YunjueTech/Yunjue-Agent · 33 tokens

pdf

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

YunjueTech/Yunjue-Agent · 50 tokens

xlsx

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for creating new spreadsheets, reading/analyzing data, modifying existing spreadsheets, or recalculating…

YunjueTech/Yunjue-Agent · 68 tokens

agent-coordination

Coordinate a deliberation across multiple AI agents (Claude, Gemini, Codex, Cursor, Antigravity, etc.) using a shared markdown log. Teaches Claude to read the full log before responding, append entries with the locked preface format, follow the phase model (Research → Converge → Stabilize → Action-List → Approval →…

bogdanbaciu21/skills · 187 tokens