Community程式設計與開發github.com

發布模組

將完成的遊戲模組打包並發布。涵蓋發布前的語法檢查、README 與安裝步驟、致謝與 AI 揭露、版本控制、上傳平台(Nexus Mods、Steam 工作坊、Thunderstore、mod.io、GitHub 發行版),以及附有影片的發文。

發布模組 是什麼?

這個技能專為遊戲模組開發者設計,幫助他們在最後一步將模組打包並發布到主流平台。它首先引導使用者執行 `um publish check` 命令,檢查模組中是否包含與遊戲檔案完全相同的檔案、洩漏的 API 金鑰、反編譯器指紋、遺失的 README 等常見問題。接著根據目標平台(如 tModLoader、BepInEx/Thunderstore、Nexus Mods、Steam 工作坊、Minecraft Modrinth/CurseForge 等)提供對應的打包格式與必要檔案。該技能也包含撰寫 README 的詳細指引,強調必須列明需求、安裝方式、相容性、致謝所有使用的資源與 AI 工具,並誠實揭露使用哪些 AI 代理與模型來建立模組。最後,它指導使用者使用 semver 進行版本控制,並建議在發布貼文中以展示影片開頭,明確標示 AI 參與的貢獻。整體而言,這個技能自動化發布流程中的檢查與文件撰寫部分,確保發佈內容符合平台規範且具備專業的透明度。

相容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/rehan-remade/universal-modder/tree/main/skills/publish-mod

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

發布模組 是做什麼的?

1. 語法檢查

um publish check ./MyMod --game "<遊戲安裝資料夾>"
  • 失敗: 與遊戲檔案完全相同的檔案、洩漏的金鑰(fal/Anthropic/OpenAI/GitHub/AWS)、.env 檔案。
  • 警告: 原始碼中的反編譯器指紋(FUN_/DAT_/sub_ 命名、"Decompiled with" 標頭)、大型引擎壓縮檔、絕對的使用者路徑、遺失的 README、未經授權的 fal 素材。

修正所有失敗項目。有意識地處理每個警告。例如,AoE2 資料模組確實會附帶修改過的 .dat 檔案,這是該平台的常態。

2. 按照平台要求的方式打包

平台 / 載入器套件格式
tModLoader建置 → .tmod;從遊戲內的模組來源選單發布(Steam 工作坊)
BepInEx / Thunderstorezip 壓縮檔,內含 manifest.json、icon.png(256×256)、README.md、plugins/<Mod>.dll;相依性字串如 BepInEx-BepInExPack-5.4.2100
Nexus Mods按照安裝後的目錄結構打包的 zip(Bethesda 遊戲為 Data/...、BepInEx/plugins/...、ue4ss/Mods/...、~mods/*.pak)
AoE2 DE官方模組網站(ageofempires.com/mods)或遊戲內上傳器;資料模組包含 resources/_common/dat/...
Steam 工作坊遊戲自己的上傳器或 SDK 工具
MinecraftModrinth / CurseForge 的 jar 檔,內含 fabric.mod.json / neoforge.mods.toml
ROM 改版 / GameMaker僅限修補檔(BPS/IPS/xdelta),絕不包含修改後的遊戲檔案

帶有選項的 Nexus 模組需要 FOMOD 安裝器:請參考 FOMOD 教學 與 STEP 的 FOMOD 指南。Nexus Mods 自己的 模組編輯維基 涵蓋了其網站其他慣例。

3. README(在 zip 壓縮檔和頁面上皆需包含)

  • 新增內容:項目符號、GIF 或展示影片。
  • 需求:遊戲版本、載入器及其版本、相依性。
  • 安裝、解除安裝及疑難排解(日誌檔位置)。
  • 相容性:多人遊戲?已知衝突?
  • 致謝:
    • 載入器和函式庫;
    • 參考資料來源;
    • "使用 fal(fal.ai)並以 <模型> 生成的藝術/音訊"(fal_manifest.jsonl 中列出);
    • 誠實的 AI 揭露(由哪個 AI 代理與模型建置)。
  • 程式碼的授權條款(常見為 MIT/Apache)。素材的條款則遵循模型的授權。

4. 版本與變更日誌

在 manifest/建置檔案中使用 semver,標註支援的遊戲版本,並保留變更日誌。當遊戲更新時,請先重新執行遊戲內測試場景,再進行版本號升級。

5. 發文

  • 以影片開頭:使用展示影片技能;長度 20-45 秒,並在 2-3 秒內進入遊戲畫面。
  • 貼文內容:吸引人的開頭、說明這是什麼、"如何做到"的致謝(哪個 AI 代理 + 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

fal-assets

Generate game assets with fal (fal.ai) through the fal MCP server, the `um fal` CLI (REST) or `fal api`. Covers sprites and icons with transparent backgrounds, consistent variants and animation frames, pixel art, seamless textures, PBR material maps, image-to-3D models, remeshing, auto-rigging, sound effects, music, voice lines, and trailer or cutscene video. Use whenever a mod needs new art, audio or 3D models, or the user mentions fal, generating sprites, textures, models, SFX or music for a 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

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

相關技能