ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified productivity Safety 4/5

sleep

睡觉技能。收到 /sleep 时,将当前 session 中未完成的事项记录到文件,然后通过 Gateway API reset session。醒来时 hook 自动读取并注入未完成事项到新 session 上下文。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/axelhu/axel-sleep
Or

What This Skill Does

The Sleep skill is a sophisticated session-state management tool designed for OpenClaw AI agents. It functions as a "save-point" mechanism, allowing an agent to pause its current thought process, serialize its pending tasks and technical context into a structured Markdown file, and reset its volatile memory. This is critical for agents handling long-running, multi-step development tasks where session context may become cluttered or hit token limits. By using the /sleep command, the agent performs a deep-dive analysis of its progress, identifies actionable technical details, and prepares a roadmap for when the user wakes the agent up. Upon restart, the agent automatically detects these saved files, ensuring zero loss of productivity and seamless continuity.

Installation

You can easily integrate this skill into your OpenClaw environment by running the following command in your terminal: clawhub install openclaw/skills/skills/axelhu/axel-sleep Once installed, ensure your agent has read/write permissions to the workspace/previews/ directory, as the skill depends on local file persistence to store state.

Use Cases

  • Complex Development Cycles: When working on large codebases where you need to step away for hours or days, use sleep to snapshot the exact line of code, active branches, and planned refactors.
  • Session Cleanup: If an agent starts exhibiting "hallucinations" or performance degradation due to a massive conversation history, use sleep to clean the state while keeping your task list intact.
  • Task Handoffs: Use sleep to transition between different project focuses or to prepare a summary for when you need to switch contexts between different team members.

Example Prompts

  1. "/sleep: I have finished the API implementation for the login endpoint, but the database schema migration is still failing with a 500 error on line 42. Please document the current state and reset the session."
  2. "/sleep: I am pausing the documentation project. We have successfully generated the core modules, but the CSS layout for the sidebar is still overlapping on mobile devices. Save our progress."
  3. "/sleep: Everything is done for this task. Please record the completion status and reset the context so we can start the next feature fresh."

Tips & Limitations

  • Be Detailed: The effectiveness of the resume depends entirely on the detail captured. Always include specific error codes, file paths, and current variables.
  • Pending vs. All Done: Always ensure your agent correctly flags the status as pending or all_done to help your workflow management.
  • Security: Because this skill saves files to the local disk, ensure that you are not storing sensitive production credentials or API keys in the plaintext Markdown files within workspace/previews/ if you are working in a non-secure or shared environment.

Metadata

Author@axelhu
Stars4146
Views1
Updated2026-04-16
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-axelhu-axel-sleep": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#session-management#productivity#state-persistence#developer-workflow#task-tracking
Safety Score: 4/5

Flags: file-write, file-read, external-api