Use when: prompt context is bloating (slow replies, rising cost, noisy transcripts) and you want a ranked offender list + reversible plan. Don't use when: yo...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install context-clean-up或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install context-clean-up⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/context-clean-up/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: context-clean-up slug: context-clean-up version: 1.0.7 license: MIT description: | Use when: prompt context is bloating (slow replies, rising cost, noisy transcripts) and you want a ranked offender list + reversible plan. Don't use when: you want automatic deletions or unattended config edits. Output: an audit-only report (top offenders + 3-8 lowest-risk fixes + rollback notes). No changes are applied automatically. disable-model-invocation: true allowed-tools: - sessions_list - sessions_history - session_status metadata: { "openclaw": { "emoji": "🧹", "requires": { "bins": ["python3"] } } } ---
This skill identifies what is bloating prompt context and turns it into a safe, reversible plan.
1. exact change, 2. expected impact, 3. rollback plan, 4. verification steps.
exec tool usage.read tool usage./context-clean-up → audit + actionable plan (no changes)Optional manual report generation:
python3 scripts/context_cleanup_audit.py --out context-cleanup-audit.json
Windows variant:
py -3 scripts/context_cleanup_audit.py --out context-cleanup-audit.json
When available, prefer fresh-session /context json receipts over subjective claims like “it feels leaner”.
High-signal fields:
eligible skillsskills.promptCharsprojectContextCharssystemPrompt.charspromptTokensIf exact receipts are unavailable, fall back to ranked offenders + change scope, but label confidence lower.
- oversized exec output - large read output - long web_fetch payloads
- cron jobs that say “OK” every run - heartbeat messages that are not alert-only
- overgrown AGENTS.md / MEMORY.md / SOUL.md / USER.md - long runbooks embedded directly in SKILL.md
- too many always-visible specialist skills that should be on-demand workers/subagents instead
- repeated summaries that keep historical detail instead of restart-critical facts only
NO_REPLY or nothing on success).references/, memory/, or external notes.You need:
)Common defaults:
~/.openclaw%USERPROFILE%\.openclawpython3 scripts/context_cleanup_audit.py --workspace . --state-dir <OPENCLAW_STATE_DIR> --out context-cleanup-audit.json
Interpretation cheatsheet:
Include:
After changes:
/context json before/afterMany OpenClaw runtimes snapshot skills/bootstrap per session. So skill/config slimming often does not fully apply to the current session. Use a new session for authoritative verification.
references/out-of-band-delivery.mdreferences/cron-noise-checklist.md安装 context-clean-up 后,可以对 AI 说这些话来触发它
Help me get started with context-clean-up
Explains what context-clean-up does, walks through the setup, and runs a quick demo based on your current project
Use context-clean-up to use when: prompt context is bloating (slow replies, rising cost, no...
Invokes context-clean-up with the right parameters and returns the result directly in the conversation
What can I do with context-clean-up in my design & creative workflow?
Lists the top use cases for context-clean-up, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/context-clean-up/ 目录(个人级,所有项目可用),或 .claude/skills/context-clean-up/(项目级)。重启 AI 客户端后,用 /context-clean-up 主动调用,或让 AI 根据上下文自动发现并使用。
context-clean-up 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
context-clean-up 可免费安装使用。请查阅仓库了解许可证信息。
Use when: prompt context is bloating (slow replies, rising cost, noisy transcripts) and you want a ranked offender list + reversible plan. Don't use when: yo...
context-clean-up 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using context-clean-up
Identifies repetitive steps in your workflow and sets up context-clean-up to handle them automatically