← 返回 Skills 市场
lhyhy123

清空废纸篓

作者 lhyhy123 · GitHub ↗ · v1.1.1 · MIT-0
cross-platform ⚠ suspicious
35
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install clean-rubbish
功能描述
清空系统废纸篓/回收站(macOS/Linux/Windows)。触发词:「清空废纸篓」「清空垃圾桶」「empty trash」「清理废纸篓」。斜杠命令:/clean-rubbish。
使用说明 (SKILL.md)

清空废纸篓/回收站

一键清空系统废纸篓(Trash)或回收站(Recycle Bin),自动适配操作系统。

使用方法

斜杠命令:/clean-rubbish

macOS(自动检测)

osascript -e 'tell application "Finder" to empty trash'

Linux(自动检测)

rm -rf ~/.local/share/Trash/*

Windows(自动检测)

Clear-RecycleBin -Force

自动适配逻辑

检测操作系统 → 选择对应命令执行:
  - Darwin (macOS)  → osascript 清空 Finder 废纸篓
  - Linux           → 清空 ~/.local/share/Trash/
  - Windows (MinGW) → PowerShell Clear-RecycleBin

说明

  • 清空后文件不可恢复,执行前无需二次确认(用户已明确要求)
  • 自动检测当前操作系统,无需手动指定平台
安全使用建议
Install only if you are comfortable with an agent permanently emptying your trash when invoked. Before use, inspect the trash contents yourself and require an explicit final confirmation before any rm, osascript, or PowerShell deletion command runs.
能力评估
Purpose & Capability
The stated purpose, commands, and allowed tools all align with emptying the system Trash/Recycle Bin on macOS, Linux, and Windows.
Instruction Scope
The instructions acknowledge that deletion is unrecoverable while saying no second confirmation is needed, which weakens user control over a destructive action.
Install Mechanism
The artifact appears to be a single SKILL.md with no bundled executable installer, background component, or hidden install-time behavior.
Credentials
The Linux command uses recursive force deletion with a broad shell wildcard under the trash path; that is purpose-related but lacks path validation, preview, or dry-run safeguards.
Persistence & Privilege
There is no persistence or credential handling, but the allowed tool scope includes broad rm, osascript, and PowerShell command prefixes for an irreversible local deletion workflow.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clean-rubbish
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clean-rubbish 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.1
文档修正:明确斜杠命令 /clean-rubbish,修复触发词描述
v1.1.0
v1.1.0: 新增 Windows 和 Linux 适配,支持三平台自动检测清空回收站/废纸篓
元数据
Slug clean-rubbish
版本 1.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

清空废纸篓 是什么?

清空系统废纸篓/回收站(macOS/Linux/Windows)。触发词:「清空废纸篓」「清空垃圾桶」「empty trash」「清理废纸篓」。斜杠命令:/clean-rubbish。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 35 次。

如何安装 清空废纸篓?

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

清空废纸篓 是免费的吗?

是的,清空废纸篓 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

清空废纸篓 支持哪些平台?

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

谁开发了 清空废纸篓?

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

💬 留言讨论