agentleFS
vargHQvargHQ/sdk/.claude/skills/varg-video-generation/SKILL.md

varg-video-generation

Skill341 starsChanged 11 months agoApache-2.0View on GitHub

Generate AI videos using varg SDK React engine. Use when creating videos, animations, talking characters, slideshows, or social media content. Always run onboarding first to check API keys.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before generating videos, ensure the user has the required API keys configured.

    line 24
  2. Distinctive:

    Run this command to check existing configuration:

    line 28
  3. Very specific:

    If user doesn't have FAL_KEY:

    line 45
  4. Very specific:

    Add to .env file in project root

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Video Generation with varg React Engine

Overview

This rule helps you generate AI videos using the varg SDK's React engine. It provides:

  • Declarative JSX syntax for video composition
  • Automatic caching (same props = instant cache hit)
  • Parallel generation where possible
  • Support for images, video, music, voice, and captions

Step 1: Onboarding (REQUIRED for new users)

Before generating videos, ensure the user has the required API keys configured.

Check Current Setup

Run this command to check existing configuration:

cat .env 2>/dev/null | grep -E "^(FAL_KEY|ELEVENLABS_API_KEY|REPLICATE_API_TOKEN|GROQ_API_KEY)=" || echo "No API keys found in .env"

Required: FAL_KEY

This is the minimum requirement for video generation.

DetailValue
ProviderFal.ai
Get ithttps://fal.ai/dashboard/keys
Free tierYes (limited credits)
Used forImage generation (Flux), Video generation (Wan 2.5, Kling)

If user doesn't have FAL_KEY:

  1. Direct them to https://fal.ai/dashboard/keys
  2. They need to create an account and generate an API key
  3. Add to .env file in project root

Optional Keys (warn if missing, but continue)

FeatureRequired KeyProviderGet It
Music generationELEVENLABS_API_KEYElevenLabshttps://elevenlabs.io/app/settings/api-keys
Voice/SpeechELEVENLABS_API_KEYElevenLabshttps://elevenlabs.io/app/settings/api-keys
LipsyncREPLICATE_API_TOKENReplicatehttps://replicate.com/account/api-tokens
TranscriptionGROQ_API_KEYGroqhttps://console.groq.com/keys

When keys are missing, inform user what features are unavailable.

Step 2: Running Videos

bunx vargai render video.tsx

Key Components

ComponentPurposeRequired Key
<Render>Root container-
<Clip>Sequential segment-
<Image>AI imageFAL
<Video>AI videoFAL
<Music>Background musicElevenLabs
<Speech>Text-to-speechElevenLabs

Common Patterns

Character Consistency

const character = Image({ prompt: "blue robot" });
// Reuse same reference for consistent appearance
<Video prompt={{ text: "waving", images: [character] }} />
<Video prompt={{ text: "dancing", images: [character] }} />

Transitions

<Clip transition={{ name: "fade", duration: 0.5 }}>
// Options: fade, crossfade, wipeleft, cube, slideup, etc.

Aspect Ratios

  • 9:16 - TikTok, Reels, Shorts (vertical)
  • 16:9 - YouTube (horizontal)
  • 1:1 - Instagram (square)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.