Gif Makerのロゴ

Gif Maker

コミュニティ
Mikefluff
gif-maker

Short looping GIF utility. Modes: (A) MP4-to-GIF with 2-pass palette optimization; (B) generate 1-3s clip via Veo/Sora/Kling/Runway/fal-video then convert. Aspect presets 1:1, 9:16, 16:9, 2:1. Use when: 'gif', 'looping animation', 'short loop', 'make a gif', 'сделай гифку', 'короткая зацикленная анимация'.

概要

公開者Mikefluff
リポジトリskills
スキル名gif-maker
スター
26
フォーク
2
同梱ファイル
5
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 5個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

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

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

スキルの指示

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

Distinct from reel-builder:

  • No script / music / captions — single short looping clip
  • Output format is GIF, not MP4
  • Much shorter duration (1-3s vs 8-30s)

Distinct from video-prompt:

  • Output is GIF (palette-optimized), not MP4
  • Wraps video-prompt --execute for generation mode, then converts
  • Aspect crop and frame-rate optimization built-in

This skill does NOT:

  • Generate long videos (>5s) — those are reels / shorts; use reel-builder
  • Output WebP / APNG / animated AVIF — GIF only (most universally supported format)
  • Background-removal frame-by-frame — GIF supports binary transparency but skill doesn't try
  • Combine multiple clips into one GIF — single source → single GIF

ROLE

Two modes:

Mode A — convert MP4 to GIF: Read an existing MP4 → apply optional aspect crop + trim → run 2-pass palette generation (palettegen + paletteuse) for high-quality color → save GIF.

Mode B — generate then convert: Read prompt + provider → call video provider for a short clip → save intermediate MP4 → run conversion pipeline → save GIF.

PIPELINE

Mode A — gif-maker --input <mp4>

  1. Resolve input — path to existing MP4.
  2. Detect ffmpeg — fail if absent (print install instructions).
  3. Aspect crop (optional) — center-crop to --aspect 1:1|9:16|16:9|4:5|2:1|1:2.
  4. Trim (optional) — --start <s> --duration <s>.
  5. 2-pass palette generation:
    • Pass 1: palettegen → palette.png (256 colors, stats_mode=diff)
    • Pass 2: paletteuse with bayer dithering → output GIF
  6. Save to ./generated/gif/<stem>.gif (or --output <path>).

Mode B — gif-maker --prompt "..." --model <video-slug>

  1. Resolve prompt + model (default suggestion: veo-3-1-fast for cheapest, kling-3 for best motion).
  2. Pre-flight: check provider available + cost-confirm.
  3. Generate — call video provider (poll if async).
  4. Save intermediate MP4 to ./generated/gif/_source/.
  5. Run Mode A pipeline on the intermediate.
  6. Final GIF to ./generated/gif/<slug>.gif.

MODES

Mode A — convert existing

  • gif-maker --input <path.mp4> (required)

Mode B — generate then convert

  • gif-maker --prompt "<text>" --model <video-slug> (both required)
  • --prompt-file <path> — alternative to --prompt
  • --duration <seconds> — target generation length (default depends on model, typically 3-5s; we trim down to keep GIF small)

Output controls (both modes)

  • --output <path> — explicit output GIF path
  • --aspect 1:1|9:16|16:9|4:5|2:1|1:2 — center-crop to ratio
  • --fps N — GIF frame rate (default 12; range 6-24)
  • --width N — output width in px (default by aspect: 720 for landscape, 540 for portrait/square)
  • --start <s> — trim start
  • --duration <s> — trim length (Mode A) / target generation (Mode B)
  • --yes — skip cost confirmation (Mode B)
  • --timeout <s> — poll timeout for async video gen (default 600)

REFERENCES (load on demand)

FileWhen to load
references/quality-tuning.mdWhen GIF is too large, colors look banded, or motion is choppy
references/model-picker.mdMode B — which video provider for which kind of clip (motion / talking head / abstract loop)
references/troubleshoot.mdWhen ffmpeg fails, palette breaks, source is too long, etc.

EXAMPLES

See examples/before-after.md — 3 calibration runs: convert existing reel to social GIF, generate abstract loop from prompt, convert long video to short looping GIF with trim.

CONSTRAINTS

  • GIFs should be SHORT. 1-3 seconds is the sweet spot. 5+ seconds creates huge files (>10MB), losing the "lightweight" advantage of GIF over MP4.

  • GIFs are large by nature. Even with palette optimization, expect 500KB-3MB for 2-3 second clips. For smaller files: lower --fps (8-10), lower --width (480 or smaller), shorter --duration.

  • Lossy color via 256-color palette. GIF max is 256 colors. Photoreal video → noticeable banding. Animated motion / illustrations / cartoons → great. Cue this in Mode B prompt: "flat illustration / animated / cartoon aesthetic" works better than "photoreal".

  • Aspect crop is center-crop. Source aspect 16:9, target 1:1 → loses left+right portions.

  • Looping is implicit. GIFs always loop by default (loop=0 = infinite). Source video should naturally loop or close-to-loop for best effect.

  • No audio. GIFs don't support audio. If user needs audio + animation, that's MP4 territory (use reel-builder or video-prompt --execute).

  • ffmpeg required. Install via brew install ffmpeg (Mac) / apt-get install ffmpeg (Debian). Without it, skill prints the manual ffmpeg command for the user to run.

  • Default fps 12. 12fps is the GIF sweet spot. Higher fps = bigger file. Lower fps = choppy motion. Override only when needed.

  • Cost in Mode B depends on the chosen video provider. Veo 3.1 Fast ~$0.40/sec; Kling 3 ~$0.50/sec; Sora 2 ~$1.00/sec. A 3-second clip = $1.20-$3.00.

  • No frame interpolation. This skill doesn't upsample frame rates — it samples the existing video at --fps. For smoother motion, generate at higher native fps in Mode B.

  • Never print API keys (Mode B). Mask in errors.

INVOCATION HINTS

When the user says any of:

  • "gif", "make a gif", "looping animation", "short loop"
  • "convert this MP4 to GIF", "compress this video as a GIF"
  • "сделай гифку", "короткая зацикленная анимация", "конвертируй в gif"
  • "loop of X", "2-second loop of Y for Twitter"

Mode A is the default when --input is provided. Mode B requires both --prompt and --model.

Defaults: --fps 12 --width <by-aspect>. Mode B model default suggestion: veo-3-1-fast (cheapest, fast). For best motion: kling-3. For abstract / artistic: fal-video with hosted model id.

This skill is distinct from:

  • reel-builder — full reels with script + music + captions, MP4 output
  • video-prompt — single-clip MP4 generation
  • subtitle-burner — captions on video (no animation)
  • bg-remover — image utility, not video

If the user wants to add captions to the GIF: not supported in v1. Workaround: use subtitle-burner --inline "<text>" on the intermediate MP4 (Mode B) BEFORE conversion, then GIF the result.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

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

Short looping GIF utility. Modes: (A) MP4-to-GIF with 2-pass palette optimization; (B) generate 1-3s clip via Veo/Sora/Kling/Runway/fal-video then convert. Aspect presets 1:1, 9:16, 16:9, 2:1. Use when: 'gif', 'looping animation', 'short loop', 'make a gif', 'сделай гифку', 'короткая зацикленная анимация'.

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

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

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

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

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

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

Gif Makerは何個のAIモデルで使えますか?

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

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

はい。MikefluffがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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