Skip to content

docs: add an AI agent prompt to the schemas page#7886

Merged
JonnyBurger merged 1 commit into
remotion-dev:mainfrom
mvanhorn:docs/7572-schemas-agent-prompt
May 31, 2026
Merged

docs: add an AI agent prompt to the schemas page#7886
JonnyBurger merged 1 commit into
remotion-dev:mainfrom
mvanhorn:docs/7572-schemas-agent-prompt

Conversation

@mvanhorn
Copy link
Copy Markdown
Contributor

Adds a copy-paste AI agent prompt to the schemas docs page that walks an agent through making an existing composition parameterizable with a Zod schema: define a z.object() schema, use z.infer for the prop type, attach it via the schema prop, and add matching defaultProps that preserve current output. Includes the npx remotion add @remotion/zod-types zod install step.

Requested in #7572.

Fixes #7572

Adds a copy-paste prompt that walks an agent through making an existing
composition parameterizable with a Zod schema (define z.object(), wire it to
<Composition> via the schema prop, add matching defaultProps), as requested
in remotion-dev#7572.

Fixes remotion-dev#7572
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bugs Ready Ready Preview, Comment May 31, 2026 5:53pm
remotion Ready Ready Preview, Comment May 31, 2026 5:53pm

Request Review

Copy link
Copy Markdown
Contributor

@pullfrog pullfrog Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes — adds a copy-paste AI agent prompt to the schemas docs page that guides an agent through making a composition parameterizable with Zod.

  • Add ## AI agent prompt section to schemas.mdx — a txt code block with step-by-step instructions for defining a z.object() schema, using z.infer for the prop type, attaching it via the schema prop, adding matching defaultProps, and installing missing dependencies. Follows the existing pattern from cannot-save-default-props.mdx.

Pullfrog  | View workflow run | Using Kimi K2𝕏

@JonnyBurger
Copy link
Copy Markdown
Member

Thank you! 🙌

@JonnyBurger JonnyBurger merged commit 3ab91a3 into remotion-dev:main May 31, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

https://www.remotion.dev/docs/schemas should have an agent prompt for how to make a composition parameterizable

2 participants