signalk-wasm-library

signalk-wasm-library is a skill for Claude Code from sailingnaturali/claude-skills. It costs 112 tokens per session (1,858 once invoked), scanned A, original, MIT.

A guide to packaging WebAssembly modules made with wasm-pack inside a normal SignalK Node or TypeScript plugin. WebAssembly is a portable compiled format that lets code such as Rust run within another program.

In plain words
What is it for?
Use it when publishing a SignalK plugin or npm library that keeps Node access to server APIs, serial ports, and NMEA events while running reusable or compute-heavy Rust code in the same process.
Why use it?
It helps avoid native add-ons and install-time build scripts that may fail when an app store installs packages with scripts disabled. The compiled WebAssembly file can be included directly in the package and used across several processor types.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the signalk-wasm plugin — 2 skills shipped together

Good fit Use it when publishing a SignalK plugin or npm library that keeps Node access to server APIs, serial ports, and NMEA events while running reusable or compute-heavy Rust code in the same process.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sailingnaturali/claude-skills/signalk-wasm-library
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sailingnaturali/claude-skills --skill signalk-wasm-library
Clone the repo
git clone --depth 1 https://github.com/sailingnaturali/claude-skills

Made for: Claude Code.

Or install signalk-wasm, the plugin that ships this one along with the rest of its 2 skills.

Wrote 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.

agentmods badge for signalk-wasm-library

README.md
[![agentmods](https://agentmods.dev/badge/skills/sailingnaturali/claude-skills/signalk-wasm-library/github.svg)](https://agentmods.dev/skills/sailingnaturali/claude-skills/signalk-wasm-library)
Your own site
<a href="https://agentmods.dev/skills/sailingnaturali/claude-skills/signalk-wasm-library"><img src="https://agentmods.dev/badge/skills/sailingnaturali/claude-skills/signalk-wasm-library/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.

agentmods 80×15 button for signalk-wasm-library

Your own site · 80×15
<a href="https://agentmods.dev/skills/sailingnaturali/claude-skills/signalk-wasm-library"><img src="https://agentmods.dev/badge/skills/sailingnaturali/claude-skills/signalk-wasm-library.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,858 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00112 $0.01858
Opus 5.5 $0.00045 $0.00743
Sonnet 5.5 $0.00022 $0.00372
Haiku 4.5 $0.00011 $0.00186

Measured today against content hash 58648d63ab04, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

signalk-wasm-library 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 today.

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.

signalk-wasm/skills/signalk-wasm-library/SKILL.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ship a wasm-pack module inside a SignalK Node plugin

The other way to use WebAssembly in SignalK: keep a normal Node plugin (full @signalk/server-api, read-only routes, serial ports, the NMEA event bus) and run the heavy or reused code as a wasm-bindgen module loaded in-process. The reference implementation is @canboat/wasm — canboat's Rust NMEA 2000 decoder/encoder compiled for wasm32-unknown-unknown and published as an npm package; read it as the worked example. (For a fully sandboxed plugin written in Rust, see the sibling skill signalk-wasm-plugin.)

1. Why this pattern exists

  • Install scripts never run on app-store installs (npm --ignore-scripts), and npm 12 skips dependency scripts by default. A native addon built in postinstall silently disappears; a .wasm file that is already in the tarball needs no build step, no toolchain on the boat and no per-arch prebuilds. One artifact runs on x86, arm64 and armv7.
  • In-process beats a child process. @canboat/wasm decodes a line in about 5 µs — roughly 2.8× faster than the pure-JS canboatjs and faster than the native binary behind a pipe. Cost: a bigger package (1.55 MB wasm, ~530 KB gzipped).
  • One codebase, two targets. The same Rust crate builds the native CLI and the wasm module, so behaviour can't drift — if you keep the wasm crate free of protocol logic and depend on the upstream crate with only its sans-I/O features.

2. Design rule: sans-I/O

wasm32-unknown-unknown has no sockets, files or clock. Put parsing/encoding/state machines in Rust and leave all I/O in TypeScript (node:net for TCP gateways, serialport, WebSocket). For byte-stream protocols expose a feed/poll shape — decodeBytes(chunk), takePendingTx(), tick() called about once a second so timers advance on a quiet link — rather than callbacks into JS.

3. Build

[lib]
crate-type = ["cdylib", "rlib"]   # rlib keeps `cargo test` on the host target

[dependencies]
wasm-bindgen = "0.2"

[profile.release]
opt-level = "z"
lto = true
strip = true

Read the full file on GitHub · 138 lines

Changes

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.

  1. today First seen · 138 lines · 112 tokens per session scan A 58648d63ab04

Subscribe to this mod's changes

signalk-wasm-library is a skill published in the GitHub repository sailingnaturali/claude-skills (3 stars, last pushed yesterday), licensed MIT. It adds 112 tokens to every session and 1,858 once invoked, about $0.0004 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-10-19.

Related

Other skills, from other repositories