parameters — Claude Code rule: Zod schemas for video
A Claude Code rule that explains how to add video parameterization using Zod schemas in Remotion compositions. Lets users edit parameters visually in the sidebar instead of hardcoding them.
no license ★ 849 updated 2026-01-24
.claude/rules/parameters.mdWhat parameters does
The rule covers installing Zod version 3.22.3, with install commands that vary by package manager: npm i [email protected], bun i [email protected], yarn add [email protected], or pnpm i [email protected].
It then walks through defining a schema alongside the component, passing it to Composition via the schema prop, and how this opens a sidebar for editing props. Remotion supports all Zod schemas but requires the root type to be z.object() since component props form an object.
An additional section covers adding a color picker with zColor() from @remotion/zod-types. Install the package using npx remotion add @remotion/zod-types (or the equivalent for your package manager), then use zColor() in your schema.
What it helps with
- add video parameterization with a Zod schema
- set up a sidebar to edit composition props
- integrate a color picker into video parameters
- install the correct Zod version for Remotion
Example prompts for the agent
- Show me how to make a Remotion video parametrizable with a Zod schema
- Add a color picker to composition parameters using
@remotion/zod-types - Install Zod 3.22.3 and create a schema for a video component
How to install parameters
Manually: put the files in place
.claude/rules/parameters.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/parameters.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/parameters.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/parameters.mdManually: put the files in place
.clinerules/parameters.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about parameters
How do I install the parameters rule in Claude Code?
Copy the rule file to .claude/rules/parameters.md in your project.
What does the parameters rule do?
It shows how to attach a Zod schema to a Remotion composition so users can edit video parameters visually through the sidebar.
What version of Zod is required?
Exactly 3.22.3; install commands are provided for each package manager.