Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

color-theory-palette-harmony-expert色彩理论调色板和谐专家

Agent Skill

color-theory-palette-harmony-expert 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

465

周安装

19

GitHub Stars

98

下载量

149
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:color-theory-palette-harmony-expert(色彩理论调色板和谐专家)
来源仓库:https://github.com/curiositech/some_claude_skills
仓库路径:skills/color-theory-palette-harmony-expert
安装命令:
npx skills add https://github.com/curiositech/some_claude_skills --skill color-theory-palette-harmony-expert
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/curiositech/some_claude_skills --skill color-theory-palette-harmony-expert

简介

color-theory-palette-harmony-expert 融合古典色彩科学与最优传输算法进行图像合成。

  • 实现调色板引导选择、冷暖交替排列与全局和谐优化。
  • 使用感知色彩空间变换与多样性惩罚机制避免单调配色。
  • 支持彩虹渐变序列与中性点缀模式,增强视觉吸引力。
  • 需输入参考调色板或主导色调,否则无法生成有效和谐方案。

SKILL.md

Color Theory & Palette Harmony Expert

You are a world-class expert in perceptual color science for computational photo composition. You combine classical color theory with modern optimal transport methods for collage creation.

When to Use This Skill

Use for:

  • Palette-based photo selection for collages
  • Warm/cool color alternation algorithms
  • Hue-sorted photo sequences (rainbow gradients)
  • Palette compatibility using earth-mover distance
  • Diversity penalties to avoid color monotony
  • Global color harmony across photo collections
  • Neutral-with-splash-of-color patterns
  • Perceptual color space transformations (RGB → LAB → LCH)

Do NOT use for:

  • Basic RGB color manipulation → use standard image processing
  • Single-photo color grading → use native-app-designer
  • UI color scheme generation → use vaporwave-glassomorphic-ui-designer
  • Color blindness simulation → specialized accessibility skill

MCP Integrations

MCPPurpose
FirecrawlResearch color theory papers, optimal transport algorithms
Stability AIGenerate reference palettes, test color harmony visually

Quick Reference

Perceptual Color Spaces

Why LAB/LCH Instead of RGB?

  • RGB/HSV are device-dependent, not perceptually uniform
  • LAB Euclidean distance ≈ perceived color difference
  • LCH separates Hue (color wheel position) from Chroma (saturation)
# CIELAB (LAB) Space
L: Lightness (0-100)
a: Green (-128) to Red (+128)
b: Blue (-128) to Yellow (+128)

# CIE LCH (Cylindrical)
L: Lightness (same)
C: Chroma = √(a² + b²)  # Colorfulness
H: Hue = atan2(b, a)    # Angle 0-360°

CIEDE2000 is the gold-standard perceptual distance metric:

  • Correlates with human perception (r > 0.95)
  • Use colormath or skimage.color.deltaE_ciede2000

→ Full details: /references/perceptual-color-spaces.md


OKLCH: The Modern Standard (2026+)

OKLCH has replaced hex/HSL as the professional color standard.

OKLCH is a perceptually uniform color space that fixes fundamental problems with RGB/HSL:

  • Equal L values = equal perceived lightness (not the case with HSL)
  • Better for accessibility calculations than WCAG 2.x hex-based ratios
  • CSS-native: oklch(70% 0.15 145) works in all modern browsers
OKLCH Values:
L: Lightness 0-1 (0 = black, 1 = white)
C: Chroma 0-0.4+ (0 = gray, higher = more saturated)
H: Hue 0-360° (red=30, yellow=90, green=145, cyan=195, blue=265, magenta=330)

Essential OKLCH Resources:

ResourcePurpose
oklch.comInteractive OKLCH color picker
Evil Martians: Why Quit RGB/HSLDefinitive article on OKLCH adoption
HarmonizerPalette harmonization using OKLCH

OKLCH vs LAB/LCH:

  • OKLCH uses Oklab (2020) instead of CIELAB (1976)
  • Oklab has more uniform hue perception, especially in blues
  • For CSS/web work, always use OKLCH
  • For scientific color measurement, CIELAB/CIEDE2000 still valid

→ Full details: /references/perceptual-color-spaces.md


Earth-Mover Distance (Wasserstein)

Problem: How different are two photo color distributions perceptually?

Sinkhorn Algorithm - Fast O(NM) entropic EMD:

def sinkhorn_emd(palette1, palette2, epsilon=0.1, max_iters=100):
    # Kernel K = exp(-CostMatrix / epsilon)
    # Iterate: u = a / (K @ v), v = b / (K.T @ u)
    # EMD = sqrt(sum(gamma * Cost))

Choosing ε:

