Giphy Gifのロゴ

Giphy Gif

コミュニティ
viralcode
giphy-gif

Search and send contextual GIFs from Giphy in Discord conversations. Use when the user wants to react with a GIF, express emotions with a GIF, or when you determine a GIF would enhance the conversation (celebrations, reactions, emotions, humor). Triggers on requests like "send a GIF", "show me a GIF", or when context suggests a GIF reaction would be appropriate.

概要

公開者viralcode
リポジトリopenwhale
スキル名giphy-gif
スター
65
フォーク
11
同梱ファイル
2
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 2個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Giphy GIF Search

This skill enables searching for and sending contextually appropriate GIFs from Giphy's library in Discord conversations.

Setup

Before using this skill, you need a Giphy API key:

  1. Go to Giphy Developers Dashboard
  2. Sign up or log in
  3. Create a new app (select "API" not "SDK")
  4. Copy your API key
  5. Add to OpenClaw config or set environment variable: export GIPHY_API_KEY="your-api-key-here"

OpenClaw Config (Recommended)

Add to ~/.openclaw/openclaw.json:

json
{
  "skills": {
    "entries": {
      "giphy-gif": {
        "apiKey": "your-api-key-here"
      }
    }
  }
}

Usage

Search and Send a GIF

Use this one-liner to search and get a Giphy URL:

bash
# Basic search
exec("QUERY='excited'; API_KEY=$(jq -r '.skills.entries.\"giphy-gif\".apiKey // env.GIPHY_API_KEY' ~/.openclaw/openclaw.json 2>/dev/null || echo \"$GIPHY_API_KEY\"); curl -s \"https://api.giphy.com/v1/gifs/search?api_key=${API_KEY}&q=$(printf '%s' \"$QUERY\" | jq -sRr @uri)&limit=1&rating=g\" | jq -r '.data[0].url // empty'")

Practical Example

bash
# 1. Define your search query
query="happy dance"

# 2. Get GIF URL using the helper function below
gif_url=$(exec("QUERY='$query'; API_KEY=$(jq -r '.skills.entries.\"giphy-gif\".apiKey // env.GIPHY_API_KEY' ~/.openclaw/openclaw.json 2>/dev/null || echo \"$GIPHY_API_KEY\"); curl -s \"https://api.giphy.com/v1/gifs/search?api_key=${API_KEY}&q=$(printf '%s' \"$QUERY\" | jq -sRr @uri)&limit=1&rating=g\" | jq -r '.data[0].url // empty'"))

# 3. Send to Discord
message(action="send", message=gif_url)

Simplified Helper Command

For easier use, create this helper in your commands:

bash
# Function to search GIF (copy this pattern)
search_gif() {
  local query="$1"
  local api_key
  
  # Try OpenClaw config first, then env var
  api_key=$(jq -r '.skills.entries."giphy-gif".apiKey // empty' ~/.openclaw/openclaw.json 2>/dev/null)
  [[ -z "$api_key" ]] && api_key="$GIPHY_API_KEY"
  
  if [[ -z "$api_key" ]]; then
    echo "Error: GIPHY_API_KEY not configured" >&2
    return 1
  fi
  
  # URL encode and search
  local encoded_query=$(printf '%s' "$query" | jq -sRr @uri)
  curl -s "https://api.giphy.com/v1/gifs/search?api_key=${api_key}&q=${encoded_query}&limit=1&rating=g&lang=en" | jq -r '.data[0].url // empty'
}

# Usage:
# gif_url=$(search_gif "excited")
# message(action="send", message="$gif_url")

Discord Auto-Embed

When you send a Giphy URL to Discord, it will automatically embed as an animated GIF. No additional steps needed.

When to Use

Send GIFs in these situations:

  • User requests: "send me a GIF", "show me something funny"
  • Celebrations: achievements, good news, milestones
  • Reactions: surprise, shock, agreement, disagreement
  • Emotions: happy, sad, excited, confused, thinking
  • Humor: to lighten the mood or add comedic timing
  • Emphasis: to reinforce a point with visual impact

Context-Aware Sending

Be thoughtful about when to send GIFs to maintain natural conversation flow:

  • Direct requests: Always send when explicitly asked
  • GIF exchange initiated by user: If the user sends a GIF, match naturally 1-2 times, then resume normal chat
  • Standalone reactions: Only for significant moments (big celebrations, major news, strong emotional beats)
  • Normal conversation: Default to text responses; GIFs should be occasional spice, not the main dish
  • Topic shift: If conversation moves to serious/informational topics, return to text-only mode

Goal: Make GIF usage feel natural and contextual, not automatic or overwhelming.

Best Practices

  1. Match the context: Choose search terms that match the conversation tone
  2. Keep it appropriate: The script uses 'g' rating (safe for work) by default
  3. Don't overuse: GIFs are most effective when used sparingly
  4. Search terms matter: Use specific, descriptive terms for better results
    • Good: "celebration dance", "facepalm reaction", "mind blown"
    • Poor: "thing", "stuff", "it"
  5. Read the room: If the conversation becomes more serious or informational, stick to text

Common Search Terms

  • Reactions: thumbs up, facepalm, eye roll, shocked, confused
  • Emotions: excited, happy, sad, angry, love, crying
  • Actions: dance, clap, wave, thinking, working
  • Celebrations: party, celebrate, success, winner
  • Humor: funny, lol, wtf, awkward, fail

Technical Details

  • API: Giphy v1
  • Rate limits:
    • Beta keys: 100 requests per hour
    • Production keys: Higher limits available
  • Response format: Giphy page URLs (Discord auto-embeds)
  • Dependencies: bash, curl, jq (standard on Linux/macOS/WSL)
  • Default rating: 'g' (safe for work)
  • API key priority: OpenClaw config → Environment variable

API Key Tiers

  • Beta Key (Free): 100 requests/hour, good for personal use
  • Production Key: Higher limits, requires approval for specific use cases

Get started with a free beta key at developers.giphy.com.

Troubleshooting

"Unauthorized" error:

  • Check API key is set correctly in ~/.openclaw/openclaw.json or $GIPHY_API_KEY
  • Verify key is valid at Giphy dashboard

No GIF returned:

  • Try a different search term
  • Check API rate limits (100/hour for beta keys)

jq not found:

  • Install jq: sudo apt install jq (Linux) or brew install jq (macOS)

同梱ファイル

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

よくある質問

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

Search and send contextual GIFs from Giphy in Discord conversations. Use when the user wants to react with a GIF, express emotions with a GIF, or when you determine a GIF would enhance the conversation (celebrations, reactions, emotions, humor). Triggers on requests like "send a GIF", "show me a GIF", or when context suggests a GIF reaction would be appropriate.

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

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

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

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

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

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

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

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

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

viralcodeがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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