Communitygithub.com

graph

최소한의 세로형 (1080x1920) 라인 그래프 애니메이션을 생성하여 릴스에 적합하게 만듭니다. 부드러운 검은색 선이 흰색 배경(또는 검은색 배경에 흰색 선) 위에 그려지고, 하나의 큰 숫자가 선 끝과 함께 카운트업되어 최종 값에 도달합니다. 사용자가 /graph, 성장 차트, '0 to 100K' 숫자 카운터, 애니메이션 통계 또는 최소한의 메트릭 라인 차트를 요청할 때 사용하세요.

graph란 무엇인가요?

이 스킬은 소셜 미디어 릴스에 최적화된 세로형 (1080x1920) 라인 그래프 애니메이션을 생성합니다. 사용자가 제공한 실제 데이터를 바탕으로 부드러운 선이 자동으로 그려지고, 큰 숫자가 선 끝을 따라 카운트업되어 최종 값에 도달하는 시각적으로 깔끔한 애니메이션을 만듭니다. 주요 용도는 팔로워 수, 월간 매출, 성장률과 같은 단일 메트릭을 강조하는 것입니다. 이 스킬은 `ffmpeg`, `node` (18+), `python3` (3.9+) 환경에서 실행되며, 데이터 검증부터 렌더링까지 자동화된 워크플로우를 제공합니다. 시각적 품질 보증을 위해 미리보기 시트 이미지를 제공하여 최종 결과물이 Instagram 안전 영역 내에서 올바르게 표시되는지 확인할 수 있습니다. 결과물은 MP4 비디오와 스프레드시트 이미지로 제공되며, 사용자는 이를 바로 소셜 미디어에 게시할 수 있습니다.

지원 대상✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hieubm1707/gemini-animation-skills/tree/HEAD/skills/graph

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

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

문서

그래프 애니메이션 (graph)

┌──────────────────────┐
│ 팔로워               │  일반 레이블
│ 100,000              │  선 끝과 함께 카운트업
│                  •   │
│                 /    │  부드러운 선이 그려짐
│            ___/      │
│ ______----           │
│ 1월 2월 ... 9월      │
└──────────────────────┘

설정 확인

SKILL_DIR은 이 SKILL.md 파일이 포함된 디렉터리입니다(<skills>의 경로 확인).

SKILL_DIR="$(python3 -c 'import os,sys; print(os.path.realpath(sys.argv[1]))' "<이 SKILL.md가 포함된 디렉터리>")"
KIT="$(python3 -c 'import os,sys; print(os.path.realpath(os.path.join(sys.argv[1], "..", "..", "kit")))' "$SKILL_DIR")"
[ -s "$KIT/vendor/gsap.min.js" ] || bash "$KIT/setup.sh"

ffmpeg, node (18+), python3 (3.9+)가 필요합니다.

단계

  1. 실제 숫자 수집. 사용자(또는 스크린샷)로부터 데이터 포인트를 가져오며, 가장 오래된 데이터부터 먼저 가져옵니다. 사실적인 데이터를 절대 조작하지 마십시오. 사용자가 시작과 끝 값만 제공하는 경우, 중간 값을 요청하거나 곡선이 예시용임을 명시하십시오.
  2. 사양 작성. 아래 스키마를 사용하여 대상 작업 폴더에 <name>.graph.json을 생성합니다.
  3. 먼저 검증. 실행:
    python3 "$SKILL_DIR/build.py" <name>.graph.json --check
    
    렌더링 전에 검증 오류를 수정하십시오.
  4. 렌더링. 실행:
    python3 "$SKILL_DIR/build.py" <name>.graph.json
    
    약 10초가 소요되며 <name>.graph.mp4 (1080x1920, 30fps)와 <name>.graph.sheet.jpg가 출력됩니다. 먼저 빠른 단일 프레임 미리보기를 보려면 --snap 3.5를 사용하십시오.
  5. 시각적 QA (필수). read_file을 사용하여 <name>.graph.sheet.jpg를 검사합니다:
    • 큰 카운터가 한 줄에 맞게 표시되고 잘리지 않아야 합니다.
    • 곡선과 x축 레이블이 빨간색 Instagram 안전 영역 상자 내에 있어야 합니다.
    • 마지막 프레임이 정확한 최종 값을 표시해야 합니다. 만약 클리핑되거나 어색하게 줄바꿈되는 경우, 사양을 조정하고 다시 렌더링하십시오.
  6. 전달. .mp4 및 .sheet.jpg에 대한 클릭 가능한 링크를 반환합니다.

