wings: Skill for Claude Code

.claude/skills/sec-wasm-go/SKILL.md

sec-wasm-go is a skill for Claude Code from luisfurquim/wings. It costs 70 tokens per session (1,217 once invoked), scanned A, original, MPL-2.0.

A security guide for Go programs compiled to WebAssembly and run in a web browser. WebAssembly is a browser format for running compiled code, while Go’s browser interface connects that code to JavaScript and the page.

In plain words
What is it for?
Use it when writing or reviewing Go WebAssembly code, JavaScript or page-DOM interactions, panic and error handling, browser memory contents, or features delivered to users’ browsers.
Why use it?
It explains browser-specific risks that ordinary server security advice may miss, including application-wide crashes, exposed secrets, unsafe page updates, and single-thread assumptions. This helps prevent security and reliability mistakes in browser-delivered Go code.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is luisfurquim/wings's own configuration. It tells Claude Code how to work on wings itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything wings configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/luisfurquim/wings/main/.claude/skills/sec-wasm-go/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/luisfurquim/wings

Made for: Claude Code.

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 sec-wasm-go

README.md
[![agentmods](https://agentmods.dev/badge/skills/luisfurquim/wings/sec-wasm-go/github.svg)](https://agentmods.dev/skills/luisfurquim/wings/sec-wasm-go)
Your own site
<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.

agentmods 80×15 button for sec-wasm-go

Your own site · 80×15
<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>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,217 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.00070 $0.01217
Opus 5 $0.00035 $0.00609
Sonnet 5 $0.00014 $0.00243
Haiku 4.5 $0.00007 $0.00122

Measured 9d ago against content hash 632a26adecca, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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.

.claude/skills/sec-wasm-go/SKILL.md · 84 lines

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)

  1. 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.
  2. 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.
  3. 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 + SetCatalogPublicKey is the correct shape). Anything secret stays server-side.
  4. Constant-time code is not guaranteed. JS/WASM engines JIT and may recompile mid-execution; timing properties of crypto/subtle are 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.Value arriving 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.NumberFormat on a locale from a catalog, a method a browser version lacks. Use jsguard.Do(op, fn) or jsguard.Value(op, fn) instead of hand-rolling defer/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 via textContent/attribute setters. Any new widget rendering path must preserve this — grep for innerHTML before closing work.
  • js.Value references 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.

Read the full file on GitHub · 84 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. 9d ago First seen · 84 lines · 70 tokens per session scan A 632a26adecca

Subscribe to this mod's changes

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.

Related

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…

JanDeDobbeleer/oh-my-posh · 80 tokens

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…

samber/cc-skills-golang · 115 tokens

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…

samber/cc-skills-golang · 74 tokens

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…

samber/cc-skills-golang · 122 tokens

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.

ax-llm/ax · 51 tokens

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…

onsi/gomega · 129 tokens