New to Claude Skills? Learn how to install them →

jeremylongshore on GitHub

Box Cloud Filesystem

Free

Seamlessly manage Box files like a local filesystem.

Get this skill

Free · Opens the source repo

What Box Cloud Filesystem does

The Box Cloud Filesystem skill allows users to interact with Box cloud storage as if it were a local filesystem. This is achieved through two operational modes: Transparent and Explicit. In Transparent mode, once a workspace is initialized, any changes made to files are automatically synced to Box without needing to execute specific Box commands. This is facilitated by PostToolUse hooks that trigger uploads on Write or Edit actions. Explicit mode, on the other hand, allows users to manually execute Box CLI commands for searching, downloading, sharing, or organizing files, providing a flexible approach to file management.

This skill is particularly useful for developers and designers who rely on Box for cloud storage and need a streamlined way to manage their files. By leveraging the Box CLI (@box/cli), users can perform a variety of operations while ensuring that file integrity and version history are maintained. The skill incorporates operational judgment to handle file identities and conflicts effectively, making it suitable for collaborative environments where multiple users may access the same files.

The skill also emphasizes safety and reporting, requiring users to inspect folder contents before making changes and providing detailed feedback after each operation. This reduces the risk of unintentional data loss or overwriting important files. With a focus on user intent classification and a clear workflow for each operation, the Box Cloud Filesystem skill enhances productivity by simplifying interactions with Box storage.

Overall, this skill is ideal for anyone looking to integrate Box cloud storage into their workflow, ensuring efficient file management and collaboration while minimizing potential errors.

When to use it

Use this skill when you need to upload, download, or manage files in Box while maintaining a local workflow.

When not to use it

This skill may not be suitable for users who require extensive GUI interactions with Box or those who do not use Box as their primary cloud storage solution.

What you can build with it

Backup project documentation

Use the skill to create a folder in Box and upload project documentation, ensuring it is stored securely.

Sync local changes to Box

Edit files locally and use the Transparent mode to automatically sync changes to Box without extra commands.

Collaborate on shared files

Share files with collaborators while maintaining control over access levels and file versions.

How to install Box Cloud Filesystem

View source

1. Install with the skills CLI

npx skills add jeremylongshore/claude-code-plugins-plus-skills/box-cloud-filesystem --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by jeremylongshore

Box Cloud Filesystem

Two modes, one goal: treat Box like a local filesystem.

Transparent mode — initialize a workspace, then every Write or Edit inside it auto-syncs to Box via PostToolUse hooks. No box commands needed.

Explicit mode — search, download, share, or organize files using Box CLI commands directly. See references/operations-guide.md for the full command reference.

Contents

Overview

Box CLI (@box/cli) wraps the full Box API as shell commands. This skill adds three layers:

  • Hooks (transparent sync) — PostToolUse hooks on Write/Edit auto-upload changed files to Box.
  • Operational judgment — file identity via numeric IDs, version uploads over duplicates, narrow sharing defaults, manifest-based conflict detection.
  • Sync patterns — pull/work/push workflow with automatic hook-driven uploads and conflict resolution.

Key principle: inspect before acting, report after acting. Folder ID 0 is always root.

Prerequisites

npm install --global @box/cli
box login
box users:get --me   # verify auth + enterprise context

Auth methods: OAuth (interactive), JWT (automation), CCG (server-to-server), Developer Token (testing, 60 min).

jq is required for the hook scripts.

Instructions

Follow this workflow for every Box operation:

  1. Classify the intent — discover, read, upload, update, organize, sync, share, or cleanup
  2. Orient — run box users:get --me, identify target folder ID, check the trust zone
  3. Discover — list or search Box to understand what exists before modifying anything
  4. Execute — perform the operation (see references/operations-guide.md for commands)
  5. Report — return file IDs, folder IDs, action types, and any conflicts

Operation Trust Zones

ZoneOperationsBehavior
Readsearch, list, download, metadataExecute freely
Createupload new, create foldersVerify parent folder ID first
Updateversion upload, move, copyUse file ID, prefer files:versions:upload
Exposeshare links, access levelsDefault collaborators, never open unless explicit
Destructivedelete, bulk reorganizeOnly on explicit request; summarize first

Safety Rules

  1. Inspect folder contents before writing to it.
  2. Use file IDs, not filenames, when updating — names are not unique in Box.
  3. Prefer box files:versions:upload FILE_ID for updates. Avoids 409 conflicts, preserves history.
  4. Never delete unless explicitly requested. No "convenience cleanup."
  5. Never create --access open shared links unless user says "public" or "open."
  6. Summarize bulk operations before executing.
  7. Report file ID, folder ID, and action type after every write.
  8. If unexpected files exist in a folder, stop and ask before modifying.

Quick Command Reference

box folders:items FOLDER_ID --json                    # list folder
box search "query" --type file --json                  # search
box files:download FILE_ID --destination ./             # download
box files:upload ./file.txt --parent-id FOLDER_ID       # upload new
box files:versions:upload FILE_ID ./file.txt            # update existing
box files:share FILE_ID --access collaborators          # share (narrow)
box folders:download FOLDER_ID --destination ./         # bulk download

Full command reference with examples: references/operations-guide.md

Workspace Sync Pattern

Initialize a workspace, work locally, push changes back. The manifest tracks file IDs.

${CLAUDE_PLUGIN_ROOT}/scripts/box-init-workspace.sh FOLDER_ID /tmp/box-workspace

With hooks active, every Write/Edit auto-syncs. For manual sync, compare local state against the manifest:

  • Changed file in manifest → box files:versions:upload FILE_ID (version update)
  • New file not in manifest → box files:upload --parent-id FOLDER_ID (new upload)
  • Deleted locally → do NOT auto-delete from Box; ask user
  • Conflict detected → warn user before overwriting

Full sync workflow with conflict detection: references/sync-pattern.md

Output

Every write operation returns:

  • File/folder ID
  • Parent folder ID
  • Action type (created / versioned / moved / copied / shared)
  • Access level (if sharing)
  • Conflicts or skipped items

Read operations return JSON with id, name, size, modified date.

Error Handling

ErrorRecovery
Not Found (404)Verify ID with box search or re-list parent folder
Conflict (409)Use files:versions:upload to update, or --name for distinct file
Forbidden (403)Re-run box login or check JWT scopes
Rate Limited (429)CLI retries automatically; batch via --bulk-file-path
Auth expiredRun box login; use JWT/CCG for production
box: command not foundnpm install --global @box/cli
Name collisionUse file ID, never filename, to identify targets
Local/remote divergenceRe-download, diff, ask user which to keep

Always report what failed and what succeeded. Never silently skip. Full error table: references/operations-guide.md

Examples

Back up docs to Box:

box folders:create 0 "my-project-docs" --json
box files:upload docs/README.md --parent-id FOLDER_ID
box folders:share FOLDER_ID --access collaborators

Pull, analyze, push back:

box search "Q1 sales" --type file --json
box files:download FILE_ID --destination /tmp/box-workspace/
# analyze locally, then push result
box files:upload /tmp/box-workspace/summary.md --parent-id PARENT_ID

Workspace sync (with hooks):

${CLAUDE_PLUGIN_ROOT}/scripts/box-init-workspace.sh FOLDER_ID /tmp/box-workspace
# edit files normally — hooks auto-sync to Box

More detailed examples: references/sync-pattern.md

Resources

Frequently asked questions about Box Cloud Filesystem

Similar skills