/refinish-skill:refinishfrom Refinish
Re-finishes an existing character picture or background in another style by code, never by regenerating it: the drawing stays, only the finish changes. 37 styles: TV anime cel and its heavy, bold-ink, film, night, sunset, pastel, 90s variants; a cleaner de-AI finish; duotone, sepia, cyanotype, risograph; watercolour, gouache, thick paint; manga screentone, key drawing, screen print; ink wash, woodblock, pop art, neon, stained glass, paper cut, charcoal, pastel, stickers; pixel sprites; landscapes. Also matches the finish of reference pictures by measurement, tweaks a style from words ('softer shadows'), relights for night or sunset, mixes finishes by part, cuts out figures and composites them into scenes. Use it whenever the user wants a picture in a technique's style, an anime look, a less AI-looking finish, a manga, watercolour, woodblock, pixel or retro version, a night version, consistent sprites or a figure in a scene, even if they only say 'make this look hand-drawn' or 'it looks too AI'.
Ships in Refinish. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Regenerating a picture to change its style also changes the character: another face, another hand, a costume that drifts. This skill keeps the drawing and paints a new finish over it, the way an anime finishing department or a print studio would: flat tones laid where the source drew its shadows, lines re-inked or re-traced, washes, screens, blocks, pixels. Everything is code. The result is the same character, frame for frame, in the new finish.
Status: experimental. Tell the user before you start that results can be wrong. Show them each result at full size, and let them decide before it is used.
Give the user's pictures and your results by full path, outside this skill's folder: an update replaces that folder. Do not name a result after a picture the user wants to keep; a run protects the files it read, not every picture nearby.
What it can and cannot do (tell the user before starting):
Copy this checklist and tick it off. Each step ends on its done-criterion.
python scripts/check_env.py --venv PROJECT/.refinish-venv reports ok. On install, run the argv lists it printed in order (commands holds the same for a person's shell) and use the Python it names (use_python) for every script: they install the tested versions into a separate environment, .refinish-venv in the user's project folder (PROJECT, by full path). The skill's own folder may be read-only, and an update replaces it. On blocked, its note says what to sort out. On untested, the scripts should run: tell the user which versions are outside the tested range.scripts/check_input.py graded the picture; a figure is a cut-out (transparent background), or was cut out of its scene with scripts/cutout.py; below 2000 px tall it was enlarged with scripts/prep.py.scripts/auto_parts.py, with a hints file for the cel, paint and print styles), or scripts/scene_subject.py for a background.scripts/refinish.py ran; its check has no FAIL left unexplained.python scripts/check_input.py PICTURE.png grades a picture for each family of styles and says what to expect:
The thresholds come from references/input-check.md.
A figure on a transparent or plain background is the best source. A character drawn into a scene works too: draw a rough outline round the figure and scripts/cutout.py finds the exact edge by colour. It gives:
Each can be finished on its own; the figure is then put back where it was with scripts/composite.py. Holes for the gaps the outline went round, bands, points, a trimap the person paints, what to change for each symptom, and the limits: references/cutout.md.
If the user is about to generate the picture, the source spec in references/source-spec.md is the best investment: measured on one character, the drawn outline went from 58% to 92% and the shading came out paintable. references/presets.md gives each style's own pre-production advice.
A subject file says what each part of the picture is (skin, hair, each garment) and where the eyes and mouth are. The styles paint each material from its own colour model, so a mislabelled region gets the wrong colour.
Figures: run python scripts/auto_parts.py IMAGE.png subject.json for a draft, then look at its parts sheet (subject.sheet.jpg) and face sheet. For the cel, paint and print styles, write a hints file:
scripts/hints.py pick, which puts each point in the middle of its colour;Then run auto_parts.py --hints again. Two rounds settle most pictures. When they do not, change the approach rather than the points: subject-file.md, "When the parts will not come right", lists what to try.
A head the colours misread (an iris taken for the white or the hair, glasses, hair across the face), or any recolour: when See-Through and SAM 2 are installed, scripts/seethrough_parse.py IMAGE.png parse.png reads the head's parts and splits each eye into iris, white and lashes. Look at every eye on its sheet (parse.eyes.jpg), click the wrong ones, then give --parse parse.png to auto_parts.py beside the hints. Install, licences, the click file and the limits: references/seethrough.md. Without the models, the colours read the head as before.
Backgrounds: python scripts/scene_subject.py IMAGE.png subject.json finds the scene's areas by colour and guesses their kinds (sky, far hills, foliage, ground, ...). A painted background takes deai-light or a scene style, not a cel style: flat tones break its gradients into blotches (presets.md, Scenes).
No parts needed: the de-AI and duotone styles run on the draft as it is.
Everything about subjects and hints, with the measured failure modes, is in references/subject-file.md. The draft is often wrong somewhere, so before finishing, show the person the parts sheet and the face sheet, and tell them one sentence is enough to fix a mistake ("the bow is part of the skirt"). Never ask them for boxes or points: turn the sentence into hints yourself. Check the eye boxes first when the eyes are closed, winking, spirals or '><', or when something is held beside the face: the face finder misses or mistakes these.
references/presets.md lists all 37 styles by family. For each it gives:
Show the user two or three candidates on their own picture rather than describing them.
python scripts/refinish.py subject.json styles/tv-cel.json out.png
--hour night|sunset|dusk|film-night relights a style for another hour; the pixel, sticker and neon styles change the picture's size and refuse it. The script prints JSON:
Each FAIL names a box and a likely cause; references/checks.md says how to fix each one, usually a hint point or a box.
The numbers catch the common mistakes, not all of them. Before showing a result, look at it at full size beside the source, and at the face and the hands at 1:1. Look for blotches in soft areas, a material in another's colour, and lost eye highlights. A patch in another material's colour is almost always the part map: fix the parts there first (a hint point on the patch) and render again, before changing the style. Blotches inside one material come from soft shading in the source instead. A style's limits are in presets.md; say them rather than hiding them.
When something is wrong, change a setting for this picture rather than a script. Change one at a time, a part's rule before the style, and compare before and after. references/adjusting.md gives each common problem's cause and setting:
"deblotch" per part, or "auto_deblotch");Settle a setting for a batch on a few pictures, then check it on ones you did not tune it on.
The finish does not change where a picture came from. A picture generated with an image model is still AI-generated after any style here, the de-AI styles included: they give a cleaner finish and are not tuned against any detector. references/legal-and-disclosure.md covers:
A finish of a prepped picture is at prep's size: python scripts/prep.py out.png final.png --restore source.png --box X0,Y0,X1,Y1 --scale 2 (the box and the scale prep printed) puts it back on the source's canvas.
python scripts/png_note.py out.png "AI-assisted: ..." writes a note into the PNG.
python scripts/tweak_style.py tv-cel my-style.json "softer shadows, more vivid"
It moves each matched word's keys one step (--steps N for more) and names the measured number that should move. Words in English, Chinese and Japanese; --list shows them all. A word that names the design ("bigger eyes") has no entry: the finish cannot change the drawing.
python scripts/fit_style.py subject.json ref1.png ref2.png --out matched.json
It measures the references' finish, starts from the nearest bundled cel style and moves each number more than 10% off toward the references, round by round. It fits the cel finishes only: for a reference in another technique (a watercolour, a print), start from the nearest bundled style of that technique and change it by words (step 7). Tell the user what does not carry over: the design and the scene's light. references/replicating-a-style.md has the manual loop and the table of numbers to parameters.
Three rules hold either way:
python scripts/composite.py scene.json frame.png
It lays re-finished figures over a background with a lens:
--raw gives the plain paste-up to compare with. A depth of field inside one figure is the focus post layer. Details: references/compositing.md.
python scripts/recipe.py recipe.json out.png
A recipe lays finishes over a base, each limited to parts, kinds or areas (the face, the lines) and blended in:
Format, blend modes and examples: references/recipes.md.
python scripts/repair.py image.png repaired.png --subject subject.json
It fixes a source's defects without restyling it: a cut-out's fringe, stray specks, gaps in the line art, colour that ran from one material into the next. Run it before a finish when the source has them, and look at its review picture. Details and limits: references/repairs.md.
A style file is numbers only: shadows, lines, palette, touches, texture, the engine's own section and post layers (relight, paper, grain, halation, soften, curve, focus, and the scene layers). Start from the nearest bundled style and change one section at a time. Format and every key: references/style-format.md.
All print JSON on stdout. Exit code 0 means done; 1 done, with doubts or a check's FAIL to look at; 2 bad input, or a request the script cannot take; 3 an error the script did not expect, which is worth reporting. A result never replaces a file its run read: give it another name.
| script | use |
|---|---|
check_env.py [--venv DIR] [--here] [--share] | step 0: are the packages there, in tested versions; the commands to install them if not; --share for a bug report, with no paths |
cutout.py PICTURE.png OUTLINE.json OUT_DIR [--trimap T.png] | cut a figure out of a picture with a background |
prep.py SRC.png OUT.png [--scale 2] | crop to the figure and enlarge; --restore SRC.png --box B puts a finish back on the source's canvas |
check_input.py PICTURE.png | SUBJECT.json | grade a source |
auto_parts.py IMAGE.png SUBJECT.json [--hints H.json] [--parse P.png] | the subject file for a figure, with its parts sheet |
seethrough_parse.py IMAGE.png PARSE.png [--eyes E.json] | optional: the head's parts and each eye's iris, white and lashes, read by two segmentation models (run with their environment's Python; references/seethrough.md) |
hints.py check | points | pick | check hint points, turn region numbers into points, pick a point in a colour |
scene_subject.py IMAGE.png SUBJECT.json | the subject file for a background |
parts.py SUBJECT.json | rebuild and check a part map |
refinish.py SUBJECT.json STYLE.json OUT.png [--hour H] | re-finish, with the guard and the checks |
check_output.py SUBJECT.json OUT.png [--style S] [--hour H] | check a result again on its own (name its style, and the hour if it had one) |
measure_style.py ... | measure a finish, compare two measurements |
fit_style.py SUBJECT.json REF.png ... --out STYLE.json | fit a style to references |
tweak_style.py STYLE.json OUT.json "words" | change a style by words |
composite.py SCENE.json OUT.png [--raw] | composite and camera |
recipe.py RECIPE.json OUT.png | mix finishes by part and blend mode |
repair.py PICTURE.png OUT.png [--fix ...] [--subject S.json] | repair a source: fringe, specks, line gaps, bleed |
png_note.py OUT.png "text" | a note in the PNG (any language) |
zoom.py PICTURE.png x0,y0,x1,y1 OUT.jpg | an enlarged crop with a pixel grid, to read coordinates |
prep.py --scale 2 first, and pass --upscaled 2 to auto_parts.py.auto_parts.py says so in a doubt; look along that border first.--hour night (a TV night colour model) and --hour film-night (a cinematic night grade) relight the colours. Generate the source in day colours under neutral light.LICENSE (opens in a new tab)agents/openai.yaml (opens in a new tab)assets/icon-large.png (opens in a new tab)assets/icon-small.svg (opens in a new tab)evals/cel-finish-keeps-the-drawing/case.yaml (opens in a new tab)evals/cel-finish-keeps-the-drawing/files/figure.png (opens in a new tab)evals/cel-finish-keeps-the-drawing/graders/01-same-size-and-silhouette.md (opens in a new tab)evals/cel-finish-keeps-the-drawing/graders/02-made-by-code.md (opens in a new tab)evals/cel-finish-keeps-the-drawing/graders/03-flat-cel-tones.md (opens in a new tab)evals/cel-finish-keeps-the-drawing/graders/04-says-what-changed.md (opens in a new tab)evals/cel-finish-keeps-the-drawing/place-files.sh (opens in a new tab)evals/cel-finish-keeps-the-drawing/prompt.md (opens in a new tab)evals/less-ai-look-with-disclosure/case.yaml (opens in a new tab)evals/less-ai-look-with-disclosure/graders/01-same-size-and-silhouette.md (opens in a new tab)evals/less-ai-look-with-disclosure/graders/02-noise-and-glow-gone-colours-kept.md (opens in a new tab)evals/less-ai-look-with-disclosure/graders/03-says-still-ai-and-to-disclose.md (opens in a new tab)evals/less-ai-look-with-disclosure/graders/04-no-detector-claims.md (opens in a new tab)evals/less-ai-look-with-disclosure/place-files.sh (opens in a new tab)evals/less-ai-look-with-disclosure/prompt.md (opens in a new tab)evals/watercolour-street-scene/case.yaml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub owoevan-dev/refinish-skill --plugin refinish-skill2 skills in this plugin