Skip to content

feat(skills): add color-palette generator skill#638

Open
muratclk wants to merge 1 commit intogoogle-ai-edge:mainfrom
muratclk:feat/add-color-palette-skill
Open

feat(skills): add color-palette generator skill#638
muratclk wants to merge 1 commit intogoogle-ai-edge:mainfrom
muratclk:feat/add-color-palette-skill

Conversation

@muratclk
Copy link
Copy Markdown

@muratclk muratclk commented Apr 8, 2026

Summary

Adds a new Color Palette Generator featured skill that lets users describe a mood, theme, or aesthetic and get a beautifully rendered 5-color palette card as an image.

How it works

  1. User describes a mood/theme (e.g., "ocean sunset", "cozy coffee shop")
  2. The on-device model selects 5 harmonious colors with creative names
  3. The run_js tool renders a visual palette card on canvas with:
    • A titled header bar
    • 5 color swatches
    • Hex codes and color names below each swatch
  4. Returns both the image and structured color data

Files added

  • skills/featured/color-palette/SKILL.md — Skill definition with instructions and payload format
  • skills/featured/color-palette/scripts/index.html — Canvas-based palette renderer

Design choices

  • No external API or secret required — runs entirely on-device
  • Uses HTML5 Canvas for clean, shareable image output
  • Follows the same ai_edge_gallery_get_result pattern as existing skills (qr-code, mood-music)
  • Apache 2.0 license header included

Test plan

  • Install skill via the Gallery app's "Load skill from URL" feature
  • Ask the model for palettes with various themes (sunset, forest, minimalist, retro)
  • Verify the rendered image shows 5 color swatches with correct hex codes and names
  • Test edge cases: very long color names, special characters in title

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Apr 8, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Add a new featured skill that generates beautiful, visual color palette
cards from mood/theme descriptions. The on-device model picks 5
harmonious colors and renders them as a shareable palette card image
using canvas.
@muratclk muratclk force-pushed the feat/add-color-palette-skill branch from 7774f06 to ec34592 Compare April 8, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant