mcpField
M
meme-factory

meme-factory

github.com/softaworksクリエイティブ・メディア2.6k4.0k 回インストール34 週間前に更新
リポジトリ

meme-factory について

meme-factory は、memegen.link API とテキスト形式を使って、文脈に合ったミーム画像を作るスキルです。会話やソーシャル投稿、コード関連の用途に向け、テンプレート選びや文字のエンコード、画像設定を案内します。

主な機能

  1. 01テンプレートと文字からミームを生成
  2. 02内容に応じたテンプレート選択
  3. 03URL 用の特殊文字エンコード
  4. 04画像サイズ、形式、レイアウトの設定
  5. 05背景画像とフォントの指定

活用シーン

  1. 01会話にユーモアを加える
  2. 02ソーシャルメディア画像の作成
  3. 03コードレビューを楽しくする
  4. 04デプロイ成功を祝う

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/softaworks/agent-toolkit --skill meme-factory

インストール後、Claude Code で/meme-factoryを入力して読み込まれたか確認します。

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

README.md
references/
examples.md
markdown-memes-guide.md
scripts/
meme_generator.py

詳細

Meme Factory

無料の memegen.link API とテキストベースのミーム形式を使って、ミームを作成します。


トリガー

トリガー説明
/meme-factory手動呼び出し
/meme-factory {template} {top} {bottom}ミームを直接生成
meme-factory: create a meme about X自然言語によるリクエスト

クイックリファレンス

アクション形式
基本のミームhttps://api.memegen.link/images/{template}/{top}/{bottom}.png
サイズ指定?width=1200&height=630
カスタム背景?style=https://example.com/image.jpg
すべてのテンプレートhttps://api.memegen.link/templates/
インタラクティブドキュメントhttps://api.memegen.link/docs/

追加リソース:


クイックスタート

基本的なミームの構造
https://api.memegen.link/images/{template}/{top_text}/{bottom_text}.{extension}

例:

https://api.memegen.link/images/buzz/memes/memes_everywhere.png

結果: 上段に「memes」、下段に「memes everywhere」が入ったバズ・ライトイヤーのミーム。

テキストの書式設定
文字エンコード
スペース_ または -
改行~n
疑問符~q
パーセント~p
スラッシュ~s
ハッシュ~h
シングルクォート''
ダブルクォート""

人気のテンプレート

テンプレート用途例
buzzX、どこにでも Xbugs/bugs_everywhere
drake比較manual_testing/automated_testing
success勝利deployed/no_errors
fine事態の悪化server_on_fire/this_is_fine
fry不確実性not_sure_if_bug/or_feature
changemind過激な意見tabs_are_better_than_spaces
distracted優先順位my_code/new_framework/current_project
mordor「一人ではどうにもできない」one_does_not_simply/deploy_on_friday

テンプレート選択ガイド

状況テンプレート理由
選択肢を比較するdrake2 パネルの拒否/承認形式
成功を祝うsuccess肯定的な結果を強調
問題が無視されているfine皮肉を込めた「すべて順調」
不確実性fry「X か Y かわからない」形式
議論を呼ぶ意見changemind主張と反論
どこにでもあるものbuzz「X、どこにでも X」
悪いアイデアmordor「一人ではどうにもできない…」

検証

ミームを生成したら、次を確認してください:

  • URL が有効な画像を返す(ブラウザでテスト)
  • テキストが読める(長すぎない)
  • テンプレートがメッセージの文脈に合っている
  • 特殊文字が正しくエンコードされている
  • 表示先のプラットフォームに適したサイズである
プラットフォーム別のサイズ
プラットフォームサイズ
ソーシャルメディア (Open Graph)1200x630
Slack/Discord800x600
GitHubデフォルト

アンチパターン

避けるべきこと理由代わりに
エンコードされていないスペースURL が壊れる_ または - を使う
テキストが多すぎる読みにくい1 行あたり 2〜6 語
不適切なテンプレートメッセージがずれるテンプレートを文脈に合わせる
拡張子の欠落無効な URL必ず .png、.jpg などを含める
エンコードされていない特殊文字URL が壊れる~q、~s、~p などを使う
テンプレートが存在すると仮定する404 エラー先にテンプレート一覧を確認する

