Learn Style
Build a style pack from a rotoscoped clip work dir: measure traces and drawings into knob values and statistic bands, prove against adversarial controls, and…
от melodic-software★ 34 звезды на GitHub
Установить Learn Style в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Learn style
Turn a rotoscoped clip into a style pack: the numbers that make the style what it is, and a check
that tells whether a new film shares them. The pack holds statistics only; never copy traced
geometry, source frames or the clip into it. Read
reference/statistics.md first: what each statistic measures, how a
band is set, which statistics separate the woodcut style from a filtered near miss and from other
styles, and what the check still cannot separate.
Run each script as python3 ${CLAUDE_PLUGIN_ROOT}/scripts/pydeps.py run --data-dir "${CLAUDE_PLUGIN_DATA}" -- <script> ..., alone as its own Bash call: no cd, no --help run first, and no other command chained to it; this page gives each script's arguments.
Never probe the host Python, numpy or cv2, never run pydeps.py install, and never list, create or read anything under ${CLAUDE_PLUGIN_DATA} yourself: pydeps.py run finds the packages, and when it exits 2 it prints the repair line, which you report (/animation:setup checks the requirements). Input is a
rotoscope work directory (d/dNNN.json traces and src/dNNN.png drawings). The scripts are
${CLAUDE_PLUGIN_ROOT}/skills/learn-style/scripts/learn.py,
${CLAUDE_PLUGIN_ROOT}/skills/learn-style/scripts/controls.py and the shared
${CLAUDE_PLUGIN_ROOT}/scripts/inkstats.py.
Pack format
styles/<name>/ in the plugin, tool-neutral:
| File | Written by | Holds |
|---|---|---|
style.json |
learn.py, then you |
palette (ink, paper, tone ramp), knobs (the seven-knob schema), stats (p10/p50/p90), timing, ref (the source's values), bands, check, measured_only, heldout (how each band was set and how it tested), brush, credit, rotoscope_fits |
STYLE.md |
you | the style in words for a reader: credit, knob table with each value marked measured or judgment and pointing at its style.json key, how to author in it, the validation result |
learn.py measures everything but credit, brush and the movement, camera and
backgrounds knobs, which it keeps from an existing style.json; fill those knobs from viewing
the source and mark them "basis": "judgment". check is learn.py's CHECK, the statistics
shown to separate, less any content-class row the source defines in fewer than two parts;
measured_only lists the subject-sensitive statistics the check prints but never judges. The
numbers live in style.json only; STYLE.md and other docs point at its keys. Read a pack's style.json with the Read tool by absolute path, never with python3 -c, cat, jq or ls in a shell.
Loop
- Controls:
controls.py measure <out> --near <a near-miss film> --other <films in other styles> --source <the clip> --replica <rotoscope work dir>measures a filtered family of the near miss (blur, noise, stripes, dry brush, contour warp), synthetic flat polygons, the other styles, and the same-style positives, alternating the controls between a calibration and an evaluation half. - Learn:
learn.py <work> <pack dir> --cuts <the clip's shot starts> --credit "<who made the source, its URL, date>" --negative <out>/calibration/*.json. Bands come from film-sized excerpts of the source, split by shot, with half the splits held out; the calibration controls cap each band's widening so they keep failing. - Prove the check:
controls.py check <out> <pack dir>must show every control failing (margin above 0) and the source and replica passing, with the evaluation half held out. Thencontrols.py selftest <pack dir> --near <the near-miss film>(the pack argument is required) must exit 0. Put the table inreference/statistics.md. A control that passes goes under "what the check cannot say"; never narrow a band until it fails. - Describe: fill the judgment knobs in
style.jsonand writeSTYLE.md. - Validate: author a scene of at least a third of the source's length (bands are learned from
excerpts that long) on a different subject,
from ink.js and the scene elements, with geometry you write, never traced; pass the pack's
palette.inkas every ink.js call'scolor(the engine'sINKdefault is not the pack's). Render it at the source's size with${CLAUDE_PLUGIN_ROOT}/scripts/render.py <scene.js> <frames dir> --fps <the pack's knobs.frame_rate.base_fps> --encode mp4 --playwright-core '${user_config.playwright_core}'(it serves the scene's folder andscripts/), and runinkstats.py <frames dir>.mp4 --cuts <shot starts> --pack <pack dir>. A produce production passes itsshots.jsonas--cuts. It exits 0 only when every checked row and the palette pass. Each row prints its distance to source (0 is the source value, 1 the band edge on either side); the film's distance ranks passing scenes and its margin names the row nearest failing. - Review: measure each prop with
--region X,Y,W,H --t T0-T1next to source prop boxes, then read every drawing at 1:1 (til
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- reference/statistics.md
- scripts/controls.py
- scripts/learn.py
FAQ
Что делает скилл Learn Style?
Build a style pack from a rotoscoped clip work dir: measure traces and drawings into knob values and statistic bands, prove against adversarial controls, and check scenes. Use when extracting or matching styles: 'learn this style', 'make a style pack', 'does my film match the style'. Not for copying a clip one to one: /animation:rotoscope.
Как установить скилл Learn Style?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Learn Style запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
patterns
AnthropicFind patterns worth sharing from recent PRs and repo history, both repeats to fix and good practices worth spreading. Use when a champion wants to know what…
copilot-cli-quickstart
GitHubUse this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and…
vardoger-analyze
GitHubUse when the user asks to personalize the GitHub Copilot CLI assistant, adapt Copilot to their style, use vardoger, or analyze their Copilot CLI conversation…
policy-lookup
AnthropicFind and explain company policies in plain language. Trigger with "what's our PTO policy", "can I work remotely from another country", "how do expenses work"…