file-sorter

file-sorter is a skill for Claude Code from bahayonghang/my-ai-cli-toolkit. It costs 137 tokens per session (856 once invoked), scanned A, original, MIT.

A tool for reviewing files in one local folder, grouping them into categories, and suggesting clearer names.

In plain words
What is it for?
Use it to scan a folder, create a review plan, classify files, suggest names, and apply approved moves or renames.
Why use it?
It helps organize clutter while protecting project folders and letting you review proposed changes before anything is moved or renamed.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to scan a folder, create a review plan, classify files, suggest names, and apply approved moves or renames.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bahayonghang/my-ai-cli-toolkit/file-sorter
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bahayonghang/my-ai-cli-toolkit --skill file-sorter
Clone the repo
git clone --depth 1 https://github.com/bahayonghang/my-ai-cli-toolkit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for file-sorter

README.md
[![agentmods](https://agentmods.dev/badge/skills/bahayonghang/my-ai-cli-toolkit/file-sorter.svg)](https://agentmods.dev/skills/bahayonghang/my-ai-cli-toolkit/file-sorter)
Your own site
<a href="https://agentmods.dev/skills/bahayonghang/my-ai-cli-toolkit/file-sorter"><img src="https://agentmods.dev/badge/skills/bahayonghang/my-ai-cli-toolkit/file-sorter.svg" alt="Measured on agentmods" height="20"></a>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 856 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00137 $0.00856
Opus 5 $0.00068 $0.00428
Sonnet 5 $0.00027 $0.00171
Haiku 4.5 $0.00014 $0.00086

Measured 7d ago against content hash 6eb4e572faed, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

file-sorter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/file_sorter.py, tests/file-sorter.test.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/developer-tools-integrations/file-sorter/SKILL.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

In the commands below, <skill-dir> is this skill's base directory, announced when the skill loads. Substitute the literal path. On Windows, py -3 may replace python.

Default: scan and assemble a review plan. --execute is forbidden until the user approves the shown plan_id in this turn.

Routing

  • Local folder / same-parent files, categorize, organize, rename suggestions: this skill.
  • Windows dev process cleanup: windows-dev-process-cleanup.
  • Git worktree create/list/remove: git-worktree.
  • Commit: git-commit.
  • Repository source-layout refactors, duplicate deletion, Drive sync, PARA cabinets: refuse.

Workflow

  1. Scan (absolute --root only):
python "<skill-dir>/scripts/file_sorter.py" scan --root <abs> [--recursive] [--output <scan.json>]

If ok_to_scan is false, report skipped and stop.

  1. Propose category / subcategory / optional suggested_name from taxonomy.md. Use document excerpts only when the name is vague (max about 8000 characters). Use an image description only when the host already has vision. Screenshots describe on-screen content; do not label ordinary images as Installers or Operating Systems. Do not compute target_dir.

  2. Assemble:

python "<skill-dir>/scripts/file_sorter.py" assemble-plan --scan <scan.json> --proposals <proposals.json> [--mode more-consistent|more-refined] [--operation categorize|rename|categorize-and-rename] [--whitelist <whitelist.json>] [--output <plan.json>]

Default mode is more-consistent. Default operation is categorize.

  1. Show plan_id, items, rejected, skipped. Preview apply:
python "<skill-dir>/scripts/file_sorter.py" apply --plan <plan.json>
  1. After this-turn approval of that plan_id:
python "<skill-dir>/scripts/file_sorter.py" apply --plan <plan.json> --execute
  1. Undo with the sidecar from undo_path only after showing it and getting approval:
python "<skill-dir>/scripts/file_sorter.py" undo --undo <plan.undo.json> --execute

Read the full file on GitHub · 82 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 82 lines · 137 tokens per session scan A 6eb4e572faed

Subscribe to this mod's changes

file-sorter is a skill published in the GitHub repository bahayonghang/my-ai-cli-toolkit (16 stars, last pushed 2d ago), licensed MIT. It adds 137 tokens to every session and 856 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.