← 返回 Skills 市场
166
总下载
1
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install lobster-doctor-skill-slim
功能描述
🦞 龙虾医生 — Workspace 健康管家。体检+清理+技能瘦身+Memory归档。说句话就能用。
使用说明 (SKILL.md)
🦞 龙虾医生
你的 OpenClaw workspace 会越来越臃肿——会话历史堆积、临时文件堆积、技能描述膨胀。龙虾医生帮你自动治理。
核心功能
| 功能 | 一句话触发 |
|---|---|
| 体检诊断 | 「给龙虾做个体检」 |
| 安全清理 | 「帮我清理一下」 |
| 技能瘦身 | 「技能太多了」 |
| Memory归档 | 「归档过期记忆」 |
| 会话健康 | 「会话健康怎么样」 |
| cron巡检 | 「检查僵尸任务」 |
独家功能:技能瘦身
问题:每个技能的 description 都注入系统提示。100+ 技能 = 每轮白白烧掉几千 tokens。
解法:精简 description,只保留核心功能句。
效果:每轮节省 ~574 tokens。
安全机制
- 预览优先:任何修改都先展示预览
- 自动备份:清理前自动备份到
.cleanup-backup/ - 白名单保护:核心文件永不删除
- 零 API 调用:纯本地运行
安装
clawhub install lobster-doctor-skill-slim
更新日志
- v2.1.0: Memory归档命令、修复去重算法
- v2.0.0: 会话健康监控、周报生成
License
MIT
安全使用建议
This package appears to implement what it says: local workspace auditing, safe cleanup (with backups), and a tool to shorten SKILL.md descriptions. Before using: 1) Run in report/dry-run mode only; do not run 'apply' until you've reviewed diffs. 2) Verify the backup folder (.cleanup-backup) is created and inspect backups. 3) Be aware it reads session files (~/.openclaw/agents/*/sessions/*.jsonl) which may contain chat history and sensitive content; if you have highly sensitive sessions, exclude or move them before running. 4) The slim operation can edit SKILL.md for many skills including globally installed ones (it scans an npm node_modules path); ensure you want those edits and have permission to restore from backups. 5) The weekly report contains a Feishu push helper stub that currently does not send; if that is later enabled, double-check channel configs. If you want lower risk: inspect the scripts locally, run tests (skill_slim_test.py) and limit the SKILL_DIRS before applying changes.
功能分析
Type: OpenClaw Skill
Name: lobster-doctor-skill-slim
Version: 2.1.1
The lobster-doctor skill bundle is a maintenance and optimization utility for the OpenClaw workspace. Its primary functions include cleaning up temporary files, archiving old memory logs, auditing cron jobs, and 'slimming' skill descriptions to reduce token consumption. The scripts (lobster_doctor.py and skill_slim.py) include safety features such as a core file whitelist (e.g., MEMORY.md, SOUL.md), automatic backups to a hidden directory (.cleanup-backup/), and dry-run capabilities. While the tool accesses sensitive areas like session history and configuration files, it does so solely to generate local health reports and statistics, with no evidence of data exfiltration or malicious intent.
能力评估
Purpose & Capability
Name/description (workspace health, cleaning, skill slimming, memory archive, cron audit) align with the provided code: scripts scan .openclaw workspace, sessions, skills directories, estimate token usage, generate reports, and implement a 'slim' operation that edits SKILL.md files. No unrelated credentials, binaries, or network services are required for core functionality.
Instruction Scope
SKILL.md promises preview-first, backups, and local-only operation. The code implements those behaviours (backup dir, preview/dry-run modes). However the instructions do not explicitly enumerate every path the code will read/modify: agent sessions under ~/.openclaw/agents, openclaw.json, skills directories (including a global node_modules path), and SKILL.md files will be parsed and (if apply chosen) modified. The weekly report code checks channels config and contains a Feishu helper stub (it currently returns False and avoids sending). Users should expect the skill to read potentially sensitive session files and to edit other skills' frontmatter when applying slimming.
Install Mechanism
No install spec is present; the package is instruction‑only in the registry metadata and relies on local Python (scripts are included). There are no downloads from external URLs or archive extraction steps. SKILL.md shows a clawhub install command, but no installer script is provided in the package.
Credentials
The skill requests no environment variables or credentials. It reads local config files (e.g., ~/.openclaw/openclaw.json and cron/jobs.json) which is coherent with generating reports and detecting enabled channels. No secret-taking environment variables are required by the code.
Persistence & Privilege
always:false (default). The skill can modify other skills' SKILL.md files (skill_slim.py 'apply' mode) and writes backups into a workspace .cleanup-backup directory. This is consistent with its purpose (slimming and cleanup) but grants it the ability to change other skills' metadata on disk — users should be aware and prefer dry-run/preview and check backups before applying.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install lobster-doctor-skill-slim - 安装完成后,直接呼叫该 Skill 的名称或使用
/lobster-doctor-skill-slim触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.1.1
精简项目介绍,优化可读性
v2.1.0
v2.1: 新增Memory归档命令;修复瘦身去重算法;会话健康监控;优化token消耗报告
v1.1.0
v1.1: Add skill-slim feature for token optimization. 56% description reduction, ~3200 tokens saved per turn.
元数据
常见问题
Lobster Doctor 是什么?
🦞 龙虾医生 — Workspace 健康管家。体检+清理+技能瘦身+Memory归档。说句话就能用。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 166 次。
如何安装 Lobster Doctor?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install lobster-doctor-skill-slim」即可一键安装,无需额外配置。
Lobster Doctor 是免费的吗?
是的,Lobster Doctor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Lobster Doctor 支持哪些平台?
Lobster Doctor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Lobster Doctor?
由 Masongmx(@masongmx)开发并维护,当前版本 v2.1.1。
推荐 Skills