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
npx skills add pascalorg/skills --skill image-analysis -a claude-codeWhat 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.pngand 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-code2Manually: put the files in place
~/.claude/skills/image-analysis/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/image-analysis/
1Skills CLI (Vercel)
npx skills add pascalorg/skills --skill image-analysis -a codex2Manually: put the files in place
.agents/skills/image-analysis/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add pascalorg/skills --skill image-analysis -a cursor2Manually: put the files in place
.cursor/skills/image-analysis/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install pascalorg/skills image-analysis2Manually: put the files in place
.github/skills/image-analysis/SKILL.md1Skills CLI (Vercel)
npx skills add pascalorg/skills --skill image-analysis -a gemini-cli2Platform CLI
gemini skills install https://github.com/pascalorg/skills --path image-analysisManually: put the files in place
.devin/skills/image-analysis/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add pascalorg/skills --skill image-analysis -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.