Agent Skills
› nodetool-ai/nodetool
› sandbox-chrono
sandbox-chrono
GitHub在沙箱环境中解析自然语言日期(如“下周二”)为ISO字符串,支持单次或多次匹配。
Trigger Scenarios
需要将自然语言描述的日期转换为标准时间格式
在代码节点中处理相对时间或模糊日期表达
Install
npx skills add nodetool-ai/nodetool --skill sandbox-chrono -g -y
SKILL.md
Frontmatter
{
"name": "sandbox-chrono",
"description": "Parse English dates such as next Tuesday in a Code node or CodeAct action, with chrono-node running on the host"
}
Natural-language dates in the sandbox
Specifier: @nodetool-ai/sandbox-chrono. Import it at the top of the body.
chrono-node does not compile into QuickJS, so this pack is a host module. You pass text; you get ISO strings back.
parseDate — first match
import { parseDate } from "@nodetool-ai/sandbox-chrono";
const iso = await parseDate(inputs.text, inputs.now);
return { iso };
inputs.now is an optional reference timestamp (ISO string or epoch ms).
parse — every match
import { parse } from "@nodetool-ai/sandbox-chrono";
const hits = await parse(inputs.text, inputs.now);
return { hits };
Each hit is { text, start, end } with ISO strings (end may be null).
Gotchas
- Async host calls. Always
await. - UTC. The guest still has no time-zone database.
- Pair with
@nodetool-ai/sandbox-datesto format the Date you parse.
Version History
- a6a7e57 Current 2026-08-20 09:51


