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

/shade

@9def814
Run it yourself

Add light and shadow with proper hue shifting, one step at a time, so the sprite gains form without gaining the flat-luminance look that marks generated pixel art. Use when flat art needs volume.

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈51 tokens for metadata: the name and description. ≈602 when used: this file.

Description uses 2.5% 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 ≈203 characters, or 2.5%.

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.

Shade a sprite

Flat shading — the same hue, darker — is the clearest signal that a sprite was made by moving a brightness slider. Real shading shifts hue.

The rule

  • Shadows rotate toward blue/purple and desaturate slightly.
  • Highlights rotate toward yellow/orange and saturate slightly.

recolor op shade implements this. Use it instead of choosing darker hex values yourself.

Procedure

  1. Fix the light direction and state it. Upper-left is the safe default. It does not move again — not across the sprite, not across animation frames.

  2. Confirm the flat art is right first. look op preview. Shading a bad silhouette wastes the effort.

  3. One shadow step. Select the region away from the light, then:

    select op="rect" rect={…}
    recolor op="shade" amount=-0.2 selectionOnly=true

    Or draw the shadow shape directly with draw if it needs to follow a form the selection tools cannot describe.

  4. Look. look op="preview". Does it read as volume, or as a stain? A shadow that follows the form's cross-section reads; one that follows the outline does not.

  5. One light step, on the side facing the light: amount=0.2.

  6. Look again. Most sprites are finished here.

  7. Only if it needs it: a deep shadow (amount=-0.4) in occluded crevices, a specular highlight of one or two pixels on the hardest material, or reflected light — a faint cool step on the shadow side's outer edge, which makes metal read as metal.

Ramps

If you will shade a material more than once, put its ramp in the palette:

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

Then draw with ramp entries directly. Reuse the darkest step across materials — it ties a sprite together and costs no palette slots.

Dithering

Only on 32px+ and only in large flat areas. Use bayer4, keep the two colours adjacent in a ramp, and stop if it reads as noise. See rules://02-shading-and-light.

Checks

  • Is the light in exactly one place?
  • Do the shadows hue-shift, or are they the same hue darker?
  • Any banding — long parallel stripes of adjacent steps?
  • Any semi-transparent pixels? (validate will tell you.)

Related

rules://02-shading-and-light, rules://01-palette-and-color, rules://22-materials-hard, rules://23-materials-soft, rules://24-lighting-scenarios, rules://72-3d-forms.

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 skill provides artistic guidelines and instructions for shading pixel art sprites using hue shifting. It is safe and contains no malicious content or external risks.

  • 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
Shade a sprite

README badge

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