folder-organizer
Folder Organizer
A skill for scanning, analyzing, and organizing files — producing a complete reorganization plan before touching anything.
Core Principle: Plan First, Execute Later
Never rename, move, copy, or delete any file before the user explicitly confirms the full plan.
Always present the complete plan and wait for an affirmative response.
Phase 1 — Scan & Inventory
Determine where the files are:
| Source | How to access |
|---|---|
| Uploaded to conversation | Check /mnt/user-data/uploads/ |
| Local path given by user | Use bash_tool to ls -lah <path> |
| Described verbally | Ask the user to upload or provide a path |
Run a scan and report:
# Count files and get basic stats
find <target_dir> -type f | wc -l
find <target_dir> -type f -name "*" | sort
ls -lah <target_dir>
Present a simple summary:
- 📁 Total file count
- File types found (extensions breakdown)
- Any immediately obvious duplicates or empty files
Phase 2 — Per-File Analysis
For each file, determine:
| Field | What to provide |
|---|---|
| 📌 Content | What the file contains or represents (read text files; infer from name/extension for binaries) |
| 🏷 Suggested filename | Clear, descriptive, lowercase-with-hyphens or underscores, include date if relevant |
| 📂 Suggested folder | Logical category group name |
| 🗑 Deletable? | Flag if file appears redundant, empty, temp, or duplicate |
Filename conventions:
- Lowercase, use
-or_as separators - Include context:
2024-q3-sales-report.xlsxnotreport.xlsx - Keep extensions unchanged
Folder naming conventions:
- Short, noun-based:
reports/,assets/,drafts/,archives/ - Avoid deep nesting beyond 2 levels unless necessary
Phase 3 — Grouping & Structure Proposal
After analyzing all files, produce:
- Grouped clusters — files that belong together by topic, project, or type
- Proposed folder tree — show as a tree diagram, e.g.:
📁 organized/ ├── 📁 reports/ │ ├── 2024-q1-sales.xlsx │ └── 2024-q3-forecast.pdf ├── 📁 assets/ │ ├── logo-primary.png │ └── banner-homepage.jpg └── 📁 drafts/ └── proposal-v2.docx - Files to delete — list separately with reason
- Files to bundle — groups that could be zipped together (e.g., all assets for a project)
Phase 4 — Confirmation Gate
Present the full plan and ask:
「以上是完整的整理計畫,請確認後我再執行。如需調整任何分類、檔名或資料夾名稱,請直接告訴我。」
(English: "Above is the complete reorganization plan. Please confirm before I proceed. Let me know if you'd like to adjust any category, filename, or folder name.")
Do not proceed until the user says yes / 確認 / 執行 or equivalent.
Phase 5 — Execution (only after confirmation)
Once confirmed, execute the plan:
# Example: create folders and move files
mkdir -p <output_dir>/reports
mv "<source>/old-name.xlsx" "<output_dir>/reports/2024-q3-sales.xlsx"
# ... etc
After execution:
- Show a final file tree of the result
- Confirm completion with file count moved/renamed
Edge Cases
| Situation | Behavior |
|---|---|
| File content unreadable (binary, encrypted) | Infer from filename/extension; flag as "manual review needed" |
| Duplicate filenames after renaming | Append -2, -3 suffix |
| User uploads a ZIP | Extract first, then analyze contents |
| No files found | Ask user to re-upload or verify path |
| Very large folder (100+ files) | Summarize by type clusters first; ask if user wants per-file detail |
Output Language
Match the user's language. If the user writes in Traditional Chinese (繁體中文), respond in Traditional Chinese. If in English, respond in English.
More from timlai666/skills
investment-research-prompts
Use when the user needs stock screening, portfolio risk review, dividend portfolio design, pre-earnings analysis, industry competition analysis, DCF valuation, technical analysis, or stock trend/anomaly detection. Trigger on requests like 選股, 投資組合風險, 股息策略, 財報前瞻, DCF 估值, 技術面分析, 產業競爭研究, 趨勢識別, or investment research prompts.
22landing-page-studio
Use when creating high-conversion landing pages with modern visual effects, including SVG/WebGL animation, autonomous multi-iteration optimization, and dual output modes (single-file HTML or React project). Trigger on requests like landing page, LP, hero section build, animated marketing page, conversion page redesign, or style variants A-L/custom.
17bcg-growth-share-matrix
Use when analyzing a group, business-unit, product-line, or brand portfolio with the BCG growth-share matrix, especially when the task involves relative market share, market growth, quadrant classification, capital allocation, portfolio prioritization, or deciding whether to invest, maintain, harvest, reposition, or exit.
17data-analysis-workflow
Use when planning or executing a full data analysis workflow, including schema inspection, data quality audit, data cleaning, EDA, relationship analysis, feature engineering, modeling, evaluation, and report generation. Trigger on requests like 資料分析流程, EDA 到建模, 數據分析規劃, 分析報告產出, or end-to-end analytics workflow.
16psychological-trigger-marketing
Use when generating high-conversion marketing angles, campaign hooks, landing page messaging, promotional copy directions, social post hooks, or CTA concepts with psychological triggers such as FOMO, justification, desire, priming, anchoring, and framing, especially for offers, launches, limited-time promotions, and Traditional Chinese marketing for Taiwan audiences.
16service-innovation-workshop
Use when turning a service innovation problem into concept options, prototype testing, and risk checks, especially for 服務創新, 創新機會, 價值共創, 服務原型, SCAMPER, 購買者效用矩陣, 創新流程, 創新困境, or 服務體驗工程. Trigger when the task asks for practical innovation directions, concept generation, opportunity framing, or validation planning rather than only concept definitions.
16