Borrowing it
Nothing to install: this file belongs to vaultys/VaultysClaw. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/vaultys/VaultysClaw/main/.github/skills/add-ws-message/SKILL.mdgit clone --depth 1 https://github.com/vaultys/VaultysClawWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/vaultys/vaultysclaw/add-ws-message)<a href="https://agentmods.dev/skills/vaultys/vaultysclaw/add-ws-message"><img src="https://agentmods.dev/badge/skills/vaultys/vaultysclaw/add-ws-message.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00074 | $0.01336 |
| Opus 5 | $0.00037 | $0.00668 |
| Sonnet 5 | $0.00015 | $0.00267 |
| Haiku 4.5 | $0.00007 | $0.00134 |
Grade A, and why
add-ws-message scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add WebSocket Message Type
When to Use
- Adding a new command the control plane sends to agents
- Adding a new report/event agents send back to the control plane
- Extending the protocol for a new feature (sync, config, notifications, etc.)
Protocol Overview
WSMessage is a flat interface (not a discriminated union) — all messages share the same envelope:
{
messageId: string; // e.g. "memory-sync-1748700000000"
type: WSMessageType; // string literal from the union
agentId?: string; // sender's DID (set by the agent or control plane)
payload: any; // typed by convention via payload interface
timestamp: string; // ISO 8601
signature?: string; // ECDSA hex — only for critical messages
}
Procedure
1. Add the Type String to the Union
File: packages/shared/src/types.ts
Add your new type literal to the WSMessageType union:
export type WSMessageType =
| ... existing types ...
| "my_new_type"; // ← add here
2. Add the Payload Interface
In the same file (packages/shared/src/types.ts), add a typed payload interface:
export interface WSMyNewTypePayload {
// required fields
sourceId: string;
// optional fields
metadata?: Record<string, unknown>;
}
Naming convention: WS + PascalCase(type) + Payload (e.g. WSMemorySyncPayload).
3. Handle in the Control Plane (lib/ws-server.ts)
Direction: agent → control plane (agent sends, server receives):
Add a case to the switch (message.type) in handleMessage():
case "my_new_type":
this.handleMyNewType(message);
break;
Then implement the handler as a private method:
private handleMyNewType(message: WSMessage): void {
const payload = message.payload as WSMyNewTypePayload;
const agentId = message.agentId;
// ... business logic ...
}
Direction: control plane → agent (server sends):
Add a public method to send the message:
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 183 lines · 74 tokens per session scan A 94b9daea0bcb
add-ws-message is a skill published in the GitHub repository vaultys/VaultysClaw (77 stars, last pushed today), licensed MIT. It adds 74 tokens to every session and 1,336 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
credential-setup-with-computer-use
Guides n8n credential setup through Computer Use browser tools. Use when a user needs OAuth apps, API keys, client IDs, client secrets, or other credential values from an external service console.
n8n-docs-assistant
Answers n8n product, setup, credential, node, hosting, API, and usage questions from current n8n docs. Load n8n-docs via loadtool before calling it (search "n8n docs" if not visible). Use when the user asks how to configure, set up, troubleshoot, or understand n8n behavior, especially credential setup questions opened…
proxy-config-skill
Configure residential proxy providers and make proxied HTTP requests with geo-targeting.
http-request-skill
Make HTTP requests to external APIs and web services. Supports GET, POST, PUT, DELETE, PATCH methods with headers and JSON body.
geocoding-skill
Convert addresses to coordinates (geocoding) or coordinates to addresses (reverse geocoding) using Google Maps API.
vercel-composition-patterns
React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.