Логотип Javascript Animation

Javascript Animation

Організація
iart-ai
javascript-animation

This skill should be used when the user asks to "draw every frame in JavaScript", "make an animation with no image assets", "animate this in code / on a canvas", "make a hand-drawn style animated video", "turn this into a short animated film", "make an animated explainer drawn in code", "make an animated story / picture book of my photos", or "make a zero-asset animation like the Opus 5.5 ones". Produces a single self-contained HTML file whose frames are computed on an HTML canvas (seekable, deterministic), renders it to MP4, and self-checks the result. Pairs with the soundtrack skill for code-synthesized music. NOT for charts from data (use chart-animation) or 3D/WebGL (use threejs-animation / shader-glsl from webgl-animation-skills); pure text motion and depth drawn by projection on the 2D canvas are in scope.

Огляд

Видавецьiart-ai
Репозиторійjavascript-animation-skills
Назва навичкиjavascript-animation
Зірки
52
Форки
6
Файли в пакеті
9
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 9

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем iart-ai. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Javascript Animation у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/iart-ai/javascript-animation-skills/tree/main/skills/javascript-animation
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/iart-ai/javascript-animation-skills.git /tmp/javascript-animation-skills
mkdir -p .claude/skills
cp -r /tmp/javascript-animation-skills/skills/javascript-animation .claude/skills/javascript-animation
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Javascript Animation в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Javascript Animation, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Javascript Animation не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

JavaScript Animation (every frame drawn in code)

Make short animated films where every pixel is computed: no images, no fonts to load, no libraries. One HTML file holds the whole piece; a headless browser seeks it frame by frame into an MP4.

Model

Built and tested with Claude Opus 5.5; drawing quality depends heavily on the model. The self-check below needs image input: if the current model can't see images, say so to the user and treat visual verification as not done. Other models are untested; if the result looks crude, say that a stronger model is likely to help rather than claim it's the best possible.

Default flow: don't stop to ask

Run straight through. Pick sensible defaults and mention alternatives at delivery. Ask before starting only if there is no subject at all (e.g. "make an animation", nothing else).

  1. Read the brief. Infer the form (story, explainer, poem, loop, interactive page), length (default 15-20 s; longer only when the subject cannot be told in that time) and aspect (default 1920x1080) from what the user said. On-screen text is in the language the user wrote the brief in; make it bilingual only if they ask or the audience clearly is. references/forms.md has a short structure for each form.
  2. Plan the look and sound from the subject and the audience, in your own words: what the film is, how it looks and sounds, and why that fits this subject and this audience. There is no list to fill in; references/techniques.md has ingredients, and the starter's values are placeholders, not a house style. Never reuse the look or sound of a previous piece by default: two different subjects should not come out looking or sounding alike. If the user points at someone else's piece ("like that viral one"), borrow its techniques, never its characters, story or compositions.
  3. Beat grid, storyboard and blocking, as data (references/storyboard.md). Tempo and sections first; then a shot list with a pace that fits the form (pace table in references/storyboard.md; each shot with framing, camera move, action, the beat it lands on, its sound, its transition); then the blocking (for a story or an explainer, the tracks of one continuous world). These go into the page as BPM, SECTIONS, SHOTS, EVENTS: the scenes, camera and soundtrack all read them, so picture and sound line up by construction. For a story or an explainer, check the logic: every beat caused by the one before, the metaphor visible in the picture.
  4. Build from templates/starter.html. It is already storyboard-driven: one world drawn in world coordinates, withCamera per shot, claim() for every piece of text and every key object. Replace the placeholder palette and the demo world. Keep the contract: draw(frame) is a pure function of the frame number. Use rng(seed) / hash2(), never Math.random or Date.
  5. Self-check, then render (next section). Fix and re-check until clean.
  6. Deliver: the MP4 and the HTML (it plays live in a browser; clicking starts the sound). Then, in one or two lines, offer what can change: another look, AI music instead of synthesized, different length.

For music, use the soundtrack skill (default: synthesized in the page with Web Audio, no key needed).

Self-check (the agent does this; the user never sees it)

bash
node scripts/render.mjs piece.html sheet.jpg --sheet 1        # one frame per second, stepping off cuts
node scripts/render.mjs piece.html shot --stills 90,300,610   # specific moments
node scripts/render.mjs piece.html piece.mp4                  # full render (+ soundtrack if the page has one)
node scripts/asset-audit.mjs piece.html                       # proves zero-asset: exit 1 if anything is loaded or embedded
node scripts/layout-check.mjs piece.html                      # text colliding with text, or straddling a claimed object
node ../soundtrack/scripts/sync-check.mjs piece.mp4 --cues-file piece.cues.json   # cuts on the beat, no startle

Then two passes by eye, both in references/qc.md:

  1. Storyboard conformance: a still at the action beat of every shot, read against its row (is the actor where the blocking says, doing what the row says?).
  2. Director pass: the contact sheet at 2 frames per second (--sheet .5), scored for pace against the form, framing variety, dead frames, whether every action has its sound, and whether the look fits the audience. Do at least two rounds. Render stills of the frames you change instead of re-rendering the whole film each time.

Only if triggered

WhenDo
A character appears in more than one sceneBefore the scenes, render the character alone (expressions + poses) and check it yourself against references/character.md. Characters expose anchor points (mouth, hands) so props attach to them.
The user supplied photos of real people, pets or placesBuild the character from the photos with the extraction method in references/character.md. Photos stay local: never upload them or put them in anything published.
It's a real-person piece and the user is presentAt delivery (not before), offer to use photos of key props or people to make it more theirs.
Text or a speech bubble follows a moving characterPlace it with placeFree(w, h, [above, right, left, below]) so it steps aside from anything already claimed.
On-screen text is not Latin (Chinese, Japanese...)Use a CJK font stack; check every glyph renders (monospace fonts silently swap missing glyphs, e.g. ≈ became =).
The page will be published as a web pageDeliver the HTML; keep the live preview loop and the click-to-play audio.

Rules that prevent the common failures

  • Pure function of time. No requestAnimationFrame state, no CSS animations, no accumulated physics: compute each frame from t alone, or the render and the preview disagree.
  • A hand-drawn line boils, it doesn't jitter. When a film sets LOOK.wobble, change the wobble seed every 4 frames (LOOK.boil: 4), not every frame. Every frame reads as noise; ~7.5 changes a second reads as hand-drawn.
  • Rounded forms for bodies. Build figures from ellipses and rounded rectangles. Raw polygons with few points read as signs (a pentagon hand, a box torso).
  • Pick the angle that makes the pose read. A long body with stubby limbs from the side reads as a caterpillar; the same pose from the front (foreshortened) reads as a baby on its tummy.
  • Draw back to front, explicitly. Back hair, then body, then neck, then face, then front hair. Most "something covers the face" bugs are draw order.
  • Hit points on cuts and actions. Every cut and every visible action is in EVENTS/CUES; the soundtrack lands on them (see soundtrack).
  • Text never collides. Claim every text box and key object; layout-check must print CLEAN. A caption overlapping a monitor edge or a face looks careless, and eyes on a contact sheet miss it.

Files

  • templates/starter.html: drawing library (ink, illustration, flat/blueprint primitives, labels, paper, filtered layers), withCamera, claim/placeFree, and a storyboard-driven two-shot skeleton.
  • scripts/render.mjs: MP4 / stills / contact sheet. window.CUES and window.SCORE are optional: on a full render it writes <out>.cues.json and muxes the SCORE soundtrack (no SCORE = silent MP4). Needs an even canvas size.
  • scripts/asset-audit.mjs: static scan + live network check for anything loaded or embedded.
  • scripts/layout-check.mjs: reads window.LAYOUT over the whole film and lists text collisions with their times.
  • references/storyboard.md: beat grid, shot list, blocking, continuity and story logic.
  • references/techniques.md: tested drawing techniques (ink, spot-color print, single-line engraving, words as shapes, marker fills, illustration shapes).
  • references/forms.md: structure notes per form.
  • references/character.md: only when there's a character.
  • references/qc.md: the self-check list.

Requirements: Node 18+, ffmpeg, Chrome (or npx playwright install chromium), and npm i playwright-core in the folder you run the scripts from (your project, not the skill folder).

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Javascript Animation?

This skill should be used when the user asks to "draw every frame in JavaScript", "make an animation with no image assets", "animate this in code / on a canvas", "make a hand-drawn style animated video", "turn this into a short animated film", "make an animated explainer drawn in code", "make an animated story / picture book of my photos", or "make a zero-asset animation like the Opus 5.5 ones". Produces a single self-contained HTML file whose frames are computed on an HTML canvas (seekable, deterministic), renders it to MP4, and self-checks the result. Pairs with the soundtrack skill for c...

Навіщо використовувати Javascript Animation у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Javascript Animation — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Javascript Animation у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/iart-ai/javascript-animation-skills/tree/main/skills/javascript-animation. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Javascript Animation?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Javascript Animation?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Javascript Animation — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Javascript Animation?

Так. Навичку опубліковано на GitHub: iart-ai, за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