new-style
Creates a new animation style in drawn-by-code (code kit + template + skill + style test). Use it when the user asks for a look no style in styles/ covers (e.g. kinetic typography, flat/product motion
Файлы1
Открыть в GitHubSKILL.md.claude/skills/new-style/SKILL.md
GitHubNew style
A style is three things kept together:
styles/<style>/
<kit>.js reusable drawing helpers (a global with its own name, e.g. Kinetic)
template.js a minimal working scene: engine/new.mjs copies it
.claude/skills/style-<style>/SKILL.md
Steps
- Define the look in words with the user, and with 2–3 references if they have
them: palette (with hex), typeface(s), kind of motion (elastic, mechanical, organic),
texture (clean, grain, paper), camera, what is forbidden. If they bring a video,
extract a contact sheet with
ffmpeg -i ref.mp4 -vf "fps=1,scale=480:-1,tile=4x3" -frames:v 1 sheet.jpgand look at it. - Fonts: only freely licensed (OFL), in
fonts/together with their license. - Kit: start small, with what the test needs. Follow the engine rules
(determinism, caching). If something is useful for every style, it goes in
engine/core.js. - template.js: 3–4 s showing the style in miniature: background, one piece entering
with its characteristic motion, a text. It must pass
review.mjswithout warnings. - Skill: copy the structure below. The Rules and the Checklist are what make two videos in the same style look like they come from the same hand.
- Style test in
sandbox/withengine/new.mjs … --style <style>, the review loop and the user's approval. Until then, the style is in testing (say so in the skill's description). - Add the style to the README cover's carousel: one line in
STYLESinsandbox/2026-09-24-readme-cover/scene.js(label, folder, the second of its template to show, its kits), then re-render the cover (see that folder's review.md). Add the style to the table inREADME.md, and give its folder aREADME.mdand astrip.jpg(engine/strip.mjson the style test's render; copy another style's README).
Skill template
---
name: style-<style>
description: <Name> style: <how it looks in one sentence>. Use it when asked for <kinds of video / keywords> or when working with styles/<style>/.
---
# Style · <Name>
Approved reference: sandbox/<experiment>/ (review/sheet.jpg)
## Code
<what the kit offers and how to use it>
## Style rules
<palette, typography, motion, camera, texture, forbidden>
## Style checklist
- [ ] …
## Lessons