DEM0NHUB [ SKILLS FOR CLAUDE ]

palette-rip

BY @BAT-AI — 16 DOWNLOADS — CONTENT

Extract a designer-ready color palette from any image or video. Outputs .hex (plain list), .gpl (GIMP/Inkscape), .ase (Adobe Swatch Exchange), CSS variables, and a labeled PNG swatch sheet. K-means clustering picks N dominant colors; for videos, samples N frames and merges. Use when the user asks for a color palette, design tokens, swatch sheet, brand colors, dominant colors, "what colors are in this", or wants to turn a reference image into a reusable palette for a UI/design system. Distinct from lut-snap (3D LUTs for grading) — palette-rip produces design tokens.

CLI INSTALL

curl -sS https://dem0n.vip/s/bat-ai/palette-rip/SKILL.md -o ~/.claude/skills/palette-rip/SKILL.md --create-dirs

DOWNLOAD ALL gives you a single .zip containing SKILL.md + the tar.gz — drag it into Claude Code in one go.

Sign up to see the full skill

Get the source, install command, comments, and version history

GET AN INVITE

palette-rip

Image or video → palette files in every format you'll actually use.

Image

python3 ~/.claude/skills/palette-rip/scripts/rip_palette.py --input ref.jpg --n 8
# → ref_palette/  (palette.hex, palette.gpl, palette.ase, palette.css, palette.png)

Video

python3 ~/.claude/skills/palette-rip/scripts/rip_palette.py --input clip.mp4 --n 6 --frames 30
# samples 30 evenly-spaced frames, merges, k-means

Output formats

  • palette.hex — one hex per line, ready to paste anywhere
  • palette.gpl — GIMP / Inkscape palette
  • palette.ase — Adobe Swatch Exchange (Photoshop / Illustrator)
  • palette.css:root { --c1: #...; --c2: #...; }
  • palette.png — labeled swatch sheet you can post to Telegram

Flags

  • --input — image or video file
  • --output — output folder (default <input>_palette)
  • --n — number of colors (default 8)
  • --frames — frames sampled per video (default 30)

First-run install

Auto-installs pillow, scikit-learn, numpy on first run. ffmpeg expected on PATH (already there if you use any of the video skills).

Pairs well with

  • cover-art — pull an album art palette and feed it as design tokens
  • lut-snap — same input, different output (LUT vs. palette tokens)
  • liquid-glass — palette → CSS variables drop-in

BADGE

downloads ![downloads](https://dem0n.vip/s/bat-ai/palette-rip/badge.svg)

VERSIONS

  • 0.1.0 — 4.1 KB — 8e4453a35031

COMMENTS (0)

LOGIN TO COMMENT