From x-manager
X投稿用の画像をGemini AIで生成するスキル。 Supabase Edge Function `x-generate-image` を呼び出し、 日本のビジネス書風「ゆるいイラスト」スタイルの正方形画像を生成してSupabase Storageに保存し、公開URLを返す。 「X投稿の画像を作って」「投稿用の画像を生成」「ツイートに画像を添付したい」 「Xの画像生成」「x-image」などのリクエストで発動。
How this skill is triggered — by the user, by Claude, or both
Slash command
/x-manager:x-imageThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Supabase Edge Function (`x-generate-image`) 経由で Gemini AI を使って投稿用画像を生成する。
Supabase Edge Function (x-generate-image) 経由で Gemini AI を使って投稿用画像を生成する。
x-generate-image がデプロイ済み(モデル: gemini-3.1-flash-image-preview)GEMINI_API_KEY が設定済み
https://aistudio.google.com/ でAPIキーを取得し、
Supabase Dashboard → Settings → Edge Functions → Secrets に GEMINI_API_KEY として登録するRead で x-manager/config.local.md を読み込み、以下を取得する:
Anon KeyEdge Function Base URL$ARGUMENTS にテキストが指定されていればそれを使用VMからの直接HTTP通信はプロキシブロックされるため、Supabase MCP の execute_sql を使って pg_net 経由で呼び出す。
リクエスト送信(タイムアウトは60秒に設定すること):
SELECT net.http_post(
url := '{Edge Function Base URL}/x-generate-image',
headers := '{"Content-Type": "application/json", "Authorization": "Bearer {Anon Key}"}'::jsonb,
body := '{"text": "{投稿テキスト}", "id_suffix": "xxx"}'::jsonb,
timeout_milliseconds := 60000
) AS request_id;
レスポンス取得(45秒待機してから実行):
SELECT id, status_code, content::text, error_msg
FROM net._http_response
WHERE id = {request_id};
status_code = 200 かつ content に "success":true → image_url をユーザーに報告status_code = 500 かつ GEMINI_API_KEY is not configured → Supabase SecretsへのAPIキー設定を案内error_msg に Timeout → リクエストIDで再度ポーリングするか、待機時間を増やして再実行gemini-3.1-flash-image-previewx-images バケット(public)https://iltymrnkqchixvtpvewm.supabase.co/storage/v1/object/public/x-images/YYYY/MM/x_post_image_YYYYMMDDHHMMSS_{suffix}.pngnpx claudepluginhub iketomo/cowork_x_plugin --plugin x-managerGenerates Xiaohongshu infographic series from markdown content, with 10 visual styles and 8 layouts for social media posting.
Generates platform-optimized social media copy and images for X/Twitter and Xiaohongshu using customizable templates and personas.
Creates social media graphics, newsletter headers, blog feature images, OG images, profile banners optimized for platform-specific dimensions, safe zones, and design constraints.