agentleFS
AlienHubAlienHub/file-organizer/SKILL.md

file-organizer

Skill7 starsChanged 9 months agoMITView on GitHub

Use when user wants to organize files, move files, clean up downloads, categorize files, add tags, rename files, or detect duplicates - provides file organization with YAML-based rules

  • Installs packages

70 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use skill-share, meeting-insights-analyzer and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ArogyaReddySkill

    skill-share

    A skill that creates new Claude skills and automatically shares them on Slack using Rube for seamless team collaboration and skill discovery.

    Also in 25 projects that use this

  • ArogyaReddySkill

    meeting-insights-analyzer

    Analyzes meeting transcripts and recordings to uncover behavioral patterns, communication insights, and actionable feedback. Identifies when you avoid conflict, use filler words, dominate conversations, or miss opportunities to listen. Perfect for professionals seeking to improve their communication and leadership skills.

    Also in 39 projects that use this

  • guaderramaSkill

    lead-research-assistant

    Identifies and qualifies potential leads by analyzing products/services, understanding ideal customer profiles, conducting intelligent web research using Bright Data MCP tools, and providing actionable outreach strategies. Use when researching leads, prospecting, qualifying contacts, analyzing companies, enriching lead data, or creating outreach campaigns.

    Also in 36 projects that use this

  • trendinuxSkill

    twitter-algorithm-optimizer

    Analyze and optimize tweets for maximum reach using Twitter's open-source algorithm insights. Rewrite and edit user tweets to improve engagement and visibility based on how the recommendation system ranks content.

    Also in 14 projects that use this

  • +8 more from ArogyaReddy

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 10 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 63 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    File Renaming: Remove garbled characters, unify formats, standardize naming

    line 14
  2. Distinctive:

    Mac Tags: Add color tags and custom text labels to files

    line 15
  3. Very specific:

    Use the tag command-line tool for tag operations.

    line 21
  4. Very specific:

    When executing tag operations, use the tag command:

    line 57
  5. Distinctive:

    If no rules exist, the skill will:

    line 91
  6. Distinctive:

    Ask which directory you want to organize

    line 92
  7. Distinctive:

    Use AI to analyze directory contents

    line 93
  8. Distinctive:

    Before first use, check if tag command is installed:

    line 113
  9. Distinctive:

    Wait for you to say "执行" (execute) or "确认" (confirm)

    line 261
  10. Very specific:

    Check if match rules are correctly configured in SKILL.md

    line 272
  11. Distinctive:

    Check YAML syntax is correct

    line 276
  12. Very specific:

    Use --verbose for detailed information

    line 278
  13. Distinctive:

    Check if AppleScript is available

    line 282
  14. Distinctive:

    Check if target directory has write permissions

    line 285

“Common” is measured: kept by at least 6 in 10 of the 63 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

File Organizer

Helps you organize file systems with YAML-based rules for automated operations.

Features

  • File Moving: Move files by type/source/pattern to designated directories
  • File Renaming: Remove garbled characters, unify formats, standardize naming
  • Mac Tags: Add color tags and custom text labels to files
  • Duplicate Detection: Find duplicate files by content/name and process by rules
  • AI Insights: Analyze directories and intelligently recommend organization rules

Mac Tag Commands

Use the tag command-line tool for tag operations.

Tag Colors

Color
gray
green
purple
blue
yellow
red
orange

Usage

# Add tag (color + text)
# Format: tag --add "label"$'\n'"color_code" file
# Color codes: 1=gray, 2=green, 3=purple, 4=blue, 5=yellow, 6=red, 7=orange

# Example: Red "To Delete" tag
tag --add "To Delete"$'\n'"6" /Users/alien/Downloads/README.md

# Example: Blue "Invoice" tag
tag --add "Invoice"$'\n'"4" file.pdf

# List tags on a file
tag --list file

# List all used tags
tag --usage

Using in Skills

When executing tag operations, use the tag command:

tag --add "label"$'\n'"color_code" <file_path>

Trigger Methods

Auto Trigger

Automatically triggers when you say:

  • "整理下载目录" (organize downloads)
  • "整理桌面" (organize desktop)
  • "移动文件" (move files)
  • "清理重复文件" (clean duplicates)
  • "给文件打标签" (tag files)
  • "分析一下我的下载目录" (analyze my downloads)

Manual Invocation

  • /file-organizer - Manual skill invocation

First-Time Usage Flow

1. Skill starts → 2. Check rules → 3. Rules exist? Execute : Guide to create → 4. Preview → 5. Confirm execution

Rule Detection

The skill automatically checks ~/.file-organizer/rules/ for valid rules on startup.

No Rules Guidance

If no rules exist, the skill will:

  1. Ask which directory you want to organize
  2. Use AI to analyze directory contents
  3. Provide rule suggestions
  4. Save rules and execute after your confirmation

Environment Requirements

  • Python 3.8+
  • macOS
  • tag command-line tool (required for Mac Tag functionality)

Installing tag Command

brew install tag

Pre-first-use check:

Initial Setup

Before first use, check if tag command is installed:

which tag || brew install tag

The skill will automatically create config directories:

  • ~/.file-organizer/rules/ - Rule files
  • ~/.file-organizer/logs/ - Operation logs
  • ~/.file-organizer/config.yaml - Configuration file

Configuration File

Location: ~/.file-organizer/config.yaml

# Preview mode (true=preview, false=execute)
dry_run: true

# Scan directories
scan_paths:
  - ~/Downloads
  - ~/Documents
  - ~/Desktop

# Log level
log_level: info

Rule Syntax

move.yaml - Move Rules

rules:
  - name: "WeChat PDF Organization"
    condition:
      path: "~/Downloads"
      extension: ["pdf", "doc", "docx"]
      pattern: "WeChat|微信"
    action:
      move: "~/Documents/WeChat"
      create_if_missing: true
      tag:
        color: "blue"
        label: "WeChat"

condition options:

  • path: Source directory path (supports ~ shorthand)
  • extension: Array of file extensions, e.g., ["xlsx", "xls"]
  • pattern: Regex or keyword pattern for filename matching
  • size_gt: Greater than specified size, e.g., 100MB

action options:

  • move: Target directory path
  • create_if_missing: Whether to create target directory
  • tag.color: Mac tag color (gray, red, orange, yellow, green, blue, purple)
  • tag.label: Tag text label

rename.yaml - Rename Rules

rules:
  - name: "Remove duplicate parentheses"
    condition:
      pattern: "((\\d+))|\\((\\d+)\\)"
    action:
      replace: "-"
      prefix: ""
      suffix: ""
      separator: "-"

tag.yaml - Tag Rules

rules:
  - name: "Large file tag"
    condition:
      size_gt: 100MB
    action:
      tag:
        color: "red"
        label: "Large File"

duplicate.yaml - Duplicate Detection Rules

rules:
  - name: "Duplicate handling"
    check_by: "content"  # content or name
    action:
      keep: "newest"  # newest, oldest, first
      tag_duplicates: true
      duplicate_label: "Duplicate"

Usage Examples

Organize Downloads

"帮我整理下载目录" (Help me organize downloads)
→ Scan ~/Downloads
→ Apply rules, show preview
→ You say "执行" (execute) → Execute operations

AI Analysis & Suggestions

"分析一下我的下载目录有什么" (Analyze what's in my downloads)
→ AI analyzes directory contents
→ Provides rule suggestions
→ Save and execute after your confirmation

Move Specific Files

"把微信的 PDF 移到 Documents" (Move WeChat PDFs to Documents)
→ Scan ~/Downloads
→ Match PDF + WeChat
→ Preview operations
→ Execute

Remove Duplicate Naming

"重命名所有包含 (1) 的文件" (Rename all files containing (1))
→ Scan matching files
→ Preview rename results
→ Execute

Check Duplicate Files

"检查下载目录的重复文件" (Check duplicates in downloads)
→ Detect by content/name
→ Show duplicate file list
→ You choose which to keep

Execution Modes

Preview Mode (Default)

  1. Scan source directory
  2. Apply rules
  3. Show operation summary
  4. Wait for you to say "执行" (execute) or "确认" (confirm)

Execution Mode

After you say "执行", "确认":

  1. Execute operations one by one
  2. Show execution results
  3. Log to file

Troubleshooting

Issue: Skill not responding

  • Check if match rules are correctly configured in SKILL.md
  • Try manual invocation with /file-organizer

Issue: Rules not working

  • Check YAML syntax is correct
  • Confirm rule files are in ~/.file-organizer/rules/ directory
  • Use --verbose for detailed information

Issue: Tag functionality not working

  • Confirm running on macOS
  • Check if AppleScript is available

Issue: Move operations failing

  • Check if target directory has write permissions
  • Confirm sufficient disk space

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.