検証手順

ミーム生成が成功した場合の判定基準:

  1. URL が有効である - HTTP 200 を返す
  2. 画像が表示される - Markdown 内で正しく表示される
  3. テキストが見える - 画像上で適切に整形されている
  4. 文脈が一致する - テンプレートがメッセージに合っている

テストコマンド:

curl -I "https://api.memegen.link/images/buzz/test/test.png"
# Should return: HTTP/2 200

詳細解説: 高度な機能
画像形式
拡張子用途
.png最高品質、デフォルト
.jpgファイルサイズが小さい
.webp最新形式、高い圧縮率
.gifアニメーションテンプレート
サイズ
?width=800
?height=600
?width=800&height=600  (padded to exact)
レイアウトオプション
?layout=top     # Text at top only
?layout=bottom  # Text at bottom only
?layout=default # Standard top/bottom
Custom Fonts

利用可能なフォント: https://api.memegen.link/fonts/

?font=impact  (default)
Custom Images

任意の画像を背景として使用できます:

https://api.memegen.link/images/custom/hello/world.png?style=https://example.com/image.jpg
Deep Dive: Contextual Memes
Code Reviews
Template: fry
https://api.memegen.link/images/fry/not_sure_if_feature/or_bug.png
Deployments
Template: interesting
https://api.memegen.link/images/interesting/i_dont_always_test/but_when_i_do_i_do_it_in_production.png
Documentation
Template: yodawg
https://api.memegen.link/images/yodawg/yo_dawg_i_heard_you_like_docs/so_i_documented_the_documentation.png
Performance Issues
Template: fine
https://api.memegen.link/images/fine/memory_usage_at_99~/this_is_fine.png
Successful Deploy
Template: success
https://api.memegen.link/images/success/deployed_to_production/zero_downtime.png
Deep Dive: Workflow Integration
Generating Memes in Response
Here's a relevant meme:

![Meme](https://api.memegen.link/images/buzz/bugs/bugs_everywhere.png)
Dynamic Generation (Python)
def generate_status_meme(status: str, message: str):
    template_map = {
        "success": "success",
        "failure": "fine",
        "review": "fry",
        "deploy": "interesting"
    }

    template = template_map.get(status, "buzz")
    words = message.split()
    top = "_".join(words[0:3])
    bottom = "_".join(words[3:6])

    return f"https://api.memegen.link/images/{template}/{top}/{bottom}.png"
Using the Helper Script
from meme_generator import MemeGenerator

meme = MemeGenerator()
url = meme.generate("buzz", "features", "features everywhere")
print(url)
Deep Dive: API Reference
Endpoints
EndpointPurpose
/templates/すべてのテンプレートを一覧表示
/templates/{id}テンプレートの詳細
/fonts/利用可能なフォント
/images/{template}/{top}/{bottom}.{ext}ミームを生成
API Characteristics
  • 無料かつオープンソース
  • APIキーは不要
  • レート制限なし(通常の利用の場合)
  • ステートレス(すべての情報はURLに含まれる)
  • 画像はオンデマンドで生成
Error Handling
  1. https://api.memegen.link/templates/ でテンプレートを確認する
  2. テキストの書式を確認する(スペースはアンダースコア)
  3. 特殊文字のエンコードを確認する
  4. 拡張子が有効であることを確認する
  5. ブラウザでURLをテストする

References

DocumentContent
markdown-memes-guide.md15以上のテキストベースのミーム形式(greentext、copypasta、ASCIIなど)
examples.md実用的な使用例
Scripts
ScriptPurpose
meme_generator.pyミーム生成用のPythonヘルパー

Summary

コンテキストに応じたミームを生成して、次のことができます:

  • 会話にユーモアを加える
  • SNS用のビジュアルを作成する
  • コードレビューを楽しくする
  • 成功を祝う

黄金律: テキストは簡潔に、テンプレートはコンテキストに合わせて選びましょう。

コメント