← Back to Skills Marketplace
99
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install sleep-consolidation
Description
Use this skill to consolidate an AI agent's daily experiences and learnings into structured long-term memory, mimicking human sleep-based memory consolidatio...
Usage Guidance
Before installing: 1) Understand that the bundled scripts will read and write files under a workspace (default ~/.agent_workspace) — any data you don't want persisted or sent should not be in those logs. 2) The code sends context to api.anthropic.com and requires ANTHROPIC_API_KEY, but the registry metadata omitted that requirement; do not supply credentials unless you trust the publisher and Anthropics. 3) The metadata also didn't declare that a Python runtime is required; ensure you run the scripts in an isolated environment (container or VM) for testing. 4) If you plan to use --flush or NREM/REM modes, review session logs for secrets and consider redaction before sending; ideally run the skill with a workspace path you control. 5) Ask the publisher to update metadata to declare required env vars (ANTHROPIC_API_KEY), required binaries (python3), and the default config path, and to document any data retention/retention encryption. If you cannot verify the publisher or code, run it offline or perform a manual code audit first.
Capability Analysis
Type: OpenClaw Skill
Name: sleep-consolidation
Version: 1.0.0
The sleep-consolidation skill bundle implements a memory management system for AI agents based on biological principles of NREM and REM sleep. It uses a local workspace (~/.agent_workspace) to store Markdown-based logs and long-term memories, and utilizes the Anthropic API (Claude) to perform summarization and creative synthesis of session data. The scripts (load_memory.py, micro_rest.py, sleep_cycle.py) are well-structured, follow the stated purpose in SKILL.md, and do not contain evidence of malicious intent, such as unauthorized data exfiltration, persistence mechanisms, or harmful prompt injections.
Capability Assessment
Purpose & Capability
The skill's stated purpose (consolidating an agent's memories to disk) matches the included scripts: they read daily logs and MEMORY.md and write curated Markdown into a workspace. However, the skill's metadata claims no required environment variables or binaries, while the code clearly requires a Python runtime and an ANTHROPIC_API_KEY — an inconsistency between declared requirements and actual capabilities.
Instruction Scope
SKILL.md and scripts instruct the agent to load session logs and memory contents and (in flush/NREM/REM modes) send them to the Anthropic API for processing. That behavior is coherent with the skill's purpose, but it means arbitrary session content (potentially including secrets) will be transmitted to a third-party LLM. The instructions do not constrain what to redact before sending, and the skill encourages piping full session context into the API.
Install Mechanism
There is no install spec (instruction-only), so no remote binaries are downloaded. The code files are bundled with the skill, which lowers supply-chain risk vs. arbitrary downloads. Still, running bundled Python scripts writes files to disk and makes network calls, so it's not risk-free.
Credentials
The code requires an ANTHROPIC_API_KEY (used to call api.anthropic.com) and implicitly requires a Python interpreter and a writable workspace directory (default ~/.agent_workspace). None of these were declared in the registry metadata (no required env vars, no required binaries, no config paths). Requesting an LLM API key and granting read/write access to a home workspace are material privileges that should be declared and justified.
Persistence & Privilege
The skill does persistent disk writes to a workspace (MEMORY.md, memory/, bank/). It is not force-installed (always: false). It can be invoked autonomously by agents (default), which combined with network access means it could periodically send stored memories to the external API — this is expected for the skill but increases blast radius if sensitive data is stored.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install sleep-consolidation - After installation, invoke the skill by name or use
/sleep-consolidation - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
sleep-consolidation v1.0.0
- Initial release of the sleep-consolidation skill for AI agents, enabling biologically-inspired daily memory consolidation.
- Supports three consolidation modes: micro-rest (quick logging), NREM (deep structured memory transfer), and REM (creative synthesis/cross-domain insight).
- Stores long-term and daily memories as Markdown files using OpenClaw's two-layer architecture.
- Triggers on agent session end, user prompts to "sleep" or "consolidate memory", context window nearing limit, or memory compaction events.
- Provides system prompts and scripts for each consolidation phase with clear JSON-based outputs for downstream processing.
Metadata
Frequently Asked Questions
What is sleep-consolidation?
Use this skill to consolidate an AI agent's daily experiences and learnings into structured long-term memory, mimicking human sleep-based memory consolidatio... It is an AI Agent Skill for Claude Code / OpenClaw, with 99 downloads so far.
How do I install sleep-consolidation?
Run "/install sleep-consolidation" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is sleep-consolidation free?
Yes, sleep-consolidation is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does sleep-consolidation support?
sleep-consolidation is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created sleep-consolidation?
It is built and maintained by cshiaa (@cshiaa); the current version is v1.0.0.
More Skills