Claude Gif Generateのロゴ

Claude Gif Generate

コミュニティ
AgriciDaniel
claude-gif-generate

Veo 3.1を使って、AI動画からGIFを生成します。短いAI動画クリップを生成し、パレットを最適化して、滑らかにループするGIFに変換します。シネマティックなループ、製品デモ、抽象アート、リアルな動きに最適です。「AI gif」「cinematic gif」「generate realistic gif」「product demo gif」「Veo gif」「abstract art gif」「movie quality gif」といったリクエストで使用します。

概要

公開者AgriciDaniel
リポジトリclaude-gif
スキル名claude-gif-generate
スター
31
フォーク
8
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    AgriciDanielがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Claude Gif Generate」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/AgriciDaniel/claude-gif/tree/main/skills/claude-gif-generate
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AgriciDaniel/claude-gif.git /tmp/claude-gif
mkdir -p .claude/skills
cp -r /tmp/claude-gif/skills/claude-gif-generate .claude/skills/claude-gif-generate
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでClaude Gif Generateを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にClaude Gif Generateを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Claude Gif Generateは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

claude-gif-generate -- AI Video-to-GIF (Veo 3.1)

Generates photorealistic or stylized AI video clips using Google Veo, then converts them to optimized GIFs with palette optimization, perfect loops, and platform sizing.

Pipeline Overview

Prompt Engineering --> Veo Generate (MP4) --> gif_convert.sh (GIF) --> gif_loop.py (Loop) --> gif_optimize.py (Shrink)

Step-by-Step Procedure

1. MANDATORY: Read Prompt Reference

Before constructing ANY Veo prompt for GIF output:

Read ~/.claude/skills/claude-gif/references/prompt-engineering.md

This is not optional. GIF-optimized prompts differ significantly from general video prompts. Loop-friendly prompts and static-background strategies reduce file size dramatically.

2. Cost Confirmation

Veo generation costs real money. ALWAYS confirm with the user before proceeding.

ModelDurationApproximate Cost
veo-3.0-fast-generate-0014 seconds~$0.60
veo-3.0-fast-generate-0018 seconds~$1.20
veo-3.0-generate-0014 seconds~$1.20
veo-3.0-generate-0018 seconds~$2.40

Recommendation: Use veo-3.0-fast-generate-001 with 4 seconds for GIFs. Shorter clips make better GIFs (smaller files, easier to loop). Fast model quality is excellent for GIF resolution (480px).

Tell the user: "This will use Veo 3.0 Fast (4s) costing approximately $0.60. Proceed?"

3. Analyze GIF Concept

Determine from the user's request:

  • Loop requirement: Most GIFs should loop. Identify if the content naturally loops.
  • Aspect ratio: 16:9 (landscape), 9:16 (portrait/mobile), 1:1 (square, best for GIFs)
  • Duration: 4 seconds minimum (Veo constraint). 4s is ideal for GIFs.
  • Subject matter: Affects prompt engineering strategy.
  • Target platform: Determines final optimization pass.

4. Construct Loop-Friendly Prompt

Read references/prompt-engineering.md for detailed patterns. Key principles:

Natural loops (motion returns to start):

  • Circular camera orbits: "Camera slowly orbits 360 degrees around..."
  • Pendulum motion: "swinging", "rocking", "bobbing"
  • Cyclical natural motion: fire, waves, rain, clouds, breathing, flickering

Static background strategy (reduces GIF file size via diff_mode):

  • "A [moving subject] against a solid [color] background"
  • "Isolated [subject] on a clean, minimalist backdrop"
  • Moving subject on static background = only changed pixels encoded = smaller GIF

What to AVOID in prompts:

  • Narrative progression ("walks across", "enters the room", "picks up")
  • Scene changes or cuts
  • Camera movement that doesn't return to start
  • Complex multi-subject interactions

5. Generate Video

bash
~/.video-skill/bin/python3 ~/.claude/skills/veo/scripts/generate.py \
  --prompt "A single candle flame flickering gently against a solid black background, close-up macro shot, the flame dances in a continuous loop, warm orange and yellow tones, 4K quality" \
  --model veo-3.0-fast-generate-001 \
  --duration 4 \
  --aspect-ratio 16:9 \
  --resolution 720p \
  --output /tmp/claude-gif/veo_output.mp4

Parameters:

  • --model: Use veo-3.0-fast-generate-001 for cost efficiency
  • --duration: 4 (minimum and ideal for GIF)
  • --aspect-ratio: Match GIF intent (16:9 for landscape, 1:1 for social)
  • --resolution: 720p is sufficient; GIF will be downscaled to 480px anyway