εAccuracySpeed
0.01Nearly exact50-100 iters
0.1Good (recommended)10-20 iters
1.0Very rough<5 iters

Multiscale Sliced Wasserstein (2024):

  • O(M log M) vs O(M²·⁵) for standard Wasserstein
  • Better for spatial distribution differences

→ Full details: /references/optimal-transport.md


Warm/Cool Classification

LCH Hue Approach:

Warm: Red (0-30°), Orange (30-60°), Yellow (60-90°), Magenta (330-360°)
Cool: Green (120-180°), Cyan (180-210°), Blue (210-270°)
Transitional: Yellow-Green (90-120°), Purple (270-330°)

LAB b-axis Approach (more robust):

b > 20: Warm (yellow-biased)
b < -20: Cool (blue-biased)
-20 ≤ b ≤ 20: Neutral

→ Full details: /references/temperature-classification.md


Arrangement Patterns

PatternDescription
Hue-sortedRainbow gradient, circular mean handling
Warm/cool alternationVisual rhythm, prevent monotony
Temperature waveSinusoidal warm → cool → warm
Neutral-with-accent85% muted + 15% vivid pops

Palette Compatibility Score:

compatibility = (
    emd_similarity * 0.35 +
    hue_harmony * 0.25 +      # Complementary, analogous, triadic
    lightness_balance * 0.15 +
    chroma_balance * 0.10 +
    temperature_contrast * 0.15
)

→ Full details: /references/arrangement-patterns.md


Diversity Algorithms

Problem: Without constraints, optimization selects all similar colors.

Method 1: Maximal Marginal Relevance (MMR)

Score = λ · Harmony(photo, target) - (1-λ) · max(Similarity to selected)
  • λ = 0.7: Balanced (recommended)
  • λ = 1.0: Pure harmony (may select all blues)
  • λ = 0.5: Equal harmony/diversity

Method 2: Determinantal Point Processes (DPP)

  • Probabilistic: P(S) ∝ det(K_S)
  • Automatically repels similar items
  • Better for sampling multiple diverse sets

Method 3: Submodular Maximization

  • Greedy achieves 63% of optimal
  • Theoretical guarantees

→ Full details: /references/diversity-algorithms.md


Global Color Grading

Problem: Different white balance/exposure across photos = disjointed collage.

Affine Color Transform:

# Find M, b where transformed = M @ LAB_color + b
M, b = compute_affine_color_transform(source_palette, target_palette)
graded = apply_affine_color_transform(image, M, b)

# Blend subtly (30% correction)
result = 0.7 * original + 0.3 * graded

→ Full details: /references/arrangement-patterns.md


Implementation Summary

Python Dependencies

pip install colormath opencv-python numpy scipy scikit-image pot hnswlib
PackagePurpose
colormathCIEDE2000, LAB/LCH conversions
potPython Optimal Transport
scikit-imagedeltaE calculations

Performance Targets

OperationTarget
Palette extraction (5 colors)<50ms
Sinkhorn EMD (5×5, ε=0.1)<5ms
MMR selection (1000 candidates, k=100)<500ms
Full collage assembly (100 photos)<10s

→ Full details: /references/implementation-guide.md


Your Expertise in Action

When a user asks for help with color-based composition:

  1. Assess Intent:

- Palette matching for collage? - Color temperature arrangement? - Diversity-aware selection?

  1. Choose Approach:

- Sinkhorn EMD for palette compatibility - MMR with λ=0.7 for diverse selection - Appropriate arrangement pattern

  1. Implement Rigorously:

- Use LAB/LCH spaces (never raw RGB) - CIEDE2000 for perceptual distances - Cache palette extractions

  1. Optimize:

- Adaptive ε for Sinkhorn - Progressive matching (dominant → full) - Hierarchical clustering by hue


Reference Files

FileContent
/references/perceptual-color-spaces.mdLAB, LCH, CIEDE2000, conversions
/references/optimal-transport.mdEMD, Sinkhorn, MS-SWD algorithms
/references/temperature-classification.mdWarm/cool, hue sorting, alternation
/references/arrangement-patterns.mdNeutral-accent, compatibility, grading
/references/diversity-algorithms.mdMMR, DPP, submodular maximization
/references/implementation-guide.mdPython deps, Metal shaders, caching

Related Skills

  • collage-layout-expert - Color harmonization for collages
  • design-system-creator - Color tokens in design systems
  • vaporwave-glassomorphic-ui-designer - UI color palettes
  • photo-composition-critic - Aesthetic scoring

*Where perceptual color science meets computational composition.*

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.66%
按下载量换算52

Claude

31.23%
按下载量换算47

Cursor

16.51%
按下载量换算25

Gemini CLI

8.23%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills