Package a large local file or directory into compressed resumable tar shards and transfer it into an existing Runbear Agent SDK agent's writable workspace. Use when local files exceed the project deploy limits, including document collections, analytics exports, spreadsheets, PDFs, media, and other large working sets.
Ships in runbear. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Transfer a local file or directory into an existing Runbear Agent SDK agent's writable workspace. Use runbear:deploy for project source and agent configuration. Use this command for a one-shot transfer of larger working files.
create_workspace_upload, finalize_workspace_upload, and get_workspace_upload_status.python3 is required for the bundled packaging and resumable-upload helpers..env, .env.*, .mcp.json, .claude.json, or Claude settings files..claude, .claude.json, .git, .mcp.json, .pipedream-stash, or .runbear at the workspace root. The packaging helper rejects these top-level entries.completed.finalize_workspace_upload with different shard metadata or compression for the same upload ID.Parse the arguments into:
source: the first positional argument, accepting one local regular file or one local directory.target: --agent, accepting an agent UUID, Runbear agent URL, or unambiguous agent name.layoutName: optional --name. This is a workspace directory name, not a transfer identifier. Preserve it verbatim, including uppercase letters, spaces, underscores, and non-ASCII characters. The helper validates filesystem safety.compression: optional --compression, defaulting to auto. Accepted values are auto, zstd, gzip, and none.overwrite: false unless --overwrite is present. Extraction is per file, so --overwrite replaces only the individual files the archive carries. A file already in the workspace that the archive does not contain is left alone, even when it sits inside a directory the upload writes into. Without --overwrite, the first file that already exists fails the upload.If a required input is missing, ask only for that value. Resolve an agent name with list_agents; never guess when more than one agent matches. The backend validates UUIDs and URLs.
The packaging helper writes final workspace-relative paths into every tar entry:
--name X, every entry is placed below X/. --name "Investor_Diligence" produces paths such as Investor_Diligence/report.pdf.--name, a source with one top-level file or directory keeps that entry's name.--name, a source with multiple top-level entries is placed below upload-YYYYMMDD-HHMMSS/.A supplied layout name must not be empty, ., or ..; start with - or .; contain /, \, NUL, or control characters; normalize to a reserved workspace-root entry after case folding and removing trailing dots or spaces; or exceed 255 UTF-8 bytes. The transfer itself has no user-defined name. create_workspace_upload returns the uploadId used by the remaining calls.
<skill-dir> below is this skill's base directory, containing this SKILL.md.
OUTPUT_DIR="$(mktemp -d -t runbear-workspace-upload.XXXXXX)"
python3 "<skill-dir>/scripts/package-upload.py" \
--source "<source>" \
--output "$OUTPUT_DIR" \
--compression "<compression>"
If --name was supplied, append --name "<layoutName>" to the packaging command.
Read $OUTPUT_DIR/manifest.json. It contains:
topLevelPrefix: the workspace's resulting top-level file or directory name.compression: the codec selected by the helper.shards: the ordered local shard list. Each item contains index, local path, compressed sizeBytes, exact tar expansion uncompressedBytes, compressed-byte sha256, and fileCount.totalBytes: total compressed transit bytes.totalUncompressedBytes: the sum of the shards' exact tar expansions before outer compression.totalFileCount: total regular files.auto tries Python 3.14's compression.zstd, the third-party zstandard package, and a zstd binary, in that order. If none is available, it uses Python's gzip implementation. Explicit zstd fails when no zstd implementation is available. The helper prints the selected codec. Shard filenames end in .tar.zst, .tar.gz, or .tar.
The complete transfer is capped at 64 shards, 20 GiB of compressed data, 40 GiB of uncompressed tar data, and 200,000 files. No manifest shard exceeds 512 MiB compressed or 40 GiB uncompressed. The helper measures the completed tar stream for each shard, so uncompressedBytes is exact rather than an estimate.
Before uploading, report only the source path, top-level prefix, selected codec, shard count, compressed bytes, uncompressed tar bytes, and file count. Do not dump the full manifest when it is large.
Call create_workspace_upload with:
agentId: the resolved target.compression: the manifest's compression value.shards: only index, sizeBytes, uncompressedBytes, sha256, and fileCount from each manifest shard.sizeBytes is the compressed transit size. uncompressedBytes is the exact tar expansion that the worker verifies during extraction. The worker rejects a shard whose actual expansion exceeds its declaration, so never estimate, round, or recalculate this value.
The response returns an uploadId and one upload URL per ordered shard. Confirm that every returned index has exactly one matching local manifest entry. Do not write the URLs into the manifest or another file.
For each returned shard, invoke the helper with the matching local path:
python3 "<skill-dir>/scripts/upload-shard.py" \
--url "<resumableUploadUrl>" \
--file "<localShardPath>"
The helper queries the session offset and sends only the remaining compressed bytes. If a transfer fails, keep the shard directory and rerun the same command with the same session URL. If the session expires, create a new upload ID and upload every shard under the new sessions. Never mix shards from two upload IDs.
After every upload command succeeds, call finalize_workspace_upload with the same agentId, uploadId, compression, ordered shard metadata (index, sizeBytes, uncompressedBytes, sha256, and fileCount), and overwrite value. Copy each shard's uncompressedBytes from the manifest without modification; the server sums them itself.
Record the returned jobId. Finalization only enqueues extraction; it does not mean the files are ready.
Call get_workspace_upload_status with the same agentId and uploadId until:
completed: report the returned workspacePaths, then delete the local output directory.failed: report failedReason and keep local shards so the user can inspect them or restart with a new upload ID. A failed upload is not rolled back: files extracted before the failure remain in the workspace. The one exception is a detected secret, where the server removes the offending file and everything that upload created.Never announce success before the state is completed.
On the next activation, the files are present in the agent's workspace as ordinary writable files. The agent may read, modify, move, or delete them.
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/connect-slackConnect a Runbear Agent to SlackConnect a Runbear Claude Agent SDK agent to Slack through the Runbear management MCP (`deploy_to_slack`). Defaults to a workspace-specific custom Slack bot (`mode: custom`) — the agent gets its own bot identity instead of the shared @Runbear bot — and can join public channels afterward. Use when the user wants to connect, deploy, install, or publish a Runbear agent to Slack as its own bot, optionally joining channels. The target agent is given by app UUID, agent URL, or agent name (fuzzy-matched)./deployDeploy Local Project to RunbearDeploy a local Claude Code project to a Runbear Claude Agent SDK agent AND configure the MCPs and skills it needs, so colleagues can use your agent without you doing it on their behalf. Files are uploaded through the Runbear signed-URL flow (`create_project_upload` + `finalize_project_upload`); MCPs are attached with a per-integration choice of shared vs per-user auth; skills are curated from your project and user scope; and the whole configuration is saved to a committed `.runbear/deploy.json` manifest for one-command redeploys. After deploying, if the agent has no Slack channel yet, it offers to connect Slack (via `runbear:connect-slack`) so colleagues can reach it. Use when the user wants to deploy, publish, push, sync, share, or redeploy a local project (its files, CLAUDE.md, skills, MCPs, and code) to a hosted Runbear Agent SDK agent identified by an app UUID, agent URL, or agent name (fuzzy-matched) — or, with `--new <agentName>`, to create a brand-new Claude Agent SDK agent and deploy to it in one step.Other plugins' skills for the same job
/runbear:workspace-upload <source> --agent <appId-or-url-or-name> [--name <workspace-directory>] [--compression auto|zstd|gzip|none] [--overwrite]from runbear
npx claudepluginhub runbear-io/skills --plugin runbear