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 从公开仓库中收录这些内容。

举报或申请下架