Index of every page on this site: llms.txt
All skills
with-pebbly avatar

/palette

@9def814
Run it yourself

Pick a palette that fits the request, build hue-shifted ramps, or clean up a sprite whose colours have sprawled. Use when the user asks about colour, wants a specific retro look, or when validate reports off-palette colours.

Use this Skill: https://skilld.dev/gh/with-pebbly/aseprite-ai-artist/palette

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈58 tokens for metadata: the name and description. ≈725 when used: this file.

Description uses 2.9% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈234 characters, or 2.9%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Choose, build and repair a palette

Choosing

Match the request, in this order of preference:

  1. The user named a palette or a game. Use it. palette op="preset" for a bundled one, op="load" for a file they have, or reference op="sample_palette" to pull one out of a screenshot they gave you.
  2. The user described an era. "8-bit" → PICO-8. "Game Boy" → gameboy. "NES" → build 12–16 colours by hand as 3–4 hues × 4 values.
  3. The sprite is joining an existing project. sprite_info an existing asset and match it exactly. Consistency beats a nicer palette.
  4. Nothing said. PICO-8. It is 16 colours, forgiving, and reads well.

palette op="preset" with no valid preset lists what is bundled and says that anything else can be loaded from a file.

Building ramps

A ramp is one material's run of colours. Build them hue-shifted:

palette op="ramp" base="#c04030" steps=5 spread=0.55

Shadows come out cooler, highlights warmer — the thing that separates pixel art from a brightness slider. Three to five steps per material is plenty; more is decisions you will not use.

Reuse steps across materials. Sharing the darkest colour between skin and leather ties the sprite together and costs nothing.

Repairing a sprawled palette

Symptom: validate reports off-palette colours, or the sprite has ninety near-identical browns.

  1. Diagnose:

    palette op="analyze"

    This reports off-palette colours in the art, near-duplicate palette entries (ΔE < 3 — the same colour to a viewer), unused slots and the lowest-contrast pair.

  2. Decide the target palette. Either the existing one, minus the near-duplicates, or a fresh one.

  3. Snap the art onto it:

    recolor op="snap" layer="…"

    Perceptual (CIELAB) nearest, applied per distinct colour in one pass. The result reports exactly which colour became which and how many pixels moved, so you can see whether a merge was wrong before the user does.

  4. Re-check. palette op="analyze" again, then look op="preview". Merging two colours that were doing different jobs is the risk here; look for a form that has gone flat.

Or start over from the art: palette op="extract" replaces the palette with one quantized from the sprite's own colours (RGB sprites only, maxColors default 16) — useful when the sprite came from a reference image imported at full colour and never had a curated palette to snap onto.

Contrast

Value contrast carries readability, not hue contrast. Check by running recolor op="desaturate" on a copy — if the shapes stop reading in greyscale, the palette's values are too close, and no amount of hue will fix it.

Related

rules://01-palette-and-color, rules://02-shading-and-light, rules://20-color-for-pixel-art, rules://21-limited-and-platform-palettes.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The palette skill is a safe tool designed to help users select, build, and repair color palettes for pixel art. It uses internal image processing tools for color analysis and transformation without any malicious behavior.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 9def814. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 months ago
title
Choose, build and repair a palette

README badge

README badge for with-pebbly/aseprite-ai-artist/palette