Agent skill

Add Websocket Command

by lge-ros2 in lge-ros2/cloisim

Add a new WebSocket command to the simulation control service.

MITAuto-check passedBackend & APIs

Install Add Websocket Command

skills CLI
$ npx skills add lge-ros2/cloisim --skill add-websocket-command -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lge-ros2/cloisim add-websocket-command --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lge-ros2/cloisim.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/add-websocket-command .claude/skills/add-websocket-command && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
add-websocket-command
GitHub stars
176
Token cost
~1.1k tokens
SKILL.md length
208 words
Files
1
Skills in repo
18
Repo updated
First seen
Licence
MIT

At a glance

Add a new WebSocket command to the simulation control service.

  • Works in 6 steps: Define Request/Response DTOs → Add the Command Case → Wire to Main.cs (If Needed) → …
  • : adding a new runtime control command
  • SKILL.md covers When to Use, Option A: Add Command to…, Option B: Create a New Service… and JSON Patterns, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Add Websocket Command is an agent skill from lge-ros2/cloisim. Add a new WebSocket command to the simulation control service. Use when: adding a new runtime control command, exposing simulation state via WebSocket, adding a new service endpoint.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering Realtime and WebSockets. The repository describes itself as: Unity 6 based multi-robot simulator for ROS 2, SDFormat/SDF, LiDAR, camera, depth, IMU, GPS, and large-scale robotics simulation. The licence is MIT.

When your agent uses it

  • : adding a new runtime control command
  • Exposing simulation state via WebSocket
  • Adding a new service endpoint

Example prompts

  • “/add-websocket-command”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Define Request/Response DTOs
  2. Add the Command Case
  3. Wire to Main.cs (If Needed)
  4. Create the Service Class
  5. Register the Endpoint
  6. Clean Up on Dispose

What it can do on your machine

Read from SKILL.md and the folder at commit f4c1f0b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are csharp and json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Add Websocket Command loads about 1.1k tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 208 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~51
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from lge-ros2/cloisim at commit f4c1f0b, republished under its MIT licence (© lge-ros2). 208 words, ~1,091 tokens.

