Pro Color Palette

v1.3.0

专业配色卡生成器。支持12组预设配色、从图片提取主色、生成场景Mockup(海报/手机界面/封面)。输入主色调自动生成3色搭配方案,输出黑底配色卡图片。支持本地脚本秒级生成和AI图片生成两种模式。

1· 138·0 current·0 all-time
byryantao@ryantaozi
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
Name/description match the included scripts: generate_palette.py, extract_palette.py, and generate_mockup.py implement palette generation, image extraction, and mockup creation. However the skill metadata/requirements declare no dependencies while the code uses Python packages (Pillow/PIL and requests). That omission is an incoherence (missing declared dependencies) but plausible as a packaging oversight rather than malicious behavior.
Instruction Scope
SKILL.md instructs the agent to run the included scripts and to optionally call an external AI image tool; the instructions stick to generating/exporting images and extracting colors. The extract script will download images from arbitrary URLs supplied by the user, which is expected for an image-extraction feature.
Install Mechanism
No install spec (instruction-only invocation of local Python scripts). This is low-risk from an installation standpoint. There are no downloads from untrusted hosts or archive extraction steps in the package metadata.
Credentials
The skill requests no environment variables, credentials, or config paths. The code reads system font paths and writes output to /tmp — both are reasonable for image generation and documented in SKILL.md. It does perform outbound HTTP GETs to fetch images (requests.get) when given a URL; this network use is proportional to the 'extract from image URL' feature but should be noted.
Persistence & Privilege
Skill flags are default (always: false, agent invocation allowed). It does not modify other skills or system-wide configuration. It writes generated images to /tmp or user-specified paths only.
Assessment
What to consider before installing: - This skill runs local Python scripts and relies on the Pillow (PIL) and requests libraries which are not declared in the metadata; ensure your environment has Python3, pillow and requests installed to avoid runtime errors. - The extract feature will download images from URLs you provide. If you or the agent pass internal or untrusted URLs, those HTTP requests may reach internal services (SSRF risk). Only provide trusted image URLs. - The scripts write output to /tmp (or a path you supply) and attempt to load system fonts from common Mac paths; if those fonts are missing the code falls back to default fonts (harmless but may change appearance). - The code contains some minor implementation bugs/rough edges (simple K-Means averaging and some color string handling) that could cause failures on certain inputs; test with non-sensitive data first. - There are no hidden network endpoints, no credential requests, and no install-time downloads in the package metadata. If you need the optional AI-image mode mentioned in SKILL.md, confirm how to integrate 'doubao-ai-image' and whether it needs API keys before enabling that mode.

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

chinesevk978ze8dhtx9jmwrsqg3yybf9183scb5colorvk978ze8dhtx9jmwrsqg3yybf9183scb5designvk978ze8dhtx9jmwrsqg3yybf9183scb5imagevk978ze8dhtx9jmwrsqg3yybf9183scb5latestvk978ze8dhtx9jmwrsqg3yybf9183scb5palettevk978ze8dhtx9jmwrsqg3yybf9183scb5
138downloads
1stars
5versions
Updated 3w ago
v1.3.0
MIT-0

color-palette

专业配色卡生成器。输入主色调,自动生成 3 色搭配方案(主色 + 2 个辅助色),输出图片卡片。

配色风格

  • 黑底 #000000
  • 1 个大主色块(上方)+ 2 个小辅助色块(下方左右并排)
  • 每个色块标注:中文色名(中粗体)+ Hex 色号(细体)
  • 圆角几何形状,现代简约 UI 风格

功能一览

1. 配色卡生成(12组预设)

python3 generate_palette.py <配色名>
python3 generate_palette.py --all          # 批量生成所有

2. 从图片提取配色

python3 extract_palette.py <图片路径或URL> --card
# 提取主色 + 自动生成互补色/相似色推荐

3. 场景 Mockup 生成

python3 generate_mockup.py poster <配色名>   # 品牌海报
python3 generate_mockup.py phone <配色名>    # 手机界面
python3 generate_mockup.py cover <配色名>    # PPT封面
python3 generate_mockup.py all <配色名>      # 全部三种

智能选色规则

主题/场景推荐配色
时尚/奢侈品牌爱马仕橙、古驰绿、玫瑰粉
科技/商务/金融普拉得蓝、长春花蓝、海洋青
咖啡/餐饮/自然孔雀蓝、抹茶绿、琥珀黄
健康/清新薄荷绿、海洋青
儿童/活泼玫瑰粉、薄荷绿、琥珀黄
节日/热烈烈焰红、爱马仕橙、琥珀黄
未明确主题默认普拉得蓝

图片生成方式

方式1:本地脚本生成(推荐)

python3 ~/.openclaw/workspace/skills/color-palette/generate_palette.py [配色名]
  • 优点:秒级出图,无需 API,无需浏览器
  • 输出:/tmp/color-palette-{配色名}.png

方式2:AI 生成(需配合 doubao-ai-image)

调用 doubao-ai-image 生成图片,prompt 包含配色信息。

输出规范

生成图片后,必须回复:

  • 配色方案名称
  • 三色 Hex 对照表
  • 生成的图片
  • 适用场景建议

预设配色方案库(12组)

1. 爱马仕橙系

角色色名Hex
主色爱马仕橙#FF8A00
辅助色1深灰#363636
辅助色2白粉#FFF2DF

2. 普拉得蓝系

角色色名Hex
主色普拉得蓝#0175CC
辅助色1睿智金#B78D77
辅助色2米汤骄#FCF5E2

3. 长春花蓝系

角色色名Hex
主色长春花蓝#5357A0
辅助色1佛手黄#FED81F
辅助色2荔枝白#FEFFEF

4. 孔雀蓝系

角色色名Hex
主色孔雀蓝#0B7E9D
辅助色1浅驼色#D7B9A1
辅助色2月苍白#F9F6E5

5. 古驰绿系

角色色名Hex
主色古驰绿#1F4433
辅助色1杏红#FF8B31
辅助色2象牙白#FFFBF0

6. 烈焰红系

角色色名Hex
主色烈焰红#E53935
辅助色1炭黑#212121
辅助色2珍珠白#FAFAFA

7. 极光紫系

角色色名Hex
主色极光紫#8E24AA
辅助色1香槟金#D4AF37
辅助色2雪白#F8F8FF

8. 薄荷绿系

角色色名Hex
主色薄荷绿#26A69A
辅助色1深空灰#455A64
辅助色2泡沫白#F0FFF0

9. 琥珀黄系

角色色名Hex
主色琥珀黄#FFB300
辅助色1咖啡棕#4E342E
辅助色2奶白#FFF8E1

10. 玫瑰粉系

角色色名Hex
主色玫瑰粉#EC407A
辅助色1莓果紫#7B1FA2
辅助色2淡粉白#FFF0F5

11. 海洋青系

角色色名Hex
主色海洋青#00ACC1
辅助色1沙滩金#C9A227
辅助色2贝壳白#FDF5E6

12. 抹茶绿系

角色色名Hex
主色抹茶绿#7CB342
辅助色1米白#F5F5DC
辅助色2竹青#2E7D32

文件说明

  • generate_palette.py — 生成配色卡(12组预设)
  • extract_palette.py — 从图片提取主色并生成配色卡
  • generate_mockup.py — 生成场景 Mockup(海报/手机/封面)
  • SKILL.md — 使用说明文档

Comments

Loading comments...