Communityコーディング&開発github.com

fal-assets

fal (fal.ai) を介してゲームアセットを生成します。fal MCP サーバー、`um fal` CLI(REST)、または `fal api` を使用します。スプライト、アイコン、テクスチャ、3D モデル、サウンドエフェクト、音楽、ボイス、動画に対応。

fal-assets とは?

このスキルは、fal.ai の生成モデルを活用してゲーム開発に必要なあらゆるメディアアセットを生成するための包括的なツールです。FAL_KEY による認証設定後、MCP サーバー経由でモデルの検索・実行・アップロードが可能。`um fal` CLI は、画像、3Dモデル、オーディオ、動画を生成する多数のレシピを提供し、出力ファイルを自動でダウンロードしてトレーサビリティのためのマニフェストを生成します。スプライト、シームレスなタイルテクスチャ、PBR マップ、サウンドエフェクト、音楽、ボイス、トレーラー映像までカバー。さらに、一貫性のあるバリエーション生成、画風変換、バックグラウンド除去、自動リギングなど、ゲームアセットパイプラインに特化した機能を備えています。

対応✓Claude Code✓Codex CLI✓Cursor✓Gemini CLI
npx skills add https://github.com/rehan-remade/universal-modder/tree/main/skills/fal-assets

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

fal によるゲームアセット生成

fal は、1つの API キーで数百の生成モデルを実行できます。MOD にまだ存在しないもの(武器スプライト、ボス、16方向からレンダリングされたユニット、タイル可能な床、レーザー音、ボス戦の音楽、音声セリフなど)が必要なときにいつでも使用してください。

セットアップ(セッションごとに1回確認)

  • キー. FAL_KEY を設定する必要があります(https://fal.ai/dashboard/keys で作成)。um fal はワーキングフォルダの .env ファイル(FAL_KEY=...)からも読み取ります。キーを MOD ファイルに書き込まないでください。um publish check が漏洩したキーを検出します。

  • MCP. fal がホストする MCP サーバーは https://mcp.fal.ai/mcp で、ヘッダーに Authorization: Bearer $FAL_KEY を指定します。リポジトリは各エージェント向けに事前構成されています。

    • Claude Code: .mcp.json
    • Codex: .codex/config.toml
    • Cursor: .cursor/mcp.json
    • VS Code/Copilot: .vscode/mcp.json
    • Gemini CLI: gemini-extension.json

    手動で追加する場合:

    • Claude Code: claude mcp add --transport http fal https://mcp.fal.ai/mcp --header "Authorization: Bearer $FAL_KEY"
    • Codex(~/.codex/config.toml): [mcp_servers.fal] に url = "https://mcp.fal.ai/mcp" と bearer_token_env_var = "FAL_KEY" を設定。
    • それ以外: MCP 設定で上記の URL とヘッダーを指定。 MCP ツール: search_models, recommend_model, get_model_schema, get_pricing, run_model, submit_job/check_job/get_job_result, upload_file, search_docs。
  • fal キーがない場合? 画像については、um comfy が代わりにローカルの ComfyUI サーバーを使用します(um comfy status、その後 um comfy image "..." --sprite)。オーディオ、3D、ビデオのレシピはありません。

  • CLI の代替: pip install fal で fal api <endpoint> key=value key:=json が利用可能。genmedia CLI(genmedia run ... --json --download)もエージェントフレンドリーです。

どのインターフェースを使うか

  • 探索(特定のタスクに最適なモデル、その入力、価格を調べる): fal MCP の recommend_model / search_models / get_model_schema / get_pricing、または um fal search、um fal schema <endpoint>、um fal price <endpoint> を使用。カタログは毎週変更されます。以下のデフォルトは 2026年9月時点のものです。大量生成の前に確認してください。
  • ディスクに保存する必要があるもの(すべてのゲームアセット): um fal <recipe> を使用。ローカル入力をアップロードし、キューイング、ポーリング、すべての出力ファイルのダウンロードを行い、エンドポイント、入力、シード、リクエスト ID を <out>/fal_manifest.jsonl に追記します。これにより、すべてのアセットをトレースして再生成できます。
  • クイックルックや1回限りの確認(URL で十分な場合): MCP run_model を使用。

レシピ(um fal <recipe> --help でオプションを確認。--model でエンドポイントを上書き、--set k=v で追加入力を渡す)

アセットコマンドデフォルトエンドポイント
スプライト / アイコン、透明背景um fal sprite "<被写体, ビュー, スタイル>" --name xopenai/gpt-image-2(background=transparent)
コンセプトアート、キーアート、背景um fal image "<プロンプト>" --aspect 16:9fal-ai/nano-banana-2
一貫性のあるバリエーション、追加フレーム、色変更、同じキャラクターの新しいポーズum fal edit "<変更内容>" --ref base.pngfal-ai/nano-banana-2/edit
背景除去um fal rmbg in.pngfal-ai/birefnet/v2
任意の画像からクリーンなピクセルアートum fal pixelate in.png --colors 24fal-ai/image2pixel
アップスケールum fal upscale in.png --factor 2fal-ai/seedvr/upscale/image
シームレスなタイルテクスチャum fal texture "苔むした石畳"fal-ai/z-image/turbo/tiling
PBR マップ(ベースカラー、法線、ラフネス、メタリック、ハイト)um fal pbr "錆びた鉄板"fal-ai/patina/material
画像 → テクスチャ付き 3D モデル(GLB)um fal model3d concept.png [--engine trellis2|hunyuan|tripo|meshy]fal-ai/trellis-2
ヒューマノイドの自動リギング、オプションでアニメーションum fal rig character.glb --animatefal-ai/meshy/rigging
サウンドエフェクトum fal sfx "プラズマライフルの発射音、パンチの効いた音" --seconds 1.2fal-ai/elevenlabs/sound-effects/v2
音楽um fal music "緊迫したボス戦、チップチューン、150 BPM" --seconds 90elevenlabs/music/v2.5
ボイスラインum fal voice "よくも私に挑んだな?" --voice-id Adamfal-ai/elevenlabs/tts/eleven-v3
トレーラー / カットシーンクリップum fal video still.png "カメラがボスを周回する"bytedance/seedance-2.5/image-to-video
その他um fal run <endpoint> key=value key:=json [email protected]任意

その他の便利なエンドポイント:

  • 3D: tripo3d/tripo/remesh と fal-ai/meshy/v5/remesh(低ポリゴン、ゲーム対応)、fal-ai/trellis-2/retexture。
  • モーション: fal-ai/hunyuan-motion(テキスト → モーション)。
  • アイコン: fal-ai/recraft/v4.1/text-to-vector(SVG アイコン)。
  • ビデオカットアウト: pixelcut/video-background-removal。
  • 音楽: google/lyria-3.5。
  • ボイス: fal-ai/minimax/speech-2.8-hd。

ゲームに合ったアートを生成するためのプロンプト作成

  • まずゲーム自身のアセットを確認: ピクセルサイズ、アウトライン、パレット、遠近感、向き、情報量。それらを再利用可能なスタイル接尾辞にまとめます。Terraria の場合: "16ビットピクセルアートのゲームスプライト、Terraria スタイル、くっきりとした暗いアウトライン、限定パレット、中央揃え、フラットな白い背景、影なし、テキストなし"。
  • ビューと向きを明示的に記述: 手持ち武器なら "完全に水平な側面図、銃口は右を向いている"、敵なら "左を向いた側面から見た図"、落下爆弾なら "真下を向いた図"。エンジンには慣例があります(Terraria のアイテムは右向き、NPC は左向き)。後から向きを修正すると品質が低下します。
  • 背景: 透明(gpt-image-2)または um sprite cutout で塗りつぶし可能な単色。グラデーション、風景、地面の影は避けてください。ソフトな影が入った場合は、cutout で --grey / --keep-top を使用します。
  • プレイヤー / チームカラー: プレイヤーカラーを受け持つ部分に「明るい彩度の高い青のアクセント」を指定し、um sprite team-mask --hue blue でマスクに変換します。
  • セット全体の一貫性: 1つのヒーロー画像を生成し、その後編集エンドポイントと --ref でヒーロー画像を参照して残りを派生させます("同じロボット、今は発射中、マズルフラッシュ")。スプライトシート全体を1つのプロンプトで生成しないでください。グリッドが不均一になります。
  • 同じオブジェクトの多角度 / 多フレーム: 3D にします。コンセプトアートから um fal model3d を実行し、ゲームのカメラから um render3d を使用します(アセットパイプラインスキル)。AoE2 のロボタクシーは、これにより16方向 × 5アニメーションの一貫したビューを実現しました。
  • アートにテキストやロゴは入れない(必要な場合を除く)。モデルはテキストやロゴを追加したがります。

エンジン向けオーディオ

  • SFX と音楽のエンドポイントは MP3 を返します。エンジンに合わせて変換します。
    • ffmpeg -i x.mp3 -ar 44100 x.wav(XNA/tModLoader、ほとんどのエンジン);
    • ffmpeg -i x.mp3 -c:a libvorbis -q:a 5 x.ogg(Minecraft、Godot、Unity);
    • 最初に無音をトリミング: -af silenceremove=start_periods=1:start_threshold=-50dB。
  • ループ: um fal sfx ... --loop、または音楽モデルにループ可能なトラックを依頼し、端をクロスフェードします。
  • SFX は短く(0.2〜2秒)、ラウドネスを正規化(-af loudnorm=I=-16)して、ゲームの既存のサウンドと調和するようにします。

コストとエチケット

  • 高額なものは事前に価格を確認: 3D、ビデオ、長時間の音楽をバッチ処理する前に、価格を確認してください(um fal price <endpoint> / MCP get_pricing)。約20世代以上、またはビデオサイズのものについては、事前におおよそのコストをユーザーに伝えてください。
  • 安価に反復: 探索中は低品質または低解像度を使用し(--quality low、--res 0.5K)、その後、同じプロンプト(可能であればシードも)で勝者をフル品質で再実行します。
  • 再現性: アセットとともに fal_manifest.jsonl を保持します。これにはプロンプト、シード、リクエスト ID が記録されます。
  • クレジット: MOD の README で、アセットが fal を使用して生成されたことと、使用したモデル名をクレジットしてください。商用利用についてはモデルのライセンスページを確認してください。

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

asset-pipeline

Turn generated or hand-made art into exactly what a game engine loads. Covers sprite cutout, trim and nearest-neighbour fitting to frame sizes, pixelation to a palette, sprite sheets and strips, player/team-colour masks, seamless textures, and rendering a 3D model into sprite frames from the game

game-automation

Launch, see and drive a real game so an agent can test its own mods. Covers launching via Steam or the exe, windowed mode at a fixed size, screenshots of the game window (GPU-safe capture), clicking and typing into menus, holding keys, relative mouse, crash-reporter cleanup, killing by PID, reading logs, scripted test scenes, and an in-game JSON bridge that lets an agent observe and act. Windows-first (also from WSL), with notes for Linux and macOS. Use when a mod must be verified in game, when navigating menus automatically, or when building a repeatable test or demo scene.

game-recon

Figure out how a specific installed game can be modded, before writing any mod code. Covers where it

game-research-websearch

Research a game, engine or modding technique on the open web with archive-aware, rate-limit-safe searches — Wayback Machine/archive.today for dead forums (XeNTaX, Zenhax, old threads), GitHub code/repo search, Nexus/Steam Workshop/Thunderstore APIs, Reddit JSON, YouTube transcripts, plus archive snapshots as evidence. Use when starting work on a game (

mashup-mods

Build cross-game mashups and total conversions, the

mod-any-game

Mod a PC game the user owns, taking an idea to working in the real game and recorded. It covers new items, weapons, enemies, bosses, units, civilizations, mechanics, art, sound, VR and cross-game mashups. Use when the user wants to mod, extend, hack on, reverse engineer or mash up a game (

port-a-mod

Port an existing mod to a newer game version or another mod loader while keeping its behaviour, values and quirks. Typical cases are an old Forge 1.7.10 or 1.12 Minecraft mod moving to modern Fabric or NeoForge, a Skyrim LE plugin moving to SE/AE, or a tModLoader 1.3 mod moving to 1.4. It covers pinning one source version, a private decompiled reference, an adaptation matrix, extracting the mod

publish-mod

Package and release a finished game mod. Covers the pre-release lint (no game files, decompiled code or leaked keys), README and install steps, credits and AI disclosure, versioning, where to upload (Nexus Mods, Steam Workshop, Thunderstore, mod.io, GitHub releases), and the post with a video. Use when the user wants to ship, share, upload, release or post a mod.

reverse-engineering

Read how a game actually works so a mod can hook it. Decompile .NET/Mono (ILSpy), IL2CPP (Cpp2IL, Il2CppDumper), Java (Vineflower) and native code (Ghidra, IDA, via MCP servers); dump data and asset formats; reverse-engineer a binary file format and prove it with a round trip; read live memory (Cheat Engine, Frida, x64dbg); find render passes (RenderDoc). Use when a mod needs game internals, e.g.

share-field-notes

Search and contribute to the shared AI-modding knowledge base, where field notes record how specific games were modded, decompiled or reverse-engineered (exact versions, route, engine facts, verification, gotchas). Use before starting work on a game (

showcase-video

Record and cut a short showcase video of a game mod, or a compilation of clips, ready to post on X/YouTube. Records the game window with only the game

関連スキル