사양 스키마

{
  "label": "팔로워",
  "values": [1.2, 2.1, 3.4, 5, 9, 24, 51, 78, 100],
  "labels": ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월"],
  "final": 100000,
  "prefix": "",
  "suffix": "",
  "decimals": 0,
  "dark": false
}
  • values (필수): 2개 이상의 숫자 배열 (>= 0, 하나 이상 > 0). 가장 높은 값이 상단 그리드라인에 닿습니다.
  • labels (선택): x축 아래 각 포인트에 대한 문자열. 12개를 초과하면 두 번째 레이블마다 표시됩니다.
  • final (선택): 최종 표시 숫자. 카운터가 final / values[-1]로 values를 스케일링합니다. 생략하면 원래 values 단위로 카운트합니다.
  • prefix, suffix, decimals: "$", "%", " kg"와 같은 형식 지정. 긴 숫자의 경우 글꼴이 자동으로 축소됩니다.
  • dark: true는 검은 배경에 흰색 선, false는 흰색 배경에 검은색 선입니다.
  • hold (선택): 마지막 프레임에서 추가로 유지할 시간(초)입니다.
  • out (선택): 사용자 정의 출력 .mp4 경로입니다.

취향 규칙

  • 하나의 숫자, 하나의 선. label에는 평범한 명사(예: "팔로워", "월간 매출")를 사용하고, 슬로건은 사용하지 마십시오.
  • 콜아웃 배지, "83배 성장!" 칩, 마케팅 클러터가 없어야 합니다.
  • 후반 가속 곡선이 시각적으로 가장 좋아 보이지만, 항상 실제 데이터 형태에 충실해야 합니다.

Individual skills in this repo

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

breakdown

Makes a 3D exploded-view vertical animation (1080x1920) for a reel using three.js. A phone floats on a dark studio backdrop, separates layer by layer (glass, OLED screen, frame, logic board, battery, back), and draws thin leader lines to numbered labels. Use when the user asks for /breakdown, an exploded view, a "what's inside" teardown, or a labelled 3D hardware breakdown.

low-poly

Makes a PS1/N64-era retro low-poly 3D vertical animation (1080x1920) for a reel using three.js. Chunky low-res nearest-neighbour pixels, vertex snapping, dithering, warm flat lighting, and small yellow captions with a thin black outline. Built-in scene: a dog waits on a station platform while a train arrives and leaves, and seasons turn to snow. Use when the user asks for /low-poly, PS1-style, N64 retro 3D, or "low poly shorts" animations.

map-route

Makes a 3D map route vertical animation (1080x1920) for a reel using three.js. Features a clean white 3D city with parks and a river, a coloured route drawing itself while the camera follows, a bouncing red destination pin, a live countdown ETA card, and a destination card. Use when the user asks for /map-route, an animated route, a "from A to B" map, a journey, or a commute animation.

minimalistic-graphics

Makes a minimal black-and-white line-art vertical animation (1080x1920) for a reel. Thin outlined steps rise one by one, a white dot hops up them, an orbit with sparks draws around the dot at the top, and one quiet lowercase line swaps to a second line. Use when the user asks for /minimalistic-graphics, simple black-and-white motion graphics, calm self-improvement visuals, or line art with one moving dot.

관련 스킬