File Sorter logo

File Sorter

Community
jiaxiaojunQAQ
file-sorter

通用文件智能分类工具,支持多种分类规则:类型、大小、日期、关键词等。适用于需要批量整理文件的场景,如下载文件夹整理、照片归档、文档分类等。

Overview

PublisherjiaxiaojunQAQ
RepositorySkillCamo
Skill namefile-sorter
Stars
35
Forks
0
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jiaxiaojunQAQ on GitHub. Read the source before you install it.

Installation

Install the File Sorter AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jiaxiaojunQAQ/SkillCamo/tree/main/data/benchmark/benign_base_100/file-sorter
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jiaxiaojunQAQ/SkillCamo.git /tmp/SkillCamo
mkdir -p .claude/skills
cp -r /tmp/SkillCamo/data/benchmark/benign_base_100/file-sorter .claude/skills/file-sorter
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable File Sorter in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads File Sorter on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so File Sorter is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

File Sorter - 文件智能分类工具

功能特性

  • ✅ 多种分类规则:文件类型、文件大小、文件日期、关键词
  • ✅ 灵活操作:移动、复制、创建符号链接
  • ✅ 预览功能:先预览效果,确认后再执行
  • ✅ 撤销操作:支持撤销最近一次整理
  • ✅ 自定义规则:支持自定义分类规则和文件夹结构
  • ✅ 规则预设:保存和加载分类规则预设

快速开始

1. 按文件类型分类

bash
file-sorter organize ~/Downloads --by-type --output ~/Sorted

2. 按文件大小分类

bash
file-sorter organize ~/Downloads --by-size --output ~/Sorted

3. 按文件日期分类(修改日期)

bash
file-sorter organize ~/Downloads --by-date modified --output ~/Sorted

4. 预览模式(不实际执行)

bash
file-sorter organize ~/Downloads --by-type --preview

5. 撤销操作

bash
file-sorter undo ~/Sorted

详细使用说明

分类规则说明

按文件类型分类
  • 默认类别:
    • documents:文档类(.pdf, .doc, .docx, .txt, .xls, .xlsx, .ppt, .pptx)
    • images:图片类(.jpg, .jpeg, .png, .gif, .webp, .heic)
    • videos:视频类(.mp4, .avi, .mov, .mkv)
    • audio:音频类(.mp3, .wav, .flac, .aac)
    • installers:安装包类(.exe, .msi, .dmg, .pkg, .deb, .rpm)
    • archives:压缩包类(.zip, .rar, .7z, .tar, .gz)
    • code:代码类(.py, .js, .html, .css, .java, .cpp)
  • 自定义类别:使用 --categories 参数或配置文件
按文件大小分类
  • 默认规则:
    • small:小于 1MB
    • medium:1MB - 100MB
    • large:大于 100MB
  • 自定义规则:使用 --size-rules 参数或配置文件
按文件日期分类
  • 选项:
    • created:按创建日期
    • modified:按修改日期
    • accessed:按访问日期
  • 文件夹结构:按年/月/日组织(如 2026/03/07)

操作类型

  • move:移动文件(默认)
  • copy:复制文件
  • link:创建符号链接

配置文件

可以在项目根目录创建 .file-sorter.json 配置默认选项:

json
{
  "output_dir": "~/Sorted",
  "action": "move",
  "categories": {
    "documents": [".pdf", ".doc"],
    "images": [".jpg", ".png"]
  },
  "size_rules": {
    "small": [0, 1048576],
    "medium": [1048576, 104857600],
    "large": [104857600, null]
  },
  "backup_original": true
}

安全措施

  1. 预览模式:默认先显示预览,需要确认后才执行
  2. 自动备份:执行整理前自动保存操作日志
  3. 撤销功能:随时可以撤销最近一次操作
  4. dry-run 选项:使用 --preview 查看效果

示例场景

场景 1:整理下载文件夹

bash
# 按类型整理下载文件
file-sorter organize ~/Downloads --by-type --output ~/Downloads/Organized

场景 2:整理照片

bash
# 按拍摄日期整理照片
file-sorter organize ~/Photos --by-date created --output ~/Photos/ByDate

场景 3:按大小分类大文件

bash
# 找出所有大于 100MB 的文件
file-sorter organize ~/Videos --by-size --output ~/Videos/BySize

故障排除

  • 撤销失败:确保在同一目录下执行,且备份文件未被删除
  • 规则冲突:多个规则匹配时,按规则优先级处理(类型 > 大小 > 日期)
  • 权限问题:确保有文件读写权限

更新日志

v1.0.0 (2026-03-07)

  • 初始正式版本发布
  • 支持按类型、大小、日期分类
  • 支持预览和撤销功能

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the File Sorter AI skill do?

通用文件智能分类工具,支持多种分类规则:类型、大小、日期、关键词等。适用于需要批量整理文件的场景,如下载文件夹整理、照片归档、文档分类等。

Why use File Sorter on TypingMind?

Because you install it once and use it with any model. File Sorter is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install File Sorter in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jiaxiaojunQAQ/SkillCamo/tree/main/data/benchmark/benign_base_100/file-sorter. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use File Sorter?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with File Sorter?

As many as you like. As long as a model supports skills, you can use File Sorter with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the File Sorter AI skill free?

It is published on GitHub by jiaxiaojunQAQ. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