file-organizer by sickn33/antigravity-awesome-skills
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill file-organizer当用户请求文件整理帮助时:
询问澄清性问题:
* 哪个目录需要整理?(下载、文档、整个主文件夹?)
* 主要问题是什么?(找不到东西、重复项、太乱、没有结构?)
* 是否有任何文件或文件夹需要避免处理?(当前项目、敏感数据?)
* 整理力度如何?(保守清理还是全面清理?)
2. 分析当前状态
检查目标目录:
# 获取当前结构概览
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
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
总结发现:
* 文件和文件夹总数
* 文件类型细分
* 大小分布
* 日期范围
* 明显的组织问题
3. 识别整理模式
根据文件确定逻辑分组:
按类型:
* 文档 (PDFs, DOCX, TXT)
* 图片 (JPG, PNG, SVG)
* 视频 (MP4, MOV)
* 归档文件 (ZIP, TAR, DMG)
* 代码/项目 (包含代码的目录)
* 电子表格 (XLSX, CSV)
* 演示文稿 (PPTX, KEY)
按用途:
* 工作 vs. 个人
* 活跃 vs. 归档
* 项目特定
* 参考资料
* 临时/草稿文件
按日期:
* 当前年/月
* 往年
* 非常旧的(归档候选)
4. 查找重复项
当被请求时,搜索重复项:
# 通过哈希值查找完全相同的重复项
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
对于每组重复项:
* 显示所有文件路径
* 显示大小和修改日期
* 建议保留哪个(通常是最新的或命名最好的)
* **重要**:在删除前务必请求确认
5. 提出整理计划
在进行更改前提出清晰的计划:
# [目录] 整理计划
## 当前状态
- 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. **删除**:[重复项或垃圾文件]
## 需要你决定的文件
- [列出任何你不确定的文件]
准备继续吗?(是/否/修改)
6. 执行整理
获得批准后,系统地进行整理:
# 创建文件夹结构
mkdir -p "path/to/new/folders"
# 移动文件并清晰记录日志
mv "old/path/file.pdf" "new/path/file.pdf"
# 使用一致的格式重命名文件
# 示例:"YYYY-MM-DD - Description.ext"
重要规则:
* 在删除任何内容前务必确认
* 记录所有移动操作以便可能撤销
* 保留原始修改日期
* 优雅地处理文件名冲突
* 如果遇到意外情况,停止并询问
7. 提供总结和维护建议
整理完成后:
# 整理完成! ✨
## 更改内容
- 创建了 [X] 个新文件夹
- 整理了 [Y] 个文件
- 通过删除重复项释放了 [Z] GB 空间
- 归档了 [W] 个旧文件
## 新结构
[显示新的文件夹树]
## 维护建议
为保持此结构:
1. **每周**:整理新下载的文件
2. **每月**:审查并归档已完成的项目
3. **每季度**:检查新的重复项
4. **每年**:归档旧文件
## 供你使用的快捷命令
# 查找本周修改的文件
find . -type f -mtime -7
# 按类型整理下载文件
[为其设置的自定义命令]
# 查找重复项
[自定义命令]
想整理另一个文件夹吗?
每周安装量
409
代码仓库
GitHub 星标数
27.1K
首次出现
2026年1月19日
安全审计
安装于
opencode344
gemini-cli335
cursor304
codex303
claude-code283
github-copilot270
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 similar names
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
# 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?
Weekly Installs
409
Repository
GitHub Stars
27.1K
First Seen
Jan 19, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode344
gemini-cli335
cursor304
codex303
claude-code283
github-copilot270
Azure RBAC 权限管理工具:查找最小角色、创建自定义角色与自动化分配
101,200 周安装
Rust调用关系图生成器 - 可视化函数调用层次结构,提升代码分析效率
539 周安装
parallel-web-extract:并行网页内容提取工具,高效抓取网页数据
595 周安装
腾讯云CloudBase AI模型Web技能:前端调用混元/DeepSeek模型,实现流式文本生成
560 周安装
Apollo Connectors 模式助手:GraphQL API 连接器开发与集成指南
565 周安装
GitHub Trending 趋势分析工具:实时发现热门项目、技术洞察与开源机会
556 周安装
GSAP React 集成教程:useGSAP Hook 动画库与 React 组件开发指南
546 周安装