organize

organize is a command for coding agents 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

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

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

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.

agentmods
npx agentmods add commands/xiaolai/mac-it-guy-pro/organize
Clone the repo
git clone --depth 1 https://github.com/xiaolai/mac-it-guy-pro

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00029 $0.00650
Opus 5 $0.00015 $0.00325
Sonnet 5 $0.00006 $0.00130
Haiku 4.5 $0.00003 $0.00065

Measured 4d ago against content hash d85db4410307, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 (5 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 650 once invoked, about $0.0001 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-31.