Communitygithub.com

laviedezidane/hyperframes-skill

Figma 콘텐츠를 HyperFrames 컴포지션으로 가져옵니다 — 렌더링된 에셋, 브랜드 토큰, 컴포넌트, 스토리보드 섹션 → 모션 재구성 (프레임을 슬라이드가 아닌 상태로 읽음) (REST/CLI), 커넥터 지원 시 모션, 그리고 커넥터 또는 네이티브 내보내기의 쉐이더. 사용자가 figma.com 링크를 붙여넣거나 Figma 디자인, 프레임, 로고, 브랜드 또는 애니메이션을 비디오/컴포지션으로 가져오라고 요청할 때 사용하세요.

hyperframes-skill란 무엇인가요?

이 스킬은 Figma 디자인 자산을 HyperFrames 컴포지션으로 가져오는 프로세스를 자동화합니다. REST API와 CLI 명령어를 통해 정적 에셋, 브랜드 토큰, 컴포넌트를 처리하고, 선택적 Figma 커넥터를 통해 모션과 쉐이더 데이터를 처리합니다. 주요 특징으로는 다단계 가져오기(에셋 → 토큰 → 컴포넌트 → 모션 → 쉐이더), idempotent한 로컬 고정, Figma 차이점만 다시 가져오는 증분 업데이트, 그리고 브랜드 수정을 모든 가져온 컴포넌트에 전파하는 `var()` CSS 사용자 정의 속성 바인딩이 있습니다. 커넥터가 없으면 모션과 쉐이더에 대해 네이티브 내보내기를 요청합니다. 또한 스토리보드 섹션을 키프레임(슬라이드가 아님)으로 구문 분석하여 요소 애니메이션을 재구성하며, 디자인과 최종 렌더링 간의 차이점을 감지하기 위해 픽셀 단위의 정확성 검증을 포함합니다. 오디오 바인딩, 3D 메쉬 가져오기, 그리고 고급 속성 키프레임에 대한 추가 배치 및 데이터베이스 연동 기능도 제공됩니다.

지원 대상~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/laviedezidane/hyperframes-skill/tree/HEAD/.agents/skills/figma

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

플러그인 설치: 설정 또는 새로고침 명령 전에 이 스킬이 HyperFrames 플러그인 내부에 있을 경우 플러그인 실행 규칙을 따르세요. 독립 실행형 설치의 경우 아래 업데이트 지침을 유지합니다.

먼저, 이 스킬을 최신 상태로 유지하세요 — 사용자에게 확인 후 실행: npx hyperframes skills update figma. 모든 것이 최신 상태이면 빠른 no-op이며, 그렇지 않으면 이 스킬과 이 스킬이 의존하는 핵심 도메인 스킬을 사용하기 전에 업데이트합니다.

Figma → HyperFrames

사용자의 Figma 작업을 컴포지션으로 가져옵니다. 기능별로 분할 (디자인 사양 §2):

단계내용전송 방식인터페이스
1정적 에셋RESThyperframes figma asset
2브랜드 토큰/스타일RESThyperframes figma tokens
3컴포넌트 → HTMLRESThyperframes figma component
4모션 → GSAP커넥터(가능한 경우)해당 모션 컨텍스트 사용
5쉐이더커넥터 / 수동 내보내기해당 기능 또는 네이티브 내보내기 사용

REST는 가능한 모든 곳에서 사용됩니다 (대량 사용, 헤드리스 가능). 호환되는 Figma 커넥터는 모션 및 쉐이더 데이터에 선택 사항입니다. 커넥터가 없으면 네이티브 내보내기를 요청하세요. 모든 경로는 에셋을 로컬에 고정하여 렌더링이 결정적으로 유지되도록 합니다. 스토리보드 재구성은 Phase-1 에셋 내보내기(REST)와 에이전트 기반 타임라인 어셈블리를 결합합니다 — 커넥터가 필요 없습니다. 기존 고정 에셋, 매니페스트 레코드 및 바인딩은 라우팅 변경의 영향을 받지 않습니다 — 분할은 다음 가져오기가 사용할 자격 증명만 변경합니다.

인증 — 두 개의 자격 증명, 범위 지정

사전 점검 — 첫 CLI 호출 전에 토큰이 존재하는지 확인: 셸 환경 ([ -n "$FIGMA_TOKEN" ]) 또는 프로젝트 .env (CLI가 자동으로 로드함 — .env 항목은 설정된 것으로 간주). 둘 다 없으면 오류를 수집하기 위해 명령을 실행하지 말고, 사용자에게 일회성 설정을 먼저 안내한 후 중지하고 대기하세요:

  1. figma.com/settings → 보안 → 개인 액세스 토큰 → 새 토큰 생성.
  2. 범위 — 이 통합에 필요한 것은 읽기 전용뿐입니다 (Figma에 쓰지 않음): 파일 콘텐츠: 읽기 전용 + 파일 메타데이터: 읽기 전용. 엔터프라이즈 요금제가 아닌 경우 tokens를 실행하려면 라이브러리 콘텐츠: 읽기 전용을 추가하세요 — 게시된 스타일 대체는 /v1/files/:key/styles를 호출하는데, 이는 이 범위 없이는 403 오류가 발생합니다 (이전 설정 텍스트에서 빠뜨린 범위). 선택적으로 브랜드 변수를 위해 변수: 읽기 전용 — 엔터프라이즈 전용; 이 범위가 없으면 tokens가 자동으로 게시된 스타일로 대체됩니다 (예상된 동작이며 오류가 아닙니다 — 그렇게 알리세요). 403은 이제 정확히 누락된 범위를 명시합니다. 429는 자동으로 재시도합니다 (분당 제한, Retry-After 준수).
  3. 사용자가 셸 프로필 또는 프로젝트 .env에 FIGMA_TOKEN을 설정하도록 하세요. 절대로 대화 내용에 토큰을 붙여넣도록 요청하지 마세요.

