← 返回 Skills 市场
Colorlab
作者
bytesagain3
· GitHub ↗
· v3.0.0
· MIT-0
325
总下载
0
收藏
1
当前安装
8
版本数
在 OpenClaw 中安装
/install colorlab
功能描述
Convert colors and generate palettes with WCAG contrast checks. Use when building palettes, converting hex/RGB, checking accessibility.
使用说明 (SKILL.md)
ColorLab — Color Tool
Convert colors, generate palettes, check WCAG contrast ratios, and find closest CSS color names. Uses printf and awk for calculations, with ANSI 24-bit color swatches in terminal output.
Commands
| Command | Description |
|---|---|
hex-to-rgb \x3Chex> |
Convert hex color to RGB values |
rgb-to-hex \x3Cr> \x3Cg> \x3Cb> |
Convert RGB values (0-255) to hex |
contrast \x3Chex1> \x3Chex2> |
Calculate WCAG 2.0 contrast ratio with AA/AAA pass/fail ratings |
palette \x3Chex> [count] |
Generate lighter and darker variants of a color (default: 5 each direction) |
random [count] |
Generate random colors with hex and RGB values (default: 1) |
name \x3Chex> |
Find the closest named CSS color (from ~50 common colors) |
Examples
# Convert hex to RGB
colorlab hex-to-rgb "#FF5733" # → rgb(255, 87, 51)
# Convert RGB to hex
colorlab rgb-to-hex 255 87 51 # → #FF5733
# Check contrast for accessibility
colorlab contrast "#FFFFFF" "#000000"
# → 21.00:1, WCAG AA/AAA all pass
# Generate a palette
colorlab palette "#3498db" 3
# → Shows 3 darker + base + 3 lighter variants with color swatches
# Random colors
colorlab random 5
# Find closest CSS color name
colorlab name "#e74c3c" # → Crimson
Notes
- Hex colors accept
#prefix (optional) and 3-digit shorthand (#F00→#FF0000) - WCAG contrast checks report AA/AAA compliance for normal and large text
- Palette output includes ANSI 24-bit color swatches (requires a modern terminal)
- Color naming uses Euclidean distance in RGB space against ~50 common CSS color names
安全使用建议
This skill appears coherent and local-only: it bundles a bash script that performs color math and prints results. Before installing, you may (1) inspect scripts/script.sh yourself (it is short and readable), (2) run it in a restricted environment or container if you prefer, and (3) note that ANSI 24-bit swatches require a modern terminal. No credentials or network access are requested.
功能分析
Type: OpenClaw Skill
Name: colorlab
Version: 3.0.0
The ColorLab skill is a legitimate utility for color conversion, WCAG contrast checking, and palette generation. The bash script (scripts/script.sh) uses standard tools like awk and printf for mathematical calculations and color formatting without any evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
Name/description match the provided SKILL.md and the included scripts/script.sh implements hex↔RGB conversion, WCAG contrast calculation, palette generation, random colors, and nearest CSS name lookup — all expected for a color tool.
Instruction Scope
SKILL.md instructs local CLI commands and examples. The runtime script only reads its arguments, performs local calculations (awk/printf), and prints output (including ANSI swatches). It does not read unrelated files or environment variables.
Install Mechanism
No install spec (instruction-only with a bundled script). No downloads, package installs, or archive extraction are present — lowest-risk install profile.
Credentials
No required environment variables, credentials, or config paths. The script does not access or exfiltrate secrets or external services.
Persistence & Privilege
Skill is not always-enabled, has no special persistence or system-wide configuration changes, and does not modify other skills or agent settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install colorlab - 安装完成后,直接呼叫该 Skill 的名称或使用
/colorlab触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v3.0.0
v3.0.0: Complete rewrite with real functionality.
v2.0.1
update
v2.0.0
v2.5 standard: Use-when desc, homepage, source, security fix
v1.0.4
retry-fix-token
v1.0.3
old template -> domain-specific v2.0.0
v1.0.2
Quality upgrade
v1.0.1
Quality upgrade: custom functionality
v1.0.0
Initial release
元数据
常见问题
Colorlab 是什么?
Convert colors and generate palettes with WCAG contrast checks. Use when building palettes, converting hex/RGB, checking accessibility. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 325 次。
如何安装 Colorlab?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install colorlab」即可一键安装,无需额外配置。
Colorlab 是免费的吗?
是的,Colorlab 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Colorlab 支持哪些平台?
Colorlab 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Colorlab?
由 bytesagain3(@bytesagain3)开发并维护,当前版本 v3.0.0。
推荐 Skills