Communitygithub.com

Alemoterani/auto-edit-hyperframes

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

auto-edit-hyperframes란 무엇인가요?

이 스킬은 Figma 디자인을 HyperFrames 비디오/모션 컴포지션으로 가져오는 완전한 파이프라인을 제공합니다. REST API를 통해 정적 에셋, 브랜드 토큰, 컴포넌트를 가져오고, 선택적 Figma 커넥터를 통해 모션 및 셰이더를 지원합니다. 주요 특징으로는 다단계 가져오기 프로세스(에셋 → 토큰 → 컴포넌트 → 모션 → 셰이더), 두 가지 인증 체계(Figma PAT 및 커넥터 권한 부여), 속도 제한 인식 일괄 처리 등이 있습니다. 에셋은 로컬에 고정(freeze)되어 결정론적 렌더링을 보장하며 변경된 내용만 다시 가져옵니다. 스토리보드 처리는 프레임을 별개의 슬라이드가 아닌 키프레임 상태로 해석하여 요소 상태 간 애니메이션을 가능하게 합니다. 이 스킬은 CLI 명령어를 완전히 지원하며, 각 단계와 결과를 사용자에게 안내합니다. Claude Code, Cursor, Codex 등 모든 주요 AI 에이전트 플랫폼에서 작동합니다.

지원 대상~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/Alemoterani/auto-edit-hyperframes/tree/HEAD/vendor/hyperframes/skills/figma

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

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

문서

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

먼저, 이 스킬을 최신 상태로 유지하세요 — 실행 전 사용자 확인: npx hyperframes skills update figma. 모든 것이 최신이면 빠르게 아무 일도 일어나지 않습니다. 그렇지 않으면 이 스킬과 의존하는 핵심 도메인 스킬을 사용하기 전에 새로 고칩니다.

Figma → HyperFrames

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

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

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

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

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

  1. figma.com/settings → 보안 → 개인 액세스 토큰 → 새 토큰 생성.
  2. 범위 — 읽기 전용만 이 통합에 필요합니다 (Figma에 절대 쓰지 않음): 파일 콘텐츠: 읽기 전용 + 파일 메타데이터: 읽기 전용. Enterprise 요금제가 아닌 경우 tokens를 실행하려면 라이브러리 콘텐츠: 읽기 전용을 추가하세요 — 게시된 스타일 폴백은 /v1/files/:key/styles를 호출하며, 이는 이 범위 없으면 403 오류가 발생합니다 (이전 설정 텍스트에서 생략된 범위). 선택적으로 변수: 읽기 전용은 브랜드 변수용 — Enterprise 전용; 없으면 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 (URL, fileKey:nodeId, bare fileKey)를 사용하여 사용자의 figma 링크를 구문 분석합니다. 그런 다음 의도에 따라:

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

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

에셋 (단계 1 — CLI)

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

REST를 통해 렌더링하고, SVG를 살균(sanitize)하고, .media/images/ 아래에 고정(freeze)하고, 출처와 함께 매니페스트를 추가하고, .media/index.md (공유 미디어 사용 인벤토리)를 재생성하고, <img> 스니펫을 출력합니다. fileKey:nodeId:format:scale:version별로 멱등(idempotent)합니다. 벡터/로고에는 SVG (확장 가능, 애니메이션 가능)를 선호하고, 래스터 충실도에는 --scale 2와 함께 PNG를 선호합니다. 항상 --description "<내용>"을 전달 (인덱스 행 + <img alt>가 됩니다); 명명된 브랜드 마크에는 --entity "<이름>"을 추가하여 나중에 미디어 사용 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)로 가져옵니다. 변수는 Enterprise 전용입니다: 다른 요금제에서는 명령어가 게시된 스타일 메타데이터로 저하됩니다 (값은 컴포넌트 가져오기 시점에 확인). 인쇄된 항목을 컴포지션의 data-composition-variables에 추가하세요.

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

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

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

컴포넌트 (단계 3 — CLI)