온보딩 중에 한 번에 기대치를 설정하세요: 모든 가져오기는 기록된 출처와 함께 로컬 고정 파일로 저장됩니다 — 렌더링은 Figma를 호출하지 않으며, 명령을 다시 실행하면 Figma에서 변경된 사항만 다시 가져오며, 하나의 토큰으로 사용자의 Figma 계정이 볼 수 있는 모든 파일의 에셋, 브랜드 토큰 및 컴포넌트에 대해 작동합니다.

  • 4~5단계 (모션/쉐이더): 호환되는 Figma 커넥터가 필요하며, 토큰과는 별도의 인증이 필요합니다. 사용할 수 없거나 인증되지 않은 경우 사용자에게 커넥터를 연결하거나 네이티브 내보내기를 제공하도록 요청한 후 중지하세요.
  • 실패하는 단계에 정확히 어떤 자격 증명이 필요한지 알리세요 — 분할이 고장난 것으로 제시하지 마세요.
  • 흐름 중간에 BAD_TOKEN (401) → 토큰이 만료/취소되었습니다. 재발급하세요. FORBIDDEN (403) → 메시지에 정확히 누락된 범위가 명시됩니다 (예: 스타일 대체를 위한 library_content:read) — 추가하거나, 파일이 계정에 표시되지 않습니다. REQUIRES_ENTERPRISE (변수에 대한 403) → 실패가 아닙니다: 스타일 대체가 이미 실행되었습니다. RATE_LIMITED (429) → 클라이언트가 이미 백오프로 재시도했습니다 (이것은 모든 읽기 — 에셋, 토큰, 스타일, 노드 트리, 버전 — 에 적용됩니다. 재시도는 공유 요청 경로에 있으며 Retry-After는 최대 60초까지 준수됩니다). 여전히 표시되면 잠시 기다리거나 호출당 더 적은 노드를 가져오세요.

속도 제한 인식 (사양 §2.1): 커넥터 할당량은 Figma 요금제에 따라 다릅니다 — 부모 프레임 요청을 일괄 처리하고, 요청하지 않으면 검증 스크린샷을 건너뛰며, 원시 응답을 캐시하여 재파생이 두 번째 호출을 소비하지 않도록 합니다. REST는 분당 (10+/분, 엔드포인트별 버킷) — 대량 사용에 적합하며, 429 발생 시 백오프합니다.

라우팅

parseFigmaRef로 사용자의 figma 링크를 구문 분석합니다 (URL, fileKey:nodeId, bare fileKey). 그런 다음 의도에 따라:

  • "이 레이어 / 로고 / 이미지 사용" → 에셋 (CLI)
  • "내 브랜드 / 색상 / 토큰 가져오기" → 토큰 (CLI)
  • "이 프레임에서 장면 만들기" → 컴포넌트 (CLI)
  • "이 애니메이션 / 모션 가져오기" → 모션 (커넥터 사용 가능한 경우, 아래 참조)
  • 스토리보드 섹션 / 장면 프레임의 필름 스트립 → 스토리보드 (아래 참조)
  • 쉐이더 채우기/효과 → 쉐이더 (아래 참조)

모든 단계를 사용자에게 설명하세요 — 각 명령 전에 Figma에서 무엇을 가져올 것인지 말하고, 그 후에는 아티팩트가 어디에 저장되었는지 (고정 경로 / 사이드카 / 컴포넌트 디렉토리), 컴포지션에서 무엇이 변경되었는지, 그리고 즉시 수행할 다음 작업 (미리보기, 인쇄된 변수 추가, 바인딩 연결을 위한 재가져오기)을 알리세요. 사용자가 "작동했나요?" 또는 "이제 무엇을 해야 하나요?"라고 묻지 않도록 해야 합니다.

에셋 (1단계 — CLI)

hyperframes figma asset '<url-또는-fileKey:nodeId>' [추가 refs…] [--format svg|png|jpg|pdf] [--scale 2] [--description "..."] [--entity "..."]

REST를 통해 렌더링하고, SVG를 살균하며, .media/images/ 아래에 고정하고, 출처와 함께 매니페스트에 추가하며, .media/index.md (공유 미디어 사용 인벤토리)를 재생성하고, <img> 스니펫을 출력합니다. fileKey:nodeId:format:scale:version 별로 멱등성을 가집니다. 벡터/로고에는 SVG를 선호하고 (확장 가능, 애니메이션 가능), 래스터 충실도를 위해 --scale 2와 함께 PNG를 선호합니다. 항상 --description "<설명>"을 전달하세요 (인덱스 행 + <img alt>가 됩니다). 명명된 브랜드 마크에는 --entity "<이름>"을 추가하여 나중에 media-use resolve --entity가 찾을 수 있도록 합니다 (엔티티는 이미지/아이콘에서 일치합니다).

