Documentation v1.0.0

openclaw-context-maintainer

Compress OpenClaw session context safely with backups and restore steps.

juanbastias 更新于 2026-07-08 1 浏览
下载 SKILL

技能说明

Compress OpenClaw session context safely with backups and restore steps.

使用场景

Use this skill when an OpenClaw session is getting too large, noisy, or slow and you need to reduce token burn without losing the active thread.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/openclaw-context-maintainer
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 14 kB
SKILL.md text/markdown
---
name: "openclaw-context-maintainer"
description: "Compress OpenClaw session context safely with backups and restore steps."
license: "MIT-0"
---

# OpenClaw Context Maintainer

Use this skill when an OpenClaw session is getting too large, noisy, or slow and you need to reduce token burn without losing the active thread.

## Workflow

1. Check whether compression is actually needed.
2. Back up the current session or source material first.
3. Preserve the newest context and the active task.
4. Summarize only stale context into a compact block.
5. Verify that names, numbers, decisions, blockers, and open tasks survived.
6. Restore from backup if the result is weak.

## Rules

- Never compress blindly.
- Keep recent context visible.
- Do nothing if the session is already lean.
- Treat compression as hygiene, not memory replacement.
- Promote durable lessons to `MEMORY.md`, `AGENTS.md`, or `TOOLS.md` when needed.

## Best fit

- Long troubleshooting threads
- Repeated back-and-forth
- Obsolete status chatter
- Old tool noise
- Sessions approaching practical context limits

## Avoid

- Blind truncation
- Compressing active reasoning in flight
- Using compression instead of actual memory capture
- Removing recent user decisions or open tasks

## Verification

- Session still reads naturally
- Active task remains clear
- Backup exists
- Restore path exists

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。