Skip to main content
rule CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/parameters.md
Open on GitHub

What 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.md

The paths frontmatter field limits the files

Step 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.

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set33

The whole set →
charts Guidelines for building Remotion charts and animated metrics without frame flickering. CX Codex +1 ★ 849repo stars lottie This rule covers loading and displaying Lottie animations in Remotion. Use it when a rendered video needs a Lottie asset. CX Codex +1 ★ 849repo stars import-srt-captions import-srt-captions — a Claude Code rule for importing .srt subtitle files into Remotion video projects. Uses parseSrt() from @remotion/captions to extract subtitles and integrate them into components. CX Codex +1 ★ 849repo stars 3d 3d enforces proper Three.js and React Three Fiber conventions for deterministic video rendering in Remotion. CX Codex +1 ★ 849repo stars sequencing sequencing — a rule for managing component timing in Remotion videos. Uses Sequence for delays and Series for sequential playback, with support for nested and overlapping scenes. CX Codex +1 ★ 849repo stars images images directs the AI to embed graphics in Remotion via the Img element, staticFile helper, and dimensions calculation. CX Codex +1 ★ 849repo stars calculate-metadata The calculate-metadata rule configures Remotion composition metadata before rendering, including duration, dimensions, FPS, props, and the output filename. CX Codex +1 ★ 849repo stars measuring-text measuring-text — a rule to calculate text size, fit fonts to containers, and detect overflow. Use it when building dynamic text in Remotion and need precise dimensions to avoid clipping or wrong scaling. CX Codex +1 ★ 849repo stars

Project sponsors

Companies that keep this analytics open