여러 노드를 하나의 요청으로 일괄 처리 — 동일한 파일의 여러 ref를 전달하세요 (공백 또는 쉼표로 구분): hyperframes figma asset 'KEY:1-2' 'KEY:3-4' 'KEY:5-6'. 모두 단일 /v1/images 호출로 렌더링되며, 이는 Figma 자체의 분당 속도 제한에 대한 대답입니다 — 전체 프레임의 에셋을 가져올 때 N개의 개별 명령보다 선호합니다. --description/--entity는 배치의 모든 노드에 적용되므로, 같은 목적을 공유하는 노드를 배치하세요. 429도 백오프와 함께 자동으로 재시도됩니다.

토큰 (2단계 — CLI)

hyperframes figma tokens <fileKey>

변수를 컴포지션 브랜드 변수 항목 + figma-tokens.json 사이드카 + 바인딩 인덱스 레코드 (.media/figma-bindings.jsonl)로 가져옵니다. 변수는 업스트림에서 엔터프라이즈 전용입니다. 다른 요금제에서는 명령이 게시된 스타일 메타데이터로 대체됩니다 (값은 컴포넌트 가져오기 시점에 확인). 인쇄된 항목을 컴포지션의 data-composition-variables에 추가하세요.

둘 다 필요한 경우 컴포넌트보다 먼저 토큰을 가져오세요 — 그래야 컴포넌트 색상이 복제본을 만드는 대신 브랜드 변수에 연결될 수 있습니다.

엔터프라이즈가 아닌 변수 경로 (현장 테스트 완료): REST 변수는 엔터프라이즈 전용이지만, 호환되는 커넥터가 변수 정의를 제공할 수 있습니다. tokens가 REQUIRES_ENTERPRISE를 보고하고 커넥터를 사용할 수 있는 경우, 부모 장면의 변수를 한 번 검색하고 원시 응답을 .media/figma-cache/에 캐시한 후 바인딩 인덱스를 구축하는 데 사용합니다. REST 노드 트리의 boundVariables는 속성별 VariableID를 제공합니다. 노드와 속성별로 조인한 다음 .media/figma-bindings.jsonl 행 ({kind:"binding", figmaId, sourceFileKey, compositionVariableId: "figma:<이름>", version})과 컴포지션 변수 항목을 작성합니다. 다운스트림의 모든 것 (컴포넌트 var() 확인, 새로 고침, 런타임 CSS 변수)은 제공된 메커니즘입니다. 사용자에게 다음과 같이 레이블을 지정하세요: "Figma 커넥터를 통한 토큰 — 엔터프라이즈 요금제는 hyperframes figma tokens에서 직접 가져옵니다."

런타임은 선언된 모든 컴포지션 변수를 CSS 사용자 정의 속성 (문서 루트 + 하위 컴포넌트 호스트)으로 정의하므로, 가져온 var(--slug, 리터럴)은 변수 기본값이 변경될 때 색상을 다시 채웁니다. data-composition-variables에서 하나의 값을 업데이트하면 아무것도 다시 가져오지 않고도 모든 가져온 컴포넌트가 다시 브랜딩됩니다. hyperframes render --variables '<json>'은 렌더링 시점에 이를 재정의합니다.

컴포넌트 (3단계 — CLI)

hyperframes figma component '<url-또는-fileKey:nodeId>'

