🧪 Skills

DEPRECATED - Bobo Context Cleanup

分析并归档 OpenClaw workspace 中低价值 memory 记录,缓解上下文膨胀与启动变慢。适用于上下文冗余、维护整理场景。默认先分析与计划,执行归档前要求

v0.2.1
❤️ 0
⬇️ 109
👁 1
Share

Description


name: context-cleanup description: DEPRECATED: Please use context-cleanup (same owner). This legacy slug is retained only for compatibility. 已废弃,请迁移到 context-cleanup。 user-invocable: true metadata: { "openclaw": { "emoji": "🧹", "requires": { "bins": ["bash"] } }, "version": "0.2.1", "updatedAt": "2026-03-06 20:47 Asia/Shanghai" }

Context Cleanup

用于整理 workspace 的 memory 日志,降低冗余上下文负担。

关键资源

  • 脚本:cleanup.sh
  • 策略:references/policy.md

标准流程(必须)

  1. 分析现状
./skills/context-cleanup/cleanup.sh analyze
  1. 生成计划(不执行)
./skills/context-cleanup/cleanup.sh plan
  1. 用户确认后执行归档
./skills/context-cleanup/cleanup.sh archive

可选参数

# 指定截止日期(早于该日期的记录可归档)
./skills/context-cleanup/cleanup.sh archive 2026-03-01

# 仅预览,不执行
./skills/context-cleanup/cleanup.sh archive --dry-run

# 非交互执行(需谨慎)
./skills/context-cleanup/cleanup.sh archive --yes

# 机器可读输出
./skills/context-cleanup/cleanup.sh analyze --json
./skills/context-cleanup/cleanup.sh plan --json

执行规则

  • 默认归档,不做永久删除
  • planarchive
  • 归档前必须获得用户确认(除非用户明确同意 --yes
  • 不处理 MEMORY.mdspecs/AGENTS.md

输出模板

🧹 上下文清理计划

- Memory 文件:X
- 低价值候选:A
- 归档候选:B

是否按计划执行归档?

发布前自检

./skills/context-cleanup/cleanup.sh analyze
./skills/context-cleanup/cleanup.sh plan
./skills/context-cleanup/cleanup.sh archive --dry-run

Reviews (0)

Sign in to write a review.

No reviews yet. Be the first to review!

Comments (0)

Sign in to join the discussion.

No comments yet. Be the first to share your thoughts!

Compatible Platforms

Pricing

Free

Related Configs