Automated summary
Extracts dominant colors from an image and generates a color palette.
Strengths
- Easy to use with a single command
- Supports multiple output formats (hex, rgb, tuple, JSON)
- Allows choosing the number of colors and extraction quality
Limitations
- Requires the image to be accessible locally
- Extraction quality depends on image complexity
- Does not handle remote images
When you need to quickly extract a color palette from an image for a design or development project.
If you require advanced color analysis with segmentation or pattern recognition algorithms.
Security analysis
SafeThe skill runs a local Python script to extract color information from an image file. It does not involve network access, external commands, or destructive operations. The allowed tools are limited to Bash (python) and Read, which are used in a safe manner.
No concerns found
How this analysis is madeExamples
What are the main colors in this logo? /path/to/logo.pngExtract 6 dominant colors from this image and show them as hex values: /path/to/photo.jpgGet the dominant colors from this image in JSON format: /path/to/image.pngname: dominant-color description: Extract dominant colors from an image. Use when the user wants to find the main colors in an image or generate a color palette. argument-hint: <image-path> [options] allowed-tools: Bash(python *), Read
Dominant Color Extraction
Extract dominant colors from an image file using the extract_colors.py script.
Script Usage
python ~/.claude/skills/dominant-color/scripts/extract_colors.py <image> [options]
Options
| Flag | Description |
|------|-------------|
| -n, --count N | Number of colors to extract (default: 5) |
| -q, --quality 1-10 | Extraction quality, 1=best (default: 1) |
| -f, --format FORMAT | Output format: hex, rgb, tuple, full |
| --json | Output as JSON |
| --dominant-only | Only output the dominant color |
Examples
# Basic usage
python script.py image.png
# Get 8 colors as hex values
python script.py image.jpg -n 8 -f hex
# JSON output for programmatic use
python script.py image.png --json
# Just the dominant color
python script.py image.png --dominant-only -f hex
Instructions
- Run the script with the image path provided by the user:
$ARGUMENTS - Present the extracted colors clearly
- If the user needs the colors for code, offer to format them as CSS variables, Tailwind config, or other formats
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/dominant-color-extraction-mm8o51mj/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/dominant-color-extraction-mm8o51mj' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/dominant-color-extraction-mm8o51mj/download' --output '.skill-downloads/dominant-color-extraction-mm8o51mj/SKILL.md.part' && mv '.skill-downloads/dominant-color-extraction-mm8o51mj/SKILL.md.part' '.skill-downloads/dominant-color-extraction-mm8o51mj/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Bash(python *), Read
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/dominant-color-extraction-mm8o51mj/SKILL.md' && test -s '.skill-downloads/dominant-color-extraction-mm8o51mj/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/dominant-color' && cp -R '.skill-downloads/dominant-color-extraction-mm8o51mj' '.claude/skills/dominant-color'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/dominant-color-extraction-mm8o51mj'openskills read 'dominant-color-extraction-mm8o51mj'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/dominant-color-extraction-mm8o51mj/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Create Interactive Maps with kepler.gl
Data & AI
Create interactive map visualizations and export standalone HTML using the keplergl Python package. Use to plot geospatial data from DataFrames, GeoJSON, or CSV.
Agent-Driven Parameter Optimization
Data & AI
Guide for optimizing configurable systems with a measurable objective, using bounded trials and evidence-based recommendations.
ICP Visitor Outreach
Data & AI
Identify signed-up users matching the ideal customer profile but stalled, and draft personalized outreach to re-engage them.