← 返回 Skills 市场
99
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install sleep-consolidation - 安装完成后,直接呼叫该 Skill 的名称或使用
/sleep-consolidation触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 99 次。
如何安装 sleep-consolidation?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install sleep-consolidation」即可一键安装,无需额外配置。
sleep-consolidation 是免费的吗?
是的,sleep-consolidation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
sleep-consolidation 支持哪些平台?
sleep-consolidation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 sleep-consolidation?
由 cshiaa(@cshiaa)开发并维护,当前版本 v1.0.0。
推荐 Skills