/cs2-modding:cs2-mod-projectfrom cs2-modding
Sets up, builds, and publishes Cities: Skylines II mods using the official toolchain. Handles C# project creation, UI scaffolding with webpack, Linux/Proton setup, and common build failures.
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 official toolchain creates mod projects, builds them, installs them locally and publishes them.
Drive it rather than reproducing it: the shared build does work no csproj carries on its own, and a hand-written project drifts from it.
On Linux, where the game runs under Proton, the toolchain is set up by hand and every project needs csproj edits: linux-toolchain.md carries them, and without them a template project fails on an empty target framework. [symbol: none]
The toolchain inverts several standard .NET idioms, and the familiar csproj shape builds cleanly, then fails inside the game: read this skill's settings and references before writing one.
A trap you meet here that this skill misses goes through the cs2-modding skill's trap reports.
On Windows, in the game: Options → Modding, which also repairs and updates an installation and rewrites the environment variables the build reads.
It installs everything a mod build needs; read the versions it pinned from the CSII_* environment variables.
dotnet new csiimod -n MyMod creates the C# half; dotnet new csiimod --help lists its options, settings and key bindings among them.
The project imports Mod.props and Mod.targets from %CSII_TOOLPATH%, which own the whole build.
Its PublishConfiguration.xml names a Thumbnail.png the template does not create: publishing.md says what publishes in its place.
npx create-csii-ui-mod --name=<name> --author=<author>, run inside the C# project's folder, creates a webpack project with a mod.json and the game's type declarations; npm run build builds once and npm run dev watches.
update subcommand overwrites webpack.config.js and tsconfig.json, local edits included, and clean deletes the C# half's deployed files with the bundle. [symbol: none]webpack.config.js needs the deploy-path edit linux-toolchain.md carries, re-applied after every update, or the game never sees the UI half. [symbol: none]id in mod.json must equal the C# assembly name: both halves deploy into one folder by that name, and a mismatch installs two half-mods. [symbol: none]dotnet build, run the UI build from an Exec target with AfterTargets="DeployWIP": deploying empties the shared folder, deleting a bundle written earlier. [symbol: none]<Private>false</Private>, as the template's do: a copied game assembly is skipped by the game with a warning in Modding.log. [symbol: Colossal.IO.AssetDatabase.ExecutableAsset]<PackageReference Include="Lib.Harmony" Version="2.2.2" />, the version the community agreed: the game loads one copy of a library for every mod, so another version can become the copy every mod patches through. [symbol: Colossal.IO.AssetDatabase.ExecutableAsset]Mod.props fixes net48, the game's runtime, which stays as it is, and pins C# 9: set <LangVersion> after the two imports, or the import overwrites it and the project silently stays on 9. [symbol: none]IJobEntity or an aspect takes a block namespace: with a file-scoped one the Entities source generators emit into the global namespace, and the build fails in generated code. [symbol: none]Unity.Entities/SourceGenerators/Source~/ in the package CSII_UNITYMODPROJECTPATH locates, rather than emitting its output into the project. [symbol: none]Building installs the mod into %CSII_LOCALMODSPATH%/<assembly name>, which the game reads at startup: stop, build and relaunch through the cs2-modding skill's game cycle.
A mod deployed there yet missing in game, or doing nothing, is a loader question the cs2-modding skill's traps answer.
To disable a mod without deleting it, rename its folder to start with . or ~, which the game's asset scan skips. [symbol: Colossal.IO.AssetDatabase.FileSystemDataSource]
Breakpoints need the game patched for debugging: debug-patching.md.
publishing.md carries the publishing modes, the metadata file, and its traps, such as the one that publishes a second copy of an existing mod, and the one that turns a description into a code block.
build-pipeline.md names each stage of the build, what it does, what its failure looks like, and the environment variables every stage reads. The wiki's modding toolchain page is older than the toolchain an install carries: read the installed one.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub citiesskylinesmodding/agents-plugins --plugin cs2-modding4 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-modding-uiThe Cities: Skylines II mod UI discipline: the C#-to-JavaScript binding layer and the game's React frontend. Use when a mod needs a panel, button or overlay in the game's UI, when exposing C# state to the frontend or invoking C# from it, when injecting into the game's own component tree, when a UI mod's bundle does not load or its styles do not apply, or when checking what the game's frontend already provides.