Smart desktop organizer

From malue-ai/dazee-small · View interactive version

Smart desktop organizer is an AI agent skill from the GitHub repository malue-ai/dazee-small. Intelligently organize messy desktops and download folders by semantically categorizing files, deduplicating, and archiving old items.

How to use this skill

Skill file

智能桌面整理

帮助用户智能整理桌面、下载文件夹等混乱目录:按语义分类、清理重复、归档旧文件。

使用场景

执行方式

通过 bash 命令 + LLM 语义判断完成。先扫描目录,再由 LLM 分析每个文件的用途和分类,最后执行整理。

Step 1: 扫描目录

# 列出目标目录的文件(含大小和修改日期)
ls -lhS ~/Desktop/ | head -50
ls -lhS ~/Downloads/ | head -50

Step 2: LLM 语义分类

根据文件名、扩展名、修改日期,将文件分为以下类别:

| 类别 | 典型文件 | 目标文件夹 |

|---|---|---|

| Documents | .pdf, .docx, .xlsx, .pptx | ~/Documents/Organized/ |

| Images | .png, .jpg, .gif, .svg | ~/Pictures/Organized/ |

| Archives | .zip, .tar.gz, .rar | ~/Documents/Archives/ |

| Installers | .dmg, .exe, .pkg | 清理或归档 |

| Temp | .tmp, .crdownload, partial | 直接删除 |

Step 3: 执行整理

# 创建分类目录
mkdir -p ~/Documents/Organized ~/Pictures/Organized ~/Documents/Archives

# 移动文件(示例)
mv ~/Desktop/*.pdf ~/Documents/Organized/
mv ~/Desktop/*.png ~/Pictures/Organized/

Step 4: 找出重复文件

# 按 MD5 查找重复文件
find ~/Downloads -type f -exec md5sum {} + | sort | uniq -w32 -dD

Step 5: 归档旧文件

# 找出 90 天未修改的文件
find ~/Desktop -type f -mtime +90 -not -name ".*"

安全规则

输出规范

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.