tidymydesktop

Solid

智能桌面和目录整理工具。根据用户提示词自动分类、整理文件和应用程序图标,去除重复版本,生成整理报告。支持整理桌面或指定目录。

AI & Automation 370 stars 52 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
86
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# TidyMyDesktop - 智能桌面整理工具 ## 概述 当用户请求整理桌面或目录时,此 skill 会自动: 1. 分析目录中的文件和应用程序 2. 智能分类并创建文件夹 3. 识别和删除软件的旧版本 4. 搜索未知软件的用途 5. 生成详细的整理报告(Markdown格式) ## 支持的触发指令 用户可以通过以下方式触发此 skill: - "帮我整理桌面" - 整理 ~/Desktop - "帮我整理当前目录" - 整理当前工作目录(需要用户确认) - 任何关键词 - 首先搜索相关内容 ## 工作流程 ### 步骤 1: 理解用户意图 首先判断用户输入的类型: ```javascript // 检查是否是整理指令 if (用户输入包含 "整理桌面") { 目标路径 = ~/Desktop } else if (用户输入包含 "整理当前目录") { // 需要用户确认目录路径 await askUserToConfirmPath() } else { // 如果是关键词,先搜索相关内容 await searchKeyword(用户输入) return } ``` ### 步骤 2: 扫描和分析目录 使用提供的 Node.js 工具脚本扫描目标目录: ```bash # 扫描目录并生成文件清单 node ~/.claude/skills/tidymydesktop/scripts/scan.js <目标路径> ``` 该脚本会: - 列出所有文件和应用程序 - 识别文件类型和扩展名 - 检测应用程序版本号 - 生成初始清单 ### 步骤 3: 智能分类和整理 执行整理操作时,遵循以��原则: #### 3.1 文件分类规则 根据文件类型创建分类文件夹: - **应用程序** (`Applications/`) - 开发工具 (`Development/`) - 办公软件 (`Office/`) - 设计工具 (`Design/`) - 通讯工具 (`Communication/`) - 娱乐软件 (`Entertainment/`) - 系统工具 (`Utilities/`) - **文档** (`Documents/`) - PDF文档 (`PDFs/`) - Word文档 (`Word/`) - Excel表格 (`Excel/`) - 文本文件 (`TextFiles/`) - **图片** (`Images/`) - 照片 (`Photos/`) - 截图 (`Screenshots/`) - 设计稿 (`Designs/`) - **视频** (`Videos/`) - **音频** (`Audio/`) - **压缩包** (`Archives/`) - **代码项目** (`CodeProjects/`) - **未分类** (`Uncategorized/`) #### 3.2 版本去重规则 对于同一软件的多个版本: ```javascript // 识别版本号模式 // 例如: "AppName v1.2.3.dmg" 和 "AppName v2.0.0.dmg" // 保留: 最新版本 // 删除: 旧版本 function identifyVersions(files) { // 1. 提取版本号 // 2. 比较版本 // 3. 标记要删除的旧版本 } ``` **CRITIC...

Details

Author
peterfei
Repository
peterfei/ai-agent-team
Created
6 months ago
Last Updated
2 days ago
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category