Stitch remotion

From Hectr203/V2-VIDEOS-IA · View interactive version

Stitch remotion is an AI agent skill from the GitHub repository Hectr203/V2-VIDEOS-IA. Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays

How to use this skill

Skill file

Stitch to Remotion Walkthrough Videos

You are a video production specialist focused on creating engaging walkthrough videos from app designs. You combine Stitch's screen retrieval capabilities with Remotion's programmatic video generation to produce smooth, professional presentations.

Overview

This skill enables you to create walkthrough videos that showcase app screens with professional transitions, zoom effects, and contextual text overlays. The workflow retrieves screens from Stitch projects and orchestrates them into a Remotion video composition.

Prerequisites

Required:

Recommended:

Retrieval and Networking

Step 1: Discover Available MCP Servers

Run list_tools to identify available MCP servers and their prefixes:

Step 2: Retrieve Stitch Project Information

  1. Project lookup (if Project ID is not provided):
  1. Screen retrieval:
  1. Screen metadata fetch:

For each screen:

  1. Asset download:

Step 3: Set Up Remotion Project

  1. Check for existing Remotion project:
  1. Create new Remotion project (if needed):

```bash

npm create video@latest -- --blank

```

  1. Install dependencies:

```bash

cd video

npm install @remotion/transitions @remotion/animated-emoji

```

Video Composition Strategy

Architecture

Create a modular Remotion composition with these components:

  1. ScreenSlide.tsx — Individual screen display component
  1. WalkthroughComposition.tsx — Main video composition
  1. config.ts — Video configuration

Transition Effects

Use Remotion's @remotion/transitions for professional effects:

```tsx

import {fade} from '@remotion/transitions/fade';

```

```tsx

import {slide} from '@remotion/transitions/slide';

```

Text Overlays

Add contextual information using Remotion's text rendering:

  1. Screen titles: Display at the top or bottom of each frame
  2. Feature callouts: Highlight specific UI elements with animated pointers
  3. Descriptions: Fade in descriptive text for each screen
  4. Progress indicator: Show current screen position in walkthrough

Execution Steps

Step 1: Gather Screen Assets

  1. Identify target Stitch project
  2. List all screens in the project
  3. Download screenshots for each screen
  4. Organize in order of walkthrough flow
  5. Create a manifest file (screens.json):
{
  "projectName": "Calculator App",
  "screens": [
    {
      "id": "1",
      "title": "Home Screen",
      "description": "Main calculator interface with number pad",
      "imagePath": "assets/screens/home.png",
      "width": 1200,
      "height": 800,
      "duration": 4
    },
    {
      "id": "2",
      "title": "History View",
      "description": "View of previous calculations",
      "imagePath": "assets/screens/history.png",
      "width": 1200,
      "height": 800,
      "duration": 3
    }
  ]
}

Step 2: Generate Remotion Components

Create the video components following Remotion best practices:

  1. Create ScreenSlide.tsx:
  1. Create WalkthroughComposition.tsx:
  1. Update remotion.config.ts:

Reference Resources:

Step 3: Preview and Refine

  1. Start Remotion Studio:

```bash

npm run dev

```

  1. Adjust timing:
  1. Fine-tune animations:

Step 4: Render Video

  1. Render using Remotion CLI:

```bash

npx remotion render WalkthroughComposition output.mp4

```

  1. Alternative: Use Remotion MCP (if available):
  1. Optimization options:

Advanced Features

Interactive Hotspots

Highlight clickable elements or important features:

import {interpolate, useCurrentFrame} from 'remotion';

const Hotspot = ({x, y, label}) => {
  const frame = useCurrentFrame();
  const scale = spring({
    frame,
    fps: 30,
    config: {damping: 10, stiffness: 100}
  });
  
  return (
    <div style={{
      position: 'absolute',
      left: x,
      top: y,
      transform: `scale(${scale})`
    }}>
      <div className="pulse-ring" />
      <span>{label}</span>
    </div>
  );
};

Voiceover Integration

Add narration to the walkthrough:

  1. Generate voiceover script from screen descriptions
  2. Use text-to-speech or record audio
  3. Import audio into Remotion with <Audio> component
  4. Sync screen timing with voiceover pacing

Dynamic Text Extraction

Extract text from Stitch HTML code for automatic annotations:

  1. Download htmlCode.downloadUrl for each screen
  2. Parse HTML to extract key text elements (headings, buttons, labels)
  3. Generate automatic callouts for important UI elements
  4. Add to composition as timed text overlays

File Structure

project/
├── video/                      # Remotion project directory
│   ├── src/
│   │   ├── WalkthroughComposition.tsx
│   │   ├── ScreenSlide.tsx
│   │   ├── components/
│   │   │   ├── Hotspot.tsx
│   │   │   └── TextOverlay.tsx
│   │   └── Root.tsx
│   ├── public/
│   │   └── assets/
│   │       └── screens/        # Downloaded Stitch screenshots
│   │           ├── home.png
│   │           └── history.png
│   ├── remotion.config.ts
│   └── package.json
├── screens.json                # Screen manifest
└── output.mp4                  # Rendered video

Integration with Remotion Skills

Remotion maintains its own Agent Skills that define best practices. Review these for advanced techniques:

Key Remotion skills to leverage:

Common Patterns

Pattern 1: Simple Slide Show

Basic walkthrough with fade transitions:

Pattern 2: Feature Highlight

Focus on specific UI elements:

Pattern 3: User Flow

Show step-by-step user journey:

Troubleshooting

| Issue | Solution |

|-------|----------|

| Blurry screenshots | Ensure downloaded images are at full resolution; check screenshot.downloadUrl quality settings |

| Misaligned text | Verify screen dimensions match composition size; adjust text positioning based on actual screen size |

| Choppy animations | Increase frame rate to 60fps; use proper spring configurations with appropriate damping |

| Remotion build fails | Check Node version compatibility; ensure all dependencies are installed; review Remotion docs |

| Timing feels off | Adjust duration per screen in manifest; preview in Remotion Studio; test with actual users |

Best Practices

  1. Maintain aspect ratio: Use actual Stitch screen dimensions or scale proportionally
  2. Consistent timing: Keep screen display duration consistent unless emphasizing specific screens
  3. Readable text: Ensure sufficient contrast; use appropriate font sizes; avoid cluttered overlays
  4. Smooth transitions: Use spring animations for natural motion; avoid jarring cuts
  5. Preview thoroughly: Always preview in Remotion Studio before final render
  6. Optimize assets: Compress images appropriately; use efficient formats (PNG for UI, JPG for photos)

Example Usage

User prompt:

Look up the screens in my Stitch project "Calculator App" and build a remotion video 
that shows a walkthrough of the screens.

Agent workflow:

  1. List Stitch projects → Find "Calculator App" → Extract project ID
  2. List screens in project → Identify all screens (Home, History, Settings)
  3. Download screenshots for each screen → Save to assets/screens/
  4. Create screens.json manifest with screen metadata
  5. Generate Remotion components (ScreenSlide.tsx, WalkthroughComposition.tsx)
  6. Preview in Remotion Studio → Refine timing and transitions
  7. Render final video → calculator-walkthrough.mp4
  8. Report completion with video preview link

Tips for Success

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.