/wings-authoring:sec-fuzzingfrom WINGS Authoring
Guides continuous fuzzing with Go native fuzzing for custom parsers/decoders in WINGS apps. Covers writing fuzz targets, property assertions (round-trip, fail-closed), and corpus management for CI.
Ships in WINGS Authoring. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
djb minimized parsers because parsers are where bugs live; Apollo verified exhaustively because there was no patching after launch. Fuzzing serves both — machine-generated hostile input, continuously, against every parser.
First question: do you even have a parser? WINGS deliberately parses for
you at build time (templates, flex syntax → gen_i18n) and verifies catalogs at
load, so a typical app has none — and sec-minimal-trusted-code says keep it
that way. But the moment your app grows its own string/byte parser — a custom
backend wire format, a URL-scheme handler, a CSV/CSP/query parser, a binary
decoder — it becomes the place bugs concentrate, and it's yours to fuzz.
Go native fuzzing runs on native targets only (not GOOS=js). So the same
rule that keeps logic lintable also keeps it fuzzable: put the parser in a
package that builds everywhere — a pure function over string/[]byte, not one
that takes a js.Value. Pull the bytes off the js.Value at the boundary
(sec-hostile-input), then hand a plain Go value to the parser the fuzzer can
reach.
func FuzzParseMyFormat(f *testing.F) {
f.Add("id=42;name=alpha") // seeds: real inputs from your docs/tests
f.Add("id=0;name=")
f.Fuzz(func(t *testing.T, s string) {
v, err := myformat.Parse(s) // property 1: never panics
if err != nil {
return // rejecting bad input is correct
}
_ = v.Render() // property 2: accepted input is usable
})
}
Properties worth asserting beyond "no panic":
parse → serialize ≍ input (modulo documented normalization).f.Add), not only random ones: examples from your
docs, fixtures, and actual backend responses.testdata/fuzz/<FuzzName>/ — commit them. They
become permanent regression tests that plain go test ./... replays for free.go test -fuzz=FuzzX -fuzztime=60s per
target in a periodic job. Day-to-day go test ./... already replays the
whole corpus at no cost.sec-minimal-trusted-code, sec-hostile-input) before patching the parser.js) package so the fuzzer can reach itsec-hostile-input contract)Sibling skills: sec-hostile-input (don't parse if you can avoid it),
sec-minimal-trusted-code (simplify the grammar first), sec-wasm-go
(why parsing logic stays in portable packages).
What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/sec-fail-operationalApollo AGC fail-operational design (priority shedding, bounded everything, restart protection, NASA Power of 10) applied to YOUR WINGS app — loops, goroutines, timers, fetch error paths, recovery. Use when writing component effects, background goroutines, polling/retry, or any code that must keep the app rendering when one part fails./sec-hostile-inputInput validation and parsing discipline for WINGS apps (djb "don't parse" + Margaret Hamilton's defensive design) — applied to YOUR boundaries — fetch/API responses, form fields, URL hash/query, postMessage, localStorage, and js.Values. Use when writing or changing any code in your app that reads data from outside the wasm module./sec-minimal-trusted-codedjb's trusted-code minimization applied to YOUR WINGS app — keep parsing at build time, design misuse-resistant APIs, add the fewest deps and config knobs, don't evaluate user strings at runtime. Use when designing a new component/package/public helper, adding a dependency or config option, or reviewing a diff that grows your app./sec-supply-chainDependency and artifact integrity for YOUR WINGS app — adding/updating Go modules, pinning the wings version, govulncheck (native + GOOS=js passes), SRI on served scripts, signing the catalogs you ship, Docker FROM wings, never baking secrets into images. Use whenever your go.mod/go.sum changes, you prepare a release, or you serve/fetch an artifact./sec-wasm-goSecurity peculiarities of Go-to-WASM in the browser, for apps you build with WINGS — the syscall/js trust boundary, panic = whole-app death, the innerHTML/XSS invariant, secrets in browser memory, single-thread concurrency, GOOS=js tooling gaps. Use when writing or reviewing any component (GOOS=js code), DOM interop via syscall/js, fetch, or browser-delivered features in your app./wings-buildSet up, build, and serve a WINGS app — Go module setup, the WASM build (GOOS=js), copying the JS runtime helpers, a static dev server, and the cross-platform cmd/build orchestrator (targets + the camelCase binding lint + rebuild-on-save dev mode). Use when scaffolding a new WINGS project, configuring its build, wiring main.go, or setting up a dev server / dev loop.npx claudepluginhub luisfurquim/wings --plugin wings-authoringOther plugins' skills for the same job