Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

workspace-trash工作区垃圾

Agent Skill

workspace-trash 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,176

周安装

299

GitHub Stars

公开资料未说明

下载量

2,392
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:workspace-trash(工作区垃圾)
来源仓库:https://github.com/crewhaus/workspace-trash
安装命令:
openclaw skills install workspace-trash
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install workspace-trash

简介

提供软删除保护,拦截文件移至可恢复垃圾箱。

  • 避免永久删除,支持后续恢复操作。workspace-trash 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 通过clawhub安装,需确认trash路径和回收站权限。
  • 使用前应评估对系统删除行为的影响。
  • 建议结合README了解保留周期和恢复流程。

SKILL.md

name
workspace-trash
description
Soft-delete protection for workspace files. Intercept file deletions and move them to a recoverable trash instead of permanent removal. Use when deleting, removing, or cleaning up files in the workspace. Triggers on /trash, /trash:view, /trash:empty, /trash:restore, or any file deletion request. Also use when the agent needs to rm/delete/remove any file — always trash instead of permanently deleting.
requiredBinaries

Workspace Trash

Never permanently delete workspace files. Always use trash instead of rm.

Dependencies

  • Node.js (node) — required for manifest (JSON) management
  • POSIX utilitiesmv, cp, rm, find, awk, date, basename, dirname

Configuration

VariableDefaultDescription
OPENCLAW_HOME$HOME/.openclawOpenClaw root directory. Only files under this path can be trashed.
OPENCLAW_WORKSPACE$OPENCLAW_HOME/workspacePrimary workspace directory. Trash lives at $OPENCLAW_WORKSPACE/.trash/.

These variables are standard OpenClaw environment variables and are typically already set. The script uses safe defaults if unset.

Slash Commands

  • /trash — Show trash menu (view, empty, restore options)
  • /trash:view — List all items in trash
  • /trash:empty — Permanently delete all trash contents (confirm first!)
  • /trash:restore — List items and ask which to restore

Script

bash skills/workspace-trash/scripts/trash.sh <action> [args...]

Actions: move, list, restore <id|index>, empty, size

Security

  • Scope lock: Only files under $OPENCLAW_HOME (default ~/.openclaw/) can be trashed. Paths outside this boundary are refused.
  • Symlink resolution: All paths are resolved to their real location before the scope check, preventing symlink traversal attacks.
  • No shell interpolation of user data: All user-provided paths and filenames are passed to Node.js via environment variables (process.env), never via string interpolation into node -e scripts. This prevents code injection via crafted filenames.
  • -- separators: All mv, cp, and rm calls use -- to prevent filenames starting with - from being interpreted as flags.

Destructive Operations

  • empty action: Uses rm -rf to permanently delete all trash contents. This is irreversible. The agent must always confirm with the user and show what will be deleted before running this action.
  • Cross-filesystem fallback: When mv fails across filesystem boundaries, the script falls back to cp -a + rm -rf. The source is only deleted after a successful copy.

Rules

  1. NEVER use rm or rm -rf on OpenClaw files. Always use the trash script's move action instead.
  2. When asked to delete/remove/clean up files, use trash.sh move <path> — not rm.
  3. Before emptying trash, always confirm with the user and show what will be deleted.
  4. The trash lives at .trash/ in the primary workspace root. A .manifest.json tracks original paths for restoration.
  5. Scope: any file under ~/.openclaw/ — primary workspace, agent workspaces (workspace-*), and other OpenClaw directories. The script refuses paths outside ~/.openclaw/.
  6. Cross-filesystem support: Agent workspaces may be on different mounts. The script uses cp -a + rm as a fallback when mv fails across filesystems. Restore also handles cross-filesystem moves.
  7. Restore by index number (from list) or by trash name. Items from agent workspaces show [agent] tag in list view.
  8. When multiple files are being deleted, pass them all in one command: trash.sh move file1 file2 dir1

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.93%
按下载量换算2,032

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills