360 Secure SkillHub
360 安全技能中心

Desktop Sorter

该 Skill 通过 scripts/organize_desktop.py 扫描桌面,识别 PDF、图片、压缩包、文档与演示文稿等扩展名文件,创建 PDFs、Images、Archives、Documents、Presentations 目标文件夹后移动文件,并报告移动数量与目的地;声明避免移动被占用文件及 .lnk、.ini 等系统文件与快捷方式。

kevinchai3868
kevinchai3868
热度 23.69
最近更新 2026-05-20 03:27:29
分类:效率依赖:代码执行 / 读写文件应用场景:工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add desktop-sorter
Metadata
name
Desktop Organizer
description
Automatically organizes files on the desktop into folders based on their extensions (PDF, JPG, ZIP).

Desktop Organizer Skill

This skill allows the AI to automatically organize files on the user's desktop. It scans for specific file types and moves them into dedicated subdirectories.

Capabilities

  • Detects .pdf, .jpg, .jpeg, .png, .gif, .zip, .rar, .7z, .docx, .xlsx, and .pptx files on the desktop.
  • Creates destination folders (PDFs, Images, Archives, Documents, Presentations) if they do not exist.
  • Moves identified files into their respective folders.

Usage

When the user asks to organize their desktop, the AI should:

  1. Locate the desktop directory.
  2. Run the scripts/organize_desktop.py script.
  3. Report the number of files moved and their destinations.

Implementation Details

The core logic resides in scripts/organize_desktop.py. It uses the os and shutil modules to perform file operations safely.

Safety Precautions

  • Do not move files that are currently open or locked.
  • Avoid moving system files or shortcuts (.lnk, .ini).
  • Ensure destination folders are created before moving.