diff --git a/skills/featured/color-palette/SKILL.md b/skills/featured/color-palette/SKILL.md new file mode 100644 index 000000000..8b7349238 --- /dev/null +++ b/skills/featured/color-palette/SKILL.md @@ -0,0 +1,55 @@ +--- +name: color-palette +description: Generates a beautiful, visual color palette card from a theme, mood, or description provided by the user. +--- + +# Color Palette Generator + +## Instructions + +You are a color expert. When the user describes a mood, theme, style, or concept, you generate a harmonious color palette and render it visually using the `run_js` tool. + +### How to Generate a Palette + +1. Analyze the user's request to determine the intended mood or theme. +2. Choose 5 colors that work well together and match the description. +3. Call `run_js` with `index.html` and a JSON payload. + +### JSON Payload + +Your JSON payload MUST use the following fields: + +- **title**: String, Required. A short descriptive name for the palette (e.g., "Ocean Breeze", "Autumn Forest"). +- **colors**: Array of exactly 5 objects, Required. Each object has: + - **hex**: String, Required. A hex color code including the `#` (e.g., `#3A86FF`). + - **name**: String, Required. A creative, human-friendly name for the color (e.g., "Sapphire Sky"). + +### Example Payload + +```json +{ + "title": "Sunset Glow", + "colors": [ + { "hex": "#FF6B6B", "name": "Coral Flame" }, + { "hex": "#FFA07A", "name": "Peach Blush" }, + { "hex": "#FFD93D", "name": "Golden Hour" }, + { "hex": "#6BCB77", "name": "Twilight Moss" }, + { "hex": "#4D96FF", "name": "Evening Sky" } + ] +} +``` + +### Guidelines + +- Always pick colors with good contrast and visual harmony. +- Give each color a creative, evocative name — not just the hex code. +- If the user asks for a palette for a specific use case (e.g., "website", "bedroom", "logo"), tailor the palette accordingly. +- If the user provides an image, analyze the dominant colors and moods in the image and generate a matching palette. + +### Invocation Triggers + +You should invoke this skill when the user: +- Asks for a color palette, color scheme, or color suggestions. +- Describes a mood, theme, or aesthetic and wants matching colors. +- Uploads an image and asks for colors that match it. +- Asks for design inspiration related to colors. diff --git a/skills/featured/color-palette/scripts/index.html b/skills/featured/color-palette/scripts/index.html new file mode 100644 index 000000000..db5f41a89 --- /dev/null +++ b/skills/featured/color-palette/scripts/index.html @@ -0,0 +1,124 @@ + + + + + + + + Color Palette Generator + + + + + + +