360 Secure SkillHub
360 安全技能中心

Axiom Color Palette

核心功能:基于频率分析提取图片主色调,支持3-16色数量配置、可选K-means聚类,输出Hex色码+RGB元组及JSON格式。典型场景:网站重设计生成配色、提取品牌主色、分析设计作品集色彩趋势。输入为PNG/JPEG/GIF图片,可通过命令行或Python调用,无LLM依赖,性能稳定安全。

kofna3369
kofna3369
热度 24.06
最近更新 2026-06-15 12:50:37
分类:创作依赖:代码执行应用场景:UI 原型 / 品牌素材

安装技能

复制下面的话术发给你的 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