Agent Skills
› nodetool-ai/nodetool
› sandbox-color
sandbox-color
GitHub提供颜色解析、转换、混合及色差计算功能,基于culori库。适用于前端开发中处理颜色数据、生成配色方案或进行视觉差异分析的场景。
Trigger Scenarios
需要解析或转换颜色格式
计算两种颜色的差异值
生成颜色渐变或混合色
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


