📦 desktop-cleaner — 技能工具
v1.0.0智能整理桌面文件,按类型分类整理,检测并清理重复文件,生成整理报告,提升电脑效率
0· 18·0 当前·0 累计
安全扫描
OpenClaw
安全
high confidenceThe skill's code, instructions, and requirements are consistent with a desktop file-organizing tool; no network exfiltration or unrelated credential access is present, but it performs destructive actions (deleting duplicates) so caution is warranted before running.
评估建议
This skill appears to do exactly what it says: scan and reorganize your Desktop and delete duplicate files. Before installing or running: 1) review the Python script yourself (it's included and readable); 2) back up important files or run on a copy of your Desktop first; 3) consider modifying the script to add a dry-run mode or an interactive confirmation prompt before deleting files; 4) note that SKILL.md lists 'http' in allowed-tools even though no network access is used—if you plan to run the...详细分析 ▾
✓ 用途与能力
The name/description (desktop cleaner) matches the included script and SKILL.md: both scan the Desktop, categorize files, remove duplicates by hash, move files into folders, and write a JSON report. No unrelated credentials, binaries, or config paths are requested.
ℹ 指令范围
Instructions and script stay within the stated purpose. The skill performs destructive actions (deletes duplicate files) without interactive confirmation; SKILL.md does warn to back up important files, but the runtime behavior is non-interactive. Consider adding a dry-run or confirmation step if you need to avoid accidental deletions.
✓ 安装机制
There is no install spec; the skill is instruction + a single Python script. Nothing is downloaded or written to disk by an installer. This is the low-risk model for install mechanics.
✓ 凭证需求
The skill requests no environment variables, no credentials, and no config paths. It only needs file-system read/write access as expected for its purpose.
✓ 持久化与权限
always is false and the skill does not request persistent or cross-skill configuration changes. It does not modify other skills or system-wide settings.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.02026/4/16
- Initial release of Clean-Desktop-Pro. - Automatically organizes desktop files by type into categorized folders. - Detects and removes duplicate files using hash values. - Generates a detailed JSON report summarizing the organization and cleanup. - Supports Windows, macOS, and Linux platforms. - Requires Python 3.6+ and file system read/write access.
● Pending
安装命令
点击复制官方npx clawhub@latest install desktop-cleaner
镜像加速npx clawhub@latest install desktop-cleaner --registry https://cn.longxiaskill.com镜像同步中
技能文档
# 专业桌面整理(含重复文件清理)
概述
专业桌面整理工具,帮助用户自动整理桌面文件,按类型分类,检测并清理重复文件,生成详细的整理报告,提升电脑使用效率。功能特点
- 智能分类:按文件类型自动分类整理到对应文件夹
- 重复文件检测:通过哈希值检测并清理重复文件
- 详细报告:生成整理报告,包含处理文件数、移动文件数、删除重复文件数等信息
- 跨平台支持:支持 Windows、macOS 和 Linux 系统
执行步骤
步骤 1:扫描桌面文件
- 扫描桌面目录下的所有文件
- 排除已分类文件夹中的文件
- 统计文件总数
步骤 2:检测重复文件
- 计算每个文件的 MD5 哈希值
- 对比哈希值,识别重复文件
- 统计重复文件数量
步骤 3:清理重复文件
- 删除重复文件
- 记录删除的文件数量
步骤 4:按类型分类整理
- 根据文件扩展名分类到对应文件夹:
步骤 5:生成整理报告
- 生成 JSON 格式的整理报告
- 报告包含:时间戳、桌面路径、处理文件数、移动文件数、删除重复文件数、各分类文件数量
- 报告保存到桌面目录下的 "整理报告.json"
支持的文件类型
文档文件
- .doc, .docx, .txt, .pdf, .xls, .xlsx, .ppt, .pptx
图片文件
- .jpg, .jpeg, .png, .gif, .bmp, .svg
视频文件
- .mp4, .avi, .mov, .wmv, .flv
音频文件
- .mp3, .wav, .flac, .aac
压缩文件
- .zip, .rar, .7z, .tar, .gz
可执行文件
- .exe, .msi, .app, .dmg
输出报告示例
``json
{
"timestamp": "2026-04-16T12:00:00",
"desktop_path": "C:\\Users\\User\\Desktop",
"files_processed": 50,
"files_moved": 45,
"duplicates_removed": 5,
"categories": {
"Documents": 15,
"Images": 10,
"Videos": 5,
"Audio": 3,
"Archives": 2,
"Executables": 1,
"Others": 9
}
}
``
注意事项
- 运行前请确保桌面文件没有打开或被其他程序占用
- 重复文件检测会删除重复的文件,只保留一个副本
- 整理过程中会创建分类文件夹,请确保有足够的权限
- 建议在运行前备份重要文件,以防意外情况
系统要求
- Python 3.6 或更高版本
- 支持 Windows、macOS 和 Linux 系统
- 需要文件系统读写权限