Communitygithub.com

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

HyperFrames CLI 개발 루프입니다. npx hyperframes init, add, catalog, capture, lint, validate, inspect, layout, snapshot, preview, play, render, publish, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, tts, remove-background 명령어 실행 시 또는 HyperFrames 빌드/렌더 환경 문제 해결 시 사용합니다. AWS Lambda 클라우드 렌더링(`hyperframes lambda deploy / render / progress / destroy / policies`)의 진입점입니다.

S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-란 무엇인가요?

이 스킬은 HyperFrames CLI 도구의 전체 개발 워크플로우를 정의합니다. 프로젝트 스캐폴딩(`init`, `capture`), HTML 컴포지션 작성 및 린팅/검증(`lint`, `validate`, `inspect`), `preview` 명령어를 통한 Studio 타임라인 편집기에서의 시각적 검토, 그리고 `render` 명령어를 통한 최종 비디오 렌더링까지를 안내합니다. 특히 `inspect` 명령어는 `*.motion.json` 사이드카 파일을 활용하여 모션 의도(진입 애니메이션, 순서, 프레임 내 존재 여부, 생동감)를 검증하는 고유 기능을 제공합니다. AWS Lambda 클라우드 렌더링을 지원하여 로컬에서는 처리하기 어려운 대규모/장시간 렌더링도 처리할 수 있습니다. 핵심 규칙으로는 모든 명령어의 `--json` 출력(렌더, 프리뷰, 플레이 제외), `doctor --json`의 비표준 종료 코드 처리(ok 필드 확인), CI 환경을 위한 `--strict`/`--strict-all` 플래그, 사용자 승인 없이 자동 렌더링을 금지하는 사용자 게이트, 그리고 렌더 후 파일 크기 및 지속 시간 검증 절차가 포함됩니다. 서브-컴포지션을 사용하는 프로젝트의 경우 `snapshot` 명령어를 통한 시각적 스모크 테스트가 필수적이며, 정적 검사(lint/validate/inspect)가 놓칠 수 있는 크로스파일 마운트 실패를 감지합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-/tree/HEAD/.agents/skills/hyperframes-cli

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

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

문서

HyperFrames CLI

모든 것은 프로젝트 지침이 로컬 래퍼를 지정하지 않는 한 npx hyperframes를 통해 실행됩니다. 로컬 래퍼가 있다면 그 내용을 정확히 따르세요. Node.js >= 22 및 FFmpeg가 필요합니다.

워크플로우

  1. 스캐폴드(Scaffold) — npx hyperframes init my-video (또는 URL에서 capture)
  2. 작성(Write) — HTML 컴포지션 작성 (hyperframes-core 스킬 참조)
  3. 린트(Lint) — npx hyperframes lint
  4. 검증(Validate) — npx hyperframes validate (런타임 오류 + 대비 검사)
  5. 시각적 검사(Visual inspect) — npx hyperframes inspect
  6. 미리보기(Preview) — npx hyperframes preview는 Studio를 엽니다. Studio는 사용자가 보고 수동으로 편집할 수 있는 타임라인 편집기입니다. 여기서 검토한 후 렌더링을 요청하세요.
  7. 렌더링(Render) — 변형 선택:
    • 반복 개발: npx hyperframes render --quality draft
    • 최종 제출: npx hyperframes render --quality high --output out.mp4
    • CI / 크로스 호스트 재현: npx hyperframes render --docker --strict --output out.mp4
    • 클라우드 (긴/대용량): npx hyperframes lambda render ./my-project --width 1920 --height 1080 --wait (아래 Lambda 참조)

미리보기 전에 lint, validate, inspect를 실행하세요. lint는 누락된 data-composition-id, 겹치는 트랙, 등록되지 않은 타임라인을 잡아냅니다. validate는 헤드리스 Chrome에서 컴포지션을 로드하고 런타임 콘솔 오류 및 WCAG 대비 문제를 보고합니다. inspect는 타임라인을 탐색하며 텍스트가 버블/컨테이너 밖으로 흘러나오거나 캔버스 밖으로 나가는지 보고하며, *.motion.json 사이드카 파일이 있는 경우 동일한 탐색된 타임라인에 대해 모션 의도(탐색 시 진입 애니메이션 실행, 스태거 순서, 프레임 내 존재 여부, 생동감)를 확인합니다.

모션 중심 작업의 경우 스냅샷 기반 반복과 *.motion.json 사이드카를 선호합니다. 자세한 내용은 references/lint-validate-inspect.md를 참조하세요.

에이전트 규칙

