How to Add the Video Captions Skill to Your AI Agent
How to add Video Captions to your agent
Pick the way that suits you. Each takes about two minutes.
Save SKILL.md into your agent's skills
- Download the skill
Claude Code, and other agents that read Agent Skills, load it from this folder when they start.
mkdir -p ~/.claude/skills/video-captions curl -fsSL https://spiral.ai/skills/video-captions/SKILL.md -o ~/.claude/skills/video-captions/SKILL.md
- Connect Spiral
The skill runs its tools through Spiral. Send your agent this message once to set it up.
set up https://spiral.ai/SKILL.md
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
- Read the skill
Built-in skills are on for every organization: the CLI prints this one with all its files.
spiral agent-skills get video-captions --json
Read it from the Spiral API
- Create an API key
In the console, under API keys.
- Fetch the skill
The answer holds SKILL.md and every other file of the skill, in path order.
curl https://api.spiral.ai/v1/skills/video-captions \ -H "Authorization: Bearer $SPIRAL_API_KEY"
Then ask your agent for the task: it loads Video Captions when a request matches the skill's description.
When to use (description)
Use when the inferred intent is to add on-screen captions or subtitles to a video — the spoken words shown on the picture. Structural signal: a video clip is in scope AND the user wants the words displayed. Phrasing varies ("add subtitles", "caption this", "burn in captions", "put the words on screen", "make it accessible", "add TikTok-style captions", "subtitle this in Spanish"). The PRIMARY path is the one-step VEED subtitler (transcribe + styled render in a single call); this skill is the decision tree for picking it vs falling back to a word-timing flow (word-level timestamps from a transcription tool) plus a custom HTML caption composition when VEED can't satisfy the request — custom/karaoke styling, audio-only input, a word-timed-data deliverable, or VEED erroring/rejecting the source. Delegates tool picks to model-recommendations.
Instructions
Video Captions
Two paths put captions on a video:
- Primary (default): the one-step subtitler. Transcribes the clip and renders styled subtitles into it in a single call — finished captioned video out. No separate transcription or burn-in step.
- Fallback: word-timing + custom caption composition. Get word-level caption timing, then render the captions as a custom composition with HTML Video Renderer (hyperframes-video Skill). More steps, but it handles what the one-step path can't.
Always try the primary path first. Only fall back when one of the explicit triggers below applies.
Primary path — the one-step subtitler
Run VEED Subtitles (VEED Subtitles; model-recommendations, "Captions / subtitles on a video (default)"). Read its input schema to confirm exact field names and accepted values before you run it.
Options — what's available and when to pick
| Choice | When to pick |
|---|---|
| Style preset | Clean / minimal for corporate, explainer, or talking-head; bold / animated for social and TikTok energy; handwritten / stylized for casual creator content. Pick by the look the user describes. Richer animated presets cost more. |
| Position | Bottom by default; top when the platform has a bottom UI bar (e.g. TikTok) that would cover captions; center for emphasis. |
| Per-word styling | When the user wants active-word emphasis — a base look plus a highlighted-word colour/font/weight. |
| Language hint | Set the spoken/source language to improve transcription accuracy; leave on auto-detect otherwise. Translation is a separate target-language control found in its input schema. |
| Existing SRT | If the user already has an SRT (or you produced one), feed it in to skip transcription and just style + burn it. |
Cost scales with preset richness, resolution, and duration — estimate the cost for long or high-res clips.
Let the user choose the style — don't guess the preset. Ask the user to choose from the presets the subtitler's input schema lists, animated (dynamic) and static (basic), showing previews when you can. Pass the chosen preset in the field its input schema names. Skip the question only when the user already named a specific style or gave custom-style instructions.
Fallback path — when the one-step subtitler won't do
Switch to the word-timing flow when any of these is true:
- The primary path errors, times out, or rejects the source. It has no built-in provider fallback (task retries are bounded) — if it fails, you must route here yourself rather than giving up.
- The input is audio-only — there is no video to render captions onto.
- The deliverable is the word-timed caption DATA itself (e.g. an SRT/JSON to hand off), not a finished video.
- Styling goes beyond the available presets — karaoke active-word highlighting, a bespoke custom caption animation, or exact brand styling the presets can't match.
How to run the fallback
- Get word-level timings from a transcription tool with word timestamps, normalised to
{ text, start, end }per word in milliseconds, as the hyperframes-video Skill'scaptions.md, "Getting word timing", describes (a dedicated word-caption tool works too). See model-recommendations, "Word-level caption timing", for context. - Burn in / render the captions with an HTML composition: load the hyperframes-video Skill and follow its "Word-timed captions" section for the TikTok-style word-highlighting recipe. Its styling is composition-side and differs from the one-step subtitler's presets.
- Don't stop at step 1: the transcription returns timing data only, and the composition produces the finished video.
A transcript with only sentence- or segment-level timing is not enough: the renderer needs per-word timing in its normalised millisecond contract, so check the output shape and convert units before composing.
Pipeline notes
- If you're captioning a clip that came from the long-video clipping tool (long-video-clips Skill) with its subtitle toggle already ON, the words are already baked in — only re-caption when the user wants a _different_ style.
- For translated subtitles, keep the source spoken language distinct from the target subtitle language. Read its input schema for the exact source/translation fields; set the target only when translation is requested. Existing SRT can also be translated; provide its source language when known.
What this skill does NOT cover
- A plain transcript with no on-screen captions → model-recommendations, "Transcription".
- Translating or re-voicing the audio → the voice / dubbing entries in model-recommendations.
More skills
Use when producing a narrative video about historical figures, fictional stories, day-in-the-life pieces, educational explainers with a protagonist, brand mascot stories, and any narrative video that depends on a consistent main character across scenes. Methodology for producing multi-scene character-driven short films: covers the full 11-phase pipeline — creative brief, style reference, character sheet, scene stills, animation, voiceover, per-clip audio mix, stitching, music with proper fade technique, optional subtitles, and optional Fin card — plus approval gates, parallelization strategy, asset naming, and the prompting principles that hold across video models. Tool and model selection is delegated to model-recommendations.
Use whenever the inferred intent is a continuous tracking shot or a long single-take video built from chained clips, including character-following journeys ("the character walks from room to room", "follow the figure across the city"), or an AI transition between two known frames (a first-to-last-frame clip from a start image to an end image, seamless loops from one image, chains of transitions A→B→C). Frame chaining: extract last frame → feed as next input → repeat → stitch. Covers workflow modes (all-at-once vs step-by-step), prompting rules, aspect ratio discipline, last-frame quality control, stitching, character continuity (original reference on every clip through reference-to-video, the handoff frame as an extra reference only, locked character description string, locomotion-through-space rule, the rear-facing danger, corrective stills), the morphing problem and visual bridges, and prompting cheat sheets for style/audio/camera.
Use when the user explicitly asks for Gemini Omni, Omni Flash or Google's Omni video model: text-to-video, image-to-video, reference-to-video or editing a short video with Gemini Omni. Covers finding the tools, duration format, edit-video preparation, prompt structure, media role tags, audio behavior, text rendering, timing, and how to prepare source media.
Use when a HyperFrames composition needs any motion or animation: atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
Questions about Video Captions
What does the Video Captions skill do?
Use when the inferred intent is to add on-screen captions or subtitles to a video — the spoken words shown on the picture. Structural signal: a video clip is in scope AND the user wants the words displayed. Phrasing varies ("add subtitles", "caption this", "burn in captions", "put the words on screen", "make it accessible", "add TikTok-style captions", "subtitle this in Spanish"). The PRIMARY path is the one-step VEED subtitler (transcribe + styled render in a single call); this skill is the decision tree for picking it vs falling back to a word-timing flow (word-level timestamps from a transcription tool) plus a custom HTML caption composition when VEED can't satisfy the request — custom/karaoke styling, audio-only input, a word-timed-data deliverable, or VEED erroring/rejecting the source. Delegates tool picks to model-recommendations.
Which tools does Video Captions use?
It runs HTML Video Renderer, VEED Subtitles through Spiral, each at the price on its tool page.
Does the Video Captions skill cost anything?
The skill is free. The tools it runs are billed pay-as-you-go from your Spiral balance at each tool's stated price, with no plan.
How does my agent know when to use Video Captions?
An agent reads each skill's description and loads its instructions when a request matches it.
How do I add Video Captions to Claude Code?
Save its files into ~/.claude/skills/video-captions/ with the commands on this page; Claude Code loads it when it starts.
Can I use Video Captions in other agents?
Yes. Any agent that reads Agent Skills folders loads the same files, and any other agent reads the skill with `spiral agent-skills get video-captions --json` or the Spiral API.
Is Video Captions on for my Spiral organization?
Yes. Built-in skills are on for every organization; an admin can turn Video Captions off on the console's Skills page.
Where is the Video Captions SKILL.md file?
At https://spiral.ai/skills/video-captions/SKILL.md, with no key needed. On the console's Skills page, Customize saves a copy you can edit as your organization's own skill.