tim-hub/powerball-harness / .claude/skills/generate-video
generate-video
VerifiedGenerates product demo videos and release walkthroughs via Remotion. Use when creating video documentation or animated demos.
src/schemas/video-script.ts
View on GitHub/**
* @file video-script.ts
* @description Auto-generated Zod schema for Video Script Schema
* @version 1.0.0
* @generated This file is auto-generated from schemas/video-script.schema.json
* All $ref references are resolved during generation.
* DO NOT EDIT MANUALLY - run `npm run generate:schemas` instead
*/
import { z } from 'zod';
/**
* Complete video script with metadata, scenes, and output settings
*/
export const VideoScriptSchema = z.object({ "metadata": z.object({ "title": z.string().min(1).max(200).describe("Video title"), "description": z.string().describe("Video description").optional(), "version": z.string().regex(new RegExp("^[0-9]+\\.[0-9]+\\.[0-9]+$")).describe("Script version"), "created_at": z.string().datetime({ offset: true }).describe("ISO 8601 timestamp of script creation"), "updated_at": z.string().datetime({ offset: true }).describe("ISO 8601 timestamp of last update").optional(), "author": z.string().describe("Script author or generator").optional(), "project": z.string().describe("Project name or identifier").optional(), "video_type": z.enum(["lp-teaser","intro-demo","release-notes","architecture","onboarding","custom"]).describe("Type of video").optional(), "tags": z.array(z.string()).describe("Categorization tags").optional(), "scenario_id": z.string().describe("Reference to the scenario this script is based on").optional() }).describe("Metadata about the video script"), "scenes": z.array(z.object({ "scene_id": z.string().regex(new RegExp("^[a-z0-9-]+$")).describe("Unique identifier for the scene"), "section_id": z.string().regex(new RegExp("^[a-z0-9-]+$")).describe("ID of the section this scene belongs to"), "order": z.number().int().gte(0).describe("Order of the scene within its section (0-indexed)"), "type": z.enum(["intro","ui-demo","architecture","code-highlight","changelog","cta","feature-highlight","problem-promise","workflow","objection","custom"]).describe("Type of scene content"), "content": z.object({ "text": z.string().describe("Primary text content for the scene").optional(), "image": z.string().describe("Path to image asset (relative or absolute)").optional(), "duration_ms": z.number().int().gte(100).describe("Duration of the scene in milliseconds"), "title": z.string().describe("Scene title").optional(), "subtitle": z.string().describe("Scene subtitle or tagline").optional(), "url": z.string().url().describe("URL for Playwright capture or external resource").optional(), "actions": z.array(z.object({ "type": z.enum(["click","type","wait","scroll","hover","keypress"]).optional(), "selector": z.string().describe("CSS selector or data-testid").optional(), "value": z.unknown().superRefine((x, ctx) => {
const schemas = [z.string(), z.number()];
const errors = schemas.reduce<z.ZodError[]>(
(errors, schema) =>
((result) =>
result.error ? [...errors, result.error] : errors)(
schema.safeParse(x),
),
[],
);
if (schemas.length - errors.length !== 1) {
ctx.addIssue({
path: ctx.path,
code: "invalid_union",
unionErrors: errors,
message: "Invalid input: Should pass single schema",
});
}
}).describe("Value for type actions or wait duration").optional() })).describe("Playwright actions for UI demo scenes").optional(), "mermaid": z.string().describe("Mermaid diagram definition for architecture scenes").optional(), "code": z.object({ "language": z.string().optional(), "snippet": z.string().optional(), "highlights": z.array(z.number().int()).describe("Line numbers to highlight").optional() }).describe("Code snippet for code-highlight scenes").optional() }).describe("Scene content configuration"), "direction": z.object({ "transition": z.object({ "in": z.enum(["fade","slide_in","zoom","cut"]).default("fade"), "out": z.enum(["fade","slide_in","zoom","cut"]).default("fade"), "duration_ms": z.number().int().gte(0).lte(2000).describe("Transition duration in milliseconds").default(500) }).describe("Transition effects").optional(), "emphasis": z.object({ "effect": z.enum(["glitch","pulse","shake","highlight","none"]).optional(), "timing": z.string().describe("When to apply effect (e.g., '2s', '50%')").optional() }).describe("Emphasis and highlighting").optional(), "background": z.object({ "type": z.enum(["solid","gradient","image","video","particles"]).optional(), "value": z.string().describe("Color, gradient definition, or asset path").optional(), "opacity": z.number().gte(0).lte(1).default(1) }).describe("Background configuration").optional(), "camera": z.object({ "movement": z.enum(["static","pan","zoom","rotate","parallax"]).optional(), "start": z.record(z.unknown()).describe("Starting position/rotation").optional(), "end": z.record(z.unknown()).describe("Ending position/rotation").optional() }).describe("Camera movement (3D effects)").optional() }).describe("Visual direction and effects for the scene").optional(), "assets": z.array(z.object({ "type": z.enum(["image","video","audio","font","data"]), "source": z.string().describe("Path or URL to the asset"), "generated": z.boolean().describe("Whether this asset was AI-generated").default(false), "metadata": z.object({ "width": z.number().int().optional(), "height": z.number().int().optional(), "duration_ms": z.number().int().optional(), "format": z.string().optional() }).describe("Additional metadata about the asset").optional() })).describe("Assets used in this scene").optional(), "audio": z.object({ "narration": z.object({ "text": z.string().describe("Narration text").optional(), "file": z.string().describe("Path to narration audio file").optional(), "start_offset_ms": z.number().int().describe("Delay before narration starts (typically 1000ms)").default(1000) }).optional(), "sfx": z.array(z.object({ "file": z.string().optional(), "timing_ms": z.number().int().optional(), "volume": z.number().gte(0).lte(1).optional() })).describe("Sound effects").optional() }).describe("Audio configuration for the scene").optional(), "template": z.string().describe("Template name if using a predefined template").optional(), "notes": z.string().describe("Internal notes for this scene").optional() }).describe("Defines an individual video scene with content, direction, and assets")).min(1).describe("Ordered list of video scenes"), "total_duration_ms": z.number().int().gte(0).describe("Total duration of the video in milliseconds"), "output_settings": z.object({ "width": z.number().int().gte(320).lte(7680).describe("Video width in pixels"), "height": z.number().int().gte(240).lte(4320).describe("Video height in pixels"), "fps": z.union([z.literal(24), z.literal(25), z.literal(30), z.literal(50), z.literal(60)]).describe("Frames per second").default(30), "codec": z.enum(["h264","h265","vp8","vp9","av1"]).describe("Video codec").default("h264"), "format": z.enum(["mp4","webm","mov","gif"]).describe("Output format").default("mp4"), "quality": z.enum(["low","medium","high","ultra"]).describe("Output quality preset").default("high"), "bitrate": z.string().describe("Video bitrate (e.g., '5M', '10M')").optional(), "preset": z.enum(["240p","360p","480p","720p","1080p","1440p","4k","custom"]).describe("Encoding preset for resolution").optional() }).describe("Video output configuration"), "audio_settings": z.object({ "bgm": z.object({ "file": z.string().describe("Path to BGM file").optional(), "volume": z.number().gte(0).lte(1).describe("BGM volume (0.0 - 1.0)").default(0.3), "fade_in_ms": z.number().int().gte(0).describe("Fade in duration in milliseconds").default(1000), "fade_out_ms": z.number().int().gte(0).describe("Fade out duration in milliseconds").default(2000), "loop": z.boolean().describe("Whether to loop the BGM").default(true) }).describe("Background music configuration").optional(), "master_volume": z.number().gte(0).lte(1).describe("Master volume (0.0 - 1.0)").default(1) }).describe("Global audio settings").optional(), "branding": z.object({ "logo": z.string().describe("Path to logo file").optional(), "colors": z.object({ "primary": z.string().describe("Primary brand color (hex or rgb)").optional(), "secondary": z.string().describe("Secondary brand color").optional(), "accent": z.string().describe("Accent color").optional(), "background": z.string().describe("Default background color").optional(), "text": z.string().describe("Default text color").optional() }).optional(), "fonts": z.object({ "primary": z.string().describe("Primary font family or path to font file").optional(), "secondary": z.string().describe("Secondary font family").optional(), "monospace": z.string().describe("Monospace font for code").optional() }).optional() }).describe("Branding configuration").optional(), "transitions": z.object({ "default_duration_ms": z.number().int().gte(0).lte(2000).describe("Default transition duration in milliseconds").default(500), "overlap_ms": z.number().int().gte(0).lte(1000).describe("Overlap duration between scenes (for cross-fade)").default(450), "type": z.enum(["fade","slide_in","zoom","cut"]).describe("Default transition type").default("fade") }).describe("Global transition settings").optional(), "notes": z.string().describe("General notes about the video script").optional() }).describe("Complete video script with metadata, scenes, and output settings")
/**
* Inferred TypeScript type from Zod schema
*/
export type VideoScript = z.infer<typeof VideoScriptSchema>;
/**
* Schema metadata
*/
export const VideoScriptMeta = {
version: '1.0.0',
title: 'Video Script Schema',
description: 'Complete video script with metadata, scenes, and output settings',
} as const;
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file). | Stars: 198k | Updated | Claude CodeCodex | Unverified | Install |
| doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |