Skip to content
Skills Library
Marketing & content · Building & coding

reference-fragment-matching

/reference-fragment-matching

Rebuild a reference video as a scene one fragment at a time - split the reference into spans where one arrangement holds, take a census of each, measure every beat, build it, then check it against the reference on motion and on appearance until it matches - and join the fragments without tearing their seams. Use when a scene must reproduce a reference clip, or when one part of a recreation does not match its reference.

Licence
MIT
Last repository change
27.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Rebuild a reference video as a scene one fragment at a time - split the reference into spans where one arrangement holds, take a census of each, measure every beat, build it, then check it against the reference on motion and on appearance until it matches - and join the fragments without tearing their seams. Use when a scene must reproduce a reference clip, or when one part of a recreation does not match its reference.

Original author description

Rebuild a reference video as a scene one fragment at a time - split the reference into spans where one arrangement holds, take a census of each, measure every beat, build it, then check it against the reference on motion and on appearance until it matches - and join the fragments without tearing their seams. Use when a scene must reproduce a reference clip, or when one part of a recreation does not match its reference.

How it works

  1. The loop
  2. Checking against the reference
  3. Rules that bite
Original SKILL.md headings · 91 lines, 1,062 words
SKILL.md preview
---
name: reference-fragment-matching
description: Rebuild a reference video as a scene one fragment at a time - split the reference into spans where one arrangement holds, take a census of each, measure every beat, build it, then check it against the reference on motion and on appearance until it matches - and join the fragments without tearing their seams. Use when a scene must reproduce a reference clip, or when one part of a recreation does not match its reference.
user-invocable: false
---

# Fragment matching

Two laws:

1. **Measure, don't guess.** Every invented motion or timing has been wrong on its first render.
   Numbers come from the reference's pixels, through the tools, never from imagination.
2. **One fragment at a time.** Split the timeline into fragments and match each one against the
   reference until it holds, then move on. Never tune the whole clip at once.

**What it can rebuild today: flat-background motion graphics** (app and product promos: cards,
bars, chips, chat, grids). Live action, kinetic typography, particles, 3D and character animation
are out of reach. Say so before building, rather than deliver a plausible-looking wrong recreation.

Read this before you need it:

| File | Read it before you… |
|---|---|
| `references/seams.md` | plan more than one fragment, or join fragments into one scene |

## The loop

1. **Split the reference.** `picsart_media_segment_shots` with the `source` and the window `t0`/`t1`
   returns fragments, each a `hold` (one arrangement holds still) or a `transition` (it changes),
   with a `suggestedStep`: how densely to look at it. Look at a still either side of every boundary
   with `picsart_media_video_stills`: merge a boundary where nothing visibly changes, split a slow
   change it missed. A transition is real content and needs the densest work, never a gap to skip.
   Name each fragment by what happens in it ("the hero card shrinks and docks onto the input bar",
   never "fragment 3"), and work them in timeline order.
2. **Take the census.** Stills of the fragment at its `suggestedStep`. List everything that is
   there, not only what moves: each element's box, its fill or accent colour, its text, its corner
   radius. Motion checks cannot see a missing icon, a wrong accent or absent text, and those are the
   differences people notice first.
3. **Measure every beat** with the motion-tracking-from-video skill, and write the **measured beat table**
   before you build any motion: per beat, its start and end time, its start and end extent
   (position, scale, rotation), and the tracking result each number came from. A beat with no row is
   a beat you are about to guess. One agent measured a card's geometry on stills and invented its
   time: it built a 0.225 s, 15% shrink where the reference measures 1.40 s and 67%. The beat it
   tracked over time was the one it got right.
4. **Choose what carries each motion** before you write it. Elements that move because their
   container moves are one composition with the motion on it, never the same keyframes copied onto
   each member, which drift apart. A treatment that appears around an element in place is a look's
   fade, not a second layer.
5. **Build the fragment** as the scene-building-basics skill says, and check it as the quality-review skill says.
6. **Check it against the reference** (below). Fix, and check again, within the fix rounds
   picsart-video-rules allows. Then go on, and say what is still off.

## Checking against the reference

Export your render of the fragment's window and compare it with the reference over the same
window. Each check answers one question, and none of them alone says the fragment matches:

