b2-cloud-storage
Installation
SKILL.md
B2 Cloud Storage Management
Manage Backblaze B2 cloud storage: list files, audit usage, estimate cost, clean up stale data, and review security posture.
Security Rules (MANDATORY)
- Never run
b2 account get,b2 account clear, or anyb2 key *subcommand — these expose or mutate credentials. - Never read
~/.b2_account_infoor any file matching*b2_account_info*— this is the B2 credential database (SQLite). - Always run
b2 rm --dry-runbefore any real deletion; show the user what would be deleted and require an explicit "yes" before executing. - Never change a bucket to
allPublicwithout first warning the user about the security implications and getting explicit confirmation. - Default to read-only — only perform writes or deletes when the user explicitly requests them.
- Never store or write API keys, application keys, or account IDs to any file.
- If the user pastes key values into the chat instead of the terminal, warn them immediately and recommend rotating the key. Never echo, store, or reference key values that appear in conversation.
First-Use Flow
- Check the B2 CLI is installed:
b2 version. If missing, ask the user to install the CLI outside the agent, then rerunb2 version- seereferences/setup.mdfor detail. - Verify the CLI is authorized:
b2 ls. If it fails with an auth error, walk the user throughreferences/setup.md. - Check for a per-project config at
.claude/b2-config.jsonin the project root. If missing, ask the user for bucket + prefix and create one.