360 Secure SkillHub
360 安全技能中心

Axiom Color Palette

axiom-color-palette 通过频次分析从图像(PNG/JPEG/GIF)提取主色,可配置 3-16 色调色板并可选 K-means 聚类,输出 hex 代码、RGB 元组与 JSON;支持命令行与 Python 导入,纯标准库、无大模型调用,附单元测试,Apache-2.0 许可。

kofna3369
kofna3369
热度 24.10
最近更新 2026-06-15 12:50:37
分类:数据依赖:代码执行 / 读写文件应用场景:数据处理 / 品牌素材

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add axiom-color-palette
Metadata
name
axiom-color-palette
description
Color palette extractor — extract dominant colors from an image (PNG/JPEG/GIF). Use when you need a color palette for design or analysis. Pure stdlib, no LLM.
version
0.1.2
license
Apache-2.0

axiom-color-palette

Version: 0.1.2 Axioma Tools

Extracts the dominant color palette from an image using frequency analysis.

What this skill does

  • Frequency-based color extraction
  • Configurable palette size (3-16 colors)
  • Optional K-means clustering
  • Outputs hex codes + RGB tuples
  • JSON output for design tools

When to use this skill

  • ✅ Generate palette for website redesign
  • ✅ Find dominant brand colors in an image
  • ✅ Analyze color trends in design portfolios
  • ❌ Convert color spaces (use colormath)
  • ❌ Render images (use Pillow)

Usage

python3 axiom_color_palette.py logo.png --colors 5
python3 axiom_color_palette.py photo.jpg --json > palette.json
from axiom_color_palette import extract_palette
colors = extract_palette('image.png', n_colors=5)
# [('#FF5733', 42), ('#33FF57', 28), ...]

Validation

Check Status
Unit tests 15+ cases
Performance <100ms
Security Pure stdlib, no injection
Determinism Byte-to-byte stable
License Apache-2.0

Last updated: 2026-06-14