모든 명령어에 적용되는 전체 규칙:

  • --json은 render, preview, play를 제외한 모든 명령어에서 사용 가능합니다. 지원되는 명령어의 모든 에이전트/CI 호출에 사용하세요. 출력에는 _meta 엔벨로프(cli 버전, 최신 버전, 업데이트 조언)가 포함됩니다. render는 stdout + 종료 코드로만 상태를 보고합니다. 아래 사후 렌더링 확인으로 성공 여부를 확인하세요. preview / play는 서버이므로 JSON을 지원하지 않습니다.
  • doctor --json은 환경이 깨져도 항상 0으로 종료됩니다. 페이로드의 ok 필드를 확인하세요: npx hyperframes doctor --json | jq -e '.ok' > /dev/null. 이는 파이프라인을 CLI 릴리스 변경으로부터 보호합니다.
  • 비-TTY 모드는 자동 감지됩니다. stdout이 TTY가 아닌 경우(CI, 에이전트, 파이프 출력) CLI는 자동으로 비대화형 모드로 전환됩니다. 이 경우 init은 --example이 필요합니다. TTY에서도 이 모드를 강제하려면 --non-interactive를 전달하세요.
  • CI 렌더링 게이팅: --strict는 린트 오류 시 실패, --strict-all은 경고에도 실패, --strict-variables는 선언되지 않은 --variables 키에 대해 실패합니다.
  • --json의 경로는 수정됨 — $HOME은 그대로 $HOME 문자열로 남아 버그 보고서 및 에이전트 컨텍스트에 붙여넣어도 안전합니다.
  • 렌더링은 사용자 게이트가 적용됩니다. 검사가 통과되었다고 자동 렌더링하지 마세요. preview에서 멈추고, 사용자에게 비디오가 Studio에서 편집 가능하다고 알린 후 사용자가 승인한 경우에만 렌더링하세요.
  • 렌더링 사후 검증. render가 종료 코드 0을 반환한 후, 출력 파일이 존재하고 그럴듯한 크기인지 확인한 후 성공을 보고하세요: [ -s "$OUTPUT" ] || echo "render produced no output". CLI는 성공 시 ◇ <path>를 출력합니다. 긴 렌더링의 경우 ffprobe -i "$OUTPUT" -show_format -v error로 지속 시간도 검증하세요.

라우팅

목적참조 문서
프로젝트 스캐폴드 (init, capture, skills)references/init-and-scaffold.md
정확성 확인 (lint, validate, inspect, snapshot)references/lint-validate-inspect.md
미리보기 또는 렌더링 (preview, play, render, publish)references/preview-render.md
환경 진단 (doctor, browser)references/doctor-browser.md
AWS Lambda 클라우드 렌더링 (lambda deploy / sites / render / progress / destroy / policies)references/lambda.md
기타 (info, upgrade, compositions, docs, benchmark, telemetry, 에셋 전처리)references/upgrade-info-misc.md

스킬 간 연동

  • Tailwind 프로젝트 (init --tailwind) → 클래스나 테마 토큰을 편집하기 전에 hyperframes-core (Tailwind 참조) 사용.
  • 레지스트리 블록/컴포넌트 (hyperframes add, hyperframes catalog) → 설치 경로, 서브-컴포지션 연결, 스니펫 병합을 위해 hyperframes-registry 사용.
  • 에셋 전처리 (tts, transcribe, remove-background) → 음성 선택, Whisper 모델 규칙, 캡션, TTS-캡션 체인을 위해 hyperframes-media 사용.
  • 매개변수화된 렌더링 (--variables) → <html>에서 data-composition-variables로 선언. 전체 스키마는 hyperframes-core 참조.

Lambda (클라우드 렌더링)

hyperframes lambda는 AWS Lambda에 분산 렌더링을 배포하고 노트북이나 CI에서 렌더를 구동합니다. 전체 과정은 세 가지 명령어입니다:

npx hyperframes lambda deploy                                             # SAM 스택 프로비저닝 (Lambda + Step Functions + S3)
npx hyperframes lambda render ./my-project --width 1920 --height 1080 --wait
npx hyperframes lambda destroy                                            # 삭제 (S3 버킷은 유지됨)

Lambda는 렌더링이 단일 호스트에서 처리하기 너무 길거나(수 분짜리 비디오) 너무 큰 경우(4K, 대규모 병렬 배치) AWS 자격 증명이 구성된 경우 사용하세요. 개발 루프 반복은 로컬 render를 유지하세요.

전제 조건, 6개의 모든 하위 명령어(deploy, sites create, render, progress, destroy, policies), IAM 정책 검증, 상태 파일, 비용 및 정리 규칙은 references/lambda.md를 참조하세요.

