ClawSpa 💆
5 core local treatments, plus 1 optional add-on:
- - 🧴 Deep Cleanse — Memory optimization (MEMORY.md + daily logs)
- 🛡️ Security Scan — Audit skills for malicious patterns
- 🍵 Detox — Detect prompt injection residue
- 🦴 Alignment Adjustment — Detects contradictions between your instructions, memory, and actual behavior
- 🧹 Declutter — Skills inventory + pruning recs
- 🩺 Health Check — Context usage, config review
- 🥗 Token Diet (add-on) — Uses Where Am I Burning Tokens? to audit token spend and trim context calories
Commands
INLINECODE0 full local | /spa-quick quick stats | /spa-memory cleanse only | /spa-security security only | /spa-health health only | /spa-align alignment adjustment only
Setup
On first run, create ~/.openclaw/clawspa/ with config.md and history/. Optional cloud analysis is documented on clawspa.org, not in the published skill bundle.
Local Treatments (free)
🧴 Deep Cleanse — See references/deep-cleanse.md for full procedure. Scans memory files for stale entries, duplicates, and bloat. Never modifies without approval.
🛡️ Security Scan — See references/security-scan.md for scan procedure and pattern list. Audits installed skills and rates them by risk level.
🍵 Detox — See references/detox.md for detection procedure. Scans memory for residue from past interactions. Reports without deleting.
🦴 Alignment Adjustment — See references/alignment-adjustment.md for full procedure. Detects misalignment between user intent and agent config. Presents findings as suggestions, never auto-modifies.
🧹 Declutter — See references/declutter.md for inventory procedure. Assesses skill usage and identifies redundancy. Never uninstalls without approval.
🩺 Health Check — See references/health-report.md for diagnostic procedure. Checks config best practices and generates a report card.
Optional Cloud Analysis
Optional cloud analysis lives on clawspa.org. Review the site docs and privacy details there before using it. Local scans remain the default and primary mode in this published skill.
Report Card
Save to memory/spa-reports/spa-report-YYYY-MM-DD.md:
CODEBLOCK0
Safeguards
- - Never delete, modify, or uninstall without explicit approval
- Always back up before changes
- Keep local scans local-first, and review clawspa.org privacy/docs before using optional cloud analysis
- Heuristic scan, not a guarantee
- Split across sessions if too token-heavy
Scheduling
Add to HEARTBEAT.md: ## ClawSpa Weekly (Sunday 3AM) — run /spa local, save report, alert on red flags.
ClawSpa 💆
5项核心本地护理,外加1项可选附加服务:
- - 🧴 深度清洁 — 内存优化(MEMORY.md + 日常日志)
- 🛡️ 安全扫描 — 审计技能中的恶意模式
- 🍵 排毒 — 检测提示注入残留
- 🦴 对齐调整 — 检测指令、内存与实际行为之间的矛盾
- 🧹 整理 — 技能清单 + 修剪建议
- 🩺 健康检查 — 上下文使用情况、配置审查
- 🥗 Token节食 (附加) — 使用我的Token烧在哪里?审计Token消耗并精简上下文热量
命令
/spa 完整本地 | /spa-quick 快速统计 | /spa-memory 仅清洁 | /spa-security 仅安全 | /spa-health 仅健康 | /spa-align 仅对齐调整
设置
首次运行时,创建 ~/.openclaw/clawspa/ 目录,内含 config.md 和 history/ 文件夹。可选的云分析文档位于 clawspa.org,不在已发布的技能包中。
本地护理(免费)
🧴 深度清洁 — 完整流程见 references/deep-cleanse.md。扫描内存文件中的过期条目、重复项和冗余内容。未经批准绝不修改。
🛡️ 安全扫描 — 扫描流程和模式列表见 references/security-scan.md。审计已安装技能并按风险等级评级。
🍵 排毒 — 检测流程见 references/detox.md。扫描内存中过往交互的残留物。仅报告,不删除。
🦴 对齐调整 — 完整流程见 references/alignment-adjustment.md。检测用户意图与代理配置之间的偏差。以建议形式呈现发现,绝不自动修改。
🧹 整理 — 清单流程见 references/declutter.md。评估技能使用情况并识别冗余。未经批准绝不卸载。
🩺 健康检查 — 诊断流程见 references/health-report.md。检查配置最佳实践并生成报告卡。
可选的云分析
可选的云分析位于 clawspa.org。使用前请查阅该站点的文档和隐私详情。本地扫描仍是此已发布技能中的默认和主要模式。
报告卡
保存至 memory/spa-reports/spa-report-YYYY-MM-DD.md:
═══════════════════════════════════════
💆 ClawSpa 健康报告 | [日期] | [本地/深度]
═══════════════════════════════════════
📊 内存:X个文件 ~Y个Token | 技能:X | 上下文:X% | 配置:X/5
🧴 过期:X | 重复:X | 矛盾:X | 节省:~X个Token
🛡️ 🟢X 🟡X 🔴X
🍵 注入:X | 可疑:X
🦴 矛盾:X | 风险:X | 自动化:X | 过期:X
🧹 活跃:X | 闲置:X | 休眠:X | 移除:X
🩺 1. [紧急] 2. [次要] 3. [第三]
═══════════════════════════════════════
安全措施
- - 未经明确批准绝不删除、修改或卸载
- 修改前始终备份
- 保持本地扫描优先,使用可选云分析前请查阅 clawspa.org 的隐私/文档
- 启发式扫描,非绝对保证
- 若Token过重,可分多次会话执行
调度
添加至 HEARTBEAT.md:## ClawSpa 每周(周日凌晨3点) — 运行 /spa local,保存报告,对红色警报进行预警。