# Matrix Sweep

> Turn a two- or three-way comparison into a 1920x1080 side-by-side grid video. Contender strips open first, then every criterion label lands and its answers sweep in left to right, row by row. HyperFrames render with optional synthesised cue sounds.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Business reporting](https://www.sandbase.ai/skills/reporting)
- Version: 1.0.0
- Runs online: yes
- Page: https://www.sandbase.ai/skills/reporting/matrix-sweep

## What you get

Bring explore two recorded examples. The Skill returns two recorded films, measured scope and dependency notices.

## Install

Download the Skill package from https://www.sandbase.ai/skills/reporting/matrix-sweep (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/matrix-sweep create an editable animation from my brief. Preserve the signature timing and motion, use original content and verify the rendered result
```

## How it works

1. **Define contenders and criteria** Matrix Sweep reads a brief with two or three contenders and three to six criteria, each with a topic and one answer per contender, plus optional heading, demoNote, lang, palette and sound. The e-bike demo compares three shared plans and is marked as demo data. Use real data or label invented content with demoNote.
2. **Create the fitted grid** Matrix Sweep needs Node 22+, ffmpeg and ffprobe and a Chrome that HyperFrames can drive, with no API key; npx only fetches the pinned renderer. Run node scripts/create.mjs --brief brief.json --out ./project with --palette sandglass, lagoon-night or rosewater and --audio on or off. Row height, column width and text size fit the content, from 24 to 34 px.
3. **Render and verify rows** Run node scripts/render.mjs ./project ./project/film.mp4 for film.mp4 with 48 kHz stereo AAC plus film.video-only.mp4, with container metadata stripped. Length is about 0.9 seconds plus 0.4 per contender for each row; the demos run 12 and 13.5 seconds. Confirm the duration in build.json, check frames mid-row and at the hold, and compare cue times with changes.

## FAQ

### What does Matrix Sweep make?

Matrix Sweep makes a side-by-side comparison grid video. Contender strips open first, empty dashed slots appear, then each criterion label lands and its answers sweep in left to right, row by row, ending with a closing line and a reading hold. The demos compare e-bike plans and water filters.

### How many options can Matrix Sweep compare?

Matrix Sweep compares two or three contenders across three to six criteria. More contenders, charts inside cells or images need new authoring and new checks, since it is not a free-form film generator.

### What if a Matrix Sweep cell is too long?

Matrix Sweep fails with a message when a cell cannot fit at 24 px, instead of letting text overflow. Shorten the answer or reduce the number of rows so the fitted size rises.

### Does Matrix Sweep need an API key?

No. Matrix Sweep needs no API key, and its sound comes from scripts/sound.mjs synthesising cues from visible events in cues.json. Everything renders locally, so a comparison film carries no usage charge.

### What files does Matrix Sweep output?

Matrix Sweep outputs film.mp4 with H.264 and 48 kHz stereo AAC, and film.video-only.mp4 with the same picture and no audio. With --silent, --audio off or sound disabled, only the picture-only file is written. Video is 1920 by 1080 at 30 fps.

## Examples

- Three shared e-bike plans (demo data) (video)
- Under-sink vs tap water filter (Chinese, demo data) (video)
