npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

oklch-skill

v1.0.0

Published

Cursor skill: convert any color to OKLCH or OKLab. Use /oklch or /oklab in Cursor.

Downloads

98

Readme

oklch-skill

A Cursor & Claude Code skill that converts any color format to OKLCH or OKLab. Use /oklch or /oklab in Cursor or Claude Code, or find and convert all colors in a file or the whole repo.

What it does

  • /oklch — Convert given color(s) to OKLCH (e.g. oklch(0.63 0.26 29.23 / 1)).
  • /oklab — Convert given color(s) to OKLab.
  • Convert all in repo — Find every color in the workspace and convert (preview first, then replace after you confirm).
  • Convert all in a file — Pass a file path to limit the scan.

Supports hex, rgb/rgba, hsl/hsla (comma or space-separated), hwb, lab, lch, color(display-p3 ...), color(srgb ...), existing oklch/oklab (normalized), and CSS named colors.

Install the skill

Simplest (npm/npx) — install directly with no clone. Once this package is published to npm:

npx oklch-skill

This installs the skill to ~/.cursor/skills/oklch/ and runs npm install there. Use CURSOR_SKILLS_DIR=/path/to/skills npx oklch-skill for a custom location.

Using the skills CLI — if you use Vercel’s skills CLI (works with Cursor, Claude Code, Codex, etc.):

Cursor:

npx skills add its-thepoe/oklch-skill --skill oklch -g -a cursor -y
cd ~/.cursor/skills/oklch && npm install

Claude Code: (install skill, then use /oklch or /oklab in Claude Code)

npx skills add its-thepoe/oklch-skill --skill oklch -g -a claude-code -y

Then run npm install in the skill directory the CLI reports (e.g. ~/.claude/skills/oklch or similar), so the converter scripts work.

Replace its-thepoe with your fork’s org/username if needed. The second line (Cursor) installs the script dependency (culori) so /oklch and /oklab work.

From a clone — run in a terminal or ask your coding agent to run it:

git clone https://github.com/OWNER/oklch-skill.git /tmp/oklch-skill && /tmp/oklch-skill/scripts/install-cursor-skill.sh

If you already have the repo:

./scripts/install-cursor-skill.sh

Manual: Copy the contents of skills/oklch/ to ~/.cursor/skills/oklch/, then run npm install in that folder.

Usage in Cursor or Claude Code

  • /oklch #f00 or /oklab rgb(0,0,255) — convert one or more colors you type.
  • Ask to “convert all colors in this repo to OKLCH” — you get a preview table, then say “apply” to replace in files.
  • Ask to “convert all colors in src/styles.css” — same flow for a single file.

Requires Node and a one-time npm install in the skill directory.

Repo layout

| Path | Purpose | |------|--------| | skills/oklch/ | Cursor skill: SKILL.md, scripts/, package.json (used by npx skills add and install scripts) | | bin/install.js | Installer run by npx oklch-skill | | scripts/install-cursor-skill.sh | Install script (copy skill + npm install) | | scripts/test-skill-converter.mjs | Smoke test for the installed skill (npm run test:skill) |

Development

  • Edit the skill in skills/oklch/. Re-run ./scripts/install-cursor-skill.sh to update your installed skill.
  • Run npm run test:skill to verify the converter against the installed skill.

License

MIT. See LICENSE.md.

Credits

Color parsing and conversion use culori.

Author

Oladipupo Ayoolathepoe.xyz · [email protected]