file-organizer by skillcreatorai/ai-agent-skills
npx skills add https://github.com/skillcreatorai/ai-agent-skills --skill file-organizer此技能充当您的个人整理助手,帮助您在计算机上维护一个干净、有逻辑的文件结构,而无需持续手动整理带来的精神负担。
cd ~
然后运行 Claude Code 并请求帮助:
Help me organize my Downloads folder
Find duplicate files in my Documents folder
Review my project directories and suggest improvements
Organize these downloads into proper folders based on what they are
Find duplicate files and help me decide which to keep
Clean up old files I haven't touched in 6+ months
Create a better folder structure for my [work/projects/photos/etc]
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
当用户请求文件整理帮助时:
询问澄清性问题:
* 哪个目录需要整理?(下载、文档、整个主文件夹?)
* 主要问题是什么?(找不到东西、重复项、太乱、没有结构?)
* 有任何文件或文件夹需要避免处理吗?(当前项目、敏感数据?)
* 整理力度如何?(保守清理还是全面清理?)
2. 分析当前状态
检查目标目录:
# Get overview of current structure
ls -la [target_directory]
# Check file types and sizes
find [target_directory] -type f -exec file {} \; | head -20
# Identify largest files
du -sh [target_directory]/* | sort -rh | head -20
# Count file types
find [target_directory] -type f | sed 's/.*\.//' | sort | uniq -c | sort -rn
总结发现:
* 文件和文件夹总数
* 文件类型细分
* 大小分布
* 日期范围
* 明显的整理问题
3. 识别整理模式
根据文件,确定逻辑分组:
按类型:
* 文档(PDFs, DOCX, TXT)
* 图片(JPG, PNG, SVG)
* 视频(MP4, MOV)
* 压缩包(ZIP, TAR, DMG)
* 代码/项目(包含代码的目录)
* 电子表格(XLSX, CSV)
* 演示文稿(PPTX, KEY)
按用途:
* 工作 vs 个人
* 活跃 vs 归档
* 特定项目
* 参考资料
* 临时/草稿文件
按日期:
* 当前年/月
* 往年
* 非常旧的(归档候选)
4. 查找重复项
当被请求时,搜索重复项:
# Find exact duplicates by hash
find [directory] -type f -exec md5 {} \; | sort | uniq -d
# Find files with same name
find [directory] -type f -printf '%f\n' | sort | uniq -d
# Find similar-sized files
find [directory] -type f -printf '%s %p\n' | sort -n
对于每组重复项:
* 显示所有文件路径
* 显示大小和修改日期
* 建议保留哪个(通常是最新或命名最好的)
* **重要**:在删除前始终请求确认
5. 提出整理计划
在进行更改前提出清晰的计划:
# Organization Plan for [Directory]
## Current State
- X files across Y folders
- [Size] total
- File types: [breakdown]
- Issues: [list problems]
## Proposed Structure
[Directory]/ ├── Work/ │ ├── Projects/ │ ├── Documents/ │ └── Archive/ ├── Personal/ │ ├── Photos/ │ ├── Documents/ │ └── Media/ └── Downloads/ ├── To-Sort/ └── Archive/
## Changes I'll Make
1. **Create new folders**: [list]
2. **Move files**:
- X PDFs → Work/Documents/
- Y images → Personal/Photos/
- Z old files → Archive/
3. **Rename files**: [any renaming patterns]
4. **Delete**: [duplicates or trash files]
## Files Needing Your Decision
- [List any files you're unsure about]
Ready to proceed? (yes/no/modify)
6. 执行整理
获得批准后,系统地进行整理:
# Create folder structure
mkdir -p "path/to/new/folders"
# Move files with clear logging
mv "old/path/file.pdf" "new/path/file.pdf"
# Rename files with consistent patterns
# Example: "YYYY-MM-DD - Description.ext"
重要规则:
* 在删除任何内容前始终确认
* 记录所有移动操作以便可能撤销
* 保留原始修改日期
* 优雅地处理文件名冲突
* 如果遇到意外情况,停下来询问
7. 提供总结和维护建议
整理完成后:
# Organization Complete! ✨
## What Changed
- Created [X] new folders
- Organized [Y] files
- Freed [Z] GB by removing duplicates
- Archived [W] old files
## New Structure
[Show the new folder tree]
## Maintenance Tips
To keep this organized:
1. **Weekly**: Sort new downloads
2. **Monthly**: Review and archive completed projects
3. **Quarterly**: Check for new duplicates
4. **Yearly**: Archive old files
## Quick Commands for You
```bash
# Find files modified this week
find . -type f -mtime -7
# Sort downloads by type
[custom command for their setup]
# Find duplicates
[custom command]
想要整理另一个文件夹吗?
用户:"我的下载文件夹有 500 多个文件,一片混乱。帮我整理一下。"
流程:
用户:"在我的文档中查找重复文件,并帮我决定保留哪些。"
输出:
# Found 23 Sets of Duplicates (156 MB total)
## Duplicate Set 1: "proposal.pdf"
- `/Documents/proposal.pdf` (2.3 MB, modified: 2024-03-15)
- `/Documents/old/proposal.pdf` (2.3 MB, modified: 2024-03-15)
- `/Desktop/proposal.pdf` (2.3 MB, modified: 2024-03-10)
**Recommendation**: Keep `/Documents/proposal.pdf` (most recent in correct location)
Delete the other 2 copies?
[Continue for all duplicates...]
用户:"检查我的 ~/Projects 目录并提出改进建议。"
输出:
# Analysis of ~/Projects
## Current Structure Issues
- Mix of active and archived projects (3+ years old)
- No consistent naming convention
- Some projects at root, others in random subfolders
- Duplicate folders (project-name, project-name-old, project-name-v2)
## Proposed Structure
Projects/ ├── Active/ │ ├── client-work/ │ ├── side-projects/ │ └── learning/ ├── Archive/ │ ├── 2022/ │ ├── 2023/ │ └── 2024/ └── Templates/
## Specific Changes
1. Move 12 projects not touched since 2022 → Archive/
2. Consolidate 4 duplicate project folders
3. Rename projects to consistent format: "client-name-project-name"
4. Create Archive for old work
Want me to implement this?
用户:"按年份和月份整理我的照片文件夹。"
输出:创建如下结构:
Photos/
├── 2023/
│ ├── 01-January/
│ ├── 02-February/
│ └── ...
├── 2024/
│ ├── 01-January/
│ └── ...
└── Unsorted/
然后根据 EXIF 数据或文件修改日期移动照片。
Organize my Downloads folder - move documents to Documents,
images to Pictures, keep installers separate, and archive files
older than 3 months.
Review my Projects folder structure and help me separate active
projects from old ones I should archive.
Find all duplicate files in my Documents folder and help me
decide which ones to keep.
My Desktop is covered in files. Help me organize everything into
my Documents folder properly.
Organize all photos in this folder by date (year/month) based
on when they were taken.
Help me separate my work files from personal files across my
Documents folder.
每周安装数
115
代码仓库
GitHub 星标数
957
首次出现
Jan 20, 2026
安全审计
安装于
opencode98
gemini-cli96
codex92
cursor85
claude-code82
github-copilot82
This skill acts as your personal organization assistant, helping you maintain a clean, logical file structure across your computer without the mental overhead of constant manual organization.
cd ~
Then run Claude Code and ask for help:
Help me organize my Downloads folder
Find duplicate files in my Documents folder
Review my project directories and suggest improvements
Organize these downloads into proper folders based on what they are
Find duplicate files and help me decide which to keep
Clean up old files I haven't touched in 6+ months
Create a better folder structure for my [work/projects/photos/etc]
When a user requests file organization help:
Ask clarifying questions:
* Which directory needs organization? (Downloads, Documents, entire home folder?)
* What's the main problem? (Can't find things, duplicates, too messy, no structure?)
* Any files or folders to avoid? (Current projects, sensitive data?)
* How aggressively to organize? (Conservative vs. comprehensive cleanup)
2. Analyze Current State
Review the target directory:
# Get overview of current structure
ls -la [target_directory]
# Check file types and sizes
find [target_directory] -type f -exec file {} \; | head -20
# Identify largest files
du -sh [target_directory]/* | sort -rh | head -20
# Count file types
find [target_directory] -type f | sed 's/.*\.//' | sort | uniq -c | sort -rn
Summarize findings:
* Total files and folders
* File type breakdown
* Size distribution
* Date ranges
* Obvious organization issues
3. Identify Organization Patterns
Based on the files, determine logical groupings:
By Type :
* Documents (PDFs, DOCX, TXT)
* Images (JPG, PNG, SVG)
* Videos (MP4, MOV)
* Archives (ZIP, TAR, DMG)
* Code/Projects (directories with code)
* Spreadsheets (XLSX, CSV)
* Presentations (PPTX, KEY)
By Purpose :
* Work vs. Personal
* Active vs. Archive
* Project-specific
* Reference materials
* Temporary/scratch files
By Date :
* Current year/month
* Previous years
* Very old (archive candidates)
4. Find Duplicates
When requested, search for duplicates:
# Find exact duplicates by hash
find [directory] -type f -exec md5 {} \; | sort | uniq -d
# Find files with same name
find [directory] -type f -printf '%f\n' | sort | uniq -d
# Find similar-sized files
find [directory] -type f -printf '%s %p\n' | sort -n
For each set of duplicates:
* Show all file paths
* Display sizes and modification dates
* Recommend which to keep (usually newest or best-named)
* **Important** : Always ask for confirmation before deleting
5. Propose Organization Plan
Present a clear plan before making changes:
# Organization Plan for [Directory]
## Current State
- X files across Y folders
- [Size] total
- File types: [breakdown]
- Issues: [list problems]
## Proposed Structure
[Directory]/ ├── Work/ │ ├── Projects/ │ ├── Documents/ │ └── Archive/ ├── Personal/ │ ├── Photos/ │ ├── Documents/ │ └── Media/ └── Downloads/ ├── To-Sort/ └── Archive/
## Changes I'll Make
1. **Create new folders**: [list]
2. **Move files**:
- X PDFs → Work/Documents/
- Y images → Personal/Photos/
- Z old files → Archive/
3. **Rename files**: [any renaming patterns]
4. **Delete**: [duplicates or trash files]
## Files Needing Your Decision
- [List any files you're unsure about]
Ready to proceed? (yes/no/modify)
6. Execute Organization
After approval, organize systematically:
# Create folder structure
mkdir -p "path/to/new/folders"
# Move files with clear logging
mv "old/path/file.pdf" "new/path/file.pdf"
# Rename files with consistent patterns
# Example: "YYYY-MM-DD - Description.ext"
Important Rules :
* Always confirm before deleting anything
* Log all moves for potential undo
* Preserve original modification dates
* Handle filename conflicts gracefully
* Stop and ask if you encounter unexpected situations
7. Provide Summary and Maintenance Tips
After organizing:
# Organization Complete! ✨
## What Changed
- Created [X] new folders
- Organized [Y] files
- Freed [Z] GB by removing duplicates
- Archived [W] old files
## New Structure
[Show the new folder tree]
## Maintenance Tips
To keep this organized:
1. **Weekly**: Sort new downloads
2. **Monthly**: Review and archive completed projects
3. **Quarterly**: Check for new duplicates
4. **Yearly**: Archive old files
## Quick Commands for You
```bash
# Find files modified this week
find . -type f -mtime -7
# Sort downloads by type
[custom command for their setup]
# Find duplicates
[custom command]
Want to organize another folder?
User : "My Downloads folder is a mess with 500+ files. Help me organize it."
Process :
User : "Find duplicate files in my Documents and help me decide which to keep."
Output :
# Found 23 Sets of Duplicates (156 MB total)
## Duplicate Set 1: "proposal.pdf"
- `/Documents/proposal.pdf` (2.3 MB, modified: 2024-03-15)
- `/Documents/old/proposal.pdf` (2.3 MB, modified: 2024-03-15)
- `/Desktop/proposal.pdf` (2.3 MB, modified: 2024-03-10)
**Recommendation**: Keep `/Documents/proposal.pdf` (most recent in correct location)
Delete the other 2 copies?
[Continue for all duplicates...]
User : "Review my ~/Projects directory and suggest improvements."
Output :
# Analysis of ~/Projects
## Current Structure Issues
- Mix of active and archived projects (3+ years old)
- No consistent naming convention
- Some projects at root, others in random subfolders
- Duplicate folders (project-name, project-name-old, project-name-v2)
## Proposed Structure
Projects/ ├── Active/ │ ├── client-work/ │ ├── side-projects/ │ └── learning/ ├── Archive/ │ ├── 2022/ │ ├── 2023/ │ └── 2024/ └── Templates/
## Specific Changes
1. Move 12 projects not touched since 2022 → Archive/
2. Consolidate 4 duplicate project folders
3. Rename projects to consistent format: "client-name-project-name"
4. Create Archive for old work
Want me to implement this?
User : "Organize my photo folders by year and month."
Output : Creates structure like:
Photos/
├── 2023/
│ ├── 01-January/
│ ├── 02-February/
│ └── ...
├── 2024/
│ ├── 01-January/
│ └── ...
└── Unsorted/
Then moves photos based on EXIF data or file modification dates.
Organize my Downloads folder - move documents to Documents,
images to Pictures, keep installers separate, and archive files
older than 3 months.
Review my Projects folder structure and help me separate active
projects from old ones I should archive.
Find all duplicate files in my Documents folder and help me
decide which ones to keep.
My Desktop is covered in files. Help me organize everything into
my Documents folder properly.
Organize all photos in this folder by date (year/month) based
on when they were taken.
Help me separate my work files from personal files across my
Documents folder.
Weekly Installs
115
Repository
GitHub Stars
957
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode98
gemini-cli96
codex92
cursor85
claude-code82
github-copilot82
Azure RBAC 权限管理工具:查找最小角色、创建自定义角色与自动化分配
131,500 周安装