organize

organize is a command for Claude Code from xiaolai/mac-it-guy-pro. It costs 29 tokens per session (650 once invoked), scanned A, original, MIT.

A Mac file-organizing command that sorts downloads, desktop files, photos, or PDFs, while keeping a record for undoing the changes.

In plain words
What is it for?
Use it to tidy common folders, sort photos by date, classify PDFs by content, or reverse a previous organization run.
Why use it?
It reduces clutter without permanently losing files or making moves that cannot be reversed.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the mac-it-guy-pro plugin — 8 skills, 12 commands, 4 agents, 2 hooks shipped together

Good fit Use it to tidy common folders, sort photos by date, classify PDFs by content, or reverse a previous organization run.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add xiaolai/mac-it-guy-pro
Claude Code
/plugin install mac-it-guy-pro

Made for: Claude Code.

Or install mac-it-guy-pro, the plugin that ships this one along with the rest of its 8 skills, 12 commands, 4 agents, 2 hooks.

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 organize

README.md
[![agentmods](https://agentmods.dev/badge/commands/xiaolai/mac-it-guy-pro/organize/github.svg)](https://agentmods.dev/commands/xiaolai/mac-it-guy-pro/organize)
Your own site
<a href="https://agentmods.dev/commands/xiaolai/mac-it-guy-pro/organize"><img src="https://agentmods.dev/badge/commands/xiaolai/mac-it-guy-pro/organize/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for organize

Your own site · 80×15
<a href="https://agentmods.dev/commands/xiaolai/mac-it-guy-pro/organize"><img src="https://agentmods.dev/badge/commands/xiaolai/mac-it-guy-pro/organize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 650 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.
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.00029 $0.00650
Opus 5.5 $0.00012 $0.00260
Sonnet 5.5 $0.00006 $0.00130
Haiku 4.5 $0.00003 $0.00065

Measured 3mo ago against content hash d85db4410307, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

organize 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 3mo ago.

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.

commands/organize.md · 41 lines

How it starts

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

Organize — order without loss

Read ${CLAUDE_PLUGIN_ROOT}/skills/it-core/SKILL.md first — the safety contract is binding, especially: dry-run first, undo manifest before batch moves, never overwrite. Read ~/ITGuy/machine.md if it exists — its Conventions section overrides default destinations. If uname is not Darwin, say this version supports Mac only and stop.

Step 0: Resolve the mode

  • $ARGUMENTS names a mode (downloads, desktop, photos, pdfs, undo) → use it.
  • Empty → use AskUserQuestion to pick one, describing each in plain language.
  • photos/pdfs → also ask which folder to organize; verify it exists before proceeding.

Mode: undo

  1. List manifests in ~/ITGuy/undo/ newest first, with date, mode, and file count; let the user pick one (default: newest).
  2. Reverse it per the procedure in ${CLAUDE_PLUGIN_ROOT}/skills/machine-profile/SKILL.md: rows in reverse order, move each moved_to back to moved_from, skip rows whose destination no longer exists and report every skip.
  3. Move the used manifest to the Trash; log the visit. Do not dispatch agents for undo — do it directly.

Modes: downloads / desktop / photos / pdfs

  1. Plan: dispatch the mac-it-guy-pro:librarian agent (via Task) in plan mode for the chosen scope. Its destination schemes are defined in the agent; profile Conventions override them.
  2. Show the plan: file-by-file table (first 20 + exact total), plus what will be skipped and why. State clearly: nothing has moved yet.
  3. Approve: AskUserQuestion — proceed as planned, adjust (take their changes, re-render the plan once), or cancel.
  4. Execute: dispatch the librarian in execute mode with the approved plan. It writes the undo manifest before the first move.
  5. Report: destinations table, count moved, the undo manifest path, and the one-line undo instruction (/mac-it-guy-pro:organize undo).

Step: memory

Append the visit line to ~/ITGuy/visits.log. If the user adjusted destinations in step 3, record the preference in the profile's Conventions section — that is how the IT guy learns their filing habits.

Read the full file on GitHub · 41 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. 3mo ago First seen · 41 lines · 29 tokens per session scan A d85db4410307

Subscribe to this mod's changes

organize is a command published in the GitHub repository xiaolai/mac-it-guy-pro (7 stars, last pushed 2mo ago), licensed MIT. It adds 29 tokens to every session and 650 once invoked, about $0.0001 per session on Opus 5.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-31.

Related

organize compared with commands from other repositories

organize next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
organizexiaolai/mac-it-guy-proCommand72mo agoMITA29Claude Code
disk-cleanupyonatangross/orchestkitCommand313todayMITA61Claude Code, Cursor
prompt-focusyonatangross/orchestkitCommand313todayMITA37Claude Code, Cursor
mailomarshahine/apple-pimCommand68yesterdayMITA27Claude Code
remindersomarshahine/apple-pimCommand68yesterdayMITA21Claude Code
contactsomarshahine/apple-pimCommand68yesterdayMITA17Claude Code
remindPsychQuant/che-ical-mcpCommand47todayMITA9Claude Code