关于 File Organizer
File Organizer 是帮助用户分类、命名和整理文件的技能,可建议文件夹结构与命名规则,并识别重复文件;大型文件移动仍需手动执行。
主要功能
- 01按内容分类文件
- 02建议文件夹结构
- 03生成一致的文件名
- 04识别重复文件
- 05提取元数据
适用场景
- 01规划项目文件结构
- 02按供应商和日期整理发票
- 03清理前检查重复文件
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ claude-office-skills/ skills --skill file-organizer安装后在 Claude Code 中输入/file-organizer确认已加载。
详细介绍
文件整理器
根据文件内容和元数据,智能整理并重命名文件。
概述
此技能可帮助你:
- 分析文件内容以确定分类
- 建议文件夹结构
- 生成统一的命名规范
- 识别并处理重复文件
- 创建整理系统
使用方法
分析文件
"Analyze these files and suggest how to organize them"
"What category does this file belong to?"
"Suggest a better filename for this document"
整理文件
"Create a folder structure for my project files"
"Organize my downloads folder"
"Sort these invoices by vendor and date"
命名规范
推荐格式
文档
YYYY-MM-DD_Category_Description_v1.ext
Example: 2026-01-29_Contract_ClientName_NDA_v1.pdf
图片
YYYY-MM-DD_Event/Project_Description_NNN.ext
Example: 2026-01-29_ProductLaunch_HeroImage_001.png
发票/收据
YYYY-MM-DD_Vendor_Amount_InvoiceNumber.ext
Example: 2026-01-29_Adobe_149.99_INV-12345.pdf
会议记录
YYYY-MM-DD_MeetingType_Topic.ext
Example: 2026-01-29_TeamSync_Q1Planning.md
命名规则
- 使用下划线或连字符,不要使用空格
- 日期放在开头,便于按时间排序
- 包含关键标识信息(客户、项目、类型)
- 为不同版本添加版本号
- 名称应简洁且具有描述性
文件夹结构
个人文档
📁 Documents
├── 📁 Admin
│ ├── 📁 Finance
│ │ ├── 📁 Invoices
│ │ ├── 📁 Receipts
│ │ └── 📁 Tax
│ ├── 📁 Insurance
│ └── 📁 Legal
├── 📁 Work
│ ├── 📁 Projects
│ ├── 📁 Reports
│ └── 📁 Meetings
├── 📁 Personal
│ ├── 📁 Health
│ ├── 📁 Education
│ └── 📁 Travel
└── 📁 Archive
└── 📁 [Year]
按项目分类
📁 ProjectName
├── 📁 01_Planning
│ ├── 📁 Requirements
│ ├── 📁 Proposals
│ └── 📁 Research
├── 📁 02_Design
│ ├── 📁 Mockups
│ ├── 📁 Assets
│ └── 📁 Specs
├── 📁 03_Development
│ ├── 📁 Source
│ ├── 📁 Tests
│ └── 📁 Documentation
├── 📁 04_Deliverables
│ └── 📁 [Version]
├── 📁 05_Admin
│ ├── 📁 Contracts
│ ├── 📁 Invoices
│ └── 📁 Communications
└── 📁 Archive
按客户/供应商分类
📁 Clients
└── 📁 [ClientName]
├── 📁 Contracts
├── 📁 Projects
│ └── 📁 [ProjectName]
├── 📁 Invoices
├── 📁 Communications
└── 📁 Assets
输出格式
整理方案
## File Organization Plan
**Source**: [Folder/Location]
**Total Files**: [Count]
**Total Size**: [Size]
### Proposed Structure
[Folder tree]
### File Mapping
| Original Name | New Name | Destination |
|--------------|----------|-------------|
| IMG_1234.jpg | 2026-01-29_ProductPhoto_001.jpg | /Products/Photos/ |
| doc1.pdf | 2026-01-15_Contract_ClientA_NDA.pdf | /Clients/ClientA/Contracts/ |
### Actions Required
1. Create folders: [list]
2. Rename files: [count]
3. Move files: [count]
4. Review manually: [count with reasons]
重复文件报告
## Duplicate Files Report
**Total Duplicates Found**: [Count]
**Space Recoverable**: [Size]
### Exact Duplicates
| File | Locations | Size | Recommendation |
|------|-----------|------|----------------|
| report.pdf | /Downloads/, /Documents/ | 2.3MB | Keep in /Documents/ |
### Similar Files
| Files | Similarity | Difference |
|-------|------------|------------|
| report_v1.pdf, report_v2.pdf | 95% | v2 has extra page |
分析能力
基于内容的分类
- 文档:合同、报告、信函、表单
- 财务:发票、收据、对账单、预算
- 媒体:照片、视频、音频、图形
- 代码:源文件、配置文件、文档
- 数据:电子表格、数据库、导出文件
元数据提取
- 创建/修改日期
- 作者信息
- 文件尺寸(图片/视频)
- 时长(音频/视频)
- 页数(文档)
自动化规则
规则示例
## Auto-Organization Rules
### Rule 1: Invoices
- Trigger: PDF with "Invoice" or "INV-" in content
- Action: Move to /Finance/Invoices/[Year]/[Month]/
- Rename: YYYY-MM-DD_Vendor_Amount.pdf
### Rule 2: Screenshots
- Trigger: File matches "Screenshot*.png"
- Action: Move to /Screenshots/[Year-Month]/
- Rename: YYYY-MM-DD_HH-MM_Screenshot.png
### Rule 3: Downloads Cleanup
- Trigger: File in Downloads older than 30 days
- Action:
- If document → Archive
- If installer → Delete
- If media → Sort to appropriate folder
最佳实践
整理原则
- PARA 方法:项目、领域、资源、归档
- 日期优先:便于按时间排序
- 描述性名称:未来的你会感谢现在的自己
- 结构扁平更好:避免过深的嵌套(最多 3-4 层)
- 定期维护:安排每月检查
文件管理
- 删除重复文件和临时文件
- 归档已完成的项目
- 使用云同步保存重要文件
- 保持命名规范一致
- 记录你的整理系统
限制
- 无法访问受保护或加密的文件
- 移动大型文件需要手动执行
- 内容分析取决于文件格式支持情况
- 无法保证分类完全准确
- 建议对重要文件进行人工检查
评论
支持 Markdown