pardeike/rimbridgeserver/rimbridge-companion-tools

Claude Code and agent skill by pardeike/rimbridgeserver

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when adding, migrating, reviewing, or testing RimBridgeServer 2.x companion DLL tools for a RimWorld mod. Covers RimBridgeServer.Sdk package references, BridgeTools folder layout, companion csproj wiring, async IRimBridgeContext tool orchestration, local NuGet/package use, build/deploy automation, and GABS validation of mod-owned [Tool] methods.

Install

npx vskill@latest install pardeike/rimbridgeserver/rimbridge-companion-tools

SKILL.md

RimBridge Companion Tools

Use this skill for source work in a RimWorld mod that wants to expose tools through RimBridgeServer 2.x. Do not use it for ordinary live bridge calls; use the rimbridge-server skill for running-game interaction.

Workflow

  1. Check the target mod's current build/deploy layout before editing. Preserve its existing publicized RimWorld reference pattern and local deploy scripts.
  2. Move bridge-only [Tool] methods into a companion assembly. For normal paired local mod deployments, build to a repo artifact folder and copy the companion to the global sibling BridgeTools folder derived from the selected active Mods folder, normally $(RIMWORLD_MOD_DIR)\..\BridgeTools\SomeMod. Treat that as the standard deploy model, not one option among several equivalent local targets.
  3. Reference RimBridgeServer.Sdk for compile-time annotations and runtime interfaces, but do not deploy RimBridgeServer.Sdk.dll with the companion. RimBridgeServer resolves it to the host copy.
  4. Reference the owning mod DLL from the companion assembly so the companion can call mod helpers after RimWorld loads the normal mod assembly.
  5. Wire the main mod build so it builds the companion after the main mod DLL exists and before local deploy/copy/zip steps run. The user should build the main mod project only; it should automatically build the matching companion.
  6. Prefer async SDK orchestration for real in-game test harnesses: IRimBridgeContext, ctx.Tools.List/Get/CallAsync/CallAsync<T>/QueueAsync, result helpers such as Succeeded() and ReadResult<T>(...), RimBridgeEvidenceManifest/RimBridgeEvidence for stable evidence results, and ctx.Game.StepTicksAsync/RunForTicksAsync/RunUntilAsync.
  7. Validate in three layers: source build, deployed files, then live GABS discovery/call of the companion tool.

Rules

  • Do not keep new public [Tool] methods in the main mod assembly when migrating to RimBridgeServer 2.x; enabled mods are discovered through explicit BridgeTools folders.
  • Use globally unique tool ids such as mymod/render_pose_sweep. Collisions are rejected at registration time.
  • Keep tool classes public. Use public static methods, or public instance methods on public parameterless classes.
  • Keep constructors and static initializers boring. They must not query RimBridge.Current or the tool registry because companion registration is still in progress.
  • Treat IRimBridgeContext and CancellationToken as injectable method parameters. They are hidden from the public schema.
  • Prefer Task<object> or strongly typed DTO results for non-trivial harnesses. Return clear success, message, and artifact-path fields.
  • For repeatable screenshot or behavior suites, return RimBridgeEvidenceManifest with captures, assertions, errors, and environment fields instead of inventing a fresh manifest shape.
  • For prepared-save or dev-colony setup after the bridge tool surface is available, call rimworld/load_game_ready or rimworld/start_debug_game_ready directly; do not add a separate pre-wait unless the game should already be loaded.
  • If companion tools are missing or fail after SDK changes, call rimbridge/get_bridge_status and inspect version, sdk, and companions.diagnostics before guessing at GABS or save-load problems.
  • Normal paired dev deployments must use the global sibling BridgeTools root. If the deploy root is $(RIMWORLD_MOD_DIR), use a project-local property such as $(RIMWORLD_MOD_DIR)\..\BridgeTools; do not require or invent a separate non-mod-specific BridgeTools environment variable.
  • For global companion tools with private helper DLLs, use a first-level bundle folder under global BridgeTools, for example BridgeTools\SomeMod\SomeMod.BridgeTools.dll. Loose global DLLs are fine only when there are no private dependency-name collision risks.
  • For explicitly packaged mod-specific companions, RimBridgeServer can also load a companion beside the load folder's Assemblies directory, for example SomeMod/1.6/BridgeTools/SomeMod.BridgeTools.dll. This is a rare packaging edge case, not the normal local dev deploy path; do not "repair" an existing paired local deploy into this shape unless the user explicitly asks for packaged in-mod companion tools.

Reference

Read references/companion-dll-guide.md before editing project files or writing companion tools. It contains the current csproj patterns, SDK API examples, build target wiring, and validation checklist.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/pardeike/rimbridgeserver/rimbridge-companion-tools/badge)](https://verified-skill.com/skills/pardeike/rimbridgeserver/rimbridge-companion-tools)

Something wrong with this skill or its page? Tell us.