box-cloud-filesystem
БесплатноБез исполняемых скриптовНе проверенManage Box files with the official Box CLI using reviewed, receipt-backed reads, uploads, version updates, and sharing. Use when a user asks to search…
от jeremylongshore★ 2 961 звезда на GitHubОб этом скилле
Box Cloud Filesystem
Overview
Operate Box through numeric file and folder IDs, narrow sharing defaults, and verified receipts. The plugin's Write/Edit hook only queues local workspace changes for review and never uploads automatically; see the reviewed sync pattern for the complete flow.
Prerequisites
box version
box users:get me --json
- Install the current supported Box CLI 4.x through an operator-approved Node package workflow; do not install packages automatically.
- Use
box loginfor interactive OAuth. JWT and CCG require a Box Platform App, appropriate scopes, secure configuration, and enterprise admin authorization. - Never request or pass access tokens through chat or the CLI
--tokenflag. - The bundled workspace scripts require Bash and
jq.
Workflow
- Classify the request as discover, read, create, update, expose, synchronize, or destructive.
- Verify the active Box identity with
box users:get me --jsonand report the account or enterprise without exposing credentials. - Discover the target by listing or searching. Use
Read,Glob, andGreponly for the local files the user placed in scope. - Resolve every remote target to a numeric Box ID. Names are not unique.
- Preview the operation:
- uploads: local path, size, parent folder ID, and collision result;
- updates: file ID, local path, and remote
content_modified_at; - sharing: target ID, access level, download/edit flags, and expiry;
- deletion or bulk moves: every target and recoverability.
- Execute only the operation the user authorized. Ask before public/open links,
deletes, bulk reorganizations, overwriting remote changes, or widening app
access. Use
WriteorEditonly for requested local artifacts. - Re-read the affected Box item and return the receipt contract below.
Trust zones
| Zone | Examples | Boundary |
|---|---|---|
| Read | search, list, metadata, download | Stay within the requested account/folder scope |
| Create | upload, create folder | Verify parent ID and name collision |
| Update | version upload, move, copy | Verify file ID and remote modification time |
| Expose | shared link, collaborator access | Confirm audience and access settings |
| Destructive | delete, bulk move | Explicit request plus target summary |
Never use --yes to suppress a Box CLI confirmation for expose or destructive
operations.
Current command surface
box folders:items FOLDER_ID --json --fields name,id,type,content_modified_at
box search "query" --type file --json
box files:get FILE_ID --json --fields name,size,content_modified_at,shared_link
box files:download FILE_ID --destination LOCAL_PATH
box files:upload LOCAL_PATH --parent-id FOLDER_ID --json
box files:versions:upload FILE_ID LOCAL_PATH --json
box files:share FILE_ID --access collaborators --json
Use box COMMAND --help as command truth. The
operations guide covers moves, folders,
sharing, and recovery.
Reviewed workspace queue
Initialize only when the user explicitly selects a Box folder and local path:
${CLAUDE_PLUGIN_ROOT}/scripts/box-init-workspace.sh FOLDER_ID /tmp/box-workspace
Initialization performs a Box read, downloads the folder, and stores a
permission-restricted local config. Subsequent Write/Edit hooks add eligible
relative paths to .box-sync-pending; hidden files and credential-like names are
excluded. The Stop hook reports the queue and performs no upload.
Before syncing, list each remote item again, compare modification timestamps,
show create/update/conflict groups, and obtain approval. Upload changed known
files with files:versions:upload; upload genuinely new files with
files:upload. Never infer a remote deletion from a missing local file.
Output
Return:
- Box account context and target folder ID;
- operation and local/remote target;
- created or updated file/folder ID;
- sharing access, expiry, and URL when applicable;
- preflight comparison and any conflict;
- command exit result plus post-operation metadata;
- queued/skipped paths and the reason.
Error Handling
- 401/expired auth: run
box login; never ask for a token in chat. - 403: report the missing scope or collaboration/admin boundary; do not widen access automatically.
- 404: verify identity and ID by re-listing the parent.
- 409/name collision: choose a version upload or an explicitly distinct name.
- 429: honor retry guidance and reduce/batch read operations; do not loop indefinitely.
- Remote changed since download: stop and ask whether to keep remote, local, or both.
- Partial bulk failure: re-list the target, report confirmed successes, and retry only unresolved items after approval.
- Hook queue failure: preserve local work; report that no Box upload occurred.
Examples
Update an existing file without creating a duplicate:
box files:get FILE_ID --js
Установить box-cloud-filesystem в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditGlobGrepBash(box:*)Вложенные файлы
FAQ
Что делает скилл box-cloud-filesystem?
Manage Box files with the official Box CLI using reviewed, receipt-backed reads, uploads, version updates, and sharing. Use when a user asks to search, download, upload, update, organize, share, or synchronize Box content, and trigger with "upload to Box", "search Box", "share this Box file", or "review my Box sync queue."
Как установить скилл box-cloud-filesystem?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл box-cloud-filesystem запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic