sandbox-dates
БесплатноБез исполняемых скриптовНе проверенDate arithmetic, parsing and formatting inside a Code node or CodeAct action, with date-fns running in the guest
от nodetool-ai★ 674 звезды на GitHubОб этом скилле
Dates in the sandbox
Specifier: @nodetool-ai/sandbox-dates. One module, date-fns's root export —
around 250 named functions. There is no default export, so import the names you
use.
Arithmetic and comparison
import { addDays, differenceInCalendarDays, isBefore } from "@nodetool-ai/sandbox-dates";
const due = addDays(new Date(inputs.startedAt), 30);
return { due: due.toISOString(), overdue: isBefore(due, new Date()), days: differenceInCalendarDays(due, new Date()) };
Parsing and formatting
import { parseISO, format, isValid } from "@nodetool-ai/sandbox-dates";
const when = parseISO(inputs.timestamp);
if (!isValid(when)) return { label: "unknown" };
return { label: format(when, "EEEE, d MMMM yyyy") };
format uses date-fns's own English locale tables, not Intl — which the
guest does not have. That is why formatting works here at all, and it is also
the limit: another language means another locale, and locales live at
date-fns/locale, a subpath this pack does not publish.
Gotchas
- UTC only. The guest runs with no time-zone database, so
new Date()and every conversion behave as UTC. Anything zone-aware — "9 am in Berlin" — belongs on the host, not here. - Named imports only.
import dates from "@nodetool-ai/sandbox-dates"gets you nothing; date-fns is pure ESM with no default export. - Import what you use. The bundle is about 176 KB and loads as one module
per invocation, so a node that needs one comparison pays for all of it. For a
single
Datesubtraction, plain arithmetic is cheaper. - No timers.
setTimeoutdoes not exist in the guest. date-fns needs none, but code around it must not either.
Установить sandbox-dates в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sandbox-dates?
Date arithmetic, parsing and formatting inside a Code node or CodeAct action, with date-fns running in the guest
Как установить скилл sandbox-dates?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sandbox-dates запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic