Skip to content

Commit f87e080

Browse files
feat: add file-organizer skills example (#134)
* feat: add file-organizer skills example * feat: 🎸 update file-organizer skill based on feedback
1 parent eb79cdc commit f87e080

File tree

1 file changed

+243
-0
lines changed

1 file changed

+243
-0
lines changed
Lines changed: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,243 @@
1+
---
2+
name: file-organizer
3+
description: Intelligently organizes your files and folders across your computer by understanding context, finding duplicates, suggesting better structures, and automating cleanup tasks. Reduces cognitive load and keeps your digital workspace tidy without manual effort.
4+
---
5+
6+
# File Organizer
7+
8+
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.
9+
10+
## When to Use This Skill
11+
12+
- Your Downloads folder is a chaotic mess
13+
- You can't find files because they're scattered everywhere
14+
- You have duplicate files taking up space
15+
- Your folder structure doesn't make sense anymore
16+
- You want to establish better organization habits
17+
- You're starting a new project and need a good structure
18+
- You're cleaning up before archiving old projects
19+
20+
## What This Skill Does
21+
22+
1. **Analyzes Current Structure**: Reviews your folders and files to understand what you have
23+
2. **Finds Duplicates**: Identifies duplicate files across your system
24+
3. **Suggests Organization**: Proposes logical folder structures based on your content
25+
4. **Automates Cleanup**: Moves, renames, and organizes files with your approval
26+
5. **Maintains Context**: Makes smart decisions based on file types, dates, and content
27+
6. **Reduces Clutter**: Identifies old files you probably don't need anymore
28+
29+
## How to Use
30+
31+
### From Your Home Directory
32+
33+
```
34+
cd ~
35+
```
36+
37+
Then run Claude Code and ask for help:
38+
39+
```
40+
Help me organize my Downloads folder
41+
```
42+
43+
```
44+
Find duplicate files in my Documents folder
45+
```
46+
47+
```
48+
Review my project directories and suggest improvements
49+
```
50+
51+
### Specific Organization Tasks
52+
53+
```
54+
Organize these downloads into proper folders based on what they are
55+
```
56+
57+
```
58+
Find duplicate files and help me decide which to keep
59+
```
60+
61+
```
62+
Clean up old files I haven't touched in 6+ months
63+
```
64+
65+
```
66+
Create a better folder structure for my [work/projects/photos/etc]
67+
```
68+
69+
## Instructions
70+
71+
**SAFETY WARNING: This skill involves moving and deleting files. You MUST ALWAYS explicitly ask for user confirmation before deleting any files. When moving large numbers of files, ensure you have a way to undo or log the operations.**
72+
73+
When a user requests file organization help:
74+
75+
1. **Understand the Scope**
76+
77+
Ask clarifying questions:
78+
- Which directory needs organization? (Downloads, Documents, entire home folder?)
79+
- What's the main problem? (Can't find things, duplicates, too messy, no structure?)
80+
- Any files or folders to avoid? (Current projects, sensitive data?)
81+
- How aggressively to organize? (Conservative vs. comprehensive cleanup)
82+
83+
2. **Analyze Current State**
84+
85+
Review the target directory to understand:
86+
- Total files and folders
87+
- File type breakdown
88+
- Size distribution
89+
- Date ranges
90+
- Obvious organization issues
91+
92+
3. **Identify Organization Patterns**
93+
94+
Based on the files, determine logical groupings:
95+
96+
**By Type**:
97+
- Documents (PDFs, DOCX, TXT)
98+
- Images (JPG, PNG, SVG)
99+
- Videos (MP4, MOV)
100+
- Archives (ZIP, TAR, DMG)
101+
- Code/Projects (directories with code)
102+
- Spreadsheets (XLSX, CSV)
103+
- Presentations (PPTX, KEY)
104+
105+
**By Purpose**:
106+
- Work vs. Personal
107+
- Active vs. Archive
108+
- Project-specific
109+
- Reference materials
110+
- Temporary/scratch files
111+
112+
**By Date**:
113+
- Current year/month
114+
- Previous years
115+
- Very old (archive candidates)
116+
117+
4. **Find Duplicates**
118+
119+
When requested, search for duplicates using available system tools.
120+
121+
**Note**: Avoid using platform-specific flags (like `find -printf` or `md5` on Linux/Windows) unless you are sure of the environment.
122+
123+
Strategies:
124+
- **Exact Duplicates**: Compare file hashes (use `shasum`, `cksum`, or `md5sum` depending on OS).
125+
- **Name Duplicates**: Find files with the same filename.
126+
- **Size Duplicates**: Find files with identical file sizes as a first pass.
127+
128+
For each set of duplicates:
129+
- Show all file paths
130+
- Display sizes and modification dates
131+
- Recommend which to keep (usually newest or best-named)
132+
- **Important**: Always ask for confirmation before deleting
133+
134+
5. **Propose Organization Plan**
135+
136+
Present a clear plan before making changes:
137+
138+
```markdown
139+
# Organization Plan for [Directory]
140+
141+
## Current State
142+
143+
- X files across Y folders
144+
- [Size] total
145+
- File types: [breakdown]
146+
- Issues: [list problems]
147+
148+
## Proposed Structure
149+
150+
[Directory]/
151+
├── Work/
152+
│ ├── Projects/
153+
│ ├── Documents/
154+
│ └── Archive/
155+
├── Personal/
156+
│ ├── Photos/
157+
│ ├── Documents/
158+
│ └── Media/
159+
└── Downloads/
160+
├── To-Sort/
161+
└── Archive/
162+
163+
## Changes I'll Make
164+
165+
1. **Create new folders**: [list]
166+
2. **Move files**:
167+
- X PDFs -> Work/Documents/
168+
- Y images -> Personal/Photos/
169+
- Z old files -> Archive/
170+
3. **Rename files**: [any renaming patterns]
171+
4. **Delete**: [duplicates or trash files]
172+
173+
## Files Needing Your Decision
174+
175+
- [List any files you're unsure about]
176+
177+
Ready to proceed? (yes/no/modify)
178+
```
179+
180+
## Examples
181+
182+
### Example 1: Organizing Downloads (From Justin Dielmann)
183+
184+
**User**: "My Downloads folder is a mess with 500+ files. Help me organize it."
185+
186+
**Process**:
187+
188+
1. Analyzes Downloads folder
189+
2. Finds patterns: work docs, personal photos, installers, random PDFs
190+
3. Proposes structure:
191+
- Downloads/
192+
- Work/
193+
- Personal/
194+
- Installers/ (DMG, PKG files)
195+
- Archive/
196+
- ToSort/ (things needing decisions)
197+
4. Asks for confirmation
198+
5. Moves files intelligently based on content and names
199+
6. Results: 500 files -> 5 organized folders
200+
201+
### Example 2: Finding and Removing Duplicates
202+
203+
**User**: "Find duplicate files in my Documents and help me decide which to keep."
204+
205+
**Output**:
206+
207+
```markdown
208+
# Found 23 Sets of Duplicates (156 MB total)
209+
210+
## Duplicate Set 1: "proposal.pdf"
211+
212+
- `/Documents/proposal.pdf` (2.3 MB, modified: 2024-03-15)
213+
- `/Documents/old/proposal.pdf` (2.3 MB, modified: 2024-03-15)
214+
- `/Desktop/proposal.pdf` (2.3 MB, modified: 2024-03-10)
215+
216+
**Recommendation**: Keep `/Documents/proposal.pdf` (most recent in correct location)
217+
Delete the other 2 copies?
218+
219+
[Continue for all duplicates...]
220+
```
221+
222+
## Best Practices
223+
224+
### Folder Naming
225+
226+
- Use clear, descriptive names
227+
- Avoid spaces (use hyphens or underscores)
228+
- Be specific: "client-proposals" not "docs"
229+
- Use prefixes for ordering: "01-current", "02-archive"
230+
231+
### File Naming
232+
233+
- Include dates: "2024-10-17-meeting-notes.md"
234+
- Be descriptive: "q3-financial-report.xlsx"
235+
- Avoid version numbers in names (use version control instead)
236+
- Remove download artifacts: "document-final-v2 (1).pdf" -> "document.pdf"
237+
238+
### When to Archive
239+
240+
- Projects not touched in 6+ months
241+
- Completed work that might be referenced later
242+
- Old versions after migration to new systems
243+
- Files you're hesitant to delete (archive first)

0 commit comments

Comments
 (0)