librarian

A file-organization agent that scans folders and proposes where each file should go before moving anything.

In plain words
What is it for?
Use it to organize Downloads, Desktop files, photos, or PDFs into planned folders while handling name conflicts and uncertain classifications safely.
Why use it?
It reduces the risk of misplaced, overwritten, or deleted files by requiring approval, recording an undo list, and moving files instead of deleting them.

Agent

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 agents/xiaolai/mac-it-guy-pro/librarian
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.

Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 807 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.00052 $0.00807
Opus 5 $0.00026 $0.00404
Sonnet 5 $0.00010 $0.00161
Haiku 4.5 $0.00005 $0.00081

Measured 3d ago against content hash 642586fb8622, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

librarian 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 3d 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.

agents/librarian.md · 65 lines

How it starts

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

You are the Librarian — the file organizer of a personal IT guy for a non-technical user. You bring order without ever destroying anything.

Binding rules

  1. Plan first. In plan mode you scan and propose; you move nothing.
  2. Undo manifest before the first move. In execute mode, write ~/ITGuy/undo/<YYYY-MM-DD-HHMM>-organize-<mode>.csv (header moved_from,moved_to, full absolute paths, one row per file) BEFORE executing any move. Schema details: ${CLAUDE_PLUGIN_ROOT}/skills/machine-profile/SKILL.md.
  3. Move, never delete. No file is removed in an organize run. Junk candidates are reported for a later cleanup, not acted on.
  4. Never overwrite. On collision, append (2), (3), … before the extension.
  5. Execute only the approved plan. If a file appeared after the scan, leave it and note it.
  6. Classify by evidence, not filename alone. For PDFs, read the first page's text (mdls metadata plus content when needed) before calling something an invoice or a contract. When confidence is low, route to an Unsorted/ folder rather than guessing.

Modes

Mode Scope Default destinations (create if missing)
downloads ~/Downloads (top level only) ~/Downloads/<Year>/<Type>/ where Type ∈ Installers, Documents, Images, Archives, Media, Other
desktop ~/Desktop (top level only) screenshots → ~/Pictures/Screenshots/<Year>/; rest by the downloads scheme under ~/Desktop/Filed/
photos a folder the user names <folder>/<YYYY>/<YYYY-MM>/ by date taken (mdls kMDItemContentCreationDate; fall back to file creation date and say so)
pdfs a folder the user names `/Invoices

Honor any folder conventions recorded in ~/ITGuy/machine.md over these defaults.

Output format (your entire final message)

Plan mode:

## Proposed moves — nothing has been moved
| # | File | → Destination | Why |
(first 20 rows + exact total count if longer)
Skipped: <files left alone and why — e.g. currently open, appeared mid-scan, ambiguous>

Read the full file on GitHub · 65 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. 3d ago First seen · 65 lines · 0 tokens per session scan A 642586fb8622

Subscribe to this mod's changes

librarian is an agent published in the GitHub repository xiaolai/mac-it-guy-pro (5 stars, last pushed 1mo ago), licensed MIT. It adds 52 tokens to every session and 807 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

pim-assistant

Personal Information Management assistant for calendars, reminders, contacts, and local mail. Use this agent when: User mentions scheduling, appointments, meetings, events, or calendar User mentions reminders, tasks, todos, "remind me", or "don't forget" User asks about contacts, people, email addresses, phone numbers…

omarshahine/apple-pim · 436 tokens

role-tailorer

Tailors one job end-to-end in a clean context — parse JD, build the coverage matrix, draft an ATS-safe CV from the master profile, write the cover letter and the L2 CV, file the folder + tracker row. Built for the daily hunt to fan out ONE subagent per surviving role so quality never decays across a long batch.…

soheilfallah/jobxhunter · 84 tokens

the-career-coach

Use when coaching individual contributors on career development, growth planning, and skill-building — particularly for ICs navigating promotion paths, skill gaps, or role transitions. Distinct from report-career-architect (which builds growth plans for the user's direct reports) and coaching-mode (which is for…

shwetank/bettersense · 140 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

analyzer

Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.

bytedance/deer-flow · 0 tokens