◀Last Second Save
MATH google-gemini/gemini-skills #91 · ★ 4.5kfix(omni-flash): harden video utilities, timecode parsing, and URI normalizationA real, public pull request. See it on GitHub ↗
IN THE WORLD

Fixes video-trimming bugs in Google's official AI coding agent skills

REACH

Built by Google, this repository has 4,493 GitHub stars and 483 forks. Developers install these skills in AI coding tools like Antigravity, Claude Code, Cursor, and Codex.

WHAT IT MEANS

When AI agents prepare videos for Gemini Omni Flash, they now trim the exact requested trailing seconds instead of defaulting to 10 seconds, and avoid crashes on odd file sizes or timecodes.

  • Googlemakes it
RED · how I did it
  • GONE Always subtract 10 seconds from the 30-second video, giving a 20-second start mark.
GREEN · how I do it now
  • NEW Subtract your requested clip length from 30 seconds.
  • NEW If your requested length is 30 seconds or more, start at 0 seconds.

WHERE The video prep script when you ask for the last N seconds of a clip.

SCENE You have a 30-second video and want to trim just the final moments. You pick how many seconds to keep, and the tool calculates where to start cutting.

Requested clip length
How many seconds you want to keep from the end of the video. (5 s to 40 s)
Start time
Where the tool begins cutting in the 30-second video.
Fixed
30-second video, trimming from the end