360 Secure SkillHub
360 安全技能中心

Desktop Sorter

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

分类:效率
kevinchai3868
kevinchai3868
热度 18.27
最近更新 2026-05-20 03:27:29

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add kevinchai3868/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.