In the Skill's Own Terms
Imports Figma content into HyperFrames compositions across five phases: static assets, brand tokens, components as HTML, motion timelines, and shaders. Uses REST API wherever possible (assets, tokens, components) with optional connector for motion and shader data. Every import freezes artifacts locally with recorded provenance so renders never call Figma and stay deterministic.
Storyboard reconstruction treats frames as keyframes describing element state over time, not slides. Supports token-to-component binding so one brand variable update re-colors every imported component. Rate-limit aware with automatic retry. Works across every Figma file the configured token can access.
What it produces
- Frozen image assets under .media/images/ with manifest provenance and img snippet
- Brand token entries, figma-tokens.json sidecar, and binding-index records in .media/figma-bindings.jsonl
- Editable HTML component packages under compositions/components/<name>/
- GSAP timeline scripts injected after CDN tags, paused and finite, registered on window.__timelines
How It Works
- 01Parse the Figma Reference
Use parseFigmaRef to extract fileKey and nodeId from the user's URL, fileKey:nodeId string, or bare fileKey.
- 02Route by Intent to the Correct Phase
Match the user's request to one of five phases: asset export, token import, component reconstruction, motion timelines, or shader handling.
- 03Fetch via REST or Connector
REST is used for assets, tokens, and components. Motion and shaders require a compatible connector or manual export.
- 04Freeze Artifacts Locally with Provenance
Every import writes a local file, appends the manifest with source metadata, and regenerates the shared media-use inventory.
- 05Reconstruct Motion and Storyboards from State Data
Storyboard frames become element timelines by diffing adjacent frames. Motion context normalizes into MotionDocs, then GSAP scripts.
- 06Verify Against Ground Truth
Compare the render against Figma's own pixel export for static fidelity. Motion reconstruction must pass 15dB minimum motion-PSNR.