natureco-cli 5.18.3 → 5.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/skills/airunway-aks-setup/SKILL.md +73 -0
- package/skills/algorithmic-art/SKILL.md +405 -0
- package/skills/appinsights-instrumentation/SKILL.md +76 -0
- package/skills/azure-ai/SKILL.md +71 -0
- package/skills/azure-aigateway/SKILL.md +129 -0
- package/skills/azure-cloud-migrate/SKILL.md +52 -0
- package/skills/azure-compliance/SKILL.md +108 -0
- package/skills/azure-compute/SKILL.md +46 -0
- package/skills/azure-cost/SKILL.md +45 -0
- package/skills/azure-deploy/SKILL.md +97 -0
- package/skills/azure-diagnostics/SKILL.md +151 -0
- package/skills/azure-enterprise-infra-planner/SKILL.md +54 -0
- package/skills/azure-hosted-copilot-sdk/SKILL.md +89 -0
- package/skills/azure-kubernetes/SKILL.md +153 -0
- package/skills/azure-kusto/SKILL.md +231 -0
- package/skills/azure-messaging/SKILL.md +57 -0
- package/skills/azure-prepare/SKILL.md +165 -0
- package/skills/azure-quotas/SKILL.md +276 -0
- package/skills/azure-rbac/SKILL.md +17 -0
- package/skills/azure-reliability/SKILL.md +387 -0
- package/skills/azure-resource-lookup/SKILL.md +108 -0
- package/skills/azure-resource-visualizer/SKILL.md +183 -0
- package/skills/azure-storage/SKILL.md +100 -0
- package/skills/azure-upgrade/SKILL.md +91 -0
- package/skills/azure-validate/SKILL.md +72 -0
- package/skills/brainstorming/SKILL.md +159 -0
- package/skills/brand-guidelines/SKILL.md +73 -0
- package/skills/brandkit/SKILL.md +798 -0
- package/skills/brutalist-skill/SKILL.md +92 -0
- package/skills/canvas-design/SKILL.md +130 -0
- package/skills/cavecrew/SKILL.md +82 -0
- package/skills/caveman-commit/SKILL.md +65 -0
- package/skills/caveman-help/SKILL.md +63 -0
- package/skills/caveman-review/SKILL.md +55 -0
- package/skills/caveman-stats/SKILL.md +10 -0
- package/skills/claude-api/SKILL.md +356 -0
- package/skills/composition-patterns/SKILL.md +89 -0
- package/skills/decision-mapping/SKILL.md +84 -0
- package/skills/deploy-to-vercel/SKILL.md +296 -0
- package/skills/design-an-interface/SKILL.md +94 -0
- package/skills/design-doc-mermaid/SKILL.md +498 -0
- package/skills/develop-userscripts/SKILL.md +84 -0
- package/skills/doc-coauthoring/SKILL.md +375 -0
- package/skills/documentation/SKILL.md +109 -0
- package/skills/docx/SKILL.md +590 -0
- package/skills/edit-article/SKILL.md +15 -0
- package/skills/entra-agent-id/SKILL.md +356 -0
- package/skills/entra-app-registration/SKILL.md +191 -0
- package/skills/faceless-explainer/SKILL.md +202 -0
- package/skills/fastify/SKILL.md +75 -0
- package/skills/general-video/SKILL.md +143 -0
- package/skills/git-guardrails-claude-code/SKILL.md +95 -0
- package/skills/github-actions-docs/SKILL.md +98 -0
- package/skills/gpt-tasteskill/SKILL.md +74 -0
- package/skills/grill-me/SKILL.md +7 -0
- package/skills/grilling/SKILL.md +10 -0
- package/skills/handoff/SKILL.md +16 -0
- package/skills/hyperframes/SKILL.md +152 -0
- package/skills/hyperframes-animation/SKILL.md +82 -0
- package/skills/hyperframes-cli/SKILL.md +109 -0
- package/skills/hyperframes-core/SKILL.md +78 -0
- package/skills/hyperframes-creative/SKILL.md +68 -0
- package/skills/hyperframes-media/SKILL.md +97 -0
- package/skills/image-to-code-skill/SKILL.md +1228 -0
- package/skills/imagegen-frontend-mobile/SKILL.md +1465 -0
- package/skills/imagegen-frontend-web/SKILL.md +987 -0
- package/skills/implement/SKILL.md +15 -0
- package/skills/init/SKILL.md +91 -0
- package/skills/internal-comms/SKILL.md +32 -0
- package/skills/lark-approval/SKILL.md +56 -0
- package/skills/lark-base/SKILL.md +157 -0
- package/skills/lark-doc/SKILL.md +81 -0
- package/skills/lark-shared/SKILL.md +168 -0
- package/skills/lark-workflow-meeting-summary/SKILL.md +122 -0
- package/skills/linting-neostandard-eslint9/SKILL.md +64 -0
- package/skills/loop-me/SKILL.md +32 -0
- package/skills/microsoft-foundry/SKILL.md +262 -0
- package/skills/migrate-to-shoehorn/SKILL.md +118 -0
- package/skills/minimalist-skill/SKILL.md +85 -0
- package/skills/motion-graphics/SKILL.md +170 -0
- package/skills/music-to-video/SKILL.md +197 -0
- package/skills/node/SKILL.md +94 -0
- package/skills/nodejs-core/SKILL.md +156 -0
- package/skills/oauth/SKILL.md +186 -0
- package/skills/obsidian-vault/SKILL.md +59 -0
- package/skills/octocat/SKILL.md +93 -0
- package/skills/openclaw-secure-linux-cloud/SKILL.md +157 -0
- package/skills/opensource-guide-coach/SKILL.md +218 -0
- package/skills/output-skill/SKILL.md +49 -0
- package/skills/pdf/SKILL.md +314 -0
- package/skills/pptx/SKILL.md +232 -0
- package/skills/pr-to-video/SKILL.md +235 -0
- package/skills/product-launch-video/SKILL.md +205 -0
- package/skills/python-appservice-deploy/SKILL.md +36 -0
- package/skills/qa/SKILL.md +130 -0
- package/skills/react-best-practices/SKILL.md +149 -0
- package/skills/react-native-skills/SKILL.md +121 -0
- package/skills/react-view-transitions/SKILL.md +320 -0
- package/skills/readme-i18n/SKILL.md +176 -0
- package/skills/redesign-skill/SKILL.md +178 -0
- package/skills/remotion/SKILL.md +364 -0
- package/skills/request-refactor-plan/SKILL.md +68 -0
- package/skills/resolving-merge-conflicts/SKILL.md +14 -0
- package/skills/running-claude-code-via-litellm-copilot/SKILL.md +263 -0
- package/skills/scaffold-exercises/SKILL.md +106 -0
- package/skills/secure-linux-web-hosting/SKILL.md +162 -0
- package/skills/setup-pre-commit/SKILL.md +91 -0
- package/skills/shadcn/SKILL.md +267 -0
- package/skills/simple/SKILL.md +52 -0
- package/skills/skill-creator/SKILL.md +485 -0
- package/skills/skill-optimizer/SKILL.md +47 -0
- package/skills/skills-cli/SKILL.md +281 -0
- package/skills/slack-gif-creator/SKILL.md +254 -0
- package/skills/snipgrapher/SKILL.md +58 -0
- package/skills/soft-skill/SKILL.md +98 -0
- package/skills/stitch-skill/SKILL.md +184 -0
- package/skills/supabase/SKILL.md +135 -0
- package/skills/supabase-postgres-best-practices/SKILL.md +64 -0
- package/skills/systematic-debugging/SKILL.md +296 -0
- package/skills/talking-head-recut/SKILL.md +1191 -0
- package/skills/taste-skill/SKILL.md +1206 -0
- package/skills/taste-skill-v1/SKILL.md +226 -0
- package/skills/tdd/SKILL.md +108 -0
- package/skills/teach/SKILL.md +140 -0
- package/skills/test-driven-development/SKILL.md +371 -0
- package/skills/theme-factory/SKILL.md +59 -0
- package/skills/to-prd/SKILL.md +75 -0
- package/skills/typescript-magician/SKILL.md +117 -0
- package/skills/tzst/SKILL.md +68 -0
- package/skills/ubiquitous-language/SKILL.md +93 -0
- package/skills/use-my-browser/SKILL.md +110 -0
- package/skills/using-superpowers/SKILL.md +121 -0
- package/skills/vercel-cli-with-tokens/SKILL.md +353 -0
- package/skills/vercel-optimize/SKILL.md +322 -0
- package/skills/viral-instagram-reels/SKILL.md +180 -0
- package/skills/viral-short-form/SKILL.md +147 -0
- package/skills/viral-short-form-ideas/SKILL.md +184 -0
- package/skills/viral-tiktok-content/SKILL.md +180 -0
- package/skills/web-artifacts-builder/SKILL.md +74 -0
- package/skills/web-design-guidelines/SKILL.md +39 -0
- package/skills/webapp-testing/SKILL.md +96 -0
- package/skills/website-to-video/SKILL.md +145 -0
- package/skills/writing-beats/SKILL.md +67 -0
- package/skills/writing-fragments/SKILL.md +79 -0
- package/skills/writing-great-skills/SKILL.md +82 -0
- package/skills/writing-guidelines/SKILL.md +39 -0
- package/skills/writing-plans/SKILL.md +174 -0
- package/skills/writing-shape/SKILL.md +79 -0
- package/skills/xdrop/SKILL.md +78 -0
- package/skills/xget/SKILL.md +87 -0
- package/skills/xlsx/SKILL.md +292 -0
- package/src/tools/skills_download.js +217 -0
- package/src/utils/tools.js +2 -2
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: remotion-best-practices
|
|
3
|
+
description: Best practices for Remotion - Video creation in React
|
|
4
|
+
metadata:
|
|
5
|
+
tags: remotion, video, react, animation, composition
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## When to use
|
|
9
|
+
|
|
10
|
+
Use this skills whenever you are dealing with Remotion code to obtain the domain-specific knowledge.
|
|
11
|
+
|
|
12
|
+
## New project setup
|
|
13
|
+
|
|
14
|
+
When in an empty folder or workspace with no existing Remotion project, scaffold one using:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npx create-video@latest --yes --blank --no-tailwind my-video
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Replace `my-video` with a suitable project name.
|
|
21
|
+
|
|
22
|
+
## Designing a video
|
|
23
|
+
|
|
24
|
+
Before designing visual scenes, layouts, promos, motion graphics, or text-heavy videos, load [rules/video-layout.md](rules/video-layout.md) for video-first layout and text sizing guidance.
|
|
25
|
+
|
|
26
|
+
Animate properties using `useCurrentFrame()` and `interpolate()`. Prefer `interpolate()` over `spring()` unless physics-based motion is explicitly needed. Use `Easing.bezier()` to customize timing, including jumpy or overshooting motion.
|
|
27
|
+
|
|
28
|
+
For animations that should be editable in Remotion Studio, keep the `interpolate()` call inline in the `style` prop and use individual CSS transform properties (`scale`, `translate`, `rotate`) instead of composing a `transform` string.
|
|
29
|
+
|
|
30
|
+
```tsx
|
|
31
|
+
import { useCurrentFrame, Easing, interpolate, useVideoConfig } from "remotion";
|
|
32
|
+
|
|
33
|
+
export const FadeIn = () => {
|
|
34
|
+
const frame = useCurrentFrame();
|
|
35
|
+
const { fps } = useVideoConfig();
|
|
36
|
+
|
|
37
|
+
const opacity = interpolate(frame, [0, 2 * fps], [0, 1], {
|
|
38
|
+
extrapolateRight: "clamp",
|
|
39
|
+
extrapolateLeft: "clamp",
|
|
40
|
+
easing: Easing.bezier(0.16, 1, 0.3, 1),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
return <div style={{ opacity }}>Hello World!</div>;
|
|
44
|
+
};
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Prefer:
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
style={{
|
|
51
|
+
scale: interpolate(frame, [0, 100], [0, 1]),
|
|
52
|
+
translate: interpolate(frame, [0, 100], ["0px 0px", "100px 100px"]),
|
|
53
|
+
rotate: interpolate(frame, [0, 100], ["20deg", "90deg"]),
|
|
54
|
+
}}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Over:
|
|
58
|
+
|
|
59
|
+
```tsx
|
|
60
|
+
const scale = interpolate(frame, [0, 100], [0, 1]);
|
|
61
|
+
|
|
62
|
+
style={{
|
|
63
|
+
transform: `scale(${scale})`,
|
|
64
|
+
}}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
CSS transitions or animations are FORBIDDEN - they will not render correctly.
|
|
68
|
+
Tailwind animation class names are FORBIDDEN - they will not render correctly.
|
|
69
|
+
|
|
70
|
+
Place assets in the `public/` folder at your project root.
|
|
71
|
+
|
|
72
|
+
Use `staticFile()` to reference files from the `public/` folder.
|
|
73
|
+
|
|
74
|
+
Add images using the `<Img>` component:
|
|
75
|
+
|
|
76
|
+
```tsx
|
|
77
|
+
import { Img, staticFile } from "remotion";
|
|
78
|
+
|
|
79
|
+
export const MyComposition = () => {
|
|
80
|
+
return <Img src={staticFile("logo.png")} style={{ width: 100, height: 100 }} />;
|
|
81
|
+
};
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Add videos using the `<Video>` component from `@remotion/media`:
|
|
85
|
+
|
|
86
|
+
```tsx
|
|
87
|
+
import { Video } from "@remotion/media";
|
|
88
|
+
import { staticFile } from "remotion";
|
|
89
|
+
|
|
90
|
+
export const MyComposition = () => {
|
|
91
|
+
return <Video src={staticFile("video.mp4")} style={{ opacity: 0.5 }} />;
|
|
92
|
+
};
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Add audio using the `<Audio>` component from `@remotion/media`:
|
|
96
|
+
|
|
97
|
+
```tsx
|
|
98
|
+
import { Audio } from "@remotion/media";
|
|
99
|
+
import { staticFile } from "remotion";
|
|
100
|
+
|
|
101
|
+
export const MyComposition = () => {
|
|
102
|
+
return <Audio src={staticFile("audio.mp3")} />;
|
|
103
|
+
};
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Assets can be also referenced as remote URLs:
|
|
107
|
+
|
|
108
|
+
```tsx
|
|
109
|
+
import { Video } from "@remotion/media";
|
|
110
|
+
|
|
111
|
+
export const MyComposition = () => {
|
|
112
|
+
return <Video src="https://remotion.media/video.mp4" />
|
|
113
|
+
};
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
To delay content wrap it in `<Sequence>` and use `from`.
|
|
117
|
+
To limit the duration of an element, use `durationInFrames` of `<Sequence>`.
|
|
118
|
+
`<Sequence>` by default is an absolute fill. For inline content, use `layout="none"`.
|
|
119
|
+
|
|
120
|
+
```tsx
|
|
121
|
+
import { Sequence } from "remotion";
|
|
122
|
+
|
|
123
|
+
export const Title = () => {
|
|
124
|
+
const frame = useCurrentFrame();
|
|
125
|
+
const { fps } = useVideoConfig();
|
|
126
|
+
|
|
127
|
+
const opacity = interpolate(frame, [0, 2 * fps], [0, 1], {
|
|
128
|
+
extrapolateRight: "clamp",
|
|
129
|
+
extrapolateLeft: "clamp",
|
|
130
|
+
easing: Easing.bezier(0.16, 1, 0.3, 1),
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
return <div style={{ opacity }}>Title</div>;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export const Subtitle = () => {
|
|
137
|
+
return <div>Subtitle</div>;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
const Main = () => {
|
|
141
|
+
const {fps} = useVideoConfig();
|
|
142
|
+
|
|
143
|
+
return (
|
|
144
|
+
<AbsoluteFill>
|
|
145
|
+
<Sequence>
|
|
146
|
+
<Background />
|
|
147
|
+
</Sequence>
|
|
148
|
+
<Sequence from={1 * fps} durationInFrames={2 * fps} layout="none">
|
|
149
|
+
<Title />
|
|
150
|
+
</Sequence>
|
|
151
|
+
<Sequence from={2 * fps} durationInFrames={2 * fps} layout="none">
|
|
152
|
+
<Subtitle />
|
|
153
|
+
</Sequence>
|
|
154
|
+
</AbsoluteFill>
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
The width, height, fps, and duration of a video is defined in `src/Root.tsx`:
|
|
160
|
+
|
|
161
|
+
```tsx
|
|
162
|
+
import { Composition } from "remotion";
|
|
163
|
+
import { MyComposition } from "./MyComposition";
|
|
164
|
+
|
|
165
|
+
export const RemotionRoot = () => {
|
|
166
|
+
return (
|
|
167
|
+
<Composition
|
|
168
|
+
id="MyComposition"
|
|
169
|
+
component={MyComposition}
|
|
170
|
+
durationInFrames={100}
|
|
171
|
+
fps={30}
|
|
172
|
+
width={1080}
|
|
173
|
+
height={1080}
|
|
174
|
+
/>
|
|
175
|
+
);
|
|
176
|
+
};
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
Metadata can also be calculated dynamically:
|
|
180
|
+
|
|
181
|
+
```tsx
|
|
182
|
+
import { Composition, CalculateMetadataFunction } from "remotion";
|
|
183
|
+
import { MyComposition, MyCompositionProps } from "./MyComposition";
|
|
184
|
+
|
|
185
|
+
const calculateMetadata: CalculateMetadataFunction<
|
|
186
|
+
MyCompositionProps
|
|
187
|
+
> = async ({ props, abortSignal }) => {
|
|
188
|
+
const data = await fetch(`https://api.example.com/video/${props.videoId}`, {
|
|
189
|
+
signal: abortSignal,
|
|
190
|
+
}).then((res) => res.json());
|
|
191
|
+
|
|
192
|
+
return {
|
|
193
|
+
durationInFrames: Math.ceil(data.duration * 30),
|
|
194
|
+
props: {
|
|
195
|
+
...props,
|
|
196
|
+
videoUrl: data.url,
|
|
197
|
+
},
|
|
198
|
+
width: 1080,
|
|
199
|
+
height: 1080,
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
export const RemotionRoot = () => {
|
|
204
|
+
return (
|
|
205
|
+
<Composition
|
|
206
|
+
id="MyComposition"
|
|
207
|
+
component={MyComposition}
|
|
208
|
+
fps={30}
|
|
209
|
+
width={1080}
|
|
210
|
+
height={1080}
|
|
211
|
+
defaultProps={{ videoId: "abc123" }}
|
|
212
|
+
calculateMetadata={calculateMetadata}
|
|
213
|
+
/>
|
|
214
|
+
);
|
|
215
|
+
};
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
## Starting preview
|
|
219
|
+
|
|
220
|
+
Start the Remotion Studio to preview a video:
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
npx remotion studio
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
## Optional: one-frame render check
|
|
227
|
+
|
|
228
|
+
You can render a single frame with the CLI to sanity-check layout, colors, or timing.
|
|
229
|
+
Skip it for trivial edits, pure refactors, or when you already have enough confidence from Studio or prior renders.
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
npx remotion still [composition-id] --scale=0.25 --frame=30
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
At 30 fps, `--frame=30` is the one-second mark (`--frame` is zero-based).
|
|
236
|
+
|
|
237
|
+
## Captions
|
|
238
|
+
|
|
239
|
+
When dealing with captions or subtitles, load the [./rules/subtitles.md](./rules/subtitles.md) file for more information.
|
|
240
|
+
|
|
241
|
+
## Using FFmpeg
|
|
242
|
+
|
|
243
|
+
For some video operations, such as trimming videos or detecting silence, FFmpeg should be used. Load the [./rules/ffmpeg.md](./rules/ffmpeg.md) file for more information.
|
|
244
|
+
|
|
245
|
+
## Silence detection
|
|
246
|
+
|
|
247
|
+
When needing to detect and trim silent segments from video or audio files, load the [./rules/silence-detection.md](./rules/silence-detection.md) file.
|
|
248
|
+
|
|
249
|
+
## Audio visualization
|
|
250
|
+
|
|
251
|
+
When needing to visualize audio (spectrum bars, waveforms, bass-reactive effects), load the [./rules/audio-visualization.md](./rules/audio-visualization.md) file for more information.
|
|
252
|
+
|
|
253
|
+
## Sound effects
|
|
254
|
+
|
|
255
|
+
When needing to use sound effects, load the [./rules/sfx.md](./rules/sfx.md) file for more information.
|
|
256
|
+
|
|
257
|
+
## Visual and pixel effects
|
|
258
|
+
|
|
259
|
+
When creating a visual effect, prefer: 1. normal Remotion/HTML/CSS/SVG/filter/blend/mask animation, 2. a listed effect via [rules/effects.md](rules/effects.md), including on HTML rendered through `<HtmlInCanvas>`, 3. a custom `createEffect()` via [rules/effects.md](rules/effects.md) when the user asks for a reusable/project-specific effect, 4. custom `<HtmlInCanvas onPaint>` via [rules/html-in-canvas.md](rules/html-in-canvas.md) only if no effect fits.
|
|
260
|
+
|
|
261
|
+
For light leak overlays, see [rules/light-leaks.md](rules/light-leaks.md). Docs: https://www.remotion.dev/docs/effects
|
|
262
|
+
|
|
263
|
+
Available effects: `brightness()`, `contrast()`, `colorKey()`, `duotone()`, `grayscale()`, `hue()`, `invert()`, `saturation()`, `tint()`, `thermalVision()`, `blur()`, `linearProgressiveBlur()`, `zoomBlur()`, `dropShadow()`, `glow()`, `lightTrail()`, `evolve()`, `mirror()`, `scale()`, `uvTranslate()`, `xyTranslate()`, `barrelDistortion()`, `chromaticAberration()`, `fisheye()`, `cornerPin()`, `wave()`, `burlap()`, `emboss()`, `dotGrid()`, `halftone()`, `noise()`, `noiseDisplacement()`, `pattern()`, `pixelate()`, `pixelDissolve()`, `scanlines()`, `speckle()`, `shine()`, `shrinkwrap()`, `vignette()`, `contourLines()`, `checkerboard()`, `halftoneLinearGradient()`, `gridlines()`, `whiteNoise()`, `tvSignalOff()`, `lines()`, `rings()`, `waves()`, `zigzag()`, `lightLeak()`, `starburst()`.
|
|
264
|
+
|
|
265
|
+
## 3D content
|
|
266
|
+
|
|
267
|
+
See [rules/3d.md](rules/3d.md) for 3D content in Remotion using Three.js and React Three Fiber.
|
|
268
|
+
|
|
269
|
+
## Advanced audio
|
|
270
|
+
|
|
271
|
+
See [rules/audio.md](rules/audio.md) for advanced audio features like trimming, volume, speed, pitch.
|
|
272
|
+
|
|
273
|
+
## Dynamic duration, dimensions and data
|
|
274
|
+
|
|
275
|
+
See [rules/calculate-metadata.md](rules/calculate-metadata.md) for dynamically set composition duration, dimensions, and props.
|
|
276
|
+
|
|
277
|
+
## Advanced compositions
|
|
278
|
+
|
|
279
|
+
See [rules/compositions.md](rules/compositions.md) for how to define stills, folders, default props and for how to nest compositions.
|
|
280
|
+
|
|
281
|
+
## Google Fonts
|
|
282
|
+
|
|
283
|
+
Is the recommended way to load fonts in Remotion. See [rules/google-fonts.md](rules/google-fonts.md) for how to load Google Fonts.
|
|
284
|
+
|
|
285
|
+
## Local fonts
|
|
286
|
+
|
|
287
|
+
See [rules/local-fonts.md](rules/local-fonts.md) for how to load local fonts.
|
|
288
|
+
|
|
289
|
+
## Getting audio duration
|
|
290
|
+
|
|
291
|
+
See [rules/get-audio-duration.md](rules/get-audio-duration.md) for getting the duration of an audio file in seconds with Mediabunny.
|
|
292
|
+
|
|
293
|
+
## Getting video dimensions
|
|
294
|
+
|
|
295
|
+
See [rules/get-video-dimensions.md](rules/get-video-dimensions.md) for getting the width and height of a video file with Mediabunny.
|
|
296
|
+
|
|
297
|
+
## Getting video duration
|
|
298
|
+
|
|
299
|
+
See [rules/get-video-duration.md](rules/get-video-duration.md) for getting the duration of a video file in seconds with Mediabunny.
|
|
300
|
+
|
|
301
|
+
## GIFs
|
|
302
|
+
|
|
303
|
+
See [rules/gifs.md](rules/gifs.md) for how to display GIFs synchronized with Remotion's timeline.
|
|
304
|
+
|
|
305
|
+
## Advanced Images
|
|
306
|
+
|
|
307
|
+
See [rules/images.md](rules/images.md) for sizing and positioning images, dynamic image paths, and getting image dimensions.
|
|
308
|
+
|
|
309
|
+
## Lottie animations
|
|
310
|
+
|
|
311
|
+
See [rules/lottie.md](rules/lottie.md) for embedding Lottie animations in Remotion.
|
|
312
|
+
|
|
313
|
+
## Measuring DOM nodes
|
|
314
|
+
|
|
315
|
+
See [rules/measuring-dom-nodes.md](rules/measuring-dom-nodes.md) for measuring DOM element dimensions in Remotion.
|
|
316
|
+
|
|
317
|
+
## Measuring text
|
|
318
|
+
|
|
319
|
+
See [rules/measuring-text.md](rules/measuring-text.md) for measuring text dimensions, fitting text to containers, and checking overflow.
|
|
320
|
+
|
|
321
|
+
## Advanced sequencing
|
|
322
|
+
|
|
323
|
+
See [rules/sequencing.md](rules/sequencing.md) for more sequencing patterns - delay, trim, limit duration of items.
|
|
324
|
+
|
|
325
|
+
## TailwindCSS
|
|
326
|
+
|
|
327
|
+
See [rules/tailwind.md](rules/tailwind.md) for using TailwindCSS in Remotion.
|
|
328
|
+
|
|
329
|
+
## Text animations
|
|
330
|
+
|
|
331
|
+
See [rules/text-animations.md](rules/text-animations.md) for typography and text animation patterns.
|
|
332
|
+
|
|
333
|
+
## Advanced timing
|
|
334
|
+
|
|
335
|
+
See [rules/timing.md](rules/timing.md) for advanced timing with `interpolate` and Bézier easing, and springs.
|
|
336
|
+
|
|
337
|
+
## Transitions
|
|
338
|
+
|
|
339
|
+
See [rules/transitions.md](rules/transitions.md) for scene transition patterns.
|
|
340
|
+
|
|
341
|
+
## Transparent videos
|
|
342
|
+
|
|
343
|
+
See [rules/transparent-videos.md](rules/transparent-videos.md) for rendering out a video with transparency.
|
|
344
|
+
|
|
345
|
+
## Trimming
|
|
346
|
+
|
|
347
|
+
See [rules/trimming.md](rules/trimming.md) for trimming patterns - cutting the beginning or end of animations.
|
|
348
|
+
|
|
349
|
+
## Advanced Videos
|
|
350
|
+
|
|
351
|
+
See [rules/videos.md](rules/videos.md) for advanced knowledge about embedding videos - trimming, volume, speed, looping, pitch.
|
|
352
|
+
|
|
353
|
+
## Parameterized videos
|
|
354
|
+
|
|
355
|
+
See [rules/parameters.md](rules/parameters.md) for making a composition parametrizable by adding a Zod schema.
|
|
356
|
+
|
|
357
|
+
## Maps
|
|
358
|
+
|
|
359
|
+
For simple maps with little flyovers, consider using static map images.
|
|
360
|
+
For complex maps with animated routes or flyovers, load the maps rule: [rules/maplibre.md](rules/maplibre.md)
|
|
361
|
+
|
|
362
|
+
## Voiceover
|
|
363
|
+
|
|
364
|
+
See [rules/voiceover.md](rules/voiceover.md) for adding AI-generated voiceover to Remotion compositions using ElevenLabs TTS.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: request-refactor-plan
|
|
3
|
+
description: Create a detailed refactor plan with tiny commits via user interview, then file it as a GitHub issue. Use when user wants to plan a refactor, create a refactoring RFC, or break a refactor into safe incremental steps.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
This skill will be invoked when the user wants to create a refactor request. You should go through the steps below. You may skip steps if you don't consider them necessary.
|
|
7
|
+
|
|
8
|
+
1. Ask the user for a long, detailed description of the problem they want to solve and any potential ideas for solutions.
|
|
9
|
+
|
|
10
|
+
2. Explore the repo to verify their assertions and understand the current state of the codebase.
|
|
11
|
+
|
|
12
|
+
3. Ask whether they have considered other options, and present other options to them.
|
|
13
|
+
|
|
14
|
+
4. Interview the user about the implementation. Be extremely detailed and thorough.
|
|
15
|
+
|
|
16
|
+
5. Hammer out the exact scope of the implementation. Work out what you plan to change and what you plan not to change.
|
|
17
|
+
|
|
18
|
+
6. Look in the codebase to check for test coverage of this area of the codebase. If there is insufficient test coverage, ask the user what their plans for testing are.
|
|
19
|
+
|
|
20
|
+
7. Break the implementation into a plan of tiny commits. Remember Martin Fowler's advice to "make each refactoring step as small as possible, so that you can always see the program working."
|
|
21
|
+
|
|
22
|
+
8. Create a GitHub issue with the refactor plan. Use the following template for the issue description:
|
|
23
|
+
|
|
24
|
+
<refactor-plan-template>
|
|
25
|
+
|
|
26
|
+
## Problem Statement
|
|
27
|
+
|
|
28
|
+
The problem that the developer is facing, from the developer's perspective.
|
|
29
|
+
|
|
30
|
+
## Solution
|
|
31
|
+
|
|
32
|
+
The solution to the problem, from the developer's perspective.
|
|
33
|
+
|
|
34
|
+
## Commits
|
|
35
|
+
|
|
36
|
+
A LONG, detailed implementation plan. Write the plan in plain English, breaking down the implementation into the tiniest commits possible. Each commit should leave the codebase in a working state.
|
|
37
|
+
|
|
38
|
+
## Decision Document
|
|
39
|
+
|
|
40
|
+
A list of implementation decisions that were made. This can include:
|
|
41
|
+
|
|
42
|
+
- The modules that will be built/modified
|
|
43
|
+
- The interfaces of those modules that will be modified
|
|
44
|
+
- Technical clarifications from the developer
|
|
45
|
+
- Architectural decisions
|
|
46
|
+
- Schema changes
|
|
47
|
+
- API contracts
|
|
48
|
+
- Specific interactions
|
|
49
|
+
|
|
50
|
+
Do NOT include specific file paths or code snippets. They may end up being outdated very quickly.
|
|
51
|
+
|
|
52
|
+
## Testing Decisions
|
|
53
|
+
|
|
54
|
+
A list of testing decisions that were made. Include:
|
|
55
|
+
|
|
56
|
+
- A description of what makes a good test (only test external behavior, not implementation details)
|
|
57
|
+
- Which modules will be tested
|
|
58
|
+
- Prior art for the tests (i.e. similar types of tests in the codebase)
|
|
59
|
+
|
|
60
|
+
## Out of Scope
|
|
61
|
+
|
|
62
|
+
A description of the things that are out of scope for this refactor.
|
|
63
|
+
|
|
64
|
+
## Further Notes (optional)
|
|
65
|
+
|
|
66
|
+
Any further notes about the refactor.
|
|
67
|
+
|
|
68
|
+
</refactor-plan-template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: resolving-merge-conflicts
|
|
3
|
+
description: "Use when you need to resolve an in-progress git merge/rebase conflict."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
1. **See the current state** of the merge/rebase. Check git history, and the conflicting files.
|
|
7
|
+
|
|
8
|
+
2. **Find the primary sources** for each conflict. Understand deeply why each change was made, and what the original intent was. Read the commit messages, check the PRs, check original issues/tickets.
|
|
9
|
+
|
|
10
|
+
3. **Resolve each hunk.** Preserve both intents where possible. Where incompatible, pick the one matching the merge's stated goal and note the trade-off. Do **not** invent new behaviour. Always resolve; never `--abort`.
|
|
11
|
+
|
|
12
|
+
4. Discover the project's **automated checks** and run them — typically typecheck, then tests, then format. Fix anything the merge broke.
|
|
13
|
+
|
|
14
|
+
5. **Finish the merge/rebase.** Stage everything and commit. If rebasing, continue the rebase process until all commits are rebased.
|