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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" 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.5 | $0.00030 | $0.00534 |
| Sonnet 5.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 2mo 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.
- 2mo 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 (84 stars, last pushed 2d ago), licensed MIT. It adds 74 tokens to every session and 1,336 once invoked, about $0.0003 per session on Opus 5.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.
add-ws-message compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-ws-messagevaultys/VaultysClaw | Skill | 84 | 2d ago | MIT | A | 74 | Claude Code |
| n8n-docs-assistantn8n-io/n8n | Skill | 210k | yesterday | none | A | 71 | Claude Code, Codex |
| testingTeam-Commonly/commonly | Skill | 1.4k | today | Apache-2.0 | A | 31 | Claude Code, Codex |
| proxy-config-skillzeenie-ai/OpenCompany | Skill | 1.1k | yesterday | MIT | A | 20 | Claude Code |
| http-request-skillzeenie-ai/OpenCompany | Skill | 1.1k | yesterday | MIT | A | 32 | Claude Code |
| geocoding-skillzeenie-ai/OpenCompany | Skill | 1.1k | yesterday | MIT | A | 30 | Claude Code |
| portal-connectgosuda/portal-tunnel | Skill | 301 | yesterday | MIT | A | 224 | Claude Code, Codex |