← 返回 Skills 市场
brandonwise

Workspace Cleaner

作者 brandonwise · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
859
总下载
0
收藏
6
当前安装
1
版本数
在 OpenClaw 中安装
/install workspace-cleaner
功能描述
Automates safe cleanup of OpenClaw workspaces by previewing and moving temp files, logs, duplicates, and cruft to the system trash with customizable filtering.
安全使用建议
This skill appears to do what it says, but review before enabling automation: 1) Run a dry-run (no --execute) and inspect the JSON output to confirm targets. 2) Check config/patterns.json and references/safe-defaults.md to ensure your important files/dirs are in protected_files/protected_dirs. 3) Note the script defaults to $CLAWD_WORKSPACE or ~/clawd if you don't pass --workspace — set the workspace explicitly if different. 4) The script calls local git and trash utilities (git remote get-url, trash/trash-put); ensure these are present and behave as you expect. 5) Avoid copying the provided cron/pre-commit examples verbatim with --execute; test thoroughly before scheduling automatic deletes. 6) If you want stronger safety, add additional protected paths or require manual review before any automated run.
功能分析
Type: OpenClaw Skill Name: workspace-cleaner Version: 1.0.0 The OpenClaw Workspace Cleaner skill is designed for safe local file system cleanup. The `scripts/cleanup.py` uses `subprocess.run` to execute `git` and `trash` commands, passing arguments as a list, which securely prevents shell injection. It defaults to a dry-run, moves files to system trash instead of permanent deletion, and explicitly protects critical OpenClaw directories and files (e.g., `memory/`, `.git/`, `MEMORY.md`). There is no evidence of data exfiltration, unauthorized network activity, persistence mechanisms, or malicious prompt injection attempts in `SKILL.md` or other documentation. The code aligns with its stated purpose and incorporates robust safety features.
能力评估
Purpose & Capability
The name/description match the included script and config. The script finds temp files, images, node_modules, venvs, and duplicate repos (via local git remotes) and moves them to trash. Required tools (python, trash/trash-cli, git) align with its behavior.
Instruction Scope
SKILL.md instructs running the bundled script with preview/execute and documents configuration and patterns. Minor inconsistencies: the script will default the workspace to $CLAWD_WORKSPACE or ~/clawd if not provided, but SKILL.md does not document the CLAWD_WORKSPACE env var. Also SKILL.md includes examples (cron, pre-commit, HEARTBEAT) that, if used with --execute without review, could cause automated deletions — the behavior is expected but operators should be careful when wiring it into automated jobs.
Install Mechanism
There is no install spec — this is an instruction-only skill with a shipped Python script and config. Nothing is downloaded or installed by the registry entry itself.
Credentials
The skill declares no required credentials or env vars, and the script does not request secrets. It does read $CLAWD_WORKSPACE (undocumented in SKILL.md) to choose a default workspace and invokes local commands (git, trash). No network endpoints or external credentials are used.
Persistence & Privilege
always is false and the skill does not request persistent privileges or modify other skills. It can be invoked autonomously by the agent (default behavior) but that is expected for user-invocable tools and not inherently elevated.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install workspace-cleaner
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /workspace-cleaner 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug workspace-cleaner
版本 1.0.0
许可证
累计安装 6
当前安装数 6
历史版本数 1
常见问题

Workspace Cleaner 是什么?

Automates safe cleanup of OpenClaw workspaces by previewing and moving temp files, logs, duplicates, and cruft to the system trash with customizable filtering. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 859 次。

如何安装 Workspace Cleaner?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install workspace-cleaner」即可一键安装,无需额外配置。

Workspace Cleaner 是免费的吗?

是的,Workspace Cleaner 完全免费(开源免费),可自由下载、安装和使用。

Workspace Cleaner 支持哪些平台?

Workspace Cleaner 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Workspace Cleaner?

由 brandonwise(@brandonwise)开发并维护,当前版本 v1.0.0。

💬 留言讨论