최소 완료 게이트

정적 게이트

npx hyperframes lint
npx hyperframes validate

레이아웃에 민감한 작업에는 inspect를 추가하고 CI에서는 린트 오류 시 실패하도록 render --strict를 사용하세요.

시각적 스모크 테스트 — 프로젝트가 서브-컴포지션을 사용하는 경우 필수

lint / validate / inspect는 각 컴포지션을 개별적으로 평가합니다. index.html을 로드하고 data-composition-src를 통해 서브-컴포지션을 마운트하지 않으므로 파일 간 마운트 실패를 잡을 수 없습니다(hyperframes-core → references/sub-compositions.md, "일반적인 함정" 참조). 이를 잡는 유일한 게이트는 index.html을 실제로 로드하고 타임라인을 탐색하는 게이트입니다.

hyperframes snapshot을 사용하세요 — render와 동일한 방식으로 프로젝트를 로드하므로(동일한 마운트 경로를 실행) 전체 렌더링 대신 초 단위로 요청한 타임스탬프만 캡처합니다:

# 각 서브-컴포지션의 중간 지점에서 한 프레임 캡처.
# 중간 지점 = index.html의 각 호스트 슬롯에 대해 data-start + data-duration/2.
npx hyperframes snapshot --at <t1>,<t2>,<t3>,...

# 또는 장면별 타겟팅이 필요하지 않은 경우 균등 간격 샘플:
npx hyperframes snapshot --frames 9

출력은 snapshots/frame-NN-at-Xs.png에 저장됩니다. 각 프레임을 장면 계획과 대조하여 육안으로 확인하세요.

프레임별 적신호 (각각 정적 게이트가 놓치는 특정 실패 모드에 매핑):

표시되는 현상근본 원인
텍스트가 왼쪽 상단에 작고 스타일 적용되지 않은 채로 표시됨<style> 블록이 <template> 외부의 <head>에 남아 있음 (함정 1) — CSS가 라이브 DOM에 도달하지 못함
SVG/아이콘 요소가 캔버스 크기로 확대됨위와 동일 — 너비/높이 제약 조건이 적용되지 않음
장면의 히어로 요소가 완전히 누락됨; 배경과 워터마크만 보임호스트 id ≠ 템플릿 id (함정 2) — 타임라인이 실행되지 않아 초기 상태의 프레임이 캡처됨
스냅샷 명령어 로그에 Sub-composition timelines not registered after 45000ms함정 2 — 직접적인 확인

snapshots/는 육안 확인 후 삭제해도 됩니다. 사용자 대상 최종 렌더링은 npx hyperframes render로 별도로 수행됩니다.

Individual skills in this repo

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

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

The fallback workflow for authoring custom HyperFrames video compositions at any length or format — longer or multi-scene pieces, brand / sizzle reels, montages, title cards, static loops, and freeform compositions. Input- and length-agnostic. If a specialized workflow clearly fits the input — a marketed product, a website, a topic explainer, a GitHub PR, existing footage, a short motion graphic, or a Remotion port — prefer it (see /hyperframes); use this only as the general fallback when none fit.

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

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). HyperFrames-native: single paused timeline, seek-safe, deterministic.

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

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.

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

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

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

Capture a general website/URL and turn it into a HyperFrames video (site tour, showcase, or social clip from the site's own visuals). Uses headless Chrome screenshots + brand assets. Use when intent is general — portfolio/blog/landing-page showcase or social clip from the site. NOT for: product/SaaS launch or promo (→ /product-launch-video, even from a URL); topic explainer with no site (→ /faceless-explainer); GitHub PR (→ /pr-to-video); adding captions to existing video (→ /embedded-captions); short unnarrated page-highlight motion graphic (→ /motion-graphics). Unclear launch-vs-general-site? Ask one question or start at /hyperframes.

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

Audio and media assets for HyperFrames compositions, produced by one shared audio engine (`scripts/audio.mjs`) — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), background music + sound effects (HeyGen audio-library retrieval by default, with local Lyria / MusicGen BGM generation and a bundled SFX library as the no-credential fallback), Whisper transcription, background removal, and caption authoring. Use for voiceover / TTS, BGM, SFX / sound effects, transcription, captions / subtitles / lyrics / karaoke / per-word styling, voice + provider selection, and music-mood prompting.

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

S.A.R.A.L. is an advanced AI-powered platform designed to bridge the "information gap" between rural Indian citizens and government welfare. While thousands of schemes exist, the complex language of official PDFs often makes them inaccessible to the common man.

관련 스킬