Communitygithub.com

graph

最小限の縦型(1080x1920)ライングラフアニメーションをリール用に生成します。滑らかな黒線が白背景に(または白線が黒背景に)自動描画され、先端に沿って大きな数字がカウントアップし、最終値で停止します。ユーザーが「/graph」「成長チャート」「0から100Kへのカウンター」「アニメーション統計」「最小限のメトリック折れ線グラフ」を求める場合に使用します。

graph とは?

`graph`スキルは、インスタグラムリールやショート動画向けの縦型(1080x1920)ライングラフアニメーションを生成するためのツールです。ユーザーから得た実データに基づき、1本の滑らかなラインが自動描画され、先端に沿って大きな数字がカウントアップ、最終値で停止します。ラベルや数値のフォーマット(接頭辞・接尾辞・小数点桁)、ダークモード対応、最終フレームのホールド時間などをJSONスペックで細かく指定可能。`ffmpeg`、`node`、`python3`に依存し、事前にGSAPとフォントのセットアップが必要ですが、ビルドスクリプトが自動で環境を整えます。出力はMP4動画とスプレッドシート形式のスチル画像で、視覚的な品質チェックが必須です。提供された数値に忠実でありながら、後半加速のカーブが視覚的に美しく仕上がるよう設計されています。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hieubm1707/gemini-animation-skills/tree/HEAD/skills/graph

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

グラフアニメーション(graph)

┌──────────────────────┐
│ Followers            │  プレーンラベル
│ 100,000              │  ラインの先端とともにカウントアップ
│                  •   │
│                 /    │  滑らかなラインが自動描画
│            ___/      │
│ ______----           │
│ Jan Feb ... Sep      │
└──────────────────────┘

セットアップ確認

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 を検査します。
    • 大きなカウンターが1行に収まり、クリッピングしていないこと。
    • 曲線とX軸ラベルが赤いInstagramセーフエリアボックス内に収まっていること。
    • 最終フレームに正確な最終値が表示されていること。 クリッピングや折り返しが不自然な場合は、スペックを調整して再レンダリングします。
  6. 引き渡す。 .mp4 と .sheet.jpg へのクリック可能なリンクを返します。

スペックスキーマ

{
  "label": "Followers",
  "values": [1.2, 2.1, 3.4, 5, 9, 24, 51, 78, 100],
  "labels": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep"],
  "final": 100000,
  "prefix": "",
  "suffix": "",
  "decimals": 0,
  "dark": false
}
  • values(必須):2つ以上の数値の配列(>= 0、少なくとも1つは > 0)。最大値が最上部のグリッドラインに接します。
  • labels(オプション):X軸の下に表示する、各ポイントに対応する1つの文字列。12個を超える場合は、1つおきのラベルが表示されます。
  • final(オプション):最終表示数値。カウンターは values を final / values[-1] でスケーリングします。省略すると生の values 単位でカウントします。
  • prefix、suffix、decimals:"$"、"%"、" kg" などの書式設定。長い数値の場合、フォントは自動的に縮小されます。
  • dark:true で黒背景に白線、false で白背景に黒線。
  • hold(オプション):最終フレームを保持する追加の秒数。
  • out(オプション):カスタム出力 .mp4 パス。

テイストルール

  • 数字は1つ、ラインは1本。label にはプレーンな名詞("Followers"、"Monthly revenue")を使用し、スローガンは使用しないこと。
  • コールアウトバッジ、「83x growth!」チップ、マーケティングのごちゃごちゃは禁止。
  • 後半加速の曲線が視覚的に最も美しく見えますが、実際のデータの形状には常に忠実であること。

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.

関連スキル