file-organizer by composiohq/awesome-claude-skills
npx skills add https://github.com/composiohq/awesome-claude-skills --skill file-organizer此技能可作为您的个人整理助手,帮助您在电脑上维护一个整洁、逻辑清晰的文件结构,而无需耗费心力进行持续的手动整理。
cd ~
然后运行 Claude Code 并请求帮助:
帮助我整理我的下载文件夹
在我的文档文件夹中查找重复文件
检查我的项目目录并提出改进建议
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
将这些下载内容根据类型整理到合适的文件夹中
查找重复文件并帮助我决定保留哪些
清理我超过6个月未碰过的旧文件
为我的 [工作/项目/照片/等] 创建一个更好的文件夹结构
当用户请求文件整理帮助时:
明确范围
询问澄清性问题:
分析当前状态
检查目标目录:
# 获取当前结构概览
ls -la [target_directory]
# 检查文件类型和大小
find [target_directory] -type f -exec file {} \; | head -20
# 识别最大的文件
du -sh [target_directory]/* | sort -rh | head -20
# 统计文件类型
find [target_directory] -type f | sed 's/.*\.//' | sort | uniq -c | sort -rn
总结发现:
识别整理模式
根据文件确定逻辑分组:
按类型:
按用途:
按日期:
查找重复项
当请求时,搜索重复项:
# 通过哈希查找完全相同的重复项
find [directory] -type f -exec md5 {} \; | sort | uniq -d
# 查找同名文件
find [directory] -type f -printf '%f\n' | sort | uniq -d
# 查找大小相似的文件
find [directory] -type f -printf '%s %p\n' | sort -n
对于每组重复项:
提出整理计划
在进行更改前提出清晰的计划:
# [目录] 的整理计划
## 当前状态
- Y 个文件夹中的 X 个文件
- 总计 [大小]
- 文件类型:[细分]
- 问题:[列出问题]
## 建议的结构
[Directory]/
├── Work/
│ ├── Projects/
│ ├── Documents/
│ └── Archive/
├── Personal/
│ ├── Photos/
│ ├── Documents/
│ └── Media/
└── Downloads/
├── To-Sort/
└── Archive/
## 我将进行的更改
1. **创建新文件夹**:[列表]
2. **移动文件**:
- X 个 PDF 文件 → Work/Documents/
- Y 个图像文件 → Personal/Photos/
- Z 个旧文件 → Archive/
3. **重命名文件**:[任何重命名模式]
4. **删除**:[重复项或垃圾文件]
## 需要您决定的文件
- [列出任何您不确定的文件]
准备继续吗?(是/否/修改)
执行整理
批准后,系统地进行整理:
# 创建文件夹结构
mkdir -p "path/to/new/folders"
# 移动文件并清晰记录日志
mv "old/path/file.pdf" "new/path/file.pdf"
# 使用一致的格式重命名文件
# 例如:"YYYY-MM-DD - Description.ext"
重要规则:
提供总结和维护建议
整理完成后:
# 整理完成! ✨
## 更改内容
- 创建了 [X] 个新文件夹
- 整理了 [Y] 个文件
- 通过删除重复项释放了 [Z] GB 空间
- 归档了 [W] 个旧文件
## 新结构
[显示新的文件夹树状图]
## 维护建议
为保持此结构整洁:
1. **每周**:整理新下载的文件
2. **每月**:检查并归档已完成的项目
3. **每季度**:检查新的重复项
4. **每年**:归档旧文件
## 给您的快捷命令
```bash
# 查找本周修改的文件
find . -type f -mtime -7
# 按类型整理下载内容
[custom command for their setup]
# 查找重复项
[custom command]
想要整理另一个文件夹吗?
用户:"我的下载文件夹一团糟,有 500 多个文件。帮我整理一下。"
过程:
用户:"在我的文档中查找重复文件,并帮助我决定保留哪些。"
输出:
# 找到 23 组重复项(总计 156 MB)
## 重复项组 1:"proposal.pdf"
- `/Documents/proposal.pdf` (2.3 MB, 修改于:2024-03-15)
- `/Documents/old/proposal.pdf` (2.3 MB, 修改于:2024-03-15)
- `/Desktop/proposal.pdf` (2.3 MB, 修改于:2024-03-10)
**建议**:保留 `/Documents/proposal.pdf`(位于正确位置的最新版本)
删除其他 2 个副本吗?
[继续处理所有重复项...]
用户:"检查我的 ~/Projects 目录并提出改进建议。"
输出:
# ~/Projects 分析
## 当前结构问题
- 活跃项目和归档项目混杂(3 年以上)
- 没有一致的命名约定
- 一些项目在根目录,另一些在随机子文件夹中
- 重复的文件夹(project-name, project-name-old, project-name-v2)
## 建议的结构
Projects/
├── Active/
│ ├── client-work/
│ ├── side-projects/
│ └── learning/
├── Archive/
│ ├── 2022/
│ ├── 2023/
│ └── 2024/
└── Templates/
## 具体更改
1. 将 12 个自 2022 年以来未碰过的项目移动到 Archive/
2. 合并 4 个重复的项目文件夹
3. 将项目重命名为一致的格式:"client-name-project-name"
4. 为旧工作创建归档
希望我实施这个计划吗?
用户:"按年份和月份整理我的照片文件夹。"
输出:创建如下结构:
Photos/
├── 2023/
│ ├── 01-January/
│ ├── 02-February/
│ └── ...
├── 2024/
│ ├── 01-January/
│ └── ...
└── Unsorted/
然后根据 EXIF 数据或文件修改日期移动照片。
整理我的下载文件夹 - 将文档移动到 Documents,
图像移动到 Pictures,将安装程序分开存放,并归档
超过 3 个月的文件。
检查我的项目文件夹结构,并帮助我将活跃项目
与应该归档的旧项目分开。
在我的文档文件夹中查找所有重复文件,并帮助我
决定保留哪些。
我的桌面上堆满了文件。帮我把所有东西都整理到
我的文档文件夹中。
根据拍摄日期(年/月)整理此文件夹中的所有照片。
在我的文档文件夹中,帮助我将工作文件与个人文件分开。
每周安装量
1.3K
代码仓库
GitHub 星标数
42.3K
首次出现
Jan 20, 2026
安全审计
安装于
opencode1.1K
gemini-cli1.0K
codex986
cursor936
claude-code890
github-copilot888
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
1.3K
Repository
GitHub Stars
42.3K
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode1.1K
gemini-cli1.0K
codex986
cursor936
claude-code890
github-copilot888
97,600 周安装