Preface¶
When changing the UI or writing design specifications, colors are often swapped between #FF5733, RGB triples, and hsl(...). Manual calculation is prone to error, and searching for online tools interrupts the conversation context. Loading conversion rules into a Skill allows the Agent to output according to a fixed script, reducing format errors and facilitating integration with subsequent code generation.
Below is an introduction to the SkillHub community package @user_15292d5a/yjkj-cn-color-tool (display name cn-color-tool, version 1.0.0), covering its positioning, installation methods, and reproducible usage. The SKILL.md inside the package is implemented using pure Python standard libraries, tagged with requires_api_key=false, and requires no additional API Key.
What is this¶
cn-color-tool is a color format conversion Skill attached to the Agent, located at @user_15292d5a/yjkj-cn-color-tool. It is categorized as design-media under “Visual Assets” in SkillHub, sourced from community, and published by user_15292d5a (displayed as yjkj999999 on the page). The version 1.0.0 change log is “Migrated from ClawHub”.
The Skill itself consists of SKILL.md and the scripts/color_tool.py command-line script. Once enabled, the Agent calls the script according to the documentation to perform conversions between HEX, RGB, and HSL. SKILL.md also contains instructions related to “Color Preview”; the actual convert subcommand prints all three formats at once.
Official page: https://www.skillhub.cn/skills/user_15292d5a/yjkj-cn-color-tool
API entry: https://api.skillhub.cn/user_15292d5a/yjkj-cn-color-tool
Core Features¶
Based on SKILL.md and the installed scripts/color_tool.py, the current version supports:
- HEX → RGB: Convert hexadecimal color codes to RGB tuples, outputting something like
rgb(255, 87, 51). - RGB → HEX: Convert R/G/B values (0-255) to hexadecimal, such as
#FF5733. - RGB → HSL: H is 0-360, S and L are 0-100 (percentages), outputting something like
hsl(11, 100%, 60%). - HSL → RGB: Reverse calculate RGB based on the HSL ranges mentioned above.
- HEX → HSL: One-step conversion via the RGB intermediate step.
- convert: Given a HEX, print three lines of results: HEX, RGB, and HSL simultaneously.
The implementation relies on the standard library colorsys and argparse, with no third-party packages. The script throws ValueError for invalid HEX values and out-of-bounds RGB/HSL values, terminating with a non-zero exit code.
Installation & Enablement¶
Install using the skillhub CLI¶
Confirm that skillhub exists before installing; see https://skillhub.cn/install/skillhub.md for full CLI installation steps. When installing a Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized.
The Cursor example directory is ~/.cursor/skills/:
command -v skillhub && skillhub --version
skillhub search cn-color-tool
skillhub install yjkj-cn-color-tool --namespace user_15292d5a --dir ~/.cursor/skills
Other common Agent directories (excerpted from SkillHub installation docs):
- Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/within the project.
After installation, when keywords like color conversion, HEX/RGB/HSL are mentioned in the conversation, the Agent should be able to load SKILL.md and the script under the Skill.
Let Agent Install It¶
The installation prompt provided on the SkillHub page is: Install @user_15292d5a/yjkj-cn-color-tool based on https://skillhub.cn/install/skillhub.md. You can send this sentence to the Agent, and it will execute skillhub install and select the correct --dir.
Zip Package¶
The page also provides a Zip download (1.0.0):
https://api.skillhub.cn/api/v1/download?slug=@user_15292d5a/yjkj-cn-color-tool
After extraction, place it according to the skills directory specification of the Agent you are using, and ensure SKILL.md can be loaded.
Typical Usage¶
The script path inside the Skill directory is scripts/color_tool.py (different from the file name cn_color_tool.py in the SKILL.md example, below we use the actual path). Execute from the Skill root directory or the absolute path of the specified script:
# HEX to RGB
python3 scripts/color_tool.py hex2rgb "#FF5733"
# RGB to HEX
python3 scripts/color_tool.py rgb2hex 255 87 51
# RGB to HSL
python3 scripts/color_tool.py rgb2hsl 255 87 51
# HSL to RGB
python3 scripts/color_tool.py hsl2rgb 11 100 60
# Full conversion (show all formats)
python3 scripts/color_tool.py convert "#FF5733"
# HEX to HSL (one-step)
python3 scripts/color_tool.py hex2hsl "#FF5733"
Reproducible output example for convert "#FF5733":
HEX: #FF5733
RGB: rgb(255, 87, 51)
HSL: hsl(11, 100%, 60%)
Typical requests in Agent conversations can be: “Convert the brand primary color #1A73E8 to RGB and HSL” or “Convert this set of HSL to HEX for easier CSS writing”. The Agent can call the above subcommands according to the Skill instructions.
Use Cases & Notes¶
Who is it for
- Frontend and design-related developers who need to quickly unify color notations in conversations.
- Teams that want conversion logic to be localized and not depend on external color APIs (
requires_api_key=false).
Platform-side Information (as of data scraping)
- SkillHub Rating 100000; Downloads approx. 631; Install count page is 0 (based on store statistics).
- Page security scan result is “Safe, no risk” (Keen / Tri-Category Review status is benign).
- SkillHub list
hasOverview: false, public summary field is empty, capability details are based onSKILL.mdinside the package.
Usage Notes
- The example command filename in
SKILL.mddiffers from thescripts/color_tool.pyin the repository; please use the real path when calling automatically. - Python 3 must be installed on the local machine, and the Agent must have permission to execute scripts in the skills directory.
- The same-named ClawHub package
@clawhub_freedompixels/cn-color-toolversion is 1.2.6, which is a different coordinate from this SkillHub package 1.0.0; when installing, use--namespace user_15292d5aas the reference to avoid installing the wrong namespace. skill-card.mdindicates the license MIT-0 and points to the upstream page on ClawHub; in high-compliance environments, it is recommended to review the files inside the package before installation.
Ending¶
cn-color-tool converges HEX/RGB/HSL conversion into a standard library script and a Skill description, suitable for enabling Agents in design-media type workflows to stably output color strings. Installation, search, and download entry points:
- https://www.skillhub.cn/skills/user_15292d5a/yjkj-cn-color-tool
- https://api.skillhub.cn/user_15292d5a/yjkj-cn-color-tool