remotion-create
此技能用于快速创建新的 Remotion 视频项目。它提供项目脚手架、最佳实践指南和交互性支持,帮助开发者从零开始高效构建视频应用,无需手动配置繁琐的环境。
npx skills add https://github.com/remotion-dev/skills --skill remotion-createBefore / After 效果对比
1 组在没有此技能之前,用户需要手动安装依赖、配置项目结构、设置构建工具,并查阅大量文档才能开始编写视频代码。整个过程耗时且容易出错。
此技能一键完成项目脚手架,自动安装依赖并提示最佳实践,用户可直接进入视频设计阶段,大幅提升启动效率。
These are instructions for making a new Remotion project and composition.
If this is not the next task, see Remotion Best Practices (remotion-best-practices skill)
Scaffold a project
If a project already exists, skip this.
Ensure Node.js and Git is installed, and the current folder is appropriate for starting a new project.
create-video also installs the dependencies. If it logs an error while installing them, run npm i in the project.
Inspect the current folder, including hidden files, before choosing where to scaffold.
Empty folder
If it is empty, or contains only disposable operating-system metadata such as .DS_Store, create the project directly in the current folder.
Remove only those disposable metadata files first, since create-video rejects non-empty folders.
Do not treat all hidden files as disposable: files such as .env and directories such as .git are meaningful contents.
Scaffold in existing folder:
npx create-video@latest --yes --blank --no-tailwind .
Non-empty folder
If the current folder contains meaningful contents and no project already exists, scaffold into a new subfolder.
Replace my-video with a suitable project name.
npx create-video@latest --yes --blank --no-tailwind my-video
cd my-video
Open the preview before building the video
As soon as the project can run, open Remotion Studio (remotion-studio skill) in the browser before writing or changing the composition. For a new project, do this immediately after scaffolding and installing dependencies. For an existing project, do it before editing the video. Keep Studio running while you work so the user can see changes as they appear and steer the result.
Designing a video
Keep the scaffold and add React Markup.
Follow Remotion React Markup Best Practices (remotion-markup skill) and Video Layout Rules for video-first layout and text sizing guidance.
Before writing the root that registers <Composition> or <Still> elements,
follow Compositions and stills (compositions.md in the remotion-markup skill).
Is this a timeline of clips?
If the video arranges multiple video or audio clips on a timeline, follow
Video editing (video-editing.md in the remotion-markup skill) before writing the
timeline. Give every clip that should be edited independently its own authored
JSX node.
Is this a multi-scene video?
If this is a video with multiple subsequent scenes, follow guidance at Multi-scene videos (multi-scene-video.md in the remotion-markup skill).
Interactivity Best Practices
Make new markup editable in Studio by default by following Remotion Interactivity Best Practices (remotion-interactivity skill).
TailwindCSS
If Tailwind is requested, see tailwind.md for using TailwindCSS in Remotion.
Follow-up
The video creation process has finished.
For follow-up prompts, use Remotion Best Practices (remotion-best-practices skill)
用户评价 (0)
发表评价
暂无评价
统计数据
用户评分
为此 Skill 评分