Communitygithub.com

NeverSight/learn-skills.dev

Grok Build 전용. 2D 캐릭터 스틸 이미지를 부드러운 애니메이션 스프라이트로 변환합니다. image_gen/image_edit → image_to_video (6초/10초 제자리 동작) → ffmpeg 프레임 추출 → 마젠타 크로마키 → 고밀도 샘플링된 스프라이트 (스트립/그리드/GIF) 파이프라인을 사용합니다.

learn-skills.dev란 무엇인가요?

이 스킬은 Grok Build 런타임에서만 사용 가능한 비디오 기반 2D 스프라이트 생성 파이프라인입니다. 사용자가 정적인 2D 캐릭터 이미지를 입력하면, Grok의 image_to_video 도구를 사용하여 제자리에서 실행/걷기 등의 루프 애니메이션을 생성합니다. 생성된 비디오에서 ffmpeg로 프레임을 추출하고, 마젠타 배경(#FF00FF)을 크로마키 처리하여 투명 배경의 개별 프레임을 얻습니다. 그런 다음 Pillow와 numpy 기반 스크립트로 프레임을 정규화, 샘플링하여 8, 16, 24, 48 프레임 등 다양한 밀도의 스프라이트 시트(가로 스트립, 그리드, 루프 GIF)를 출력합니다. 주요 사용 사례는 비디오 → 스프라이트 변환, 생성된 비디오로부터 모션 캡처, 더 부드러운 달리기/걷기 사이클 생성, /video2dsprite 명령 실행입니다. Codex나 Claude 환경에서는 image_to_video 도구가 없으므로 이 스킬을 사용할 수 없으며, 대신 $generate2dsprite 스킬을 제안합니다. 이 스킬은 Grok Build의 독점 기능(image_to_video)에 의존하므로, 다른 AI 에이전트와의 호환성을 고려해야 합니다. 주의할 점은 비디오 기반 방식이 픽셀을 부드럽게 만들고 캐릭터 정체성을 흐리게 하며 크로마 프린지가 발생할 수 있으므로, 프로덕션 품질의 스프라이트가 필요하다면 $generate2dsprite를 우선 고려해야 합니다.

지원 대상✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/NeverSight/learn-skills.dev/tree/HEAD/data/skills-md/0x0funky/agent-sprite-forge/video2dsprite

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

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

문서

Video2dsprite (Grok Build 전용)

기본 2D 캐릭터 이미지를 Grok Build의 네이티브 비디오 도구를 사용하여 고밀도 애니메이션 스프라이트로 변환합니다.

베이스 스틸 → image_to_video (제자리 모션) → 프레임 추출 → 크로마키 → 샘플링/정규화 → 스트립 / 그리드 / GIF

플랫폼 게이트 (먼저 읽기)

런타임지원 여부
Grok Build (xAI)예 — image_gen / image_edit + image_to_video (또는 reference_to_video) 필요
Codex / Claude / 기타 에이전트아니요 — Grok 비디오 도구가 없습니다. 사용자에게 이 스킬은 Grok Build 전용임을 알리고 $generate2dsprite를 대신 제안하세요

image_to_video가 도구 목록에 없으면 중단하고 설명하세요. 코드로 그린 프레임으로 모션을 위조하지 마세요.

이 스킬은 선택적인 더 조밀한 모션 경로입니다. $generate2dsprite를 대체하지 않습니다:

$generate2dsprite를 사용할 경우…$video2dsprite를 사용할 경우…
선명한 픽셀 시트, 고정 그리드, 정체성이 중요한 영웅사용자가 더 조밀한 중간 포즈 / 더 부드러운 느낌의 루프를 원할 때
공격/시전 바디 시트, 소품 팩, 엔진 아틀라스비디오 기반 달리기/걷기/정지 모션 실험
대부분의 게임 스프라이트에 대한 프로덕션 기본값사용자가 명시적으로 비디오 → 프레임 → 스프라이트를 요청할 때

비디오는 픽셀을 부드럽게 하고, 정체성을 흐리게 하며, 크로마 프린지를 남깁니다. 항상 품질 관리를 하세요. 프로덕션 영웅의 경우 사용자가 비디오 스타일을 원하지 않는 한 $generate2dsprite를 선호하세요.

매개변수

사용자 요청에서 추론:

  • subject: 캐릭터/크리처 설명, 또는 기존 스틸 이미지 경로
  • action: run | walk | idle | attack | 사용자 정의 모션 구문
  • view: 보통 side (횡스크롤). topdown은 더 어려움 — 경고하고 카메라 고정 유지
  • duration: 6 (기본값) 또는 10 초
  • frame_counts: 내보낼 더 조밀한 세트, 기본값 8,16,24,48
  • cell_size: 출력 스프라이트 셀, 기본값 128
  • anchor: feet (사이드 로코모션 기본값) | center
  • bg: 단색 #FF00FF (크로마에 필수)
  • name: 출력 슬러그
  • out_dir: 작업 폴더 (기본값 ./sprites/video2dsprite/<name>/ 또는 프로젝트 상대 경로)

에이전트 규칙

  1. Grok 전용. 비 Grok 런타임에서는 간단한 설명 + $generate2dsprite 대안과 함께 거절하세요.
  2. 스틸 → 비디오, 텍스트-투-비디오만으로는 안 됩니다. 1번 프레임을 깨끗한 스틸로 준비하세요 (image_gen 또는 참조에서 image_edit). 그런 다음 image_to_video를 호출하세요.
  3. 제자리 모션. 고정된 방향을 향해 제자리에서 실행/걷기를 프롬프트하세요. 카메라 팬, 배경 스크롤, 장면 변경 없음. 주제는 대략 중앙에 유지됩니다.
  4. 단색 마젠타 배경을 베이스에 사용하고 비디오 프롬프트에서 유지하세요 (#FF00FF / 순수 마젠타). 플러드 필 크로마에 필요합니다.
  5. PIL/Canvas로 아트를 만들지 마세요. 기본 아트는 image_gen / image_edit 또는 사용자/로컬 스틸에서 제공됩니다. 스크립트는 후처리만 합니다.
  6. 실험적 출력을 게임에 넣지 마세요. 사용자가 통합을 요청하지 않는 한.
  7. 게임 사용에는 하나의 로코모션 사이클을 선호하세요. 전체 6초 멀티 사이클 클립을 조밀하게 샘플링하는 것은 미리보기에 적합합니다. 엔진 시트의 경우, 시각적 QC 후에 선택적으로 단일 사이클(12–16프레임)을 다시 샘플링하세요.
  8. 완료 시 비디오, 정리된 프레임, 스트립, 미리보기 GIF의 절대 경로를 보고하세요.

워크플로우

1. 계획

가장 작은 유용한 실행을 선택하세요:

  • 사이드 뷰 달리기/걷기 루프 → 이 스킬
  • 멀티 액션 히어로 키트 → 여전히 액션별로 $generate2dsprite 사용; 로코모션에만 비디오 사용 요청 시
  • FX / 발사체 / 소품 팩 → $generate2dsprite, 비디오 아님

다음을 생성:

<out_dir>/
  base/
  video/
  frames-raw/
  frames-clean/
  sprite/          # 기본 8프레임 세트 + 더 조밀한 x16/x24/x48
  prompt-used.txt
  pipeline-meta.json
  README.txt

2. 베이스 스틸 제작

옵션:

  • A. 기존 스프라이트: 이미지 도구로 열기 / 이미지 읽기, 필요시 단색 #FF00FF 위에 합성
  • B. 새 캐릭터: 단색 마젠타 배경, 전신, 사이드 뷰, 중앙에 image_gen
  • C. 참조 일치: 사용자 참조에서 image_edit로 마젠타 배경 위에, 정체성 유지

베이스 요구사항:

  • 전신 보여야 함, 충분한 마젠타 여백
  • 달리기/걷기를 위한 사이드 뷰 (프로필 또는 3/4 측면), 발이 아래쪽 1/3 근처
  • 참조가 있을 경우 프로젝트의 나머지 부분과 동일한 아트 스타일
  • 텍스트, UI, 워터마크, 두 번째 캐릭터 없음

<out_dir>/base/<name>-base.png로 저장.

정확한 이미지 프롬프트를 prompt-used.txt에 기록하세요.

3. image_to_video로 애니메이션화

Grok image_to_video 호출:

  • image: 베이스 스틸 경로
  • duration: 6 (기본값) 또는 10
  • resolution_name: 480p (사용자가 720p를 요청하지 않는 한)
  • prompt: 하나의 짧은 현재 시제 샷 (참조: references/prompt-rules.md)

프롬프트의 필수 모션 제약:

  • 주제는 제자리에서 실행/걷기 (트레드밀 스타일)
  • 카메라 고정 — 팬, 줌, 궤도 없음
  • 배경은 평평한 단색 마젠타 유지
  • 정체성, 의상, 팔레트는 전체 샷에서 안정적
  • 단일 연속 동작만

반환된 비디오를 <out_dir>/video/<name>-<duration>s.mp4로 복사.

비디오 도구를 사용할 수 없으면 중단하세요 (플랫폼 게이트).

4. 추출 + 크로마 + 샘플링 (로컬 스크립트)

프로세서 실행 (ffmpeg + Pillow + numpy):

python skills/video2dsprite/scripts/video2dsprite.py process \
  --video <out_dir>/video/<name>-6s.mp4 \
  --out-dir <out_dir> \
  --name <name> \
  --frame-counts 8,16,24,48 \
  --cell-size 128 \
  --body-height 100 \
  --foot-y 118 \
  --fps 0

참고:

  • --fps 0 = 디코딩된 모든 프레임 추출 (소스 fps 사용)
  • 모서리 + 디스필에서 마젠타 플러드 필
  • --frame-counts의 각 카운트에 대해 균일 샘플링
  • 발 정규화된 셀, 수평 스트립, 그리드, 카운트별 루프 GIF

선택 사항: 기존 정리된 프레임에서 더 조밀한 세트만 다시 샘플링:

python skills/video2dsprite/scripts/video2dsprite.py sample \
  --clean-dir <out_dir>/frames-clean \
  --out-dir <out_dir> \
  --frame-counts 16,24,48 \
  --cell-size 128

5. QC

시각적 확인:

  • 미리보기 GIF 루프에 큰 튐 현상 없음
  • 마젠타 제거됨 (단색 분홍 블록 없음); 프린지는 허용 가능하거나 다시 키 처리
  • 발이 안정적인 기준선 유지 (잘못된 자르기로 인한 점프 없음)
  • 정체성 대략 안정적 (얼굴/옷이 매 프레임마다 변형되지 않음)
  • 동작이 제자리에서 이루어짐 (프레임 밖으로 미끄러지지 않음)
  • 게임 사용: 하나의 카운트 선택 (종종 16 또는 24) 또는 하나의 실제 사이클 잘라내기

정체성이 심하게 흐려지거나 픽셀이 너무 부드러우면 프로덕션 시트에는 $generate2dsprite로 폴백하고 비디오 세트는 모션 참조용으로만 유지하세요.

6. 전달

경로만 보고 (사용자가 게임에 연결을 요청하지 않는 한):

  • 비디오: video/*.mp4
  • 고밀도 스프라이트: sprite/x16|x24|x48/
  • 스트립 / 그리드 / GIF: sprite/run-strip-N.png, run-grid-N.png, run-preview-N.gif
  • 메타: pipeline-meta.json

요청하지 않는 한 게임 코드를 수정하지 마세요.

기본값

  • 기간: 6초
  • 동작: 오른쪽을 향한 제자리 사이드 달리기
  • 내보내기 카운트: 8, 16, 24, 48
  • 셀: 128², 몸체 높이 ~100, 발 y≈118
  • 배경: #FF00FF
  • reference_to_video보다 image_to_video 선호 (필요시 먼저 image_edit로 다중 참조 합성)

트레이드오프 (사용자에게 한 번 알림)

장점: 더 조밀한 중간 프레임 → 종종 4~8개의 개별 생성 포즈보다 더 부드럽게 느껴짐.
단점: 더 부드러운 픽셀, 정체성 드리프트, 크로마 프린지, 6초 멀티 사이클 클립은 완벽한 단일 루프가 아니며, 더 무거운 에셋.
경험 법칙: 8→16→24는 일반적으로 부드러움을 향상시킴; 48은 종종 수확 체감; 145개의 원시 프레임은 샘플링용이지 런타임용이 아님.

리소스

다른 스킬과의 관계

  • $generate2dsprite — 기본 시트 파이프라인 (Codex + 이미지 생성이 있는 Grok)
  • $generate2dmap — 맵; 여기서 사용되지 않음
  • $video2dsprite — Grok Build 전용 모션 조밀화 경로

Individual skills in this repo

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

NeverSight/learn-skills.dev

Create AI avatar and talking head videos via inference.sh CLI. Recommended: P-Video-Avatar (fastest, cheapest, built-in TTS). Also: OmniHuman, Fabric, PixVerse. Audio: Inworld TTS-2 (100+ languages, emotion steering for characters), ElevenLabs, Kokoro. Capabilities: audio-driven avatars, text-to-avatar, lipsync videos, talking head generation, virtual presenters, UGC content. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos, UGC ads, gaming avatars, NPC dialogue. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human, ugc, ugc video, ugc ad, avatar ugc

NeverSight/learn-skills.dev

Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for visuals, Kokoro for voiceover. Types: product demos, testimonials, explainers, social ads, brand videos. Use for: Facebook ads, YouTube ads, product launches, brand awareness. Triggers: marketing video, ad video, promo video, commercial, brand video, product video, explainer video, ad creative, video ad, facebook ad video, youtube ad, instagram ad, tiktok ad, promotional video, launch video

NeverSight/learn-skills.dev

Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse

NeverSight/learn-skills.dev

ElevenLabs automatic dubbing - translate and dub audio/video into 29 languages while preserving speaker voice via inference.sh CLI. Capabilities: auto speaker detection, voice-preserving translation, video dubbing, audio localization. Use for: content localization, video translation, multilingual content, international distribution. Triggers: dubbing, dub video, translate audio, video translation, audio translation, localize content, elevenlabs dubbing, eleven labs dub, multilingual dub, voice translation, auto dub, language dub, content localization

NeverSight/learn-skills.dev

Explainer video production guide: scripting, voiceover, visuals, and assembly. Covers script formulas, pacing rules, scene planning, and multi-tool pipelines. Use for: product demos, how-it-works videos, onboarding videos, social explainers. Triggers: explainer video, how to make explainer, product video, demo video, video production, video script, animated explainer, product demo video, tutorial video, onboarding video, walkthrough video, video pipeline

NeverSight/learn-skills.dev

Still-to-video conversion guide: model selection, motion prompting, and camera movement. Covers Wan 2.5 i2v, Seedance, Fabric, Grok Video with when to use each. Use for: animating images, creating video from stills, adding motion, product animations. Triggers: image to video, i2v, animate image, still to video, add motion to image, image animation, photo to video, animate still, wan i2v, image2video, bring image to life, animate photo, motion from image

NeverSight/learn-skills.dev

Generate talking head avatar videos with Pruna P-Video-Avatar via inference.sh CLI. Turn a portrait image into a realistic speaking video with built-in TTS. 18x faster and 6x cheaper than competitors. Models: P-Video-Avatar, P-Image (for portrait generation). Capabilities: text-to-avatar, audio-driven avatars, 30 voices, 10 languages, 720p/1080p, built-in TTS, dynamic backgrounds, full-body control. Use for: AI presenters, product demos, explainer videos, virtual influencers, marketing, education, multilingual content, UGC, gaming avatars. Triggers: avatar video, talking head, ai avatar, p-video-avatar, pruna avatar, video avatar, ai presenter, digital human, virtual presenter, lipsync, talking avatar, ai spokesperson, heygen alternative, synthesia alternative, veed alternative, fabric alternative, omnihuman alternative

NeverSight/learn-skills.dev

Generate videos with Pruna P-Video and WAN models via inference.sh CLI. Models: P-Video, WAN-T2V, WAN-I2V. Capabilities: text-to-video, image-to-video, audio support, 720p/1080p, fast inference. Pruna optimizes models for speed without quality loss. Triggers: pruna video, p-video, pruna ai video, fast video generation, optimized video, wan t2v, wan i2v, economic video generation, cheap video generation, pruna text to video, pruna image to video

NeverSight/learn-skills.dev

Render videos from React/Remotion component code via inference.sh. Pass TSX code, get MP4. Supports all Remotion APIs: useCurrentFrame, useVideoConfig, spring, interpolate, AbsoluteFill, Sequence. Configurable resolution, FPS, duration, codec. Use for: programmatic video generation, animated graphics, motion design, data-driven videos, React animations to video. Triggers: remotion, render video from code, tsx to video, react video, programmatic video, remotion render, code to video, animated video, motion graphics code, react animation video

NeverSight/learn-skills.dev

Video ad creation with exact platform-specific specs for TikTok, Instagram, YouTube, Facebook, LinkedIn. Covers dimensions, duration limits, AIDA framework, and caption requirements. Use for: video ads, social media ads, paid media creative, video marketing, ad production. Triggers: video ad, social media ad, tiktok ad, instagram ad, youtube ad, facebook ad, linkedin ad, video creative, ad specs, paid media, video marketing, ad production, reels ad, stories ad, pre roll, bumper ad

NeverSight/learn-skills.dev

Best practices and techniques for writing effective AI video generation prompts. Covers: Veo, Seedance, Wan, Grok, Kling, Runway, Pika, Sora prompting strategies. Learn: shot types, camera movements, lighting, pacing, style keywords, negative prompts. Use for: improving video quality, getting consistent results, professional video prompts. Triggers: video prompt, how to prompt video, veo prompts, video generation tips, better ai video, video prompt engineering, video prompt guide, video prompt template, ai video tips, video prompt best practices, video prompt examples, cinematography prompts

NeverSight/learn-skills.dev

YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A/B testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image

NeverSight/learn-skills.dev

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

NeverSight/learn-skills.dev

Configure and use the hosted YouTube Data MCP end-to-end with minimal user input. Use when users want the agent to verify Node.js and `npx`, configure MCP server config (Windows/macOS, Cursor/Codex/OpenClaw/OpenCode), request API key at setup time, run post-install capability discovery (`tools/list` and `get_patch_notes`), and then strongly recommend helper skill and Python setup for full local document and spreadsheet workflows.

NeverSight/learn-skills.dev

Creates 120fps GPU-accelerated animations with Motion.dev (Framer Motion successor) for React, Next.js, Svelte, and Astro projects. Use when user requests animation, motion, scroll effects, parallax, hero animations, gestures, drag interactions, spring physics, whileHover effects, whileInView animations, animated UI, micro-interactions, page transitions, or layout animations. Generates production TypeScript/JSX code with accessibility (prefers-reduced-motion) and performance validation (≥60fps). Supports entrance animations, gesture interactions (hover/tap/drag), scroll-based reveals, and layout transitions using spring physics and natural timing. Do NOT use for CSS-only transitions (use native CSS), static sites without JavaScript, Vue animations (use motion-v variant instead), or SVG/Canvas complex animations (GSAP better suited).

NeverSight/learn-skills.dev

Static artifact craft skill for self-contained HTML/CSS/JS documents: docs, sheets, dashboards, explainers, slides, tools, and landing pages. Use when the user asks for a durable, openable, shareable web deliverable they'll keep or hand off — a report, a dashboard, a slide deck, a data table, a page. Local folder first, temporary public link via tunnel (localhost.run), optional durable publish to Surge, GitHub Pages, or Cloudflare. Not for quick look renders, inline snippets, or throwaway scratch. Not for SPA frameworks, backend APIs, database apps, or production product UI.

NeverSight/learn-skills.dev

FFmpeg commands for video/audio conversion, trimming, compression, and processing. Use when user mentions "ffmpeg", "convert video", "compress video", "extract audio", "trim video", "gif from video", "video codec", "transcode", "screen recording", "merge videos", "video to mp4", "reduce file size", or any media processing task.

NeverSight/learn-skills.dev

Vim keybindings, motions, text objects, and operators for efficient text editing. Use when user asks about "vim commands", "vim motions", "text objects", "vim keybindings", "vim cheat sheet", "learn vim", "vim in VS Code", or any Vim editing tasks.

NeverSight/learn-skills.dev

Download YouTube videos, extract/proofread/translate subtitles, and render them onto video. Use whenever the user asks to download a YouTube video with subtitles, translate video subtitles to Chinese, add subtitles/burn subtitles to a video, or do ASR transcription on video audio. Covers the full pipeline: video download → subtitle extraction → proofreading → translation → SRT generation → subtitle rendering. Also use for "下载视频加字幕", "视频翻译字幕", "把字幕烧录到视频中". For pure subtitle file creation without rendering (just SRT output), this skill handles that too — stop before Phase 5.

NeverSight/learn-skills.dev

Use when generating or modifying Remotion video code, creating demo videos, or working with the demo-video/ directory

관련 스킬