sandbox-zip
БесплатноБез исполняемых скриптовНе проверенRead and write zip archives in a Code node or CodeAct action, with fflate running on the host under a 50 MB inflation cap
от nodetool-ai★ 674 звезды на GitHubОб этом скилле
Zip archives in the sandbox
Specifier: @nodetool-ai/sandbox-zip. Import it at the top of the body.
Why this one runs on the host
fflate is pure JavaScript and the sandbox compiler admits it, so this pack
could have shipped as a guest module — and an earlier version did. It does
not, because of the cap: a zip bomb is a policy question, and a policy enforced
inside the guest is enforced by code the guest can simply not call. The guest's
64 MB heap does not replicate it either — fflate inflates into host memory
first. So the library stays on the host, with unzip refusing anything that
inflates past 50 MB, and there is no second route around that number.
unzip — extract an archive
import { unzip } from "@nodetool-ai/sandbox-zip";
const files = await unzip(inputs.archive); // { "a/b.txt": Uint8Array }
const readme = new TextDecoder().decode(files["README.md"]);
return { names: Object.keys(files), readme };
Entry values arrive as real Uint8Arrays. Decode text with TextDecoder.
zip — build one
import { zip } from "@nodetool-ai/sandbox-zip";
const archive = await zip({
"report.md": inputs.markdown, // strings are UTF-8 encoded
"data.json": JSON.stringify(inputs.rows)
});
await workspace.writeBytes("out.zip", archive);
return { bytes: archive.length };
Entry values are Uint8Array or string.
Gotchas
- Both exports are async.
- 10 MB in, 50 MB out. The archive itself is capped at 10 MB; the sum of the
entries
unzipproduces — and the sum of whatzipis handed — is capped at 50 MB, checked as the entries are walked so a bomb stops part way. - No streaming. The whole archive is materialized. For a payload near the cap, write entries to the workspace as you go instead.
Установить sandbox-zip в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sandbox-zip?
Read and write zip archives in a Code node or CodeAct action, with fflate running on the host under a 50 MB inflation cap
Как установить скилл sandbox-zip?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sandbox-zip запускает скрипты?
Нет, скилл состоит только из инструкций (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