Install
openclaw skills install @zhuyinzhuyin/sth-video-genGenerate vertical 9:16 videos for Sing The Hook song templates using a two-stage pipeline with MCP, trimming, uploading to GCS, and database updates.
openclaw skills install @zhuyinzhuyin/sth-video-genGenerate videos for Sing The Hook (STH) song templates using a two-stage video generation pipeline.
This skill processes song template IDs from a CSV file, fetches data from PostgreSQL, generates videos via Imagine MCP, and updates the database with results. All videos are generated in 9:16 (vertical) aspect ratio by default.
This skill requires the following environment variables to be set in your OpenClaw environment:
| Variable | Description | Default |
|---|---|---|
STH_DB_HOST | PostgreSQL Host | localhost |
STH_DB_PORT | PostgreSQL Port | 5432 |
STH_DB_NAME | PostgreSQL Database Name | sth_db |
STH_DB_USER | PostgreSQL Username | postgres |
STH_DB_PASSWORD | PostgreSQL Password | (Required) |
STH_MCP_ENDPOINT | Imagine MCP API Endpoint | (Required) |
STH_MCP_API_KEY | Imagine MCP API Key | (Required) |
STH_GCS_KEY_PATH | Path to GCS Service Account JSON key | (Required for uploads) |
STH_NOTIFY_TARGET | Telegram ID for notifications | (Optional) |
Read the CSV file provided by the user. Expected columns:
Song Template ID - The template ID to processStatus - Current status (will be updated)ffprobe.create-video (Stage 1).song_templates table.When the user asks to generate video templates for STH:
python3 sth_video_generator.py <csv_file>
Install required Python packages:
pip3 install google-cloud-storage
Requires ffmpeg and psql to be installed on the host system.