hyperframes figma component '<url-or-fileKey:nodeId>'

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

  • 정적 충실도 자체 점검 (히어로 콘텐츠에 필수): 가져온 후, 조각을 렌더링하고 figma 자체 픽셀과 비교 — figma asset <same node> --format png이 기준입니다. 텍스트는 알려진 드리프트 축입니다: figma 텍스트 상자가 line-height보다 짧으면 수직으로 잘린 경계입니다 (매퍼는 이에 대해 text-box-trim을 내보냅니다. 이것 없이 측정된 드리프트는 70px 글꼴에서 약 6px였습니다). 비교 결과 매퍼가 다루지 않는 드리프트가 표시되면 보고하세요 — 조각을 조용히 수동 조정하지 마십시오.
  • 가져온 토큰에 바인딩된 채우기 → var(--slug, #literal) — 브랜드 새로고침이 전파됩니다.
  • 알 수 없는 토큰에 바인딩됨 → 리터럴 + 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를 고정(freeze)한 다음 <video class="clip">로 포함합니다. 예외: 셰이더 기반 트랙 — Figma의 내보내기 경로는 셰이더를 기본 색상으로 평면화하므로(아래 셰이더 참조), 거기서 베이크하면 조용히 셰이더가 손실됩니다. 대신 사용자에게 네이티브 Figma 내보내기를 요청하십시오. 어떤 경로를 사용했는지와 그 이유를 항상 말하십시오. 매핑된 세트 외부의 명명된 이징은 선형으로 대체됩니다 — 매핑 테이블은 motionEase.ts에 있습니다. 대체가 발생하면 사용자에게 표시하십시오.
  5. 완료했다고 말하기 전에 npx hyperframes check를 실행하십시오.

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

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

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

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

스토리보드 파일은 기계적으로 구문 분석할 수 있는 문법을 따릅니다. 눈으로 판단하지 말고 디코딩하십시오:

  1. 장면 단위: SECTION 내부에서, 프레임 크기의 모든 노드는 장면입니다 — 명명된 FRAME 그리고 느슨한 전체 프레임 RECTANGLE(디자이너가 정지 이미지를 섹션에 직접 붙여넣음) 모두 포함. 노드 유형이나 이름이 아닌 크기(≈ 컴포지션 종횡비, 예: >1400×900)로 필터링합니다.
  2. 순서 = x-위치(스트립이 줄바꿈되면 행 우선). absoluteBoundingBox.x로 장면을 정렬합니다.
  3. 인접 장면 차이 비교: 각 장면의 요소를 이전 장면과 비교합니다(트리 diff, 안정적인 ID — 创建 후 ID가 없는 요소는 로컬에서만 존재 — 건너뜀). 동일한 ID를 가진 요소는 변경된 속성에 대해서만 내보내집니다. ID는 모든 장면에서 일관되어야 합니다(Fig API가 노드를 다시 생성하지 않는 한) — 불일치는 가져오기 사이의 Figma 변경을 나타냅니다. 요소의 첫 번째 발생은 초기 상태(전체 속성)를 내보냅니다. 동일한 프레임 ID가 여러 장면에 걸쳐 나타나면 장면 간에 지속됩니다. 장면 인덱스를 추적하여 var() 값 다시 확인 및 드리프트 추적에 사용합니다.
  4. 요소가 장면 n에서 사라지면: 사라지는 요소는 이전 장면의 최종 키프레임에서 불투명도 0으로 페이드 아웃되어야 합니다. 요소가 장면 n에 다시 나타나면: 새 요소로 취급하고(이전 불투명도 페이드 아웃이 종료됨) 다시 나타난 첫 번째 장면에서 초기 상태를 내보냅니다. 프레임 테두리를 넘는 요소는 일반적인 키프레임처럼 처리됩니다 — transition: all 0.3s ease를 설정하지 않고, 보간을 위해 키프레임 사이의 최종 속성을 내보냅니다. 요소가 여러 장면에 걸쳐 일정하게 유지되면: 첫 번째 장면에서 한 번만 내보내고 지속 플래그를 설정합니다. 전체 하위 트리가 변경되지 않은 경우 diff를 건너뜁니다.
  5. GSAP 타임라인 구축: createStoryboardTimeline(scenes, docs) — 스펙 래퍼이며 아래에 래핑됨. 이 헬퍼는 케이던스를 결정합니다(기본 케이던스). 각 장면은 시작 시간(타임라인의 이전 장면 이후를 기준, 케이던스 3초)을 가집니다.unlimited 모드가 켜져 있으면 차이 기반 기간을 사용합니다(변경 사항이 적으면 더 짧음). 각 장면 쌍에 대해 복합 fromTo() 트윈을 내보냅니다. 요소가 새 장면에 나타나면 from() 트윈을 내보냅니다. GSAP call()을 사용하여 장면 간에 label() + 재설정을 내보냅니다. 지속 시간은 요소 변경 수에 비례합니다(예: 3=3초). 고급: 드리프트가 감지되면 지속 시간에 var() 일치를 추가합니다.
  6. 고급: 스토리보드 처리는 장면 기간의 var() 조정과 HyperFrames 드리프트 추적에 액세스할 수 있습니다: diff된 속성에서 var() 참조를 추출하고 각 장면에 대해 2차 data-composition-variables 패치를 내보내 이 참조가 연결된 변수와 일치하도록 합니다. 스펙 변환은 게이트형 시작 시간과 기간을 가집니다. 게이트형 분할은 장면 간 시간을 수정합니다.gate는 장면 시간 사이에 작동합니다 — 첫 번째 장면은 항상 0에서 시작합니다. 각 후속 장면은 게이트 시간(초)으로 시작됩니다. 기간은 게이트 시작 이후입니다: 각 장면은 게이트 시작에서 게이트 시작 + 기간까지 지속됩니다. "게이트형 분할은 기본 동작을 재정의합니다". 런타임에 startTime을 계산하는 데 사용합니다. 시작 시간은 gates[장면 인덱스]입니다. 기간은 gates[index] - gates[index-1]입니다. 기간 계산은 시작 시간 사이의 차이를 사용합니다. 게이트는 기간을 정의합니다. 게이트가 설정되지 않으면 백분율 기반 분할이 사용됩니다. 기본값: 각 장면은 동일한 기간을 가집니다.
  7. 스토리보드 CLI가 없습니다 — npx hyperframes events --skill=figma-storyboard를 통해 사용 비컨을 실행하고 이 안내를 따르십시오. @hyperframes/core/figma의 헬퍼를 사용하십시오. createStoryboardTimeline(scenes, docs)를 호출한 다음 emitTimelineScript(timelineSpec)을 호출하십시오. @hyperframes/core/figma의 storyboardToKeyframes를 사용하십시오.extractSceneElements는 요소 목록을 반환합니다. diffElements는 변경 사항 목록을 반환합니다. GSAP 스크립트는 스펙에 의해 내보내집니다. constructGsapTimeline은 최종적으로 타임라인 사양을 반환합니다. 핵심 구현 세부 사항: SceneNode[] 요소를 가져옵니다. SceneDiff[]를 가져옵니다. GSAP 타임라인 개체를 가져옵니다. 7b. npx hyperframes check — 모든 가져오기 후 필수, 선택적이 아님.

CLI 참조

명령어단계인증속도 제한
hyperframes figma asset1Figma 토큰분당 10+ 회
hyperframes figma tokens2Figma 토큰분당 10+ 회
hyperframes figma component3Figma 토큰분당 10+ 회
(커넥터)4커넥터 권한 부여커넥터 할당량
(수동 내보내기)5없음없음

일반 오류 처리

  • 401 (BAD_TOKEN): 토큰이 만료/취소됨. 사용자에게 Figma 설정에서 새 토큰을 생성하도록 요청합니다. 설정 안내를 반복하지 말고 FIGMA_TOKEN을 업데이트하도록 요청하십시오.
  • 403 (FORBIDDEN): 누락된 범위. 메시지는 정확히 필요한 범위를 말합니다(예: 스타일 폴백의 library_content:read). 필요에 따라 추가하십시오.
  • 403 (REQUIRES_ENTERPRISE): 변수는 Enterprise 전용. 오류가 아닙니다 — 게시된 스타일 폴백이 자동으로 사용됩니다.
  • 429 (RATE_LIMITED): 클라이언트가 자동으로 Retry-After를 존중하여 백오프합니다(최대 60초). 지속되면 요청을 일괄 처리하거나 잠시 기다리십시오.

필수 검증

  • 모션 단계 후: node <SKILL_DIR>/scripts/verify-motion.mjs --reference <export.mp4> --render <render.mp4> --crop WxH+X+Y (최소 15dB 모션-PSNR 필요).
  • 모든 가져오기 후: npx hyperframes check.
  • 히어로 콘텐츠의 정적 충실도를 위해: figma asset <same node> --format png와 렌더링 조각을 비교합니다. 텍스트 드리프트(알려진 축)를 보고하되 조용히 조정하지 마십시오.

환경 변수

  • FIGMA_TOKEN (필수, 단계 1-3): Figma 개인 액세스 토큰. 읽기 전용 범위: 파일 콘텐츠 및 메타데이터 읽기. 선택적으로 라이브러리 콘텐츠 및 변수 읽기.
  • (커넥터는 자체 인증을 관리합니다)

Individual skills in this repo

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

Alemoterani/auto-edit-hyperframes

Overlay doctrine for the embedded-captions workflow — the caption MODEL (drop / rail / embed) and the rule that captions are an OVERLAY composited on top of the film, never a reserved bottom band you shift content up to avoid. Load when adding captions/subtitles to a talking-head or launch video, when deciding whether a phrase should be dropped, ride the verbatim rail, or be promoted to a scarce embedded climax, when laying out a composition that will carry captions (do NOT reserve a keep-out band), or when centering a composition on the true frame center under captions. Quotes the rail+embed model from embedded-captions and constraint #13 (captions overlay, keep-out band retired) from the product-launch-video scene agent. Applies ON TOP of embedded-captions.

Alemoterani/auto-edit-hyperframes

Turn a weekly changelog .md into a finished branded changelog video (square 1080, ~45-60s, Annie VO, animated brand background, mock-UI visualizations, lowkey captions). Use when the user provides a changelog/digest markdown and wants the weekly video, or says "changelog video". Self-contained — fonts, background, lexicon, and scripts ship in this skill.

Alemoterani/auto-edit-hyperframes

The technique catalog: five velocity-matched SEAMS (zoom-through, INVERSE zoom-through, cut-the-curve, waterfall cut, rack-focus blur-cut) plus the two in-scene techniques — waterfall ENTRY (staggered arrival cascades for title cards / segment openers) and the nudge curve (slow-fast-slow three-phase group slides). Covers partial-travel (~12% of frame) velocity matching via mirrored power4 eases, the Z scale-sign rule, size-scaled blur (10px text / 18-20px full-frame), word-by-word staggered cuts, cascade pacing by element weight, and the 10/65/25 slide ratio. Read before authoring any transition, text-beat handoff, kinetic text entry, or group reposition. [depth, zoom, inverse-zoom, scale-sign, mirrored-zoom, rack-focus, pacing, velocity, cut-the-curve, waterfall, stagger, cascade, kinetic-text, title-card, segment-opener, nudge, slide, easing, group-motion, z-depth, motion-graphics, cinematic, transition, blur, directional-continuity]

Alemoterani/auto-edit-hyperframes

GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

Alemoterani/auto-edit-hyperframes

House-style oversized macOS cursor technique for HyperFrames launch videos. Load whenever a scene involves cursors or a pointer-led action, when kicking off a UI scene, when igniting a morph/transition/typing run with a click, or when a scene reads as static, dead, or stale and needs a cheap high-yield source of motion to carry the viewer's eye and segment them out of the stale state. Covers cursor size/look (incl. brand-motif cursors), the off-screen entry law, tip-targeting and the click tap, click-ignites-the-next-beat, and exit / cross-scene handoff.

Alemoterani/auto-edit-hyperframes

Render-correctness doctrine for scene-to-scene seams in HyperFrames launch videos — the prerequisites that make transitions composite correctly on the master timeline. Load when assembling the master timeline / index.html, when a white flash appears at a cut or crossfade seam (especially on dark films), when reasoning about why a transition opacity dip shows through, or when verifying the render-side mechanics of how overlapping scene wrappers blend. Covers the opaque stage-ground (#root background) white-flash guard and how the injector overlaps wrappers, holds final frames, ping-pongs tracks, and stamps lint-clean template code onto the master timeline. Does NOT contain the per-transition catalog — see the transition registry for individual transition entries.

Alemoterani/auto-edit-hyperframes

Leaves sweep through the frame and part to reveal the headline. HyperFrames block, 1920×1080, 12s, 11 variables.

Alemoterani/auto-edit-hyperframes

A tiled headline surface flips cell by cell under a sweeping depth field to reveal the rear headline. HyperFrames block, 1920×1080, 8s, 18 variables.

Alemoterani/auto-edit-hyperframes

A chain of bevelled cuboids rides a travelling wave as a content carousel. HyperFrames block, 1920×1080, 6.666666666666667s, 40 variables.

Alemoterani/auto-edit-hyperframes

An orbiting camera follows an ice logo as it breaks apart, reforms into two text moments, and fades. HyperFrames block, 1920×1080, 22.5s, 216 variables.

Alemoterani/auto-edit-hyperframes

Glass shards fly in through fog and tile themselves into the headline. HyperFrames block, 1920×1080, 12.16s, 19 variables.

Alemoterani/auto-edit-hyperframes

A single feature card orbits a dot sphere on approved Blender camera motion. HyperFrames block, 1920×1080, 10s, 4 variables.

Alemoterani/auto-edit-hyperframes

A wireframe portal bursts open, the title comes through, then its letters swap into a second phrase. HyperFrames block, 1920×1080, 8s, 9 variables.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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`.

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

관련 스킬