技能圖譜SKILLSGROVE
技能圖譜/影片製作/subclip-app/community-video-editing-skills/figma-to-motion

figma-to-motion

安裝

$npx skills add https://github.com/subclip-app/community-video-editing-skills --skill figma-to-motion
$git clone --depth 1 https://github.com/subclip-app/community-video-editing-skills.git /tmp/community-video-editing-skills && mkdir -p ~/.claude/skills && cp -r /tmp/community-video-editing-skills/skills/figma-to-motion ~/.claude/skills/figma-to-motion
請幫我安裝這個 Agent Skill:https://github.com/subclip-app/community-video-editing-skills/tree/5db95be9c6f1d3de5cec5260eeb1ebc4698ebf2c/skills/figma-to-motion ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · Apache-2.0Turn a Figma design into motion inside Subclip. Exported layers, logos and brand tokens become editable HyperFrames layers, and storyboard frames become states of one moving element instead of slides. Product UI frames become a live mock where a cursor click causes each change. Use when the creator wants to use a Figma design, frame, storyboard, logo or brand in a video. A bare figma.com link without that ask is not a trigger.
以下 SKILL.md 內容轉載自 subclip-app/community-video-editing-skills(提交 5db95be),依據 Apache-2.0 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 owner or entity authorized by 所有。許可證:skills/figma-to-motion/LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

Figma to motion

Modified for Subclip (2026-11-27) from the HyperFrames figma skill by HeyGen, Apache-2.0 (upstream commit b4f47ce). Kept: the storyboard method (frames are keyframes, not slides), element matching, motion notes, UI frames as interactions, the shader fallback and "no Figma link in the composition". Changed: the HyperFrames CLI, the Figma REST token and the verify script are replaced by files the creator exports and Subclip tools. The original is in upstream/figma/.

Every Figma input is frozen into a project file before anything is built, so renders never call Figma. Subclip never asks for a Figma token, password or API key.

1. Get the design in

Ask once how the creator wants to share the design, then use the first route that works:

  1. Exported files (default). In Figma: select the frames or layers, then Export as SVG (vectors, logos, icons) or PNG at 2x (photos, raster art, complex effects). Attach them or give their paths. Export one file per element you want to move, not one still per frame.
  2. The creator's own Figma connector. If their agent client already has a signed-in Figma connector, they can use it to export the same files or read frame geometry, colours and text. Save its raw answer in the project brief, not in the layer.
  3. A frame described or screenshotted. Rebuild it by hand from the screenshot, and say that the geometry is estimated.

Bring files in with import_attachment_to_project_media (attachments) or import_external_media with addToTimeline: false (a path or a public HTTPS link). Read list_editor_assets for the exact URLs and bind those URLs in layers. Never leave a figma.com URL in a layer.

Before you design, read what you imported: get_media_context with includeContactSheet: true. Never claim to have seen a frame you only know by name.

2. Tokens and components

  • Colours and type. Collect the design's colours, font families, sizes and radii from the creator's styles or from the exported frames. Put them as CSS variables at the top of the layer (--brand-primary: #153592;), one variable per token, and use the variables everywhere. One edit then re-brands every element. Name a token you could not confirm as an estimate in the brief; never match a library by hex alone.
  • Components. Rebuild a frame you must animate as HTML at its exact geometry (Figma's x, y, width, height and corner radius in pixels) inside a HyperFrames layer. Keep static artwork as the exported SVG or PNG inside that HTML. Check the hero components against the exported PNG side by side in a frame (view_current_frame): text drift is the usual cause. Report drift you cannot fix instead of guessing.
  • Fonts. A font family name is not proof that the face loads. Check a rendered frame; fall back to a close system font and say so.

3. Storyboards: frames are keyframes, not slides

Two frames that hold the same element describe that element's state through time. Animate the element between the states. Playing frames back to back as stills is the failure mode.

  1. Scenes are every frame-sized node in the section, named frames and loose full-frame rectangles alike: filter by size, not by type or name. Order them by x position.
  2. Match children across neighbouring frames by name first, then by similar size and position. Tween geometry (x, y, scale, size, colour) between states. Crossfade two exports in place only when the pixels really changed. Children with no match enter or exit on their scene's beat.
  3. Text nodes below the strip are motion notes for the scene above them, not on-screen copy. A note about motion inside a scene ("lines reveal one after another") means: rebuild that frame and animate it as the note says.
  4. Frames that show one product UI in successive states: rebuild the UI as live DOM. Code what changes state, keep what does not change static, and treat each frame change as an interaction (the cursor moves, clicks, the screen responds), not a tween that just starts. For the cursor, read screen-recording-polish: a Figma-style coloured cursor with a name tag is a good brand-motif cursor here.
  5. Stills are the fallback, only for frames with no shared elements.

A good opening shows the storyboard as the creator drew it (the frames side by side on a dot grid), then pushes into frame one, which becomes the live element. A good ending pulls back so the viewer sees the live element now matches the last frame.

4. Motion from Figma prototypes

When the creator's connector gives prototype or Smart Animate data (durations, eases, from and to values), translate it into one paused GSAP timeline in the layer: keep the durations and bezier eases, drop loop-wrap tail keyframes, and map named eases you cannot match to the nearest GSAP ease and say which. Never copy keyframes by eye when numbers exist.

Verify against Figma's own export: ask the creator for a screen recording or MP4 export of the prototype, import it, and compare the same moments with extract_video_frames (their export) and get_timeline_contact_sheet (your layer). Compare motion between samples, not pixel noise. If a track will not translate, import the creator's export and place it as native video instead.

5. Shaders and effects

Figma's export flattens shader fills to their base colour. Ask the creator for a native PNG or MP4 export of that frame and place it as media or as an image inside the layer.

Build in Subclip

  1. get_project_outline, then read_project_section for the lanes you need. Pass the same projectId on every call and make one edit at a time.
  2. Write the director brief (update_project_director_brief): source frames, token table, matched elements, which frame changes are interactions.
  3. Build each scene as a HyperFrames layer: one root sized 1920 by 1080 (or the project canvas), overflow: clip, every element inside the frame, one paused GSAP timeline registered under the composition id, no timers or randomness. Build the DOM in the HTML itself (layers block innerHTML). Validate with validate_runtime_layer_source, then add_runtime_layer. Revise with read_layer_source and edit_layer_source.
  4. Sound: music and clicks from search_public_audio (prefer CC0), imported with import_public_asset_to_timeline, a click on each tap. Narration, if wanted, with generate_local_speech (free) or generate_speech after get_voice_samples. Keep music peaks under -1 dB.
  5. Check with get_timeline_contact_sheet across the whole film: the strip is readable, the push-in lands on the live element, each click changes something on the same frame, the final state matches the last Figma frame.
  6. Export only on request (export_video, then get_export_status). Record decisions with write_session_summary.

Code layers and local speech cost 0 credits. If a missing surface truly needs a generated image, offer the creator's own Codex CLI first, then quote the Subclip model and price and wait for a yes.

Verification checklist

  • No Figma URL, token or account detail in any layer, variable or note
  • Every element that appears in two frames moves between states; no frame plays as a still slide
  • Motion notes became motion, not on-screen text
  • UI state changes are caused by a click or a typed input
  • Hero components match the exported PNGs; drift is reported
  • Tokens are CSS variables; estimated ones are named in the brief

Reference

The reference with sound and its one-frame-per-second sheet were made by following this skill for a storyboard designed for the test (no Figma account needed): three frames of a habit card on a dot grid, a cyan "Ana" multiplayer cursor reads them, the camera pushes into frame one, two clicks move the live card through the next two states, and the pull-back shows it matching frame three. The silent preview is the hero. Edited by Claude Opus 5.5 (claude-opus-5-5) driving Subclip over MCP, no AI generation model, 0 credits.

Files

Path What it is
upstream/figma/SKILL.original.md the original HyperFrames skill, unchanged
upstream/figma/scripts/ the original verify script and helpers, unchanged, kept for reference only; Subclip does not run them
references/storyboard-layer.md a worked layer skeleton for a three-frame storyboard
LICENSE Apache-2.0, unchanged from the original

Adapted for Subclip from https://github.com/heygen-com/hyperframes by HeyGen, Apache-2.0

檢視許可證全文(Apache-2.0)
                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to the Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by the Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding any notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   Copyright 2026 HeyGen, Inc.

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.