Skip to main content
skill CX Codex

image-analysis — Claude Code skill: color palettes and setup

The image-analysis Claude Code skill extracts prominent colors from an image and returns a palette. It activates for screenshot matching, design mockups, and requests to identify image colors.

no license 107 installs ★ 102 updated 2026-09-11

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add pascalorg/skills --skill image-analysis -a claude-code
Open on GitHub

What image-analysis does

The skill runs a script that reads image pixels and identifies the dominant colors. It sorts the palette by prominence and reports each color as HEX, RGB, and HSL, with its share of the image area.

Pass the script a path to a PNG, JPG, WebP, BMP, or GIF file. It uses get-pixels and extract-colors, attempting to install both on its first run. If that fails, install the dependencies with npm install from the scripts directory. Images in formats unsupported by get-pixels need conversion before processing.

What it helps with

  • extract dominant colors from a screenshot
  • get a palette from a Figma export
  • match interface colors to a design mockup
  • prepare color values for design tokens

Example prompts for the agent

  • Extract a palette from ./screenshot.png and show HEX, RGB, and HSL values.
  • Identify the main colors in ~/Downloads/figma-design.jpg.
  • Match the interface colors to the palette in this image.

How to install image-analysis

1Skills CLI (Vercel)

npx skills add pascalorg/skills --skill image-analysis -a claude-code

2Manually: put the files in place

~/.claude/skills/image-analysis/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/image-analysis/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about image-analysis

How do I install image-analysis in Claude Code?

Run npx skills add pascalorg/skills --skill image-analysis -a claude-code. The skill file is at ~/.claude/skills/image-analysis/SKILL.md.

What does image-analysis do?

It finds prominent colors in an image and returns a sorted palette with HEX, RGB, HSL, and area-share values.

What does image-analysis need to run?

The script uses get-pixels and extract-colors and tries to install them on its first run. If that fails, install the dependencies with npm install from the scripts directory.

Similar skills

All skills for Design →

From the same set4

Project sponsors

Companies that keep this analytics open