Borrowing it
Nothing to install: this file belongs to luisfurquim/wings. 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/luisfurquim/wings/main/.claude/skills/sec-wasm-go/SKILL.mdgit clone --depth 1 https://github.com/luisfurquim/wingsWrote 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/luisfurquim/wings/sec-wasm-go)<a href="https://agentmods.dev/skills/luisfurquim/wings/sec-wasm-go"><img src="https://agentmods.dev/badge/skills/luisfurquim/wings/sec-wasm-go/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/luisfurquim/wings/sec-wasm-go"><img src="https://agentmods.dev/badge/skills/luisfurquim/wings/sec-wasm-go.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00070 | $0.01217 |
| Opus 5 | $0.00035 | $0.00609 |
| Sonnet 5 | $0.00014 | $0.00243 |
| Haiku 4.5 | $0.00007 | $0.00122 |
Grade A, and why
sec-wasm-go 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 9d 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 — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
WASM + Go Security Peculiarities
Classic secure-coding advice assumes processes, a kernel, and an OS user model. In the browser none of that exists — some djb tactics become impossible and must be replaced, and Go-specific traps appear.
Structural differences (no way around them)
- No process isolation → panic = total loss. djb's "partition into mutually untrusting processes" cannot be done: one wasm module, one linear memory, one Go runtime. Any panic anywhere kills the whole app. This is why error-over-panic is structural here, not style: library code degrades and logs (see sec-fail-operational); panicking is the app dev's prerogative at top level only.
- The sandbox protects the USER from us, not us from inputs. WASM's sandbox is not a security feature for the app. Inside the module there are no privilege levels — every byte of state is reachable from every bug. Compartmentalization must move to build time (gen_i18n does parsing, runtime consumes indices) and to API choke points.
- Secrets live in inspectable memory. DevTools can read wasm memory.
Never embed private keys, tokens, or credentials in the wasm or in
shipped JS. Public keys are fine (live-demo
//go:embed *.pub+SetCatalogPublicKeyis the correct shape). Anything secret stays server-side. - Constant-time code is not guaranteed. JS/WASM engines JIT and may
recompile mid-execution; timing properties of
crypto/subtleare best effort. Don't hand-roll crypto in the app; verification-only primitives (ed25519.Verify on public data) are fine. Secret-key operations belong on the server or in Web Crypto.
The syscall/js boundary is THE trust boundary
- Every
js.Valuearriving from the DOM,fetch, events, or postMessage is hostile input (sec-hostile-input applies): check.Type()before.String()/.Int(); a wrong-type access panics — and a panic is total (rule 1). - A call made with foreign data needs a guard:
internal/jsguard. Type checks cover a wrong-type access, not a method that THROWS —matches()on a selector a book wrote,new Intl.NumberFormaton a locale from a catalog, a method a browser version lacks. Usejsguard.Do(op, fn)orjsguard.Value(op, fn)instead of hand-rollingdefer/recover: it was written by hand 13 times before the package existed, and 7 of those (the Intl cache) reported NOTHING, so a refused locale left numbers rendering wrong with no clue. It guards a BLOCK, which is the shape the boundary actually has. Always log the returned*PanicError— a guard that silently returns the zero value converts a browser refusal into a mystery. - innerHTML invariant (established in the 239e73f hardening): untrusted
strings never reach
innerHTML/insertAdjacentHTML/outerHTML. Templates are build-time artifacts; runtime data goes in viatextContent/attribute setters. Any new widget rendering path must preserve this — grep forinnerHTMLbefore closing work. js.Valuereferences pin JS objects; long-lived registries of callbacks (js.FuncOf) leak and keep DOM alive — release them on component teardown.- Origin checks on any postMessage/external-event listener.
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.
- 9d ago First seen · 84 lines · 70 tokens per session scan A 632a26adecca
sec-wasm-go is a skill published in the GitHub repository luisfurquim/wings (29 stars, last pushed 1mo ago), licensed MPL-2.0. It adds 70 tokens to every session and 1,217 once invoked, about $0.0003 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
ast-grep
Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for…
golang-testing
Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI…
golang-samber-oops
Structured error handling in Golang with samber/oops — error builders, stack traces, error codes, error context, error wrapping, error attributes, user-facing vs developer messages, panic recovery, and logger integration. Apply when using or adopting samber/oops, or when the codebase already imports…
golang-uber-fx
Golang application framework using uber-go/fx — fx.New, fx.Provide, fx.Invoke, fx.Module, fx.Lifecycle hooks, fx.Annotate (name/group/As), fx.Decorate, fx.Supply, fx.Replace, fx.WithLogger, and signal-aware Run(). Apply when using or adopting uber-go/fx, when the codebase imports go.uber.org/fx, or when wiring…
ax-go-agent-optimize
Use when writing Go code with github.com/ax-llm/ax/packages/go for agent optimization, verified agent-playbook evolution, evaluators, judges, optimizer artifacts, BootstrapFewShot, and GEPA.
gmeasure
Benchmark and measure Go code with gmeasure — an Experiment groups named Measurements, recorded via RecordValue/RecordDuration/MeasureDuration or repeated Sample/SampleValue/SampleDuration with SamplingConfig, timed inline with a Stopwatch, summarized through GetStats/Stats (StatMin/Max/Mean/Median/StdDev…