Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sandbox-decimal

БесплатноБез исполняемых скриптовНе проверен

Exact decimal arithmetic inside a Code node or CodeAct action, with decimal.js running in the guest

nodetool-aiот nodetool-ai★ 674 звезды на GitHub

Об этом скилле

Decimals in the sandbox

Specifier: @nodetool-ai/sandbox-decimal. One module, decimal.js. Import it at the top of the body.

Exact sums

import Decimal from "@nodetool-ai/sandbox-decimal";

const total = inputs.amounts
  .reduce((sum, n) => sum.plus(n), new Decimal(0));
return { total: total.toFixed(2) };

Divide without float noise

import Decimal from "@nodetool-ai/sandbox-decimal";

const share = new Decimal(inputs.cents).div(inputs.parts);
return { share: share.toFixed(2) };

Gotchas

  • Default export. import Decimal from "@nodetool-ai/sandbox-decimal".
  • Pass strings or Decimals. new Decimal(0.1) already lost precision; use new Decimal("0.1").
  • The guest has no Intl. Format with toFixed / toString, not toLocaleString.

Установить sandbox-decimal в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

package.json

FAQ

Что делает скилл sandbox-decimal?

Exact decimal arithmetic inside a Code node or CodeAct action, with decimal.js running in the guest

Как установить скилл sandbox-decimal?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sandbox-decimal запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить sandbox-decimal с