backup

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

A Mac backup audit and setup command that checks what data would survive if the computer stopped working. It examines Time Machine, iCloud Drive, and connected external disks.

In plain words
What is it for?
Use it to check backups of folders such as Desktop, Documents, and Pictures, distinguish an absent backup from a disconnected disk, and produce a coverage table.
Why use it?
It shows which important files are protected and which could be lost, helping identify gaps in the backup setup.

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 check backups of folders such as Desktop, Documents, and Pictures, distinguish an absent backup from a disconnected disk, and produce a coverage table.

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 backup

README.md
[![agentmods](https://agentmods.dev/badge/commands/xiaolai/mac-it-guy-pro/backup/github.svg)](https://agentmods.dev/commands/xiaolai/mac-it-guy-pro/backup)
Your own site
<a href="https://agentmods.dev/commands/xiaolai/mac-it-guy-pro/backup"><img src="https://agentmods.dev/badge/commands/xiaolai/mac-it-guy-pro/backup/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 backup

Your own site · 80×15
<a href="https://agentmods.dev/commands/xiaolai/mac-it-guy-pro/backup"><img src="https://agentmods.dev/badge/commands/xiaolai/mac-it-guy-pro/backup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 778 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.00022 $0.00778
Opus 5.5 $0.00009 $0.00311
Sonnet 5.5 $0.00004 $0.00156
Haiku 4.5 $0.00002 $0.00078

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

Security

Grade A, and why

backup 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 1mo 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/backup.md · 49 lines

How it starts

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

Backup — the most important visit

Read ${CLAUDE_PLUGIN_ROOT}/skills/it-core/SKILL.md first — the safety contract is binding, especially: admin work handed to the user, never touch existing backups (the guard hook also enforces tmutil delete/disable as out of bounds). Read ~/ITGuy/machine.md if it exists. If uname is not Darwin, say this version supports Mac only and stop.

Step 1: Audit what exists

Dispatch the mac-it-guy-pro:diagnostician agent (via Task) for the backup area, plus these direct read-only checks:

  • Time Machine: destination configured? latest backup date? (distinguish "no backup" from "backup disk not connected" — recipes in macos-recipes)
  • iCloud Drive: ls ~/Library/Mobile\ Documents/com~apple~CloudDocs 2>/dev/null — present and syncing Desktop/Documents, or not
  • External disks currently mounted: ls /Volumes

Step 2: Map coverage against what matters

Build the coverage table from the user's actual key folders (profile Owner/Conventions first; otherwise Desktop, Documents, Pictures, plus anything they name):

What Where it lives Covered by Verdict
Photos ~/Pictures nothing 🔴 would be lost

Top line of the report answers the only question that matters, in one sentence: "If this Mac died tonight, you would lose: …"

Step 3: Propose a strategy

Explain 3-2-1 in one plain sentence (three copies, two kinds of storage, one away from home) — then propose the smallest setup that closes the 🔴 rows, as an options table (Option | Cost | Effort | What it protects). Recommend exactly one. Do not recommend buying anything without naming a cheaper alternative in the same table.

Step 4: Set it up — user does the clicking

Time Machine setup, disk formatting choices, and iCloud toggles live in System Settings and are the user's hands, not yours: give a numbered click-path for each step, wait for their "done", then verify from the terminal (e.g. tmutil destinationinfo now shows the disk; first backup running). Never format a disk yourself — if the chosen disk needs erasing, that is a Disk Utility walkthrough with an explicit "this erases everything currently on that disk" warning.

Read the full file on GitHub · 49 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. 1mo ago First seen · 49 lines · 22 tokens per session scan A cd865853dfae

Subscribe to this mod's changes

backup is a command published in the GitHub repository xiaolai/mac-it-guy-pro (6 stars, last pushed 16d ago), licensed MIT. It adds 22 tokens to every session and 778 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.