| Question | Tool | It returns |
|---|---|---|
| Does each element move like the reference's? | the motion-tracking-from-video skill: `picsart_media_track_motion` on both, then `picsart_media_track_motion_diff` | `maxDev`, `meanDev`, `worstT` per element and channel |
| Does the whole frame move the same way: fade or move, direction, order, which area moves when? | `picsart_media_flow_diff` with `a` the reference, `b` your render, `t0`/`t1`, and `fps: "auto"` | a `score` to rank versions, clustered findings to act on |
| Is everything there, in the right colour, size and place? | `picsart_media_inventory_diff` with `a`, `b` and `times`: 3–5 per fragment | missing and extra elements, colour, size, position, text, corner radius |

- **Look at the fragment's density, not a flat rate.** On one clip a hold asked for a still every
  0.42 s and the transition right after it for one every 0.045 s. A flat 8 per second oversamples
  the first 3.4 times and undersamples the second 2.8 times, and the transition is where
  recreations differ. `fps: "auto"` on `picsart_media_flow_diff` scores each fragment at its own
  density.
- **Every inventory run reports one `plate` finding per side, scored 0.** It is the census saying
  which background it measured and what it left out, not a defect: read it, never chase it.
- **Numbers first, pictures second.** A still reads to within dozens of pixels; a tracking result,
  a layout query or a diff is exact. Spend stills on choosing targets, on what a number cannot say,
  and on the final look.
- **A mismatch is usually** a beat measured too sparsely (track it again, denser), the wrong
  carrier (a fade covering a jump in pose that should be one continuous move), or something the
  scene format cannot do. Say the last plainly; never bury a workaround in the scene.

## Rules that bite

- **Never use the reference's own pixels as assets.** A crop of the reference's photo, or a whole
  frame, makes the appearance check score near perfect while proving nothing: the check compares
  your render with that same reference. Use the user's own assets, or plain stand-ins, and expect
  colour findings on their content. A recreation is a document that could be re-rendered with other
  photos. When an element is a masked view of a larger picture, build the picture and the mask.
- **A layer's box is two fields.** `transform.position` is a point in composition pixels, top-left
  origin, and the layer's `anchor` lands on it. The anchor is the box's centre for every content
  kind except text, so measure each reference element to its **centre**, not its corner. Its size is
  `content.bounds` (`[w, h]`) on media and nested scenes, and `content.size` on a colour. Media
  without `bounds` fills the whole frame.
- **Text never reflows.** A scene has no wrap and no maximum width, so a long line runs straight out
  of the box around it. Break lines yourself with `\n`.
- **A frame at exactly the scene's duration renders black.** Take stills strictly inside it.
- **The same media URL may fill two boxes as it is.** Never make it unique per use.
- **Keep what you measured**: the fragment plan, the beat tables, the tracking results and the
  checks, so the user can see what you saw.
Files in this package (2)
  • SKILL.md 7 KB
  • references/seams.md 3 KB

Versions

RepositoryScoreLicence
This page · picsart/gen-ai-skills90MIT
PicsArt/media-studio90MIT

Database snapshot: 13.11.2026 · package version 15ab67f285b6 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100reference-matching
    Recreate the look and rhythm of a reference video ("make it like this reel") - measure its cut times, shot lengths, beat alignment, text timing and positions, fonts, transitions, grade and audio, write a style spec, then rebuild with the user's footage and compare side by side.…
  • 100replicate
    Rebuild any video, or its style, as an editable video project. Measure the reference (cuts, shots, camera, captions, sound), write a beat map, build it (HyperFrames by default), then check the render against the reference frame by frame. Use when asked to replicate, recreate,…
  • 100motion-tracking-from-video
    Measure what objects visibly do in a video - where each one moves, turns and grows, frame by frame - with picsart_media_track_motion, work out each move's easing (curve, overshoot, bounce) and turn it into scene keyframes; then measure your render the same way and compare them…
  • 90motion-tracking-from-video
    Measure what objects visibly do in a video - where each one moves, turns and grows, frame by frame - with picsart_media_track_motion, and turn the measurement into scene keyframes; then measure your own render the same way and compare the two with…
  • 90c3d-reference-recreation
    Guides a phased, self-correcting recreation of a scene from a reference image or written spec in Cheetah3D 8.1.3 through the c3d_* MCP tools, with draft renders compared against the reference after every phase, checkpoints, crash recovery, bounded GI budgets, a delivery set and…
  • 90recreate-video
    Rebuild a reference video as an editable animated scene that moves and looks like it - the same layout, the same timing, the same motion - measured from the video rather than eyeballed, with the user's own photos and text in place of the original's. Use when the user brings a…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.