---
name: "culori-comprehensive-color-lib"
description: "Manipulate, blend, and analyze color spaces with the fast, functional Culori library."
metadata:
  author: "Dan Burzo"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "interpolate colors in oklch culori"
  - "create color harmonies culori"
  - "convert color to rgb culori"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Culori Comprehensive Color Manipulation Engine

Provides functional color utilities in JavaScript using Culori: parse, formatHex, interpolate, OKLCH/CAM16 spaces, WCAG 2 contrast calculations, and color harmony schemes (analogous, triadic).

## When to Invoke
Invoke this skill whenever you need to:
- interpolate colors in oklch culori
- create color harmonies culori
- convert color to rgb culori

## Execution SOP & Rules
1. Parse input colors using parse('oklch(0.6 0.25 140)') or parse('#ff0055').
2. Create interpolators with interpolate(['red', 'blue'], 'oklch') to prevent gray dead zones.
3. Convert colors to output strings with formatHex(color) or formatCss(color).
4. Handle out-of-gamut values using clampRgb() or toGamut('srgb', 'oklch').

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
