asset-style-extract

Installation
SKILL.md

ASSET-STYLE-EXTRACT

Turn one reference image into a reusable style contract. The user imports an image; you read the style out of it — not the subject — and write a docs/assets/style/style-profile.yaml/<id>.yaml that the generation pipeline (asset-canon + specialists) reads on every later asset so the whole set looks like the reference.

This skill does not generate any asset. Its only output is a style profile (and optionally a saved copy of the reference). After it runs, generation continues through the normal pipeline, which already reads the profile ([asset-canon] STYLE PROFILE + GENERATE).

INGEST  ->  ANALYZE (A: measured · V: judged)  ->  DRAFT PROFILE  ->  CONFIRM low-confidence  ->  WRITE  ->  HAND OFF

0. HARD RULES — READ FIRST

  1. Actually look at the image. Read the file with the vision-capable model and inspect pixels with code. Never invent a palette or a style from the filename or the subject noun — a profile that wasn't measured against the image is worthless. If no image is reachable or it can't be opened, stop and say so.
  2. Extract STYLE, not SUBJECT. The reference shows a knight — the profile must capture how it's drawn (pixel-art, 3-tone cel, top-left light, selout outline), never "a knight." Bake the medium and treatment into prompt_suffix; leave the what to each later brief. Overfitting the subject into the profile is the #1 failure of this skill.
  3. Mark confidence; don't fake certainty. Some fields are measurable (palette, contrast, aspect); some are a judgment call (hue-shift, shading model, stylization). Record a confidence per group and confirm the low-confidence ones with the user before writing — a senior stylist says "I read this as cel-shaded, ~70% sure," not a flat assertion.
  4. One reference → one profile version. Extracting from a new reference bumps the id (e.g. ref-hero-v1). Don't silently overwrite an existing docs/assets/style/style-profile.yaml/<id>.yaml from a different source — show before→after and confirm, exactly like [asset-canon] RESTYLE.
  5. Stay backward-compatible. The profile you write must still satisfy the canonical shape in [asset-canon] STYLE PROFILE: palette is a flat hex list (required), prompt_suffix and id required. All the richer analysis (swatches, ramps, color, fx, confidence, source_ref, medium) goes in the optional blocks so the validator and every existing reader still work.

1. INGEST — get the reference on disk

Installs
1
GitHub Stars
8
First Seen
Jun 28, 2026