aradotso/trending-skills/happy-horse-video-generator
Claude Code and agent skill by aradotso/trending-skills
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install aradotso/trending-skills/happy-horse-video-generatorSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as aradotso/trending-skills/happy-horse-video-generator.
Clone the official repo once released
git clone https://github.com/<official-org>/happy-horse-1.0 cd happy-horse-1.0
Create isolated environment
python -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate
Install dependencies (anticipated)
pip install -r requirements.txt
Download model weights (anticipated — likely via huggingface_hub)
pip install huggingface_hub python -c " from huggingface_hub import snapshot_download snapshot_download( repo_id='<official-org>/happy-horse-1.0', local_dir='./weights/happy-horse-1.0' ) "
Set before running inference
export HF_TOKEN=your_huggingface_token # if weights are gated export HAPPY_HORSE_MODEL_PATH=./weights/happy-horse-1.0 export CUDA_VISIBLE_DEVICES=0 # target GPU index
Anticipated multi-GPU launch
torchrun --nproc_per_node=4 generate.py \ --model_path $HAPPY_HORSE_MODEL_PATH \ --prompt "A galloping horse across open plains at sunset" \ --resolution 1080p \ --steps 8
Text-to-video (distilled, 8 steps, no CFG)
python generate.py \ --task t2v \ --model_path $HAPPY_HORSE_MODEL_PATH \ --prompt "A horse galloping through a misty forest, hooves thundering on wet earth" \ --resolution 1080p \ --duration 5 \ --steps 8 \ --output ./output/horse_forest.mp4
Image-to-video
python generate.py \ --task i2v \ --model_path $HAPPY_HORSE_MODEL_PATH \ --image ./reference.png \ --prompt "The horse rears up and gallops away into the distance" \ --resolution 1080p \ --duration 5 \ --steps 8 \ --output ./output/horse_i2v.mp4
Base model (50 steps, CFG — higher quality, slower)
python generate.py \ --task t2v \ --model_path $HAPPY_HORSE_MODEL_PATH \ --variant base \ --prompt "..." \ --resolution 1080p \ --steps 50 \ --cfg_scale 7.5 \ --output ./output/horse_base.mp4
import os import torch from happy_horse import HappyHorsePipeline # module name TBC at release
def generate_video_from_text( prompt: str, output_path: str, resolution: str = "1080p", duration_sec: int = 5, steps: int = 8, seed: int = 42, ) -> str: """ Generate a video (with native audio) from a text prompt. Uses the distilled 8-step model by default. """ model_path = os.environ["HAPPY_HORSE_MODEL_PATH"]
pipe = HappyHorsePipeline.from_pretrained( model_path, torch_dtype=torch.bfloat16, variant="distilled", # or "base" for full 50-step model ) pipe = pipe.to("cuda")
result = pipe( prompt=prompt, resolution=resolution, duration=duration_sec, num_inference_steps=steps, guidance_scale=1.0, # CFG not required for distilled model generator=torch.Generator("cuda").manual_seed(seed), )
result.save(output_path) print(f"Saved video to {output_path}") return output_path
if __name__ == "__main__": generate_video_from_text( prompt="A joyful horse running along a beach, waves crashing, seagulls calling", output_path="./output/beach_horse.mp4", )
import os import torch from PIL import Image from happy_horse import HappyHorsePipeline
def generate_video_from_image( image_path: str, prompt: str, output_path: str, resolution: str = "1080p", duration_sec: int = 5, steps: int = 8, seed: int = 42, ) -> str: """ Animate a reference image into video with native audio. """ model_path = os.environ["HAPPY_HORSE_MODEL_PATH"]
pipe = HappyHorsePipeline.from_pretrained( model_path, torch_dtype=torch.bfloat16, variant="distilled", ) pipe = pipe.to("cuda")
reference_image = Image.open(image_path).convert("RGB")
result = pipe( image=reference_image, prompt=prompt, resolution=resolution, duration=duration_sec, num_inference_steps=steps, guidance_scale=1.0, generator=torch.Generator("cuda").manual_seed(seed), )
result.save(output_path) return output_path
if __name__ == "__main__": generate_video_from_image( image_path="./horse_portrait.png", prompt="The horse turns its head, snorts, and trots away", output_path="./output/horse_portrait_anim.mp4", )
import os from happy_horse import HappyHorsePipeline import torch
def generate_and_split_av( prompt: str, video_output: str = "./output/video_only.mp4", audio_output: str = "./output/audio_only.wav", ) -> tuple[str, str]: """ Generate joint audio-video and export video and audio as separate files. Useful when you need the audio track independently (e.g. for further processing). """ model_path = os.environ["HAPPY_HORSE_MODEL_PATH"]
pipe = HappyHorsePipeline.from_pretrained( model_path, torch_dtype=torch.bfloat16, variant="distilled", ) pipe = pipe.to("cuda")
result = pipe( prompt=prompt, resolution="1080p", duration=5, num_inference_steps=8, )
# Anticipated API — mirrors common video model output patterns result.export_video(video_output, include_audio=False) result.export_audio(audio_output)
print(f"Video: {video_output}") print(f"Audio: {audio_output}") return video_output, audio_output
import os import torch from happy_horse import HappyHorsePipeline from pathlib import Path
def batch_generate( prompts: list[str], output_dir: str = "./output/batch", resolution: str = "720p", steps: int = 8, ) -> list[str]: """ Generate multiple videos sequentially, reusing the loaded pipeline. """ model_path = os.environ["HAPPY_HORSE_MODEL_PATH"] Path(output_dir).mkdir(parents=True, exist_ok=True)
pipe = HappyHorsePipeline.from_pretrained( model_path, torch_dtype=torch.bfloat16, variant="distilled", ) pipe = pipe.to("cuda")
outputs = [] for i, prompt in enumerate(prompts): out_path = f"{output_dir}/video_{i:04d}.mp4" result = pipe( prompt=prompt, resolution=resolution, duration=5, num_inference_steps=steps, guidance_scale=1.0, generator=torch.Generator("cuda").manual_seed(i), ) result.save(out_path) outputs.append(out_path) print(f"[{i+1}/{len(prompts)}] Saved: {out_path}")
return outputs
if __name__ == "__main__": prompts = [ "A horse grazing in a sunlit meadow, birds singing", "Two horses racing on a dirt track, crowd cheering", "A foal taking its first steps in a barn, soft whinnying", ] batch_generate(prompts)
configs/happy_horse_1.0.yaml
model: name: happy-horse-1.0 variant: distilled # "distilled" (8-step) or "base" (50-step) dtype: bfloat16 num_layers: 40 num_shared_layers: 32 # middle layers with shared parameters num_heads: 32 hidden_dim: 4096
inference: steps: 8 # 8 for distilled, 50 for base guidance_scale: 1.0 # 1.0 = no CFG (distilled); 7.5 for base resolution: "1080p" duration: 5 # seconds aspect_ratio: "16:9" # or "9:16", "1:1"
audio: enabled: true sample_rate: 44100 languages: ["en", "zh", "ja", "ko", "de", "fr"]
runtime: compiler: magicompiler # full-graph compilation operator_fusion: true devices: [0] # GPU indices
import yaml from happy_horse import HappyHorsePipeline
with open("configs/happy_horse_1.0.yaml") as f: config = yaml.safe_load(f)
pipe = HappyHorsePipeline.from_config(config) pipe = pipe.to("cuda")
import os import torch from happy_horse import HappyHorsePipeline
def generate_lipsync_video( speaker_image: str, dialogue_text: str, language: str = "en", # "en", "zh", "ja", "ko", "de", "fr" output_path: str = "./output/lipsync.mp4", ) -> str: """ Generate a talking-head video with native lip-sync. Happy Horse produces audio and lip movement jointly — no separate TTS or sync model needed. """ assert language in ("en", "zh", "ja", "ko", "de", "fr"), ( f"Unsupported language: {language}. " "Happy Horse 1.0 natively supports: en, zh, ja, ko, de, fr" )
model_path = os.environ["HAPPY_HORSE_MODEL_PATH"] from PIL import Image
pipe = HappyHorsePipeline.from_pretrained( model_path, torch_dtype=torch.bfloat16, variant="distilled", ) pipe = pipe.to("cuda")
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/happy-horse-video-generator/SKILL.md
Popularity
- Repository stars
- 29
- Repository forks
- 6
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aradotso/trending-skills/happy-horse-video-generator)