sandbox-yaml
БесплатноБез исполняемых скриптовНе проверенRead and write YAML inside a Code node or CodeAct action, with js-yaml running in the guest
от nodetool-ai★ 674 звезды на GitHubОб этом скилле
YAML in the sandbox
Specifier: @nodetool-ai/sandbox-yaml. One module, the js-yaml root export.
Import it at the top of the body.
load — YAML text to a value
import yaml from "@nodetool-ai/sandbox-yaml";
const config = yaml.load(inputs.text);
return { name: config.name, replicas: config.replicas };
load reads one document and throws a YAMLException with a line and column
on malformed input. Multi-document files go through loadAll, which returns an
array.
dump — a value to YAML text
import yaml from "@nodetool-ai/sandbox-yaml";
return { text: yaml.dump({ name: inputs.name, tags: inputs.tags }, { indent: 2 }) };
dump throws on a cyclic structure unless you pass { noRefs: false }, and on
a value it cannot represent (a function, a symbol).
Gotchas
- Everything runs in the guest. The 64 MB guest heap holds your input text, the parse tree, and the returned value at once. A file of a few megabytes is fine; a hundred megabytes is not.
- No timers, no I/O. The guest has no
setTimeout, no filesystem, and no Node builtins. js-yaml needs none of them — that is why it is admitted — but code you write around it must not reach for them either. - The safe schema is not the default.
yaml.loadusesDEFAULT_SCHEMA, which resolves tags such as!!timestamp. For input from a stranger, pass{ schema: yaml.FAILSAFE_SCHEMA }and get strings, arrays, and objects only. - This pack is the only route to YAML. There is no
data.parseYamlglobal any more; every library the sandbox offers is an importable module, and this is the one for YAML. A node that needs it declares it.
Установить sandbox-yaml в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sandbox-yaml?
Read and write YAML inside a Code node or CodeAct action, with js-yaml running in the guest
Как установить скилл sandbox-yaml?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sandbox-yaml запускает скрипты?
Нет, скилл состоит только из инструкций (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