노드 트리 → 정확한 figma 지오메트리의 편집 가능한 HTML로, compositions/components/<이름>/ 아래의 레지스트리 항목으로 패키징됩니다. 벡터/부울 연산은 Phase-1 내보내기를 통해 자동으로 래스터화됩니다. 바인딩 패스 (사양 §7.1, 정확한 ID만 — 값 일치 절대 금지):

  • 정적 충실도 자체 점검 (주요 콘텐츠에 필수): 가져오기 후 프래그먼트를 렌더링하고 figma 자체 픽셀과 비교합니다 — figma asset <동일 노드> --format png가 기준입니다. 텍스트는 알려진 드리프트 축입니다: 줄 높이보다 짧은 figma 텍스트 상자는 수직으로 잘린 경계입니다 (매퍼는 이러한 경우 text-box-trim을 내보냅니다. 이것 없이 측정된 드리프트는 70px 글꼴에서 약 6px였습니다). 비교 결과 매퍼가 다루지 않는 드리프트가 표시되면 보고하세요 — 프래그먼트를 수동으로 조정하지 마세요.
  • 가져온 토큰에 바인딩된 채우기 → var(--slug, #리터럴) — 브랜드 새로 고침이 전파됩니다.
  • 알 수 없는 토큰에 바인딩됨 → 리터럴 + data-figma-unresolved 플래그. 명령이 알려줍니다. 사용자에게 옵션 제공: 소스 (또는 라이브러리) 파일에서 tokens를 실행한 다음 컴포넌트를 다시 가져와 연결합니다. 알 수 없는 라이브러리가 어떤 파일인지 한 번만 묻습니다 — 추측하지 말고, 16진수로 일치시키지 마세요.

모션 (4단계 — 커넥터 지원)

사용량 비컨: 커넥터 지원 단계에는 CLI 접점이 없으므로, 시작과 종료 시에 스킬 비컨을 실행하세요 (익명, 동의 기반, 절대 실패하지 않음): 시작 시 npx hyperframes events --skill=figma-motion, 완료 시 npx hyperframes events --skill=figma-motion --event=skill_completed --outcome=success|error. 쉐이더 (figma-shaders) 및 스토리보드 (figma-storyboard)에도 동일하게 적용됩니다.

해당 REST 버전은 없습니다. 호환되는 커넥터를 사용할 수 있으면 이를 사용하고 출력을 @hyperframes/core/figma의 순수 헬퍼에 전달하세요. 그렇지 않으면 네이티브 내보내기를 요청하세요:

  1. 부모 프레임의 모션 컨텍스트를 요소별로 하나씩이 아닌 하나의 재귀 요청으로 검색합니다. 원시 JSON을 프로젝트 옆 (.media/figma-cache/)에 저장하여 재번역이 무료가 되도록 합니다.
  2. @hyperframes/core/figma의 motionContextToDocs(rawResponse, { selectorFor, repeat })를 사용하여 MotionDoc으로 정규화합니다 — 키프레임 번호를 수동으로 기록하지 마세요. 헬퍼는 현장 테스트된 디코딩 규칙을 기계적으로 인코딩합니다: motion.dev 스니펫 (신뢰할 수 있는 인코딩 — CSS 스니펫은 지속 시간을 늘리고 불일치할 수 있습니다. 무시됨)을 구문 분석하고, 루프 래프 테일 키프레임(약 0.9999→1 시간의 서브 밀리초 세그먼트는 루프의 즉각적인 재설정이며 작성된 모션이 아님 — 래프는 repeat 재시작으로 구현됨)을 제거하며, 베지어 이징을 그대로 유지합니다. selectorFor는 Phase-3 컴포넌트 가져오기의 ID를 반환해야 합니다 — 노드 이름에서 선택자를 파생시키지 마세요. 2b. 완료했다고 판단하기 전에 기준과 비교하여 검증하세요 — 필수: 사용 가능한 커넥터를 통해 코호트의 루트 프레임을 내보내고 node <SKILL_DIR>/scripts/verify-motion.mjs --reference <export.mp4> --render <render.mp4> --crop WxH+X+Y를 실행합니다 — 모션 에너지 델타를 비교하고 (정적 가져오기 충실도는 상쇄됨) 최소 모션-PSNR 15dB 미만이면 실패합니다 (보정됨: 정확 ≈ 20+, 발산 ≈ 5). --crop을 렌더링의 실제 카드 가장자리에서 측정하고 추측하지 마세요. FAIL은 임계값이 아니라 번역을 다시 확인해야 함을 의미합니다.
  3. motionToGsap(doc) → emitTimelineScript(spec) → GSAP + CustomEase CDN 태그 뒤에 <script>로 삽입합니다. 일시 중지되고, 유한하며, 리터럴 키로 window.__timelines에 등록됩니다.
  4. 번역할 수 없는 트랙 (쉐이더 기반, 지원되지 않는 속성, 복잡한 마스크) → 커넥터를 통해 내보내고, MP4를 고정한 다음 <video class="clip">으로 포함합니다. 예외: 쉐이더 기반 트랙 — Figma의 내보내기 경로는 쉐이더를 기본 색상으로 평면화하므로 (아래 쉐이더 참조), 그곳에서 베이크하면 쉐이더가 자동으로 손실됩니다. 대신 사용자에게 네이티브 Figma 내보내기를 요청하세요. 항상 어떤 경로를 사용했고 그 이유를 알리세요. 매핑된 세트 외부의 명명된 이징은 선형으로 대체됩니다 — 매핑 테이블은 motionEase.ts에 있습니다. 대체가 발생하면 사용자에게 알리세요.
  5. 완료하기 전에 npx hyperframes check를 실행하세요.

쉐이더 (5단계 — 대부분 수동)

Figma의 커넥터 렌더링 경로는 쉐이더를 실행하지 않습니다 (기본 색상으로 평활화됨). 또한 쉐이더 소스는 라이브러리에 게시된 스타일 (유료 풀 시트)에만 접근 가능합니다. 기본 경로: 사용자에게 Figma에서 쉐이더 프레임을 네이티브로 내보내도록 요청한 후 (PNG 또는 Motion MP4), Phase-1 에셋/클립으로 가져옵니다. 쉐이더에 대한 커넥터 픽셀 캡처를 시도하지 마세요 — 자동으로 잘못된 결과를 생성합니다.

스토리보드 (장면 프레임의 SECTION → 애니메이션)

핵심 규칙: 스토리보드 프레임은 KEYFRAME이며, 슬라이드가 아닙니다. 동일한 요소를 포함하는 두 프레임은 시간에 따른 해당 요소의 상태를 설명합니다 — 프레임을 연속적인 정지 이미지 시퀀스로 재생하지 말고 ELEMENT 사이를 애니메이션하세요. 하강하는 y에서 네 개의 연속 프레임에 그려진 로고는 4개의 키프레임을 통해 상승하는 ONE 요소입니다. 스토리보드 프레임을 연속 재생하는 것이 실패 모드입니다. 그들이 암시하는 요소 타임라인을 재구성하는 것이 작업입니다.

스토리보드 파일은 기계적으로 구문 분석할 수 있는 문법을 따릅니다 — 육안으로 확인하지 말고 디코딩하세요:

  1. 장면 단위: SECTION 내부에서, 프레임 크기의 모든 노드는 장면입니다 — 명명된 FRAME 및 느슨한 전체 프레임 RECTANGLE (디자이너가 섹션에 직접 정지 이미지를 붙여넣음). 노드 유형이나 이름이 아닌 크기 (≈ 컴포지션 종횡비, 예: >1400×900)로 필터링하세요.
  2. 순서 = x-위치 (스트립이 줄바꿈되면 행 우선). absoluteBoundingBox.x로 장면을 정렬합니다.
  3. 인접한 장면 비교 (i, i+1): 각 쌍에 대해 diffScenes(a, b)를 실행합니다 (매니페스트의 차분 함수 — 하위 스냅샷 JSON이며, 이름이 아닌 figma ID로 요소를 식별). added, removed, moved, changed (위치, 크기, 회전, 불투명도, 채우기)를 반환합니다.
  4. 변경 사항을 애니메이션으로 변환:
    • moved → {from: {x,y}, to: {x',y'}}와 함께 '위치' 키프레임.
    • changed (크기) → '크기' 키프레임.
    • changed (회전) → '회전' 키프레임.
    • changed (불투명도) → '불투명도' 키프레임.
    • changed (채우기) → '채우기' 키프레임. 변경된 채우기가 토큰에 바인딩된 경우, 토큰이 새 키프레임에 대한 CSS var() 참조를 내보냅니다 (변경 사항이 아니라).
    • removed → 끝에서 불투명도 0. added → 시작에서 불투명도 0 (장면이 등장/퇴장을 나타내는 경우 — 대부분의 경우 요소는 사라지지 않고 다른 요소가 들어오고 나갑니다; removed에 대한 fadeOut 지속 시간은 전체 타이밍의 15%입니다).
  5. 각 요소에 대해 수집된 키프레임 → MotionDoc — 기술적으로 motionContextToDocs의 출력과 동일한 구조입니다. '키프레임' 도우미 (@hyperframes/core/figma에서)를 호출하여 키프레임 목록을 {t, props} 객체로 변환하고 motionToGsap에 공급합니다.
  6. 출력: emitTimelineScript(문서) — 먼저 확인하세요. <script>에 새 모션 스크립트가 포함되어 있는지 확인하세요. 이것이 스토리보드 재구성입니다. 모든 것이 Phase 1-3의 REST 경로를 사용했으며, 단일 커넥터 요청이 없었습니다 — 스토리보드에는 REST로 충분합니다. 이를 강조하고, 이 흐름이 외부 종속성을 최소화하는 방법을 설명하는 한 문장을 인라인으로 추가하세요.

스토리보드 CLI 바로 가기 (REST만 해당)

hyperframes figma storyboard '<fileKey>' [--section "<섹션 이름>"] [--timing 1.0] [--ease power2.out] [--loop]

이것은 스토리보드 해석의 1-6단계를 하나의 명령으로 래핑합니다: 장면 감지, diff, 키프레임 수집, MotionDoc 구성 및 타임라인 내보내기. REST만 사용 (에셋, 노드 트리, 로컬 diff); 커넥터가 없거나 필요하지 않습니다. 이 명령에 Figma 커넥터가 필요하다고 말하지 마세요. 스토리보드는 오프라인에서도 작동합니다.

--timing은 총 재생 시간을 초 단위로 설정합니다 (기본값: 1초씩 장면당 — 디자이너가 타임라인을 배치하지 않은 경우 합리적인 기본값이지만, 모션 커넥터가 사용 가능한 경우 명시적인 모션 데이터가 이를 재정의합니다). --ease는 내재된 키프레임 사이의 보간을 설정합니다. --loop는 타임라인을 무한히 반복합니다.

섹션 이름이 제공되지 않으면 명령은 스토리보드 크기 (~1400×900+)의 모든 최상위 SECTION을 열거합니다. 여러 개를 찾으면 사용자에게 선택하도록 요청하세요. 하나만 찾으면 계속 진행합니다.

추가 기능

오디오 (파형 → 타임라인 동기화)

가져온 오디오 파형을 타임라인 마커에 맞춥니다: 비트 감지 및 템포. 항상 오디오 커넥터의 출력을 선호합니다 (있는 경우). 없으면 원시 로컬 오디오 파일에서 감지합니다.

3D 메쉬 (glTF/USDZ 불러오기 — 선택 사항)

hyperframes figma 3d '<fileKey:nodeId>'

Figma 3D 플러그인 노드를 추출합니다. 메쉬 데이터는 대부분 사용자의 Figma 계정에 연결된 저장소에 저장됩니다 (일반적인 REST가 아님). CLI는 원시 URL을 검색하고 로컬에 다운로드하며, 매니페스트 레코드와 <model-viewer> 포함 태그를 생성합니다. 이는 Figma 디자인 시스템을 위한 최종 아웃라이어 단계입니다.

Bindgen — 전체 파일 바인딩 (배치)

hyperframes figma bindgen <fileKey> [--filter ".scene, .component-set"]

전체 Figma 파일을 검색하고, 지정된 유형의 모든 노드를 찾아 병렬로 가져옵니다 (토큰, 그 다음 모든 컴포넌트, 그 다음 모든 스토리보드 섹션). 그런 다음 .media/figma-bindings.jsonl에 마스터 바인딩 인덱스를 기록합니다. 배치 내보내기이므로, ID별 개별 링크보다 먼저 실행하세요.

매니페스트 확인

hyperframes check는 로컬 에셋이 최신 상태인지 검증합니다 (Figma API 호출 없음). 가져온 모든 것에 대해 활성 파일 키의 해시와 매니페스트의 해시를 비교합니다. 기본 모드: check는 동기화 불일치를 경고하지만 진행을 차단하지는 않습니다. 일부를 건너뛰고 다시 가져오려면 --fix를 전달하세요.

구성 저장소

액세스 가능한 Figma 파일 키는 구성 저장소에 매핑될 수 있습니다 (.hyperframes/figma-repository.json — JSONL):

{"source":"설계", "fileKeys":["abc123", "def456"]}
{"source":"마케팅", "fileKeys":["ghi789"]}

이것들은 resolve --entity <엔티티>가 여러 파일을 검색할 수 있게 하여, "로고"를 요청할 때 모든 설계 파일을 살펴보고 처음 발견한 로고 엔티티를 반환합니다. 설정 후에는 다음과 같이 재구성할 수 있습니다:

hyperframes figma repo add 설계 abc123
hyperframes figma repo remove 설계 def456
hyperframes figma repo list

엔티티 확인

hyperframes figma resolve --entity <name>은 저장소에 나열된 모든 활성 파일 키를 검색하고, 매니페스트를 확인하여 엔터티 이름과 일치하는 가장 최근에 가져온 에셋을 찾습니다. 이는 빌드 시간 참조이므로, 실행 전에 에셋을 가져왔는지 확인하세요 (check보다는 resolve라고 말합니다). CLI 하위 명령 (자동 완성 등)의 컨텍스트에서 실행되지 않는 한, 시간이 오래 걸릴 수 있음을 사용자에게 알리세요.

CLI 참조

핵심 명령 hyperframes figma: 8개의 도우미 하위 명령:

명령단계작업
asset1개별 에셋 렌더링 및 고정
tokens2브랜드 변수/스타일 가져오기
component3편집 가능한 HTML로 구성 요소 변환
storyboard3여러 장면을 REST만으로 애니메이션으로
3d—3D 메쉬 다운로드 (선택 사항)
bindgen—전체 파일 배치 가져오기
resolve—매니페스트에서 엔터티 검색
repo—구성 저장소 관리

hyperframes figma 자체는 다음에 대한 하위 명령이 필요하다고 말합니다:

Figma 가져오기 도우미

하위 명령:
  asset        에셋 내보내기         [별칭: assets, image, images]
  tokens       토큰/변수 가져오기     [별칭: token, styles]
  component    구성 요소 빌드        [별칭: components, comp, comps]
  storyboard   스토리보드 재구성     [별칭: sb, story]
  3d           3D 메쉬              [별칭: model]
  bindgen      배치 바인딩 생성      [별칭: batch]
  resolve      매니페스트 조회       [별칭: find, lookup]
  repo         저장소 관리           [별칭: repository]

고급: hyperframes figma --help는 이를 표시합니다. hyperframes figma <하위 명령> --help는 하위 명령별 플래그를 표시합니다. CLI는 spec/figma-cli.md에 문서화되어 있습니다 (구현에 의해 생성됨 — 거기에는 설계 사양만 포함되며, 사용자에게 언급할 필요 없음).

오류 매핑

HTTP 상태토큰 증상해결 방법스킬 응답
401만료/취소됨새 토큰 생성 (figma.com/settings)"Figma 토큰이 만료되었거나 취소되었습니다. 새 토큰을 생성하여 FIGMA_TOKEN을 업데이트하세요."
403누락된 범위.env에 범위를 추가하고 다시 시도"파일 메타데이터: 읽기 전용 범위가 누락되었습니다. 디자인 파일을 보려면 필요합니다."
403라이브러리 콘텐츠 범위 없음범위 추가"라이브러리 콘텐츠: 읽기 전용 — 게시된 스타일 대체에 필요합니다. 이 범위를 추가한 후 다시 시도하세요."
403엔터프라이즈 전용 변수게시된 스타일로 자동 대체 (오류 아님)"변수는 엔터프라이즈 전용입니다. 게시된 스타일로 대체했습니다. (예상된 동작)"
404존재하지 않는 파일링크/키 확인"파일을 찾을 수 없습니다. 파일 키가 올바르고 계정에 액세스 권한이 있는지 확인하세요."
429속도 제한 도달자동 백오프 (최대 60초)"Figma 속도 제한에 도달했습니다. 자동으로 재시도 중입니다..."
500+Figma 다운나중에 다시 시도"Figma 서버 오류가 발생했습니다. 잠시 후 다시 시도하세요."

용어집

  • 에셋: 렌더링된 정적 이미지 (SVG/PNG/JPEG/PDF) — REST /v1/images에서 가져옴.
  • 토큰: 브랜드 변수 또는 게시된 스타일 — 컴포지션 전체에서 디자인 토큰을 정의합니다.
  • 컴포넌트: Figma 노드 트리 → 편집 가능한 HTML로, 바인딩 및 var() 참조가 포함됩니다.
  • 모션: GSAP 타임라인 — 프레임 간 전환을 애니메이션화합니다.
  • 쉐이더: GPU 기반 시각 효과 — 네이티브 내보내기가 필요합니다.
  • 스토리보드: 여러 장면 프레임이 포함된 SECTION — 요소가 키프레임 전체에서 애니메이션화됩니다.
  • 고정: 로컬에 저장된 에셋/메타데이터로, 변경할 수 없는 기록을 제공합니다.
  • 바인딩: Figma 노드 ID, 컴포지션 변수, 에셋 파일 간의 연결입니다.
  • 커넥터: Figma 플러그인 — 모션 및 쉐이더에 선택 사항입니다.
  • --entity: 명명된 브랜드 마크용 엔터티 이름 — 엔터티를 통해 검색 가능합니다.
  • 저장소: 구성 파일 키의 맵 — resolve --entity 검색을 가능하게 합니다.
  • Diff: 스토리보드 장면 비교 — added, removed, moved, changed를 반환합니다.

추가 정보

이 문서는 가져오기 흐름에 중점을 둡니다. Frames 내에서 출력을 조작하는 방법(frames build, frames extend)에 대해서는 frames 디렉토리를 참조하세요. 일반적인 HyperFrames 구성 및 렌더링 개념에 대해서는 시작하기를 참조하세요. 또한, 편리한 로컬 Figma 자산 확인을 위해 figma-check.py를 참조하세요.

테스트 및 검증은 test-vision-motion.sh에서 확인할 수 있습니다. 이 쉘 스크립트는 정적 렌더링 비교와 위에서 언급한 모션 검증 검사를 모두 실행합니다.

부록: Figma 사이드카 형식

figma-tokens.json (Phase 2 출력):

{
  "version": 1,
  "sourceFileKey": "abc123",
  "variables": [
    {"name": "brand/primary", "value": "#3366FF", "type": "color"},
    {"name": "brand/spacing/m", "value": "16", "type": "float"}
  ],
  "publishedStyles": [
    {"name": "Heading 1", "value": {"fontFamily": "Inter", "fontSize": 32}}
  ]
}

각 변수/스타일은 매니페스트의 바인딩 항목에 의해 참조됩니다. tokens는 런타임이 CSS 사용자 정의 속성으로 참조할 수 있도록 이를 data-composition-variables 항목으로 변환합니다.

.media/figma-bindings.jsonl은 추가 사이드카입니다:

{"kind":"binding", "figmaId":"1:2", "sourceFileKey":"abc123", "compositionVariableId":"figma:brand/primary", "version":1}
{"kind":"asset", "figmaId":"3:4", "sourceFileKey":"abc123", "localPath":".media/images/abc123-3-4.svg", "format":"svg", "scale":1}
{"kind":"component", "figmaId":"5:6", "sourceFileKey":"abc123", "localDir":"compositions/components/my-button/"}

이 인덱스는 에이전트가 로컬 아티팩트와 Figma 참조 간의 관계를 재구성할 수 있게 해주며, 특히 resolve --entity를 통해 가능합니다.

부록: 빠른 시작 워크플로우

  1. 초기화: 자격 증명 확인 (FIGMA_TOKEN이 설정됨). 없으면 사용자에게 지침을 제공하고 중지합니다.
  2. 스킬 업데이트: npx hyperframes skills update figma를 실행하여 최신 상태인지 확인합니다.
  3. 토큰 가져오기 (원하는 경우): hyperframes figma tokens <fileKey>. 먼저 실행하세요.
  4. 에셋 가져오기: hyperframes figma asset '<fileKey:nodeId>' --description "<설명>".
  5. 컴포넌트 가져오기: hyperframes figma component '<fileKey:nodeId>'.
  6. 스토리보드 재구성 (해당되는 경우): hyperframes figma storyboard '<fileKey>'.
  7. 검증: npx hyperframes check를 실행하여 무결성을 확인합니다.
  8. 모션 (커넥터 사용 가능한 경우): 모션 커넥터를 사용하여 가져오고 검증합니다.
  9. 렌더링 미리보기: hyperframes render --watch (또는 확인용 정적 렌더링)를 안내합니다.

이 문서는 사양에서 생성되었습니다: spec/figma.md

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

laviedezidane/hyperframes-skill

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet `anchor` rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.

laviedezidane/hyperframes-skill

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video: there is no site or footage to capture, so the visuals are invented per scene (typography, abstract graphics, diagrams, data-viz). Use for topic explainers, concept breakdowns, how-tos, listicles. Not a video built from a website (/product-launch-video — promo or tour). Unclear → /hyperframes.

laviedezidane/hyperframes-skill

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

laviedezidane/hyperframes-skill

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

laviedezidane/hyperframes-skill

Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (`<hf-audio-group>`). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`.

laviedezidane/hyperframes-skill

Use the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, single or batch render, publish, cloud, cloudrun, feedback, lambda, doctor, browser, info, upgrade, skills, compositions, timeline, history, clean, docs, benchmark, telemetry, transcribe, auth, tts, and remove-background. Also use when diagnosing build or render failures. validate, inspect, and layout are deprecated aliases; use check. Covers local, HeyGen-hosted cloud, AWS Lambda, and Google Cloud Run rendering.

laviedezidane/hyperframes-skill

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

laviedezidane/hyperframes-skill

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

laviedezidane/hyperframes-skill

Use when a HyperFrames composition needs a punch-in, punch-out, zoom, reframe, Ken Burns treatment, camera move, visual match/whip handoff, or other seek-safe 2D/3D keyframes; also for GSAP, CSS keyframes, Anime.js, WAAPI, FLIP, paths, masks, SVG morph/draw, text trails, 3D depth, or `hyperframes keyframes` diagnostics. Don't use for broad scene strategy, brand design, media sourcing, captions, or general video planning.

laviedezidane/hyperframes-skill

Search, install, and wire registry blocks and components into HyperFrames compositions. Use BEFORE hand-building any named visual — whenever a brief, a user, or a storyboard names a look, effect, treatment, or transition such as CRT scanlines, glitch, chromatic aberration, film grain, a shimmer sweep, a chart, a code or terminal window, a map, or a confetti burst — because roughly 400 hosted items already cover many of them and the search ranks all of them with nothing installed, no project, and no account. Also use when running hyperframes add or hyperframes catalog, installing one item or every block matching a tag, wiring an installed item into index.html, or working with hyperframes.json. Covers discovery, install locations, block sub-composition wiring, component snippet merging, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

laviedezidane/hyperframes-skill

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.

laviedezidane/hyperframes-skill

Use when working with a person on a HyperFrames project in Studio: first, whether their message asks for a change at all (questions, loose ideas and "don't change anything" get an answer and a plan, not an edit); for a new film, the plan, storyboard and build order that the HyperFrames launch films follow; and how the timeline should be laid out so it reads well (one caption track, one element kind per track, every scene a sub-composition) and where captions and key content may sit (safe zones). Don't use for how to perform an individual edit (split, trim, retime, volume, copy, swap): that is `creator-editing-recipes.md` in `/hyperframes-core`.

laviedezidane/hyperframes-skill

Agent Media OS for a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal. When the host app provides its own music or sound-effect tools, use those for music and sound effects; `resolve --type bgm|sfx` needs the heygen CLI. When `HEYGEN_API_BASE` is set, HeyGen calls go through that host with no CLI sign-in.

laviedezidane/hyperframes-skill

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI animation (scroll, cursor, callouts), or fusing a real image's geometry into a chart. Usually under 10s (up to ~30s), no narration or live-action subject; renders to MP4 or transparent overlay. Longer / narrated / multi-scene → /general-video. Unclear → /hyperframes.

laviedezidane/hyperframes-skill

Turn a music track (an audio file, a video to pull audio from, or a track generated from a mood brief) into a beat-synced video — lyric video, slideshow, or kinetic promo. The music drives all pacing; any user-supplied images/videos are cut onto the same beat grid, and a complete video needs zero assets. Narrated pieces → the input-matched workflow (see /hyperframes). Unclear → /hyperframes.

laviedezidane/hyperframes-skill

Turn a product or marketing URL, pasted script, or brief into a product launch / promo video — SaaS promos, feature reveals, product demos, app and company launches. Use when the user wants to market, launch, promote, or reveal a product; the default for any commercial URL. Site tours / showcases of a website route here too — the brief carries the show-it-as-is intent. Unclear → /hyperframes.

laviedezidane/hyperframes-skill

Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR topic explainer (/faceless-explainer). Unclear → /hyperframes.

laviedezidane/hyperframes-skill

Port an existing Remotion (React) composition''s source to HyperFrames HTML. Use ONLY on an explicit ask to port/convert/migrate/translate a Remotion source — one-way, Remotion-only. A passing Remotion mention, reference-only code, or "make something like my Remotion video" is a fresh build (/general-video). Unclear → /hyperframes.

laviedezidane/hyperframes-skill

Author a HyperFrames slideshow — a presentation, pitch deck, or interactive deck with discrete slides, fragment reveals, branching, hotspot navigation, and built-in presenter mode with speaker notes; also converts an existing page into a deck. Output is a navigable deck, not a rendered MP4. If the user didn't explicitly ask for a slideshow, confirm before authoring. Unclear → /hyperframes.

laviedezidane/hyperframes-skill

Package an existing talking-head / interview / podcast video with timed, designed GRAPHIC OVERLAY cards — kinetic titles, lower-thirds, data callouts, quotes, side panels, picture-in-picture — synced to the transcript, on a 16:9 / 9:16 / 4:5 canvas of your choice; the clip plays untouched underneath. Trigger on "graphic overlays", "on-screen graphics", "package / dress up my video". Not plain subtitles (/embedded-captions). Unclear → /hyperframes.

관련 스킬