Help us improve
Share bugs, ideas, or general feedback.
From greentrain-files
Orchestrates a three-phase Mac file management workflow: disk cleanup, file organization, and document analysis using sub-skills disk-cleaner, file-organizer, and doc-mindmap.
npx claudepluginhub crazynomad/skills --plugin greentrain-mediaHow this skill is triggered — by the user, by Claude, or both
Slash command
/greentrain-files:file-masterThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
将 disk-cleaner、file-organizer、doc-mindmap 三个技能串成「清 → 理 → 知」三阶段工作流,一次搞定 Mac 文件管理。
Organizes macOS download folders by categorizing office documents, screenshots, and large files while excluding code directories. Supports manual smart folders and auto-sorting.
Analyzes directories via bash, finds duplicates, suggests folder structures by file type/date/content, and automates organization/cleanup with approval. For messy Downloads/projects.
Organizes files and folders by analyzing structure, finding duplicates, suggesting logical layouts, and automating cleanup with user approval.
Share bugs, ideas, or general feedback.
将 disk-cleaner、file-organizer、doc-mindmap 三个技能串成「清 → 理 → 知」三阶段工作流,一次搞定 Mac 文件管理。
仅当用户明确需要多阶段组合流程时使用此技能。 如果用户只想做单一任务(只清理磁盘、只整理文件、只分析文档),请直接使用对应的子技能(disk-cleaner / file-organizer / doc-mindmap),不要使用 file-master。
Use this skill when users:
不要使用此技能 当用户只说:
触发关键词: 全面整理电脑, 一站式整理, 文件大扫除, 先清理再整理, 完整文件管理流程
自然语言触发即可,Claude 会引导完成整个流程:
帮我全面整理一下电脑 → 执行全部三阶段
帮我清理磁盘再整理文件 → Phase 1 + Phase 2
整理一下文件然后做个文档分析 → Phase 2 + Phase 3
只帮我做文档分析 → Phase 3
三个子技能各自的依赖:
brew install tw93/tap/mole)pip install jinja2pip install 'markitdown[all]'brew install ollama + ollama pull qwen2.5:3bpip install requestsClaude 使用此技能时,严格按以下步骤执行。
向用户展示三阶段概览,询问要执行哪些阶段:
Mac 文件管理大师 - 三阶段工作流
Phase 1 「清」 - 磁盘清理,释放硬盘空间 (disk-cleaner)
Phase 2 「理」 - 文件整理,归类下载文件夹 (file-organizer)
Phase 3 「知」 - 文档分析,批量转换 + 摘要 + 分类 (doc-mindmap)
请选择:
1. 全部执行(推荐)
2. 选择部分阶段
3. 只执行某个阶段
如果用户选择部分阶段,记录要执行的阶段列表,跳过未选中的阶段。
使用 disk-cleaner 技能释放硬盘空间。
python disk-cleaner/scripts/mole_cleaner.py --check
python disk-cleaner/scripts/mole_cleaner.py --preview
向用户展示扫描结果,包括可清理空间大小和分类。
请选择清理档位:
1. Air - 最安全,只清浏览器缓存和日志
2. Pro - 推荐,平衡安全与空间
3. Max - 最大化释放空间
4. 跳过此阶段
用户选择档位后执行:
python disk-cleaner/scripts/mole_cleaner.py --clean --tier <air|pro|max> --confirm
报告释放了多少空间,然后进入 Phase 2。
使用 file-organizer 技能归类文件。
python file-organizer/scripts/file_organizer.py --status
向用户展示下载文件夹中的文件状况。
请选择整理模式:
1. 手动模式 - 创建智能文件夹,自己拖拽整理
2. 自动模式 - 自动按类型分类到桌面文件夹
3. 跳过此阶段
手动模式:
python file-organizer/scripts/file_organizer.py --manual
自动模式:
# 先预览
python file-organizer/scripts/file_organizer.py --auto --dry-run
# 用户确认后执行
python file-organizer/scripts/file_organizer.py --auto
自动模式执行后,整理路径会自动写入 disk-cleaner 白名单,保护已整理的文件。
报告整理了多少文件、分了哪些类别。记录输出路径(如 ~/Desktop/已整理文件-YYYYMMDD/),供 Phase 3 使用。
使用 doc-mindmap 技能进行文档智能分析。
python doc-mindmap/scripts/doc_converter.py <目标路径> --preview
展示文档列表、类型分布、重复文件检测结果。
python doc-mindmap/scripts/doc_converter.py <目标路径> --convert --confirm
python doc-mindmap/scripts/doc_converter.py <目标路径> --summarize
# 先展示分类结果
python doc-mindmap/scripts/doc_converter.py <目标路径> --organize
询问用户是否使用 AI 建议的文件名。如果同意:
python doc-mindmap/scripts/doc_converter.py <目标路径> --organize --rename
询问用户是否在 Finder 中预览分类目录:
cp -a <.summaries/schemes> ~/Desktop/文档分类-$(date +%Y%m%d)
open ~/Desktop/文档分类-$(date +%Y%m%d)
报告转换了多少文档、生成了多少摘要、分类结果概览。
汇总三阶段成果,向用户展示:
=== Mac 文件管理大师 - 完成报告 ===
Phase 1「清」: 释放了 X.XX GB 磁盘空间
Phase 2「理」: 整理了 N 个文件到 M 个分类
Phase 3「知」: 转换了 K 个文档,生成 K 份摘要,三维度分类完成
所有阶段执行完毕!
跳过的阶段标注"已跳过",失败的阶段标注错误原因。