agentleFS
liancheng-zcyliancheng-zcy/remotion-com-skills/AGENTS.md

remotion-com-skills

AGENTS.md105 starsChanged 6 months agoMITView on GitHub

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository. This is a professional Remotion video component library for creating tech tutorial videos with Apple-style aesthetics and FilmStorm-level quality. Goal: Build a reusable component library for AI tech content creators, featuring: - Apple-style minimal design (#000000 background + #007AFF accent) - Organic, non-mechanical animations - Professional SVG icons (no emoji) - Code demonstrations with syntax highlighting - Data visualization and metrics tokens.ts - Centralized design constants:…

  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,040 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    All new components go here.

    line 56
  2. Very specific:

    Important: Never use emoji. Always use icons from Icons.tsx.

    line 85
  3. Very specific:

    Use useCurrentFrame() for all animations

    line 139
  4. Very specific:

    Use spring() for natural motion

    line 140
  5. Very specific:

    Use interpolate() with easing functions

    line 141
  6. Distinctive:

    Avoid mechanical timing (use organic easing)

    line 148
  7. Very specific:

    Fix: Add explicit height parameter:

    line 253
  8. Distinctive:

    Fix: Ensure all animated values derive from frame

    line 260
  9. Very specific:

    Policy: Use SVG icons from Icons.tsx instead

    line 263
  10. Distinctive:

    Fix: Import IconProps and use proper typing:

    line 266

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
AGENTS.md

AGENTS.md

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository.

Project Overview

This is a professional Remotion video component library for creating tech tutorial videos with Apple-style aesthetics and FilmStorm-level quality.

Goal: Build a reusable component library for AI tech content creators, featuring:

  • Apple-style minimal design (#000000 background + #007AFF accent)
  • Organic, non-mechanical animations
  • Professional SVG icons (no emoji)
  • Code demonstrations with syntax highlighting
  • Data visualization and metrics

Development Commands

# Start Remotion Studio (live preview at http://localhost:3000)
npm run dev

# Run linting (ESLint + TypeScript)
npm run lint

# Bundle for rendering
npm run build

# Render specific composition
npx remotion render src/index.ts <CompositionID> out/video.mp4

# Upgrade Remotion
npm run upgrade

Architecture

Design System (src/design-system/)

tokens.ts - Centralized design constants:

  • Colors: Apple-style palette (#000000 bg, #007AFF primary)
  • Fonts: SF Pro Display/Text, JetBrains Mono
  • Sizes: Large typography (hero: 120px, h1: 88px)
  • Spacing, radius, animation durations

animations.ts - Animation presets:

  • Spring presets: smooth, snappy, bouncy, heavy, playful
  • Entrance animations: fade, slideUp, slideLeft, scale
  • Decorative: lineExpand, glowSweep, breathe

Component Library (src/components/new/)

All new components go here. Import via src/components/new/index.ts.

Core Components

ComponentPurposeKey Features
HeroTitleOpening titlesReveal animation, glow sweep, tags
SectionTitleChapter headersSection number, progress bar, left indicator
CodeTerminalCode displaymacOS terminal style, line-by-line typing, syntax highlight
AnimatedListFeature listsStaggered entrance, icons, check animations
FeatureCardFeature showcasesIcon + title + description, grid layout
MetricCardData metricsAnimated number counting, large typography
TransitionsScene transitionsFade, Slide, LightSweep, ZoomBlur, CurtainReveal

Icon Library (src/components/new/Icons.tsx)

50+ SVG icons based on Heroicons (MIT) and Lucide (ISC) - free for commercial use.

Common icons:

  • Tech: Computer, Bot, Terminal, Code, Database, Network
  • Actions: Check, Plus, Minus, Close, ArrowRight, Download
  • General: User, File, Folder, Calendar, Clock, Settings

Usage:

import { Zap, Lock, Computer } from '../components/new/Icons';
<Zap size={24} color="#007AFF" strokeWidth={2} />

Important: Never use emoji. Always use icons from Icons.tsx. AI 生成的文案如果需要图标,禁止使用 emoji,必须优先使用 SVG 图标或开源组件库中的高质感图标。


Component Usage Patterns

HeroTitle

<HeroTitle
  title="OpenClaw"
  subtitle="完全新手指南"
  tags={["AI 编码助手", "开源免费", "自托管部署"]}
/>

CodeTerminal

<CodeTerminal
  code={`npm install -g openclaw`}
  language="bash"
  filename="install.sh"
  typingSpeed={1}
  showLineNumbers={true}
/>

AnimatedList (with icons)

<AnimatedList
  items={[
    { title: '...', description: '...', icon: 'computer' },
    { title: '...', description: '...', icon: 'bot' },
  ]}
  variant="card"
/>

FeatureGrid (with icons)

<FeatureGrid
  features={[
    { icon: 'zap', title: '极速响应', description: '...' },
    { icon: 'lock', title: '隐私安全', description: '...' },
  ]}
  columns={3}
/>

Animation Guidelines

Do's

  • Use useCurrentFrame() for all animations
  • Use spring() for natural motion
  • Use interpolate() with easing functions
  • Stagger list items with frame delays

Don'ts

  • Never use CSS animations (they won't render)
  • Never use Tailwind animation classes
  • Never use emoji (use SVG icons instead)
  • Avoid mechanical timing (use organic easing)

Example Pattern

const frame = useCurrentFrame();
const { fps } = useVideoConfig();

// Spring animation
const scale = spring({
  frame,
  fps,
  config: { damping: 25, stiffness: 100 },
});

// Interpolation with easing
const opacity = interpolate(frame, [0, 20], [0, 1], {
  extrapolateLeft: 'clamp',
  easing: Easing.out(Easing.quad),
});

Styling Guidelines

Grid Backgrounds

  • 竖屏 composition 必须使用 PortraitGridBackground,16:9 composition 必须使用 LandscapeGridBackground 或兼容别名 GridBackground。
  • 背景组件要放在根级 AbsoluteFill 内、所有 Sequence 和内容层之前,作为整条片子的共享背景层。
  • 业务 composition 禁止直接导入或使用底层 VerticalBackground,也禁止手写 SVG/CSS 网格;需要调参时给 PortraitGridBackground / LandscapeGridBackground 传 props。
  • 不要把标准网格调到几乎不可见。竖屏默认用 PortraitGridBackground 默认参数;特殊场景的 gridOpacity 不低于 0.14,除非用户明确要求无网格或极暗背景。

Colors (from tokens.ts)

import { COLORS } from '../design-system/tokens';
// Background: COLORS.background (#000000)
// Primary: COLORS.primary (#007AFF)
// Text: COLORS.text (#FFFFFF)
// Secondary: COLORS.textSecondary (#8E8E93)

Fonts

import { FONTS } from '../design-system/tokens';
// Display: FONTS.display (SF Pro Display)
// Text: FONTS.text (SF Pro Text)
// Mono: FONTS.mono (JetBrains Mono)

Typography Scale

  • hero: 120px (main titles)
  • h1: 88px (section titles)
  • h2: 56px (subsections)
  • h3: 40px (card titles)
  • h4: 28px (small headers)
  • body: 20px (descriptions)

File Structure

src/
├── design-system/          # Design tokens and animation utilities
│   ├── tokens.ts
│   └── animations.ts
├── components/new/         # New component library
│   ├── index.ts           # Exports
│   ├── HeroTitle.tsx
│   ├── SectionTitle.tsx
│   ├── CodeTerminal.tsx
│   ├── AnimatedList.tsx
│   ├── FeatureCard.tsx
│   ├── MetricCard.tsx
│   ├── Transitions.tsx
│   └── Icons.tsx          # 50+ SVG icons
├── scenes/demo/           # Demo compositions
│   └── DemoScenes.tsx
├── Root.tsx               # Composition definitions
└── index.ts               # Entry point

Dependencies

Key packages:

  • remotion @ 4.0.434 - Video generation
  • @remotion/transitions - Scene transitions
  • tailwindcss @ 4.0.0 - Styling
  • React @ 19.2.3

TTS / Voiceover

User plans to implement Alibaba Cloud TTS as a Skill.

  • Skip Edge TTS / ElevenLabs for now
  • Voiceover sync system not yet implemented

Common Issues & Solutions

1. LightSweep shows transparency at bottom

Fix: Add explicit height parameter:

<LightSweep duration={30} height={1080} />

2. Flickering animation warning

Cause: Animation not purely driven by useCurrentFrame() Fix: Ensure all animated values derive from frame

3. Emoji not rendering

Policy: Use SVG icons from Icons.tsx instead

4. Type errors with icons

Fix: Import IconProps and use proper typing:

import { Zap, IconProps } from './Icons';
const iconMap: Record<string, React.FC<IconProps>> = { zap: Zap };

Next Steps (Roadmap)

  • AudioWaveform component (audio visualization)
  • Chart components (BarChart, LineChart)
  • TypewriterText effect
  • Voiceover sync system
  • TransitionSeries scene orchestration
  • @remotion/light-leaks integration

Contact

For questions about this component library, refer to:

  • src/components/new/ - Component implementations
  • src/design-system/ - Design tokens

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.