Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

illustration-extract-template

БесплатноЗапускает вложенные скриптыНе проверен

Extract a style prompt from a reference picture, show the user pictures made from it, revise until they approve, then save it as their template. Use when a…

okou-aiот okou-ai★ 81 звезда на GitHub

Об этом скилле

Extract a reusable style from a reference picture

Input: images of one style, or a brief when no reference exists. Output: the user's own style, saved once they have seen what it makes and said it is right.

No extraction is complete. Measurement settles canvas, ground, palette, stroke, coverage and placement. Medium, drawing and subject convention are read by eye and are partly wrong on the first pass. The user closes that gap by looking at pictures, so the path is: extract, show, revise, save.

Choose among your own candidates without asking — the gate ranks them. Stop before saving, always: never save a prompt the user has not seen pictures from.

Run every command below from extract-template/illustration/.

Before anything — a style, or this one picture?

A style makes new pictures: another subject, another scene, the same look. A picture is one arrangement the user wants back.

For one picture, write the prompt that recreates it and stop. Continue here only for a style.

Prerequisites

python3 -c "import pymupdf"     # else: pip install pymupdf

Steps

1. Collect the references

Download every [Web file] with okou web download-file.

The scripts read PNG, JPEG, TIFF, BMP, GIF, JPEG 2000 and Netpbm. They do not read WebP, AVIF, HEIC or ICO — the formats a phone or a web page hands over. Convert those before step 2, and keep the original:

ffmpeg -loglevel error -y -i <ref.webp> <ref.png>

Ask for what is missing, and nothing else:

  • intended use — blog cover, product card, marketing poster, in-app spot illustration. It decides the canvas and the frame.
  • a slug — kebab-case, the name the saved style is called by. Propose two or three from the reference if the user has none.

With no reference at all, write the frame from the brief and go to step 4. Steps 2 and 3 need pixels.

Three or more references separate a locked axis from a dial. With one, ask for more; if none arrive, record in design-system.md which axes stay unsettled and give them no range.

Ask for files at least 400px on the short side. Below that the palette fills with anti-alias blends and the stroke is one pixel wide, so colour and line describe the downscaling.

2. Measure

python3 scripts/measure_style.py <ref> [<ref> ...] --json style.json

Take these numbers over your own reading of the image. The verdict column decides where each axis goes:

Verdict Where it goes
CONSTANT the locked frame, as a value
RANGE the locked frame, as a range
VARIES a dial

The shared-colour line is the locked palette; every other colour is a palette dial.

3. Read what the numbers cannot reach

Keep two records apart:

  • content — subject, action, props, setting, placement;
  • style — how it is drawn, carrying no content noun.

Then delete every subject, object, place and name from the style record. What remains must still describe a way of drawing; move anything else back to content.

Write every style line as a drawing instruction that names the near miss it excludes. A line that only names the family collapses into the nearest common style — flat vector, cel anime, stock watercolour — whatever the reference actually was.

Instead of Write
flat gouache shapes paint varies in value inside every shape, never a flat digital fill
thin dark contour shapes meet at their colour edges, no outline; only the eyes and leaf veins carry a drawn line
botanical motifs each sprig painted with its own texture and veins, not a single-colour silhouette
soft watercolour wet washes that bloom and granulate; almost nothing in the picture is a flat area
closed eyes heavy lids as grey-shadowed lens shapes under one fine dark line

State the style under these heads, from the references only:

Head State
Medium painted, inked, vector, 3D, collage, print, photographic, mixed
Line the measurement's contour verdict first, then closed or open, uniform or tapered, cap shape
Shape rounded or angular, geometric or organic, how forms simplify
Value flat fill, cel steps and how many, gradient modelling, hatching, wash
Colour what the lead, support and accent each do
Texture brush, grain, paper, halftone, noise — and where it sits
Detail which areas carry detail, which stay plain
Light direction, rim, glow, haze, or no light description at all
Composition crop, weight, repeated shapes, the rhythm every reference keeps
Frame how the art meets the canvas: edge to edge, a vignette, or a visible margin — and how wide
Finish grade, bloom, chromatic shift, fade, print registration
Subject convention face treatment, cast, count, scale, what the subject does

Then name the dials — what changes from piece to piece. Three to seven. These carry across styles:

Dial What it varies
Palette a hex set, or a named palette family
Полный SKILL.md на GitHub

Установить illustration-extract-template в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/check_piece.pyscripts/compose.pyscripts/measure_style.py

FAQ

Что делает скилл illustration-extract-template?

Extract a style prompt from a reference picture, show the user pictures made from it, revise until they approve, then save it as their template. Use when a user uploads an image style to reuse, asks to extract a prompt from a picture, wants their own image template, asks to train, forge or lock a new illustration style, or asks for more images in the style of a picture they supplied.

Как установить скилл illustration-extract-template?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл illustration-extract-template запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить illustration-extract-template с