Vfx compositing

From calesthio/generative-media-skills · View interactive version

Vfx compositing is an AI agent skill from the GitHub repository calesthio/generative-media-skills. Provider-independent VFX compositing direction for generated video, ads, trailers, product films, social clips, explainers, mixed-source edits, and image/video composites. Use when an agent must plan, brief, generate, integrate, repair, or quality-check visual effects composites involving plates, al

How to use this skill

Skill file

VFX compositing direction

Use this skill to make composite shots feel photographed together, not stacked together. Treat compositing as shot integration across color, motion, geometry, light, lens, material contact, atmosphere, artifact repair, and delivery handoff.

Do not use this skill as a substitute for legal clearance, colorist judgement, an on-set VFX supervisor, or a compositor operating a specific node graph. Use it to brief, plan, supervise, and review provider-independent compositing work.

Evidence posture

Documented facts below come from professional documentation and standards sources listed at the end. Tool-specific documentation facts were verified on 2026-07-10 and may change.

Empirical observations are repeatable checks an agent can perform by reviewing frames, scopes, mattes, tracks, and before/after renders.

Production heuristics are practical rules of thumb. They are not universal laws; override them when shot evidence, client direction, or a facility spec requires a different approach.

The compositing target

A good composite satisfies four contracts:

  1. The audience contract: the shot does not pull attention away from the story, product, or message.
  2. The camera contract: inserted elements share the plate’s perspective, lens behavior, exposure logic, motion, and defocus.
  3. The image contract: elements share color pipeline, black/white points, grain/noise, sharpness, compression, and atmospheric depth.
  4. The production contract: inputs, versions, rights, AI provenance, handles, mattes, and final outputs are traceable enough for editor/colorist handoff.

When time is short, prioritize the most audience-visible mismatches: perspective, scale, contact/shadow, edge quality, color temperature, motion jitter, and grain/sharpness.

Start with plate and reference prep

Before requesting generation, roto, cleanup, or integration, inventory the plate:

Production heuristic: write a one-paragraph "shot physics note" before creating any element. Include camera, light, scale, and artifact targets. It prevents generic AI elements from drifting away from the plate.

Example shot physics note:

6-second handheld product insert, 24 fps, shallow depth of field. Add a translucent blue holographic UI emerging from the phone screen. Match the plate’s warm practical key from camera left, mild green office spill, visible rolling-shutter wobble, 35mm-ish perspective, screen reflections, contact glow on fingers, plate grain, and slight compression softness. Keep UI behind thumb occlusion and avoid over-bright clipped cyan.

Choose the composite strategy

Use the least destructive strategy that can pass the shot’s QA bar:

Empirical observation: if an element only "sticks" when viewed as a still but swims during playback, the chosen strategy probably under-solves motion, perspective, occlusion, or rolling-shutter behavior.

Alpha, mattes, keying, and roto

Documented facts:

Direct the agent or compositor to separate matte decisions:

Production heuristics:

Common failures:

Tracking, stabilization, and matchmove

Documented facts:

Direct tracking by intent:

Empirical track checks:

Production heuristic: never approve a track from a single representative frame. Most track failures appear during acceleration, occlusion, motion blur, or near frame edges.

Perspective, camera, and lens integration

A generated element must inherit the plate’s camera logic:

AI generation note: request perspective and lens traits explicitly in the generation prompt, but verify them visually. AI models may create plausible-looking elements with inconsistent geometry, impossible reflections, or unstable detail across frames.

Lighting, color, and exposure integration

Documented facts:

Direct color workflow:

  1. Identify plate color space or require the producer to state it. Do not guess silently when professional delivery matters.
  2. Convert elements into the working color space before grading them to match.
  3. Match exposure and contrast before hue tweaks.
  4. Match black point, white point, saturation rolloff, and highlight clipping behavior.
  5. Apply creative grade/view transform consistently; do not bake a display transform into an element and then grade it again.
  6. Deliver colorist-friendly outputs: ungraded/precomped passes when requested, final comp preview, LUT/OCIO notes, and any baked transforms called out.

Production heuristics:

Grain, noise, sharpness, compression, and lens artifacts

Generated elements often fail because they are too pristine.

Match the plate’s:

Production heuristics:

Contact, shadows, reflections, and material response

Contact sells the composite. Add or verify:

Production heuristic: a weak contact shadow is usually better than no contact shadow, but a shadow in the wrong direction is worse than a subtle one. Direction must obey the plate’s key light.

Depth, atmosphere, and volumetrics

Depth cues must agree:

AI caution: generated fog, smoke, rain, fire, and particles can look spatially convincing in one frame but ignore depth ordering over time. Review in motion with occlusion guides.

AI-generated element integration

When using AI to create inserts, extensions, repairs, or full replacement shots, brief the model with integration constraints, not just subject description.

Include:

Empirical observations to check:

