color-theory-palette-harmony-expert▌
erichowens/some_claude_skills · updated Apr 8, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
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.
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
| MCP | Purpose |
|---|---|
| Firecrawl | Research color theory papers, optimal transport algorithms |
| Stability AI | Generate 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
colormathorskimage.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:
| Resource | Purpose |
|---|---|
| oklch.com | Interactive OKLCH color picker |
| Evil Martians: Why Quit RGB/HSL | Definitive article on OKLCH adoption |
| Harmonizer | Palette 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 ε:
| ε | Accuracy | Speed |
|---|---|---|
| 0.01 | Nearly exact | 50-100 iters |
| 0.1 | Good (recommended) | 10-20 iters |
| 1.0 | Very 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
| Pattern | Description |
|---|---|
| Hue-sorted | Rainbow gradient, circular mean handling |
| Warm/cool alternation | Visual rhythm, prevent monotony |
| Temperature wave | Sinusoidal warm → cool → warm |
| Neutral-with-accent | 85% 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
| Package | Purpose |
|---|---|
colormath |
CIEDE2000, LAB/LCH conversions |
pot |
Python Optimal Transport |
scikit-image |
deltaE calculations |
Performance Targets
| Operation | Target |
|---|---|
| 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:
-
Assess Intent:
- Palette matching for collage?
- Color temperature arrangement?
- Diversity-aware selection?
-
Choose Approach:
- Sinkhorn EMD for palette compatibility
- MMR with λ=0.7 for diverse selection
- Appropriate arrangement pattern
-
Implement Rigorously:
- Use LAB/LCH spaces (never raw RGB)
- CIEDE2000 for perceptual distances
- Cache palette extractions
-
Optimize:
- Adaptive ε for Sinkhorn
- Progressive matching (dominant → full)
- Hierarchical clustering by hue
Reference Files
| File | Content |
|---|---|
/references/perceptual-color-spaces.md |
LAB, LCH, CIEDE2000, conversions |
/references/optimal-transport.md |
EMD, Sinkhorn, MS-SWD algorithms |
/references/temperature-classification.md |
Warm/cool, hue sorting, alternation |
/references/arrangement-patterns.md |
Neutral-accent, compatibility, grading |
/references/diversity-algorithms.md |
MMR, DPP, submodular maximization |
/references/implementation-guide.md |
Python 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.
How to use color-theory-palette-harmony-expert on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add color-theory-palette-harmony-expert
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches color-theory-palette-harmony-expert from GitHub repository erichowens/some_claude_skills and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate color-theory-palette-harmony-expert. Access the skill through slash commands (e.g., /color-theory-palette-harmony-expert) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
User Story & Requirements Generation
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Competitive Analysis
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Roadmap Prioritization
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
Make data-driven prioritization decisions faster
Stakeholder Communication
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client
- ›Access to product documentation and roadmap tools (Jira, Notion, etc.)
- ›Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
- ›Stakeholder contact information and communication channels
Time Estimate
30-60 minutes to see productivity improvements
Installation Steps
- 1.Install product management skill
- 2.Start with user story generation for known feature
- 3.Progress to competitive analysis: research 2-3 competitors
- 4.Use for roadmap prioritization: apply RICE/ICE scoring
- 5.Draft stakeholder communications and refine based on feedback
- 6.Build template library for recurring PM tasks
- 7.Share effective prompts with product team
Common Pitfalls
- ⚠Not validating competitive research—verify facts before sharing
- ⚠Accepting user stories without involving engineering team
- ⚠Over-relying on frameworks without qualitative judgment
- ⚠Not customizing outputs to company culture and communication style
- ⚠Skipping stakeholder validation of generated requirements
Best Practices▌
✓ Do
- +Validate research and competitive analysis with real data
- +Collaborate with engineering when generating technical requirements
- +Customize frameworks and templates to your company context
- +Use skill for first drafts, refine with stakeholder input
- +Document successful prompt patterns for PM tasks
- +Combine AI efficiency with human judgment and intuition
✗ Don't
- −Don't publish competitive analysis without fact-checking
- −Don't finalize user stories without engineering review
- −Don't make prioritization decisions solely on AI scoring
- −Don't skip customer validation of generated requirements
- −Don't ignore company-specific context and culture
💡 Pro Tips
- ★Provide context: company goals, constraints, customer feedback
- ★Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
- ★Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
- ★Use skill for 70% generation + 30% customization to company needs
When to Use This▌
✓ Use When
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid When
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
Learning Path▌
- 1Basic: user stories, feature specs, status updates
- 2Intermediate: competitive analysis, prioritization frameworks, PRDs
- 3Advanced: product strategy, go-to-market planning, OKR setting
- 4Expert: product vision, market positioning, business model innovation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.5★★★★★42 reviews- ★★★★★Tariq Taylor· Dec 20, 2024
Registry listing for color-theory-palette-harmony-expert matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Luis Yang· Dec 20, 2024
Keeps context tight: color-theory-palette-harmony-expert is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Diya Sethi· Dec 20, 2024
I recommend color-theory-palette-harmony-expert for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Pratham Ware· Dec 16, 2024
Keeps context tight: color-theory-palette-harmony-expert is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Aisha Harris· Dec 12, 2024
color-theory-palette-harmony-expert reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Chaitanya Patil· Dec 4, 2024
color-theory-palette-harmony-expert reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Piyush G· Nov 23, 2024
I recommend color-theory-palette-harmony-expert for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Zara Abbas· Nov 11, 2024
Useful defaults in color-theory-palette-harmony-expert — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Mei Jain· Nov 11, 2024
color-theory-palette-harmony-expert reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Luis Martin· Nov 3, 2024
I recommend color-theory-palette-harmony-expert for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
showing 1-10 of 42