Communitygithub.com

neon-video

Use when asked to make a video, animation, animated explainer, motion graphic, lyric video, title sequence or slideshow in code (HTML, Canvas, SVG, CSS, GSAP, Remotion, FFmpeg), or to plan a generated video with Veo or another video model, even a 10-second one.

What is neon-video?

neon-video is a Gemini CLI agent skill that use when asked to make a video, animation, animated explainer, motion graphic, lyric video, title sequence or slideshow in code (HTML, Canvas, SVG, CSS, GSAP, Remotion, FFmpeg), or to plan a generated video with Veo or another video model, even a 10-second one.

Works with~Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/Students-of-Local/gemini-neon/tree/HEAD/skills/neon-video

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Video with Gemini Neon

Neon builds handsome scenes and then fills them with small text nobody can read while it moves. A video is read once, at the speed it plays, often on a phone. Every rule below serves that reader.

1. Plan before code

Write the plan first and show it in your answer:

  1. One sentence: what the viewer knows or feels at the end.
  2. Beats: one idea per beat, each at least 3 seconds (a 20-second video has at most 6). Cover every step the topic needs and open with a short title beat. Group steps only when there are more than fit.
  3. Per beat: time range, the one headline, at most one supporting line, the visual that carries the idea, and how it enters.

2. Legibility rules (1920 by 1080)

These are the numbers that decide whether the video works. Neon breaks them when left alone.

ElementMinimum
Headline88px (title beat 120px)
Supporting line, labels, numbers in a diagram36px
Anything at all on screen28px
Words on screen at one time20
Time a line stays fully visiblewords / 3 + 1 seconds
  • Scale the numbers with the canvas: at 1080 by 1920 (vertical) use the same pixel sizes; at 1280 by 720 multiply by 0.67.
  • No paragraphs, no card with a title plus a description plus a tag. One line of text beside a picture beats three cards.
  • Text sits on a flat area with 4.5:1 contrast, never on top of moving shapes.
  • Keep 96px clear at every edge. Players and phones crop.
  • Fill the stage. The picture that carries each beat spans at least half the stage's width or height; no beat is a small box floating in empty space. Make it rich: drawn objects with real detail (a dome with columns, a document with a seal), not gray placeholder lines.
  • No em or en dashes and no emoji in on-screen text.
  • A progress bar or step tracker is fine if its labels are 28px or larger; otherwise use numbers only, or leave it out.

3. Motion rules

  • Entrances 400 to 700 ms with ease-out (cubic-bezier(.2,.8,.2,1)); exits 250 to 400 ms with ease-in. Never linear, except for a progress bar.
  • No empty frames. Overlap each transition: the next beat starts entering before the last one has fully left, or the background and frame stay put while only the content changes. Sample every 0.25 s across each transition and confirm text or a picture is always on screen.
  • Stagger items in a group by 80 to 150 ms. Move things 24 to 60px, not across the screen.
  • Only one thing moves while the viewer reads. Idle loops (floating, pulsing, particles) stop or slow to near zero during reading time.
  • Each beat ends on a still frame held at least 1 second before the next transition. The last beat holds 2 seconds.
  • Animate meaning: a vote counter fills, a document moves from one desk to the next, a stamp lands. Decoration that moves teaches nothing.

4. Build: one clock, seekable

Drive the whole video from one time value so it plays the same every time and can be rendered frame by frame:

const DUR = 20;                       // seconds
let t0 = performance.now();
function render(t) { /* set every element's style from t alone */ }
function frame(now) { const t = Math.min((now - t0) / 1000, DUR); render(t); if (t < DUR) requestAnimationFrame(frame); }
window.seek = (t) => { render(t); };  // lets a recorder capture any instant
const q = new URLSearchParams(location.search).get('t');
q ? render(+q) : requestAnimationFrame(frame);
  • render(t) computes positions and opacity from t with small easing helpers. Avoid CSS animations and setTimeout chains: they drift and can't be seeked.
  • Fix the stage at 1920 by 1080 and scale it to the window with one transform: scale() so every pixel size above stays true.
  • One file, no network: inline SVG for art, system fonts or one embedded font.
  • Remotion: same rules; use useCurrentFrame() and interpolate() with extrapolateRight: 'clamp', fps 30, sizes in the table above.
  • FFmpeg captions: fontsize 48 or more at 1080p, borderw=3, bottom margin 96.

5. Generated video (Veo and other models)

  1. A numbered shot list first: length, shot size and camera, one action, light, sound. Use only clip lengths the model offers, and make the shots add up to the length asked for.
  2. For a historical, scientific or technical subject, add an accuracy table before the prompts: detail, choice, why (with the dated fact behind it, such as the edict, the year a symbol came into use, the period's armor). Every choice in the table then appears in the prompts.
  3. A continuity line for each recurring person, place and light ("a gray-haired man in a brown canvas jacket, left hand bandaged"), pasted word for word into every shot that shows them.
  4. Vary shot size between cuts (wide, medium, close). One action per shot.
  5. Describe what is in frame in plain sentences; no quality words ("cinematic", "8k", "epic"). Name the light source and the palette.
  6. No text inside generated video. Add titles in an edit.
  7. Put each shot's prompt in its own code block so it copies cleanly. The prompts carry the detail; keep table cells under 15 words and the whole answer under 1,400 words.
  8. End with what to check in each take (hands, faces, continuity, anachronisms, stray lettering), and say plainly that you have not seen the results until the user shares them.

6. Check before you return it

If you can run code, render frames at the start, middle and end of each beat (?t= makes this exact) and look at them. If you can't, read your own source for these:

  1. Search the file for font-size: no value under 28px on the 1920 stage.
  2. Count the words visible in each beat: 20 or fewer.
  3. Every line stays fully visible for words / 3 + 1 seconds.
  4. No em dash (U+2014), en dash (U+2013) or emoji in visible text.
  5. The video plays from t = 0 to the end with no console errors and ends on a held frame.
  6. Every fact on screen is right (dates, counts, names, the order of steps).

Say in your answer which checks you ran and which you could only read for.

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

Related Skills