File Organization

eyadsibai/ltk/plugins/ltk-product/skills/file-organization

作者 eyadsibaif8e85697b95d8e4968cff3c49d20e632048faae9無授權條款7 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫8 個月前更新

Use when "organizing files", "cleaning up folders", "finding duplicates", "structuring directories", or asking about "Downloads cleanup", "folder structure", "file management"

AI 產生的概覽

指導整理檔案、找出重複項目並維護整潔的資料夾結構,使用 shell 指令完成。

功能
此技能提供整理目錄的工作流程與 shell 指令參考:分析資料夾內容,依雜湊、名稱或大小找出重複檔案,並依類型、用途或日期提出整理方案。它列出建立資料夾與搬移檔案的執行步驟,以及命名規範、封存標準和維護時程。它僅為說明性內容,不附帶任何指令碼。
適用情境
當下載資料夾雜亂、檔案散落難以尋找、重複檔案佔用空間,或需要在封存前設計、清理資料夾結構時使用。
執行需求
不附帶指令碼或套件;依賴 ls、find、du、md5sum、sort、uniq、mkdir、mv 等標準 shell 工具,以及代理執行 shell 指令的能力。
<!-- Adapted from: awesome-claude-skills/file-organizer -->

File Organization Guide

Organize files, find duplicates, and maintain clean folder structures.

When to Use

  • Downloads folder is chaotic
  • Can't find files (scattered everywhere)
  • Duplicate files taking up space
  • Folder structure doesn't make sense
  • Starting a new project structure
  • Cleaning up before archiving

Analysis Commands

bash
# Overview of directoryls -la [directory]
# Count file typesfind [directory] -type f | sed 's/.*\.//' | sort | uniq -c | sort -rn
# Largest filesdu -sh [directory]/* | sort -rh | head -20
# Files modified this weekfind [directory] -type f -mtime -7

Finding Duplicates

bash
# By hash (exact duplicates)find [directory] -type f -exec md5sum {} \; | sort | uniq -d
# By namefind [directory] -type f -printf '%f\n' | sort | uniq -d
# By sizefind [directory] -type f -printf '%s %p\n' | sort -n | uniq -D -w 10

Organization Patterns

By Type

Downloads/├── Documents/     # PDF, DOCX, TXT├── Images/        # JPG, PNG, SVG├── Videos/        # MP4, MOV├── Archives/      # ZIP, TAR, DMG├── Code/          # Projects└── ToSort/        # Needs decision

By Purpose

Documents/├── Work/│   ├── Projects/│   ├── Reports/│   └── Archive/└── Personal/    ├── Finance/    ├── Medical/    └── Archive/

By Date

Photos/├── 2024/│   ├── 01-January/│   ├── 02-February/│   └── ...├── 2023/└── Unsorted/

Organization Workflow

  1. Analyze - Review current structure
  2. Plan - Propose new structure
  3. Confirm - Get user approval
  4. Execute - Move files systematically
  5. Summarize - Report changes

Execution Commands

bash
# Create structuremkdir -p "path/to/new/folders"
# Move filesmv "old/path/file.pdf" "new/path/file.pdf"
# Batch move by extensionfind . -name "*.pdf" -exec mv {} Documents/ \;

Best Practices

Folder Naming

  • Clear, descriptive names
  • Avoid spaces (use hyphens)
  • Use prefixes for ordering: 01-current, 02-archive

File Naming

  • Include dates: 2024-10-17-meeting-notes.md
  • Be descriptive
  • Remove download artifacts: file (1).pdf → file.pdf

When to Archive

  • Not touched in 6+ months
  • Completed work for reference
  • Old versions after migration
  • Files you're hesitant to delete

Maintenance Schedule

FrequencyTask
WeeklySort new downloads
MonthlyReview/archive projects
QuarterlyCheck for duplicates
YearlyArchive old files

Important Rules

  • Always confirm before deleting
  • Log all moves for undo
  • Preserve modification dates
  • Stop and ask on unexpected situations

來源與署名

來源:eyadsibai/ltk位於plugins/ltk-product/skills/file-organization提交f8e8569

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架