Skip to main content

oklch

Converts various color formats to OKLCH or OKLab, enhancing color management in design workflows.

Install this skill

or
96/100

Security score

The oklch skill was audited on Mar 1, 2026 and we found 4 security issues across 1 threat category. Review the findings below before installing.

Categories Tested

Security Issues

low line 22

Access to home directory dotfiles

SourceSKILL.md
202. **If they provided color(s):** Run the converter in the chosen format:
21 ```bash
22 node ~/.cursor/skills/oklch/scripts/convert.mjs <oklch|oklab> "<color1>" ["<color2>" ...]
23 ```
24 Output as `oklch(L C H / A)` or `oklab(L a b / A)`.
low line 27

Access to home directory dotfiles

SourceSKILL.md
253. **If they provided no color (or asked for "all" / "gradients" / repo scan):** From the **workspace root**, run the conversion-table script in the chosen format:
26 ```bash
27 cd <workspace-root> && node ~/.cursor/skills/oklch/scripts/build-conversion-table.mjs <oklch|oklab>
28 ```
29 Use the script output as the conversion table. Optional: pass paths to limit scope, e.g. `... build-conversion-table.mjs oklab src`.
low line 42

Access to home directory dotfiles

SourceSKILL.md
401. **Preview first:** Run the conversion-table script from the workspace root and present the **full** printed table (every row; do not truncate or summarize). Do **not** replace in files until the user explicitly confirms (e.g. "apply", "replace", "go ahead").
41 ```bash
42 cd <workspace-root> && node ~/.cursor/skills/oklch/scripts/build-conversion-table.mjs <oklch|oklab> [path1 path2 ...]
43 ```
44 - **Whole repo:** `build-conversion-table.mjs oklch` (or `oklab`) with no paths.
low line 48

Access to home directory dotfiles

SourceSKILL.md
462. **To replace in files (only after user confirms):** Run find-colors, pipe to convert, then for each line of output (path\tline\tcolumn\tconverted), open the file, go to that line, find the original at that column and replace with the converted value. When a line has multiple colors, process in **descending column order** (rightmost first).
47 ```bash
48 cd <workspace-root> && node ~/.cursor/skills/oklch/scripts/find-colors.mjs [path1 ...] | node ~/.cursor/skills/oklch/scripts/convert.mjs <oklch|oklab>
49 ```
50
Scanned on Mar 1, 2026
View Security Dashboard