← Back to Skills Marketplace
35
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install clean-rubbish
Description
清空系统废纸篓/回收站(macOS/Linux/Windows)。触发词:「清空废纸篓」「清空垃圾桶」「empty trash」「清理废纸篓」。斜杠命令:/clean-rubbish。
README (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
说明
- 清空后文件不可恢复,执行前无需二次确认(用户已明确要求)
- 自动检测当前操作系统,无需手动指定平台
Usage Guidance
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install clean-rubbish - After installation, invoke the skill by name or use
/clean-rubbish - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.1
文档修正:明确斜杠命令 /clean-rubbish,修复触发词描述
v1.1.0
v1.1.0: 新增 Windows 和 Linux 适配,支持三平台自动检测清空回收站/废纸篓
Metadata
Frequently Asked Questions
What is 清空废纸篓?
清空系统废纸篓/回收站(macOS/Linux/Windows)。触发词:「清空废纸篓」「清空垃圾桶」「empty trash」「清理废纸篓」。斜杠命令:/clean-rubbish。 It is an AI Agent Skill for Claude Code / OpenClaw, with 35 downloads so far.
How do I install 清空废纸篓?
Run "/install clean-rubbish" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 清空废纸篓 free?
Yes, 清空废纸篓 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 清空废纸篓 support?
清空废纸篓 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 清空废纸篓?
It is built and maintained by lhyhy123 (@lhyhy123); the current version is v1.1.1.
More Skills