Catalogue / modwright
modwright
MITSignedMod any PC game safely and prove it works: find the install, engine and runtime (Unity Mono/IL2CPP, Unreal, Godot, GameMaker, Source...), stop at anti-cheat, back up saves with SHA-256 hashes first, decompile before naming a patch target, pick the loader (BepInEx, MelonLoader, UE4SS, Harmony), prove…--- name: modwright description: "Mod any PC game safely and prove it works: find the install, engine and runtime (Unity Mono/IL2CPP, Unreal, Godot, GameMaker, Source...), stop at anti-cheat, back up saves with SHA-256 hashes first, decompile before naming a patch target, pick the loader (BepInEx, MelonLoader, UE4SS, Harmony), prove the mod loaded from the loader log, check EULA and mod policy, prepare a Workshop VDF or Thunderstore manifest without uploading. Source maps: check props against the clip brushes they stand for (mirrored escalators, ramps). mw.py scan, backup, restore, proof, publish-prep, source-align. Use on 'mod this game', 'my escalator/ramp prop is flipped', 'make a BepInEx plugin', 'which mod loader', 'did my mod load', 'back up my saves before modding', 'upload my mod to the Workshop'. Not for Minecraft (minewright), Roblox (roblox-agent), MADNESS Project Nexus (madnesswright) or mod art (artwright, pixelwright, polywright)." ---
Modwright
The safety and proof layer every game mod needs. A mod is done only when a loader log line names it and the owner has seen it work in game.
MW means python "<this folder>/scripts/mw.py" (Python 3.9+, stdlib). Commands print JSON. Exit 0 ok, 1 check failed, 2 anti-cheat (stop), 3 bad input.
Route first
- Minecraft (Forge, Fabric, NeoForge): minewright. Roblox: roblox-agent. MADNESS Project Nexus: madnesswright (the worked per-game recipe this skill generalises).
- Textures, sprites, models for the mod: artwright, pixelwright, polywright.
Steps
- Find the install and the branch. Steam:
steamapps/common/<Game>, build id insteamapps/appmanifest_<appid>.acf(buildid); note a beta branch. Mods break on updates, so record the build. - Scan.
MW scan "<install>". Exit 2 means anti-cheat (EAC, BattlEye, Vanguard...): stop. No DLL proxy, injection or memory patching; only the game's official mod route, offline or single player, and say why. Online multiplayer cheats are refused outright. - Legality. Read the EULA or mod policy before shipping anything: modding for personal use is usually tolerated; redistributing game assets or code is not. Ship patches and your own files, never the game's DLLs or ripped assets.
- Back up before touching anything.
MW backup <out> <savesdir> <file-you-will-touch>... --build <buildid>.MW restore <out> --verifyshows what changed;MW restore <out>puts it back. Saves often live outside the install (%USERPROFILE%/AppData/LocalLow/<Company>/<Game>,Documents/My Games); find them first. - Decompile before naming a patch target. Never guess a class or method name. Unity Mono: ILSpy/dnSpyEx on
<Game>_Data/Managed/Assembly-CSharp.dll. IL2CPP: Il2CppDumper or Cpp2IL first. Unreal: FModel, UE4SS header dump. Godot: gdsdecomp. Quote the signature you patch. - Loader. Take
recommended_loaderfrom the scan. BepInEx 5 for Unity Mono, BepInEx 6 or MelonLoader for IL2CPP, UE4SS (plus pak mods inContent/Paks/~mods) for Unreal, Harmony alone when the game has its own loader. Pin the loader version in the mod's README. - Prove it loaded. Have the owner run the game, then
MW proof "<install>" --mod <Name>.loadedneeds a log line naming the mod;erroredshows the lines;not-seenorno-logmeans it did not load, whatever the build said. A log over a day old is stale. Then ask what they saw in game. - Publish only on a go.
MW publish-prep workshop <folder> --appid N --changenote "..."writes a VDF (--itemto update, visibility 2 private by default);MW publish-prep thunderstore <folder> --version 1.0.0 --title Namewritesmanifest.jsonand lists missingicon.png/README.md. The upload itself (steamcmd login,tcli publish, Nexus, mod.io) needs the owner's account and explicit go-ahead. - Republish the page, not just the files. Every update of a published mod also updates what players read: description (what's new, what it needs, credits and licences for photos, models and AI tools), screenshots and preview images (current build; Steam appends previews, so remove stale ones), videos or GIFs if any show old content, the change note on the upload, the changelog in the repository and on the page, version number, tags, the README and wiki, and a tagged release where the source lives. List each one as updated or unchanged in the report. Garry's Mod:
gmad create -folder <addon> -out x.gma,gmpublish update -id N -addon x.gma -changes "..."; gmpublish cannot set description, visibility or previews, so use the Steamworks UGC API (worked example:tools/workshop_update.pyin m4bwav/gcs-gmod). Gmod tags come fromaddon.json("type": "map"plus up to two offun,roleplay,scenic,movie,realism,cartoon,water,comic,build); check them after every publish withGetPublishedFileDetails(expectAddon,map, ...) and a browse search withrequiredtags[]=Map&searchtext=<name>. A new map that seems missing from the Map filter is usually just buried: Most Recent turns over hundreds of maps a day, so search by name before re-tagging.
Source maps: props must match their collision
A nonsolid prop over a clip brush (escalator, ramp, stair) is only right if both slope the same way in world space. Compiled models are not in SMD space: studiomdl turns SMD +x into model +y, and yaw t sends model +y to world (-sin t, cos t), so a mesh built climbing SMD +x climbs world +x at yaw 270, not 90. Never derive a yaw from comments or from SMD axes. Run MW source-align <map.vmf> --models <dir holding models/...> after compiling models and before vbsp: it reads each prop's .vvd, places it with Source's AngleMatrix and compares its slope to every sloped clip under it. flipped means yaw + 180; misaligned gives model_axes_in_world to recompute from. Exit 1 on any; put it in the build script so the build stops.
Rules
- No claim of "works" without step 7.
- Restore the backup before telling the owner to verify the game files through Steam; never delete saves.
- One mod change per test run, so a failing log points at one thing.
Maintenance
Evergreen unit at the repository root: evergreen.json, RESEARCH.md, CHANGELOG.md, LEARNINGS.md, TESTS.md (evals in evals/). Refresh every 30 days; check volatile loader facts against their docs before relying on them.
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 6.4 kB | 46493a3659ed |
| SKILVAULT_SOURCE.json | 1.2 kB | 418282df6f7b |
| THIRD_PARTY_NOTICES.md | 1.1 kB | df41f6bb69c8 |
| scripts/mw.py | 22.7 kB | 06becd1b0c9f |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | cd489a0bdc36 | 29 Nov 2026 |
Locking a skill to one version needs Pro.