/sbox-claude:sbox-build-featurefrom sbox-claude
Builds, modifies, and polishes features in s&box game projects via the Claude Bridge, using a screenshot-driven iteration workflow to avoid guess-and-check.
Ships in sbox-claude. 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.
Use this workflow for every non-trivial player or scene change. Pair it with
sbox-api: that skill teaches the s&box C# model; this one drives the editor,
compiles, runs, and verifies the result. Live reflection through describe_type,
search_types, and get_method_signature is authoritative for the installed SDK.
Invocation (v2, native MCP): find plain bridge tool names with
search_tools, run them with call_tool, batch fixed sequences with call_tools,
and browse groups with list_toolsets / describe_toolset. The native server also
provides spawn_model, list_scenes, save_scene, undo, redo, and
remove_component directly.
take_screenshot renders the main camera. It may not face the changed object. Use
capture_view id=<objectId> (historical alias: screenshot_from) to auto-frame an
object, capture_view position=... lookAt=... for a free camera, or
screenshot_orbit id=<objectId> for several angles. These native wrappers return
PNG images inline. Inspect the image; do not infer visual correctness from code.
get_bridge_status
If it does not answer, confirm s&box is running and Editor → Preferences → MCP
Server is enabled at http://127.0.0.1:7269/mcp. A log line saying the server
could not start on port 7269 usually means a stale editor process still owns the
HTTP registration; restart after that process exits. Do not continue until the
server responds.
Brainstorm first when the work adds a state machine, component/system, animation, IK, camera behavior, or any result whose appearance is uncertain. Agree on the smallest observable outcome and how it will be verified.
describe_type name="CitizenAnimationHelper"
search_types pattern="*Renderer"
get_method_signature type="GameObject" method="AddComponent"
Do this before writing a type or member you have not confirmed in the installed SDK. Use official Facepunch documentation for broader concepts, but let reflection win on exact signatures.
claudebridge.sbproj into a project's Libraries/.
The published copy uses Org: sboxskinsgg; the project working copy must remain
Org: local, or the compiler can see a duplicate assembly name.trigger_hotload
compile_status
If an externally edited project .cs file did not compile, start_play forces a
project compile; inspect the status, then stop_play before more scene mutation.
Changes to the addon editor assembly under Libraries/ require restart_editor.
When the optional lifeline server is enabled, use its get_compile_errors and
read_log tools when the native editor server is unavailable. Ignore old failure lines unless their timestamps and paths
match the current change.
capture_view id=<objectId>
capture_view position="x,y,z" lookAt="x,y,z"
screenshot_orbit id=<objectId>
Compare the returned image with the intended result. Adjust a measured property or transform, compile if needed, and capture again. A visual feature is complete only after the returned image supports that claim.
Play-mode tools prove behavior as well as layout:
take_screenshot shows the live main-camera view, including screen-space UI.capture_view can render the active scene from the main camera or a temporary
viewpoint. Temporary-camera captures include world-space UI but not fullscreen
screen-space panels, so use both capture paths when UI matters.invoke_button calls a public parameterless component method and can advance
game state when a UI click cannot be synthesized.playtest runs movement/action/set/wait/capture/assert steps across editor frames.
Start play first, then poll playtest_status until finished:true.get_runtime_property is the unambiguous check for a live component state.Runtime object IDs can differ from edit-scene IDs. Rediscover the target with
get_scene_hierarchy or find_objects after entering play mode, then use that
runtime ID for runtime tools.
Only one orchestrator may mutate the scene, run play mode, or capture screenshots against a given s&box editor instance. Parallel agents may author disjoint source files, but they must not share scene or play-state control. The orchestrator compiles, runs, and verifies their combined result serially. Truly independent concurrent editor work requires separate s&box instances and bridge connections.
A self-bootstrapping GameObjectSystem<T> can avoid shared scene-file edits. Read
the system and runtime-ID guidance in the gotchas reference before using it.
Read references/gotchas.md before implementing a non-trivial feature and whenever a tool result disagrees with runtime behavior. It covers sandboxed math, assets, hotload, generated code, runtime IDs, UI rerendering, animation, lighting, audio, and scene-free systems. Do not grow another large gotcha table in this router; update that reference instead.
The bridge knowledge graph lives at docs/graph/. Before changing a bridge tool,
consult docs/graph/graph.json or docs/graph/graph.html and check the date in
GRAPH_REPORT.md. Regenerate the graph for a release with
scripts/regen-graph.ps1 (or the full /graphify workflow).
If the project contains CLAUDE.md, read it first. It carries project-specific
input bindings, assets, roles, and scene decisions that this generic workflow cannot
know.
The screenshot and runtime-state loops close faster than repeated guesses.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lousputthole/sbox-claude --plugin sbox-claude5 skills in this plugin
/sbox-apiUse when writing or modifying code for s&box, sbox, the Facepunch sandbox engine, or any Source 2 game project in C#. Triggers on mentions of s&box, sbox, sandbox game, Facepunch engine, Source 2 game, `.sbproj`, `.razor` with `PanelComponent`, `@inherits PanelComponent`, `Sandbox.Component`, `GameObject` + `Components.Get<T>`, `Scene.Trace`, `CharacterController` + `.Move()`, `SkinnedModelRenderer`, `NavMeshAgent`, `[Sync]`, `[Rpc.Broadcast]`, `[Property]`, `INetworkListener`, `ISceneEvent`, `PlayerController` in C#. Also triggers on any file with `using Sandbox;` or `using Sandbox.UI;` that isn't Unity/Godot/Unreal. Writes idiomatic s&box C# components, Razor UI, and networking code; prevents Unity-pattern leakage./sbox-cookbookUse when building a whole s&box game or a specific game SYSTEM and you want a proven, code-grounded recipe instead of guessing. Genre playbooks (tycoon/idle, shopkeeper/management, deathmatch/arena, platformer/obstacle course, survival/horror, card-battler, gacha/dungeon-crawler, social-hub, document/inspection sim, puzzle, sandbox/voxel, vehicles, roleplay) and per-system how-tos (inventory, economy/currency, shop/vendor/trading, save/persistence, progression/upgrades/prestige, gacha/loot tables, leaderboards/services, idle/offline earnings, building/placement, crafting, dialogue, round/match flow, spawning/waves, anti-cheat) plus engine references (networking & authority, architecture, player controller, Razor UI, weapons/combat, input, physics/traces, component lifecycle, worldgen/rendering, performance/threading, data assets). Triggers on "how do I build a <genre> game", "inventory system", "save system", "economy / currency", "shop", "upgrade / prestige tree", "leaderboard", "round system", "spawn waves", "gacha / loot box", "building placement", "host-authoritative", and similar. This is a ROUTER — find the system/genre, open the reference; do not answer from SKILL.md alone.Other plugins' skills for the same job