6. Convert to GIF

bash
bash ~/.claude/skills/claude-gif/scripts/gif_convert.sh \
  --input /tmp/claude-gif/veo_output.mp4 \
  --preset web \
  --output ~/Documents/gif_output/candle.gif

Choose preset based on target. For unknown targets, use web (480px, 15fps, 256 colors, 2MB cap).

7. Perfect Loop (If Needed)

Inspect the GIF. If the loop has a visible "jump" at the seam:

bash
~/.video-skill/bin/python3 ~/.claude/skills/claude-gif/scripts/gif_loop.py \
  --input ~/Documents/gif_output/candle.gif \
  --method crossfade \
  --frames 5 \
  --output ~/Documents/gif_output/candle_looped.gif

Methods:

  • crossfade: Alpha-blend last N frames into first N frames. Best for most content.
  • pingpong: Play forward then reverse. Best for pendulum/oscillating motion.
  • freeze: Blend first and last frames. Subtle, good for slow-moving content.

Read references/perfect-loops.md for detailed technique guidance.

8. Platform Optimization (If Needed)

If the GIF exceeds the target platform's size limit:

bash
~/.video-skill/bin/python3 ~/.claude/skills/claude-gif/scripts/gif_optimize.py \
  --input ~/Documents/gif_output/candle_looped.gif \
  --target-size 256 \
  --output ~/Documents/gif_output/candle_discord.gif

9. Cleanup

bash
rm -f /tmp/claude-gif/veo_output.mp4

Prompt Templates by GIF Type

Cinematic Loop (Nature)

"[Natural element] in continuous seamless motion, [lighting], static camera,
[color palette], cinematic quality, the motion naturally repeats"

Examples: crackling fire, ocean waves, falling rain, swirling smoke, flickering aurora

Product Demo (Turntable)

"A [product] slowly rotating 360 degrees on a clean [color] surface,
studio lighting, product photography, the rotation completes one full cycle"

Abstract Art Loop

"Abstract [pattern/shape] flowing and morphing in a continuous cycle,
[color palette], minimalist background, mesmerizing seamless loop"

Cinemagraph (Partial Motion)

"A [scene description] where only the [specific element] moves,
everything else perfectly still, cinematic quality, subtle continuous motion"

Examples: steam rising from a cup (cup static), hair blowing in wind (person still)

Reaction GIF

"Close-up of a [subject/character] [facial expression or gesture],
[emotion], isolated against [simple background], short expressive motion"

Decision Matrix: Veo vs Remotion

FactorUse Veo (generate)Use Remotion (create)
ContentPhotorealistic, nature, people, productsText, UI, geometric, data
MotionComplex physics, fluid dynamicsProgrammatic, spring-based
Cost~$0.60+ per generationFree (local render)
Speed30-90 seconds generation5-15 seconds render
LoopingNeeds post-processingDesigned into component
File sizeLarger (complex scenes)Smaller (flat colors)
PredictabilityAI may varyExact output every time

Error Handling

ErrorCauseFix
Veo rate limitToo many requestsWait 60 seconds, retry
Veo safety filterPrompt flaggedRephrase prompt, remove potentially sensitive terms
Video too darkPrompt lacks lighting cuesAdd "well-lit", "bright", specific lighting description
Loop seam visibleMotion doesn't naturally cycleApply crossfade via gif_loop.py
GIF too largeComplex scene, many colorsUse discord/slack preset, or optimize aggressively
Generation failedAPI errorCheck ~/.claude/skills/veo/scripts/generate.py logs

よくある質問

AIスキル「Claude Gif Generate」では何ができますか?

Veo 3.1を使って、AI動画からGIFを生成します。短いAI動画クリップを生成し、パレットを最適化して、滑らかにループするGIFに変換します。シネマティックなループ、製品デモ、抽象アート、リアルな動きに最適です。「AI gif」「cinematic gif」「generate realistic gif」「product demo gif」「Veo gif」「abstract art gif」「movie quality gif」といったリクエストで使用します。

TypingMindでClaude Gif Generateを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Claude Gif Generateはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにClaude Gif Generateをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/AgriciDaniel/claude-gif/tree/main/skills/claude-gif-generateを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Claude Gif Generateを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Claude Gif Generateで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもClaude Gif Generateを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Claude Gif Generate」は無料ですか?

はい。AgriciDanielがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