{"data":{"slug":"github-figma-mcp-server-guide-workflow-skills-video-interaction-mapper-14bbe0e6bcf2","title":"Map Video Interactions to Figma","summary":"Analyze a UI screen recording and create a Figma storyboard with interaction states, including annotated pages and visual markers for key transitions.","url":"https:\/\/skillshunter.net\/skills\/github-figma-mcp-server-guide-workflow-skills-video-interaction-mapper-14bbe0e6bcf2","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-figma-mcp-server-guide-workflow-skills-video-interaction-mapper-14bbe0e6bcf2","markdown_url":"https:\/\/skillshunter.net\/skills\/github-figma-mcp-server-guide-workflow-skills-video-interaction-mapper-14bbe0e6bcf2.md","download_url":"https:\/\/skillshunter.net\/skills\/github-figma-mcp-server-guide-workflow-skills-video-interaction-mapper-14bbe0e6bcf2\/download","category":{"slug":"product-design","name":"Product & Design"},"editor_note":"Before running the skill, ensure `ffmpeg`, `ffprobe`, and Python with Pillow are installed. Use a Figma Design file as the target, and avoid including coordinate values in visible annotations.","instructions":"---\nname: video-interaction-mapper\ndescription: >\n  This skill should be used when the user asks to analyze a UI screen recording and\n  map interaction states into Figma. Trigger for requests such as \"put video frames\n  in Figma\", \"extract states from my recording\", \"map interactions from video to\n  Figma\", \"analyze this screen recording\", \"create a storyboard from my video\",\n  \"deconstruct this interaction in Figma\", \"annotate the UI states in my recording\",\n  or \"pull the key moments from this video into Figma\". Also trigger when the user\n  references a video file (.mp4, .mov, .webm, .avi) together with Figma, design\n  review, interaction analysis, prototypes, or UI states. The skill extracts key\n  visual moments from a video, infers interaction triggers, and builds an annotated\n  Figma Design storyboard using native Figma annotations and uploaded screenshot\n  assets.\n---\n\n# Video Interaction Mapper\n\nTurn a UI recording into a static, annotated Figma storyboard. Extract the important\nbefore\/after states, infer what triggered each change, then place clean screenshots,\nblue interaction markers, and concise annotations into a Figma Design file.\n\n## Required Inputs and Tools\n\nStart with:\n\n- A local video file path (`.mp4`, `.mov`, `.webm`, or `.avi`).\n- `ffmpeg` and `ffprobe` available on the machine.\n- Python with Pillow installed.\n- Figma MCP tools available: `create_new_file`, `use_figma`, `upload_assets`, and\n  `get_screenshot` or `get_design_context`.\n\nRun the bundled files in `scripts\/` as executable workflow helpers. They are part\nof the skill's implementation, not reference material. Read or modify them only\nwhen debugging, adapting to an unusual environment, or changing the skill itself.\n\nUse a Figma Design file (`figma.com\/design\/...`) as the target. The generated\nPlugin API code creates pages and image-fill frames, which are Design-file\noperations. If the user provides a FigJam or Slides URL, ask for a Design file or\ncreate a new one.\n\nBefore any `use_figma` call, load the Figma API guidance skill if available\n(`figma-use`). Before creating a new Figma file, load the file-creation guidance\nskill if available (`figma-create-new-file`). Pass `skillNames:\n\"figma-use,video-interaction-mapper\"` on `use_figma` calls when the client supports\nthat parameter.\n\n## Workflow\n\n### 1. Validate and Prepare\n\nConfirm the video path exists, then check `ffmpeg -version`. If Pillow is missing,\ninstall it in the active Python environment:\n\n```bash\npip install Pillow --break-system-packages -q\n```\n\nDo local analysis before creating or modifying the Figma file. Create a Figma file\nonly after `key_moments.json`, `upload_manifest.json`, and generated Figma scripts\nare ready, unless the user explicitly asks to create the file first. This avoids\nleaving partial pages behind when local frame analysis changes.\n\n### 2. Scout the Timeline Quickly\n\nStart with a low-resolution scout pass and contact sheet:\n\n```bash\npython <SKILL_DIR>\/scripts\/extract_key_frames.py \\\n  --input \"<video_path>\" \\\n  --output \/tmp\/vim_frames_<timestamp>\/ \\\n  --mode scout\n```\n\nThe scout pass extracts at 1 fps by default, resizes frames to 640 px wide, scores\nscene changes, writes `<output_dir>\/frames_manifest.json`, and creates\n`<output_dir>\/contact_sheet.jpg`. Inspect the contact sheet first to identify likely\ninteraction moments.\n\nUse the slower full extraction only when the scout pass is insufficient:\n\n```bash\npython <SKILL_DIR>\/scripts\/extract_key_frames.py \\\n  --input \"<video_path>\" \\\n  --output \/tmp\/vim_frames_<timestamp>\/full_frames\/ \\\n  --mode full \\\n  --max-width 1600\n```\n\nFor very long videos, ask whether to focus on a specific time range before\nprocessing the whole recording. For too many key frames, re-run extraction with a\nhigher `--scene-threshold`, such as `0.4`.\n\n### 3. Analyze Key Moments\n\nRead `frames_manifest.json` and inspect `contact_sheet.jpg` or relevant extracted\nframes. For each meaningful transition, identify:\n\n- Visual change: modal, drawer, dropdown, tooltip, snackbar, overlay, navigation,\n  loaded content, selected state, validation state, input focus, or scroll position.\n- Trigger: click, tap, keyboard input, hover, scroll, swipe, form submit, auto\/timer,\n  or unknown trigger when the cause is ambiguous.\n- Interaction target and result coordinates when visible and useful.\n\nUse normalized coordinates from `0` to `1` relative to the screenshot. Percent-like\nvalues such as `45` or `94` are accepted by the generated Figma script and converted\nto `0.45` or `0.94`. Coordinates are machine metadata for marker placement only.\nDo not include coordinate values in visible annotation text, moment labels, or user\nsummaries.\n\nOnly add marker coordinates when the point lands on a clearly visible UI element or\nstate. If a target is inferred, between visible controls, or based mainly on cursor\nposition, mark it with `inferred: true`, `uncertain: true`, `visible: false`, or\n`confidence: \"medium\"`\/`\"low\"`. The generated script suppresses markers for those\npoints by default so the canvas does not show a confident pulse over empty UI. If\nthe target or result cannot be located usefully, set `interaction` to `null`.\n\nUse `confidence: \"high\"` or omit `confidence` only when the marker should be drawn.\nUse `show_marker: true` only when an uncertain point is still worth marking; the\ngenerated marker uses an alternate style for these forced uncertain markers.\n\nAim for 5 to 15 key moments. Prioritize high scene scores and genuinely different\nstates over tiny visual shifts.\n\nWrite the analysis to `<output_dir>\/key_moments.json` as an array. When using the\nscout flow, provide timestamps first; resolve high-quality frame files in the next\nstep.\n\n```json\n[\n  {\n    \"moment_index\": 1,\n    \"timestamp_s\": 3.4,\n    \"before_timestamp_s\": 3.2,\n    \"after_timestamp_s\": 3.4,\n    \"trigger\": \"Click\",\n    \"trigger_emoji\": \"\",\n    \"short_label\": \"Dropdown menu opens\",\n    \"annotation\": \"The account avatar is activated. A menu appears below it with profile, billing, and sign-out actions.\",\n    \"interaction\": {\n      \"target_frame\": \"before\",\n      \"target\": {\n        \"x\": 0.91,\n        \"y\": 0.08,\n        \"label\": \"Account avatar\",\n        \"confidence\": \"high\"\n      },\n      \"result_frame\": \"after\",\n      \"result\": {\n        \"x\": 0.86,\n        \"y\": 0.2,\n        \"label\": \"Opened account menu\"\n      },\n      \"annotation\": \"Activating the avatar opens the account menu.\"\n    }\n  }\n]\n```\n\nKeep annotations human-readable: `Target: Account avatar`, not a label with a raw\ncoordinate suffix. Coordinates stay hidden in JSON and appear only as visual marker\nplacement.\n\nIf a marker is drawn, the native Figma annotation is attached to that marker node\nrather than the screenshot frame. If a marker is suppressed because the point is\nuncertain or not visible, the annotation remains attached to the screenshot frame.\n\n### 4. Resolve Selected Frames\n\nIf `key_moments.json` uses timestamps, extract only the selected before\/after\nframes at higher quality:\n\n```bash\npython <SKILL_DIR>\/scripts\/resolve_moment_frames.py \\\n  --video \"<video_path>\" \\\n  --moments-file \/tmp\/vim_frames_<timestamp>\/key_moments.json \\\n  --output \/tmp\/vim_frames_<timestamp>\/key_moments_resolved.json \\\n  --frames-dir \/tmp\/vim_frames_<timestamp>\/selected_frames\/ \\\n  --max-width 1600\n```\n\nUse `key_moments_resolved.json` in later steps. If a full extraction already\nproduced precise `before_frame_path` and `after_frame_path` values, this step can\nbe skipped.\n\n### 5. Prepare Uploadable Screenshot Assets\n\nCompress and resize the before\/after screenshots for upload:\n\n```bash\npython <SKILL_DIR>\/scripts\/prepare_upload_frames.py \\\n  --manifest \/tmp\/vim_frames_<timestamp>\/frames_manifest.json \\\n  --moments-file \/tmp\/vim_frames_<timestamp>\/key_moments_resolved.json \\\n  --output \/tmp\/vim_frames_<timestamp>\/upload_manifest.json\n```\n\nThe script writes optimized JPEGs under `<output_dir>\/upload_assets\/` and creates\n`upload_manifest.json`. Defaults are 1440 px wide for landscape recordings and 900\npx wide for portrait recordings at JPEG quality 75. It records image dimensions,\nactual JPEG quality, file size, and whether each asset fits the upload budget.\n\n### 6. Generate Figma Call Files\n\nGenerate the self-contained Plugin API scripts:\n\n```bash\npython <SKILL_DIR>\/scripts\/generate_figma_calls.py \\\n  --prepared \/tmp\/vim_frames_<timestamp>\/upload_manifest.json \\\n  --output-dir \/tmp\/vim_frames_<timestamp>\/figma_calls\/\n```\n\nThis writes:\n\n- `figma_storyboard.js`: one combined storyboard creation call.\n- `figma_apply_fills_template.js`: a fill-pass template for uploaded image hashes.\n- `figma_manifest.json`: execution order and upload instructions.\n- `run_manifest.json`: resumable status, selected moments, expected uploads, node\n  IDs, image hashes, fill status, and verification status.\n\nThe generated JavaScript does not embed image bytes and does not call\n`figma.createImage`. The storyboard script creates all screenshot containers,\nlabels, native annotations, and marker overlays in one call, then returns\n`uploadTargets` containing Figma node IDs and local JPEG paths. In a newly created\nblank file, the script reuses and renames the default page instead of creating a\nsecond page.\n\n### 7. Execute in Figma and Upload Assets\n\nCreate a new Figma Design file or open the target Design file now. Run the generated\nfiles in `figma_manifest.json`:\n\n1. Read `figma_storyboard.js`.\n2. Call `use_figma` against the target Design file with the full JavaScript content.\n3. Save the result JSON if practical, then update the run manifest:\n\n```bash\npython <SKILL_DIR>\/scripts\/update_run_manifest.py \\\n  --run-manifest \/tmp\/vim_frames_<timestamp>\/figma_calls\/run_manifest.json \\\n  --storyboard-result \/tmp\/vim_frames_<timestamp>\/storyboard_result.json\n```\n\nFor each returned `uploadTargets` item:\n\n- Call `upload_assets` with the target `fileKey`, `count: 1`, `nodeId`, and\n  `scaleMode: \"FILL\"`.\n- POST the local file at `target.path` to the returned upload URL.\n- Record `{ \"nodeId\": \"...\", \"imageHash\": \"...\", \"scaleMode\": \"FILL\" }` in an\n  uploads JSON file.\n\nGenerate and run the fill pass:\n\n```bash\npython <SKILL_DIR>\/scripts\/update_run_manifest.py \\\n  --run-manifest \/tmp\/vim_frames_<timestamp>\/figma_calls\/run_manifest.json \\\n  --uploads-file \/tmp\/vim_frames_<timestamp>\/uploaded_images.json \\\n  --write-fill-script \/tmp\/vim_frames_<timestamp>\/figma_calls\/figma_apply_fills.js\n```\n\nRun `figma_apply_fills.js` once with `use_figma`. This explicit image-hash fill pass\nis preferred because it makes uploaded screenshots render reliably in the generated\ncontainers.\n\n### 8. Verify\n\nRun `get_screenshot`, `download_assets`, or `get_design_context` to verify that:\n\n- Screenshots are visible and nonblank.\n- Blue marker rings sit on the intended target\/result locations.\n- Native annotations use human labels and do not expose coordinate values.\n- Ambiguous or inferred targets are suppressed unless explicitly forced with\n  `show_marker: true`.\n\nUpdate `run_manifest.json` with verification artifacts when available:\n\n```bash\npython <SKILL_DIR>\/scripts\/update_run_manifest.py \\\n  --run-manifest \/tmp\/vim_frames_<timestamp>\/figma_calls\/run_manifest.json \\\n  --verification-screenshot \/tmp\/vim_frames_<timestamp>\/figma_storyboard.png \\\n  --verification-notes \"Screenshots and markers verified\"\n```\n\n## Output Expectations\n\nThe storyboard layout is left-to-right:\n\n```text\n[Title block]\n\n[Before] [After]   [Before] [After]   [Before] [After]\nmoment 1           moment 2           moment 3\n\n\"Before state\"     \"01 Dropdown menu opens\"\n                   Annotation text...\n```\n\nBlue ring\/dot overlays show the target and result locations when coordinates are\navailable and confident. Native Figma annotations attach to the marker nodes when\nmarkers exist; otherwise they attach to the relevant before\/after screenshot nodes.\nAnnotation labels should name the UI element or state change, never raw coordinate\npercentages.\n\nReport back with:\n\n- The number of key moments mapped.\n- The Figma file URL.\n- Any moments whose trigger was ambiguous.\n- Any uploads or frames that failed.\n- The verification status and any inferred\/uncertain markers.\n\n## Edge Cases\n\n- Long video: ask for a time range or warn that processing can take longer.\n- Too many moments: raise `--scene-threshold` or manually keep the most meaningful\n  5 to 15 transitions.\n- Mobile recording: keep the portrait default width of 900 px so text remains\n  readable without oversized assets.\n- Missing trigger evidence: use `Unknown trigger` instead of guessing.\n- Asset upload failure: retry the individual `upload_assets` target; the generated\n  screenshot container remains in the file and can be reused.\n- `upload_assets` succeeds but images do not render: run the generated fill pass\n  with the returned image hashes.\n- `upload_assets` is unavailable: warn that the fallback path is slower because it\n  must embed image data directly in `use_figma` calls.\n","use_cases":["Analyze a UI recording and create a Figma storyboard with interaction states","Extract key moments from a video and map them to design elements","Generate annotated Figma pages from screen recordings for design reviews"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/figma\/mcp-server-guide\/blob\/5f3024c3decd83ff6f0bfb3ef36a2c4cfbff961d\/workflow-skills\/video-interaction-mapper\/SKILL.md","source_commit":"5f3024c3decd83ff6f0bfb3ef36a2c4cfbff961d","license":null,"version":null,"listing_approved_at":"2026-11-22","created_at":"2026-11-21T12:13:34.000000Z","updated_at":"2026-11-22T11:17:33.000000Z","seo_title":"Map video interactions to Figma","seo_description":"Automate UI interaction analysis by mapping video frames to Figma design files with annotations and state markers.","seo_keywords":["video to Figma","interaction mapping","screen recording analysis","UI state extraction","Figma storyboard","design review tool"]}}