/cs2-modding:cs2-modding-uifrom cs2-modding
Guides modding the Cities: Skylines II UI, covering the C#-to-JavaScript binding layer, React component injection, bundle loading issues, and the game's frontend module registry.
Ships in cs2-modding. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The game's interface is a web page: React components rendered by Coherent Gameface, shipped on disk as one JavaScript bundle beside one stylesheet.
A UI mod is a second ES module the page loads and hands the module registry, through which it overrides, extends or appends to the game's own components.
Its C# half publishes state and receives calls over the binding layer, where every binding is a group.name path.
Work by the cs2-modding skill's working loop: find how the game's own UI does the thing, in the bundle, before writing.
A trap you meet here that this skill misses goes through that skill's trap reports.
Cities2_Data/Content/Game/UI/index.js with index.css beside it, answers for the whole frontend: the module registry and its paths, the component tree, the formatters, the wire format a binding arrives in.
It ships minified to one line, so read the reformatted copy the setup record names; where UI bundle copy is absent or (none), route the user to cs2-modding-setup.Colossal.UI.Binding, and the Game.UI.* systems that register the game's own bindings.
A C# grep that finds nothing about a module, an export or a class name settles nothing..ModdingToolchain answers for the modules a UI mod may import and for the game's TypeScript declarations.The sibling coherent-gameface plugin tells whether a CSS or JS feature exists in the game's Cohtml version, and drives the live UI over the debugging port cs2-modding-setup's launch options open.
It is optional; everything here works without it.
try/catch. [symbol: none]getModule throws on an export it cannot resolve, and a throw at a module's top level drops that mod's whole UI with nothing logged: call it inside a try. [symbol: none]cs2/* typings declare with a single export compiles and is undefined at runtime: import only the values they declare export export or name in an export { … } list, by its alias there and through the namespace wrapping the list. [symbol: none]call, from a CallBinding with a result type, rather than through a trigger and a separate value binding. [symbol: Colossal.UI.Binding.CallBinding]CallBinding result skips the binding writers, so an Entity arrives as {Index, Version}: return a primitive, or a type whose public members are named as the frontend reads them. [symbol: Colossal.UI.Binding.RawCallBindingBase]GetterValueBinding added with AddBinding keeps its first value until you call its Update(): add it with AddUpdateBinding, and call base.OnUpdate() in any UISystemBase.OnUpdate override. [symbol: Game.UI.UISystemBase]coui://ui-mods/ host, so another mod's image at the same path can show in place of yours: give image files names unique to the mod. [symbol: Colossal.UI.DefaultResourceHandler] [symbol: Game.Modding.ModManager]font-size ignores the player's text-scale setting: use the game's --fontSize* tokens, or calc(<n>rem * var(--fontScale)). [symbol: none]The UI build and the dev loop covers what the build produces and where it lands, the externals that keep the game's modules out of the bundle, refreshing type declarations after a game update, and iterating against a running game.
Creating the UI project and hooking its build into the mod's dotnet build is cs2-mod-project's.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
4 skills in this plugin
/cs2-moddingHow Cities: Skylines II is built and how a mod changes it. Use when writing or debugging CS2 mod code, when deciding how to change something the game simulates, when locating the systems, components or prefab data behind a game mechanic, when restarting the game after a build or running in-game tests, or when a mod runs at the wrong moment, breaks another mod, or does not survive a save./cs2-modding-setupProvisions and maintains the local ground truth for Cities: Skylines II mod development. Use when the user asks to be set up for CS2 modding, when the decompile or the readable copy of the game UI bundle needs creating or updating, when they ask which mods are worth reading for a problem, when the in-game debug menu or the UI debugging port turns out to be unavailable, or when another skill finds no local source recorded./cs2-mod-projectnpx claudepluginhub citiesskylinesmodding/agents-plugins --plugin cs2-modding