Download SKILL.mdSave it as .claude/skills/add-websocket-command/SKILL.md (or your agent's skills folder).
name
add-websocket-command
description
Add a new WebSocket command to the simulation control service. Use when: adding a new runtime control command, exposing simulation state via WebSocket, adding a new service endpoint.

Add a New WebSocket Command

Procedure for adding a new command to the SimulationControlService or creating a new WebSocket service endpoint.

When to Use

  • Adding a new runtime control command (e.g., pause, step, teleport)
  • Exposing new simulation state via the WebSocket API
  • Creating an entirely new WebSocket service endpoint

Option A: Add Command to Existing Service

1. Define Request/Response DTOs

Edit Assets/Scripts/Core/Services/SimulationControlService.cs:

csharp
// If the response needs a custom shape, add a new response class:
private class SimulationControlResponseMyData : SimulationControlResponseBase
{
	[JsonProperty("result")]
	public MyDataType result;
}

Standard responses use SimulationControlResponseNormal (has string result).

2. Add the Command Case

In the OnMessage() method's switch statement:

csharp
case "my_new_command":
	// Simple response:
	output = new SimulationControlResponseNormal();
	(output as SimulationControlResponseNormal).result = ComputeMyResult();
	break;

	// Or with custom data:
	output = new SimulationControlResponseMyData();
	(output as SimulationControlResponseMyData).result = GetMyData();
	break;

The response is automatically serialized and sent:

csharp
output.command = request.command;
Send(JsonConvert.SerializeObject(output));
3. Wire to Main.cs (If Needed)

If the command needs access to Main instance methods:

csharp
// In SimulationControlService, access Main via the singleton:
case "my_command":
	Main.Instance.MyNewMethod();
	output = new SimulationControlResponseNormal();
	(output as SimulationControlResponseNormal).result = SimulationService.SUCCESS;
	break;

Constants: SimulationService.SUCCESS = "ok", SimulationService.FAIL = "fail".

For multi-part request data, use SimulationService.Delimiter = "!%!" to split values.

Option B: Create a New Service Endpoint

1. Create the Service Class

Create Assets/Scripts/Core/Services/MyNewService.cs:

csharp
/*
 * Copyright (c) 2026 LG Electronics Inc.
 *
 * SPDX-License-Identifier: MIT
 */

using System;
using Newtonsoft.Json;
using WebSocketSharp;
using WebSocketSharp.Server;

public class MyNewService : WebSocketBehavior
{
	// Inject dependencies via public properties (set by factory lambda)
	public MyDependency Dependency { get; set; }

	protected override void OnMessage(MessageEventArgs e)
	{
		try
		{
			var request = JsonConvert.DeserializeObject<MyRequest>(e.Data);
			var response = ProcessRequest(request);
			Send(JsonConvert.SerializeObject(response));
		}
		catch (Exception ex)
		{
			var error = new { error = ex.Message };
			Send(JsonConvert.SerializeObject(error));
		}
	}

	protected override void OnOpen()
	{
		// Connection opened
	}

	protected override void OnClose(CloseEventArgs e)
	{
		// Connection closed
	}

	private MyResponse ProcessRequest(MyRequest request)
	{
		// Handle the request
		return new MyResponse();
	}
}
2. Register the Endpoint

Edit Assets/Scripts/Core/Modules/SimulationService.cs, in InitializeServices():

csharp
_wsServer.AddWebSocketService<MyNewService>("/my_endpoint", () =>
	new MyNewService()
	{
		Dependency = myDependencyInstance
	});
3. Clean Up on Dispose

In SimulationService.Dispose(), add removal:

csharp
_wsServer.RemoveWebSocketService("/my_endpoint");

JSON Patterns

Request format (convention from existing services):

json
{
    "command": "my_command",
    "value": "optional_parameter"
}

Response format:

json
{
    "command": "my_command",
    "result": "ok"
}

Use [JsonProperty("field_name")] attributes on DTO properties for explicit JSON field naming.

Checklist

  • Request/response DTOs defined with [JsonProperty] attributes
  • Command case added to OnMessage() switch
  • Uses SimulationService.SUCCESS / FAIL constants for status
  • Error handling wraps the command logic
  • New endpoints registered in SimulationService.InitializeServices()
  • New endpoints removed in SimulationService.Dispose()
  • License header on new files

© lge-ros2, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/add-websocket-command of lge-ros2/cloisim.

Open the folder on GitHubat commit f4c1f0b

Compare with similar skills

Add Websocket Command next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Add Websocket Command compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Websocket Command this skilllge-ros2/cloisim176—~1.1kAutomated safety check: PassMIT
Supabase Development and Debuggingsupabase/agent-skills2.7k3 repos~3.6kAutomated safety check: PassMIT
Use Yaakmountain-loop/yaak19k—~1.9kAutomated safety check: PassMIT
Gemini Live API Devgoogle-gemini/gemini-skills4.3k—~4.6kAutomated safety check: PassApache-2.0
Web3 PolymarketPolymarket/agent-skills1912 repos~2kAutomated safety check: PassNone
GraphQL ArchitectJeffallan/claude-skills12k1 repos~1.3kAutomated safety check: PassMIT

Similar skills

  • Official

    General Supabase skill for database, auth, Edge Functions, Realtime and storage work, plus client libraries, migrations, security audits, debugging and reading logs.

    2.7k GitHub starsUsed in 3 repos~3.6k tokens
    Backend & APIsAuto-check passed
  • Use Yaak

    mountain-loop/yaak

    A skill your agent uses when the user mentions Yaak, a Yaak workspace, or the yaak command, or asks to call, hit, or smoke test HTTP/REST endpoints, save or organize API requests for reuse or manual…

    19k GitHub stars~1.9k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Gemini Live API Dev

    google-gemini/gemini-skills

    Official

    A skill your agent uses when building real-time, bidirectional streaming applications with the Gemini Live API, or migrating legacy Live models (2.0/2.5/3.1) to Gemini 3.8 Live.

    4.3k GitHub stars~4.6k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Web3 Polymarket

    Polymarket/agent-skills

    Polymarket integration for prediction market trading on Polygon.

    191 GitHub starsUsed in 2 repos~2k tokens
    Backend & APIsAuto-check passed
  • GraphQL Architect

    Jeffallan/claude-skills

    Designs GraphQL schemas and Apollo Federation graphs, with DataLoader resolvers, subscriptions, query complexity limits and caching.

    12k GitHub starsUsed in 1 repo~1.3k tokens
    Backend & APIsAuto-check passed
  • Broker Integration

    marketcalls/openalgo

    Integrate a new Indian broker into OpenAlgo, or modify an existing broker plugin.

    2.8k GitHub stars~4.7k tokensUpdated today
    Backend & APIsAuto-check: notes

More from lge-ros2/cloisim

All 18 skills in this repo
  • Add Actor Animation

    lge-ros2/cloisim

    Add or modify SDF actors with skeletal animation and waypoint-based navigation.

    176 GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed
  • Add Compute Shader

    lge-ros2/cloisim

    Add a new compute or surface shader for sensor data processing or visualization.

    176 GitHub stars~2.1k tokensUpdated 2 days ago
    Auto-check passed
  • Add Mesh Import

    lge-ros2/cloisim

    Import 3D mesh files into CLOiSim via the Assimp pipeline, including collision generation and procedural meshes.

    176 GitHub stars~2k tokensUpdated 2 days ago
    Auto-check passed
  • Add Motor Controller

    lge-ros2/cloisim

    Add a new motor or drive controller for robot locomotion. An agent skill from lge-ros2/cloisim.

    176 GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed
  • Add New Plugin

    lge-ros2/cloisim

    Add a new CLOiSimPlugin for bridging a device to the ROS 2 transport layer.

    176 GitHub stars~1.5k tokensUpdated 2 days ago
    Auto-check passed
  • Add New Sensor

    lge-ros2/cloisim

    Add a new sensor device to CLOiSim, including the Device subclass, SDF pipeline wiring, and transport plugin.

    176 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed

Categories

Questions about Add Websocket Command

What does Add Websocket Command do?

Add a new WebSocket command to the simulation control service. Add Websocket Command is an agent skill from lge-ros2/cloisim. Add a new WebSocket command to the simulation control service.

When should I use Add Websocket Command?

Add Websocket Command fits situations like: : adding a new runtime control command; exposing simulation state via WebSocket; adding a new service endpoint.

How do I install Add Websocket Command in Claude Code?

Run `npx skills add lge-ros2/cloisim --skill add-websocket-command -a claude-code`. Or copy the skill folder (.github/skills/add-websocket-command in lge-ros2/cloisim) into .claude/skills/add-websocket-command in your project. Claude Code loads it when a task matches its description.

How do I install Add Websocket Command in Codex?

Run `npx skills add lge-ros2/cloisim --skill add-websocket-command -a codex`. Or copy the skill folder (.github/skills/add-websocket-command in lge-ros2/cloisim) into .agents/skills/add-websocket-command in your project. Codex loads it when a task matches its description.

Can I use Add Websocket Command in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lge-ros2/cloisim --skill add-websocket-command -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-websocket-command, .gemini/skills/add-websocket-command, .github/skills/add-websocket-command and .opencode/skills/add-websocket-command in your project.

What does Add Websocket Command need to run?

SKILL.md names no scripts, command-line tools or credentials: Add Websocket Command is instructions for the agent only.

Does Add Websocket Command access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Add Websocket Command safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Add Websocket Command use?

Add Websocket Command is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Websocket Command use?

About 1.1k tokens (SKILL.md is roughly 4.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add Websocket Command?

Skills that share tags, products or a category with Add Websocket Command: Supabase Development and Debugging (supabase/agent-skills, 2.7k stars), Use Yaak (mountain-loop/yaak, 19k stars), Gemini Live API Dev (google-gemini/gemini-skills, 4.3k stars) and Web3 Polymarket (Polymarket/agent-skills, 191 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Websocket Command?

lge-ros2 (a GitHub organization) maintains it in lge-ros2/cloisim, which has 176 GitHub stars. The repository holds 18 skills in this directory. The repository was last updated on October 6, 2026.

Source: lge-ros2/cloisim on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.