File Organizer

👤 dougchambes 📦 v1.0.0 ⭐ 4.4 ⬇️ 1K 下载
🔒 IT运维与安全 免费

📖 技能介绍

File Organizer

Manages file organization through safe, predictable batch operations.

Core Workflows

Directory Structure

Create standard project layouts:

project/
├── src/          - Source code
├── docs/         - Documentation
├── tests/        - Test files
├── assets/       - Images, fonts, media
├── scripts/      - Build scripts, utilities
└── config/       - Configuration files

Moving Files

  • mv <source> <dest> - Single file
  • find . -name "*.ext" -exec mv {} <dest>/ \; - Batch by extension
  • Always confirm destination exists

Batch Renaming

7w4.net小葱技能站收录全网优质技能,值得收藏。

Patterns:

  • Sequential numbering: file_{001..100}.txt
  • Date-based: YYYY-MM-DD_description
  • Type-based: Group by extension

Safe approach:

  1. echo commands first (dry run)
  2. Review output
  3. Remove echo, execute

Organizing by Type

Group files by extension into folders:

mkdir -p images docs code
find . -name "*.png" -o -name "*.jpg" | xargs -I {} mv {} images/
find . -name "*.md" -o -name "*.txt" | xargs -I {} mv {} docs/
find . -name "*.py" -o -name "*.js" | xargs -I {} mv {} code/

Finding Scattered Files

find . -type f -name "*.ext"    # Find by extension
find . -type f -mtime -7        # Modified in last 7 days
find . -type f -size +100M      # Large files

Dry Runs First

Always preview batch operations:

echo "Would move these files:"
find . -name "*.ext"
# Review, then execute

Safety Rules

  1. Never delete without explicit permission (use trash if available)
  2. Dry run first - Always echo/preview batch operations
  3. Check destinations - Confirm target directories exist
  4. Backup before restructure - Snapshot before major moves
  5. Respect workspace boundaries - Only touch ~/openclaw

When to Read references/patterns.md

Load when:

  • Complex rename patterns needed
  • Project structure templates required
  • Advanced find commands for filtering
  • Edge cases (symlinks, special characters)

🤖 AI 评测

这个 Skill 质量不错,专门用来整理文件和批量操作。它功能齐全、注重安全,能有效避免误删文件。不过它主要依赖命令行操作,对不熟悉命令行的用户不太友好,缺少图形界面。总的来说,这是一个实用且安全的文件管理工具,适合需要频繁整理文件的人使用。

📊 多维度评分

适应性4.1
规范性4.3
有效性5
可靠性4
可信度4.3

📁 包含文件 (3 个)

📄 SKILL.md 2.3 KB
📄 _meta.json 140 B
📄 references/patterns.md 4.7 KB