← Back to Skills Marketplace
irideas

DEPRECATED - Bobo Context Cleanup

by irideas · GitHub ↗ · v0.2.1
cross-platform ✓ Security Clean
280
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install bobo-context-cleanup
Description
分析并归档 OpenClaw workspace 中低价值 memory 记录,缓解上下文膨胀与启动变慢。适用于上下文冗余、维护整理场景。默认先分析与计划,执行归档前要求确认。
README (SKILL.md)

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
Usage Guidance
This skill appears to do exactly what it says: analyze and archive low-value Markdown memory files in the local workspace. Before installing or running it: 1) Note the skill is deprecated — prefer the newer 'context-cleanup' slug from the same owner. 2) Ensure you have a recent backup of your workspace or run archive with --dry-run first to verify candidates. 3) Install or ensure node is available if you plan to use --json output (the script calls node but node is not declared in metadata). 4) Be careful with non-interactive runs (--yes); test interactively first. 5) Confirm WORKSPACE resolves to the expected directory to avoid moving files from an unintended location.
Capability Analysis
Type: OpenClaw Skill Name: bobo-context-cleanup Version: 0.2.1 The skill bundle is a utility designed to manage and archive workspace memory logs to reduce context clutter. The primary script, `cleanup.sh`, identifies low-value or aged markdown files and moves them to an archive directory, following a structured analyze-plan-archive workflow. While the script contains a minor implementation flaw in how it uses `node -e` to format JSON output (potential syntax errors or shell expansion issues), there is no evidence of malicious intent, data exfiltration, or unauthorized system access.
Capability Assessment
Purpose & Capability
Name/description, SKILL.md, and cleanup.sh are consistent: they analyze, plan, and move low-value Markdown memory files into a local archive directory. The script operates only on workspace paths (memory/, archive/, AGENTS.md, specs/) and does not request network access or unrelated credentials. Minor mismatch: registry metadata lists no required binaries, SKILL.md metadata mentions bash, but the script also invokes node for JSON output — node is not declared as a requirement.
Instruction Scope
SKILL.md instructs the agent to run ./cleanup.sh analyze|plan|archive. The script's actions match these steps: collect files, classify low-value/old files, and (after confirmation) move candidates to memory/archive. It does modify workspace files (moves to archive), which is expected for this purpose. It does not read or transmit data to external endpoints. Note: the --yes flag allows non-interactive archival which could be risky if invoked unintentionally.
Install Mechanism
No install spec is provided (instruction + included shell script). Nothing is downloaded or extracted. This minimizes install-time risk.
Credentials
No credentials or config paths are requested. The script optionally uses WORKSPACE (with a sensible default) so environment access is proportional. However, the script requires bash (declared in SKILL.md) and also calls node for JSON outputs but node is not declared; the missing declared dependency could cause failures or unexpected behavior when JSON output is requested.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request persistent elevated privileges or modify other skills' configs. It does perform filesystem writes within the workspace (moving files into archive), which is within its stated scope.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install bobo-context-cleanup
  3. After installation, invoke the skill by name or use /bobo-context-cleanup
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.2.1
Deprecated: please migrate to context-cleanup. This slug is kept for backward compatibility only.
v0.2.0
首发 0.2:重写清理脚本,支持 --dry-run/--yes/--json,新增策略文档,统一中文说明,增加 metadata.version/updatedAt。
Metadata
Slug bobo-context-cleanup
Version 0.2.1
License
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is DEPRECATED - Bobo Context Cleanup?

分析并归档 OpenClaw workspace 中低价值 memory 记录,缓解上下文膨胀与启动变慢。适用于上下文冗余、维护整理场景。默认先分析与计划,执行归档前要求确认。 It is an AI Agent Skill for Claude Code / OpenClaw, with 280 downloads so far.

How do I install DEPRECATED - Bobo Context Cleanup?

Run "/install bobo-context-cleanup" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is DEPRECATED - Bobo Context Cleanup free?

Yes, DEPRECATED - Bobo Context Cleanup is completely free (open-source). You can download, install and use it at no cost.

Which platforms does DEPRECATED - Bobo Context Cleanup support?

DEPRECATED - Bobo Context Cleanup is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created DEPRECATED - Bobo Context Cleanup?

It is built and maintained by irideas (@irideas); the current version is v0.2.1.

💬 Comments