cn-color-tool - 颜色转换工具

v1.0.0

提供纯 Python 实现的颜色格式转换工具,支持 HEX、RGB、HSL 互转及终端颜色预览功能。

0· 23·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for freedompixels/cn-color-tool.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "cn-color-tool - 颜色转换工具" (freedompixels/cn-color-tool) from ClawHub.
Skill page: https://clawhub.ai/freedompixels/cn-color-tool
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Canonical install target

openclaw skills install freedompixels/cn-color-tool

ClawHub CLI

Package manager switcher

npx clawhub@latest install cn-color-tool
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description (颜色转换工具) match the provided Python implementation which performs HEX/RGB/HSL conversions and prints terminal-friendly output. One small mismatch: SKILL.md examples invoke 'cn_color_tool.py' while the included file is scripts/color_tool.py — likely just a path/filename discrepancy but not a functional red flag.
Instruction Scope
SKILL.md only describes running the local Python CLI for conversions. The runtime instructions do not ask the agent to read unrelated files, environment variables, network endpoints, or system configuration.
Install Mechanism
No install spec is provided (instruction-only). The code file is pure Python standard-library code; there are no downloads, packages, or external installers referenced.
Credentials
No environment variables, credentials, or config paths are requested or used. The script only parses CLI arguments and uses the standard library.
Persistence & Privilege
The skill is not forced-always and does not request persistent or elevated privileges. It does not modify other skills or system-wide settings.
Assessment
This appears to be a small, self-contained Python CLI for color conversions. Before installing/running: (1) confirm the correct invocation path (SKILL.md uses 'cn_color_tool.py' but the file is scripts/color_tool.py), (2) run the script in a controlled environment (e.g., local dev machine or isolated container) if you want to be cautious, and (3) since the source/homepage is unknown, inspect the file contents (they are short and pure stdlib) and ensure you trust the publisher before giving it runtime access in sensitive environments.

Like a lobster shell, security has layers — review code before you run it.

latestvk97bsk3j743wxjmbdcbzb1yv5h85nx0g
23downloads
0stars
1versions
Updated 4h ago
v1.0.0
MIT-0

cn-color-tool - 颜色转换工具

纯 Python 标准库实现的颜色格式转换工具。

功能

  • HEX → RGB:十六进制颜色码转 RGB 元组
  • RGB → HEX:RGB 转十六进制颜色码
  • RGB → HSL:RGB 转 HSL
  • HSL → RGB:HSL 转 RGB
  • 颜色预览:输出适合终端显示的颜色信息

使用方式

# HEX 转 RGB
python3 cn_color_tool.py hex2rgb "#FF5733"

# RGB 转 HEX
python3 cn_color_tool.py rgb2hex 255 87 51

# RGB 转 HSL
python3 cn_color_tool.py rgb2hsl 255 87 51

# HSL 转 RGB
python3 cn_color_tool.py hsl2rgb 11 100 60

# 完整转换(显示所有格式)
python3 cn_color_tool.py convert "#FF5733"

# HEX 转 HSL(一步到位)
python3 cn_color_tool.py hex2hsl "#FF5733"

技术说明

  • 纯 Python 标准库(colorsysargparse
  • 无外部依赖
  • HSL 中 H 范围 0-360,S/L 范围 0-100

Comments

Loading comments...