Agent Skills
› nodetool-ai/nodetool
› sandbox-color
sandbox-color
GitHub提供色板沙盒内的颜色解析、转换、混合及差异计算功能,支持在代码节点中调用 culori 库进行颜色处理。
Trigger Scenarios
需要将颜色字符串转换为 RGB 或其他格式
需要混合两种颜色或计算颜色差异
Install
npx skills add nodetool-ai/nodetool --skill sandbox-color -g -y
SKILL.md
Frontmatter
{
"name": "sandbox-color",
"description": "Convert, mix, and measure colors inside a Code node or CodeAct action, with culori running in the guest"
}
Color in the sandbox
Specifier: @nodetool-ai/sandbox-color. One module, culori's root export.
Import it at the top of the body.
Parse and convert
import { parse, formatHex, converter } from "@nodetool-ai/sandbox-color";
const color = parse(inputs.hex);
const rgb = converter("rgb")(color);
return { hex: formatHex(color), rgb };
Mix and difference
import { interpolate, formatHex, differenceCiede2000 } from "@nodetool-ai/sandbox-color";
const mix = interpolate(["#2563eb", "#f97316"]);
const mid = formatHex(mix(0.5));
const delta = differenceCiede2000()("#2563eb", "#f97316");
return { mid, delta };
Gotchas
- Objects, not CSS strings, after parse. A parsed color is
{ mode, ...channels }. - Named imports. There is no useful default export.
Version History
- a6a7e57 Current 2026-08-20 09:52