Production heuristic: for product films and ads, prefer controlled still/image generation plus compositing for exact product appearance unless a video model can preserve geometry, text, and brand details at the required fidelity.

Clean plates and artifact repair

Use clean plates for removals, replacements, retiming gaps, and object occlusion. A clean plate can come from:

Repair process:

  1. Stabilize or track the region if the camera moves.
  2. Patch in a color-managed working space.
  3. Preserve plate grain, blur, lighting variation, and perspective.
  4. Reapply motion if stabilized.
  5. Compare against adjacent frames and untouched areas.
  6. Log AI-assisted repair if provenance or client policy requires it.

Common failures:

Versioning and handoff

Track enough metadata for another agent, compositor, editor, or colorist to continue without guessing:

Naming heuristic:

Use stable shot/version names such as brandfilm_sh012_comp_v004_preview.mp4, brandfilm_sh012_cleanplate_v002.exr, brandfilm_sh012_ui_alpha_v003.exr. Do not overwrite approved versions.

Editor handoff:

Colorist handoff:

Rights, safety, and disclosure

Documented facts:

Apply these rules:

When rights are unclear, stop and ask for clearance direction instead of burying the risk inside a comp note.

Compositing QA

Review in motion, at delivery size, and frame-by-frame around problem areas.

Minimum QA pass:

Diagnostic review sequence:

  1. Watch full shot at speed without pausing. Note what draws the eye first.
  2. Toggle comp over plate if possible.
  3. Inspect alpha/matte over black, white, gray, and final background.
  4. Check scopes for black/white point and saturation mismatch.
  5. Scrub problem frames and adjacent handles.
  6. View at phone/social size and full resolution.
  7. Encode a test at final compression; compression can reveal seams and banding.

Example: screen replacement in handheld product footage

Production intent: replace a blank phone screen with a live app UI in a 7-second handheld social ad while preserving fingers crossing the screen.

Inputs and constraints:

Direction:

  1. Track the phone screen as a planar surface. Verify with a temporary checkerboard across the full shot.
  2. Create a thumb occlusion matte for frames 61-83; preserve motion-blurred thumb edges.
  3. Corner-pin or project the rendered UI into the tracked screen.
  4. Add screen reflection and slight glass softness; do not make the UI perfectly crisp if the phone is out of focus.
  5. Add faint blue/cyan spill on the thumb only if visible and believable.
  6. Match plate grain and final compression.
  7. QA for track sliding at screen corners and matte chatter around the thumb.

Why structured this way:

The UI is controlled artwork, not generated text. The track and occlusion sell the physical screen. Reflection, blur, and grain prevent a pasted-on look.

Likely failure modes:

Meaningful variations:

Example: AI creature in a trailer plate

Production intent: add a shadowy creature crossing a foggy alley for a 3-second teaser shot.

Inputs and constraints:

Generation direction for the creature element:

Generate a dark, original quadruped creature silhouette crossing left to right in a foggy night alley, low camera angle, wet asphalt reflections, backlit by a cold streetlamp, motion-blurred legs, partial occlusion by foreground trash bags, no gore, no recognizable franchise creature, no readable text or logos. Keep the body mostly in shadow, with faint rim light and wet specular highlights. Provide alpha or clean background separation if supported; otherwise provide a high-contrast pass suitable for roto.

Compositing direction:

  1. Solve or approximate the camera motion; place the creature on the ground plane.
  2. Add contact shadows under feet and soft reflection on wet asphalt.
  3. Put foreground trash bags in front using roto/holdout matte.
  4. Place some fog in front of the creature and some behind it; avoid one flat fog layer.
  5. Match plate grain, low-light chroma noise, lens softness, and cold/warm light mix.
  6. Review only after final teaser compression, because dark fog gradients band easily.

Why structured this way:

The creature can remain impressionistic, but ground contact, occlusion, wet reflection, and depth-layered fog must be precise or the shot will fail.

Likely failure modes:

Example: product beauty comp from generated stills and live-action plate

Production intent: combine a generated premium kitchen background with a real photographed bottle for a product film hero shot.

Inputs and constraints:

Direction:

  1. Keep bottle as the color authority. Do not AI-regenerate the label or cap.
  2. Generate or select a background with matching camera height and focal-length feel; avoid impossible countertop reflections.
  3. Composite in a color-managed workflow; preserve high-bit-depth intermediate if available.
  4. Add contact shadow and subtle reflection from bottle onto countertop.
  5. Match background depth of field to the bottle focus plane.
  6. Add warm sunrise bounce on bottle edges only if consistent with existing plate highlights.
  7. Deliver final preview plus a pre-grade/high-bit-depth comp and separate bottle matte for colorist isolation.

Why structured this way:

Product accuracy and colorist latitude matter more than fully generative novelty. The bottle stays real; the environment is adjusted to support it.

Likely failure modes:

Source notes

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.