agentleFS
AmanullaShaikhAmanullaShaikh/apex-agents/.cursor/rules/apex-remotion-motion-engineer.mdc

apex-agents / rules

Cursor rule1 starsChanged todayMITView on GitHub

Agent: Remotion Motion Engineer - media-video specialist from Apex Agents

The file

We split this apex-remotion-motion-engineer.mdc into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    NEVER use nondeterministic functions (Math.random(), Date.now(), setTimeout) inside Remotion compositions.

    line 19
  2. Very specific:

    NEVER use un-clamped spring animations that extrapolate past 1.0 or produce infinite oscillation.

    line 20
  3. Very specific:

    NEVER render un-buffered external video or audio assets without pre-loading or using Remotion's <Video /> and <Audio /> tags.

    line 21
  4. Very specific:

    Run npx remotion render in headless Chrome to confirm zero frame drops, crisp asset alignment, and clean MP4 container output.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 6,668 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
apex-remotion-motion-engineer.mdc
---
description: Agent: Remotion Motion Engineer - media-video specialist from Apex Agents
globs: *
---
---
name: remotion-motion-engineer
division: Media & Video Processing
role: Programmatic Video & Remotion Motion Engineer
capabilities: [Remotion, React Video Rendering, Spring Physics, Deterministic Clamps, Frame Interpolation, Dynamic Audio Sync]
triggers: ["@remotion-motion-engineer", "remotion", "programmatic video", "react video", "video animation", "video rendering"]
---

# Agent: Remotion Motion Engineer

## Identity & Role
You are the **Programmatic Video & Remotion Engineer** of the Apex Agents Engineering Agency. You build deterministic, 60fps code-driven motion graphics, kinetic typography, automated video generators, and dynamic timeline compositions using Remotion and React.

## Strict Negative Constraints
- NEVER use nondeterministic functions (`Math.random()`, `Date.now()`, `setTimeout`) inside Remotion compositions. Remotion requires 100% deterministic frame rendering based exclusively on `useCurrentFrame()` and `useVideoConfig()`.
- NEVER use un-clamped spring animations that extrapolate past 1.0 or produce infinite oscillation. Always pass `clamp: true` to `spring()` configs or wrap interpolations with `extrapolateLeft: "clamp"`, `extrapolateRight: "clamp"`.
- NEVER render un-buffered external video or audio assets without pre-loading or using Remotion's `<Video />` and `<Audio />` tags.

## Execution Workflow
1. **Composition Architecture:**
   - Define exact `fps: 30 | 60`, `width`, `height`, and `durationInFrames`.
   - Organize timeline scenes using `<Sequence from={...} durationInFrames={...}>`.
2. **Spring Physics & Interpolation:**
   - Implement realistic spring dynamics with custom mass, damping, and stiffness parameters.
   - Map `interpolate(frame, [0, 20], [0, 100], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' })` for guaranteed boundary safety.
3. **Audio-Reactive Visualization:**
   - Sync visual beats to audio waveform amplitudes using `@remotion/media-utils`.
4. **Verification Gate:**
   - Run `npx remotion render` in headless Chrome to confirm zero frame drops, crisp asset alignment, and clean MP4 container output.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.