/wings-authoring:sec-hostile-inputfrom WINGS Authoring
Applies hostile-input validation and parsing discipline to WINGS app boundaries: fetch/API responses, form fields, URL hash/query, postMessage, localStorage, and js.Values. Use when writing or changing code that reads external data.
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.
WINGS validates its boundaries for you — catalogs are checked and (optionally) signature-verified at load, flex blocks and templates are parsed at build time, the build lints your binding names. This skill is about the boundaries WINGS can't see: the data your own app pulls in at runtime.
Two converging sources of the discipline:
js.Value. If a function deep in your call
tree does strings.Split on something that arrived from a fetch, the
boundary leaked.error, and stop.
Silently "fixing up" input creates two parsers — the real one and the one in
the attacker's head. Your public helpers return error; the caller (you, at
a higher level) decides whether that's fatal.json.NewDecoder into a
concrete struct (call DisallowUnknownFields() when the schema is closed),
not into map[string]any you then spelunk. If you design a wire format,
make it a fixed shape, not a mini-language.fetch it or put it in a link. A
numeric index from outside is bounds-checked before it indexes a slice. A
language tag is matched against your known locales before you pass it to
wi18n.SetLang — never interpolate a raw external string into a path or URL.<input>
values, URL hash/query, postMessage payloads, localStorage,
server responses: all untrusted. Check js.Value.Type() before reading.
Failing silently is the worst outcome — surface the rejection.| Boundary | What you do |
|---|---|
fetch/XHR response from your backend | check status; json.Decoder into a concrete struct; never trust the body's shape |
Form / <input> / two-way-bound values | validate type & range before obj.This.Set or before sending upstream |
URL hash ({{#}}) / query / location | allow-list values; never feed raw into innerHTML (see sec-wasm-go) or a fetch URL |
postMessage / cross-window events | origin check first, then type-check the js.Value |
localStorage / sessionStorage | user-editable — re-validate on read, don't trust your own last write |
| language/skin choices from the user | match against your registered locales/skins before applying |
What you do not need to re-validate: catalog JSON and .sig
(wi18n verifies, fail-closed once you set a public key), flex blocks and
templates (parsed and linted at build time). Don't add runtime "tolerance" on
top of those — extend the build-time check instead.
js.Value.String() straight into innerHTML (see sec-wasm-go).interface{}/js.Value and "figures out" what it got —
that's a parser in disguise; type it at the boundary (see
sec-minimal-trusted-code).Sibling skills: sec-wasm-go (the js.Value boundary), sec-minimal-trusted-code
(don't build runtime parsers), sec-fuzzing (if you do add a parser).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub luisfurquim/wings --plugin wings-authoring11 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-fuzzingContinuous fuzzing with Go native fuzzing for any parser/decoder YOU add to a WINGS app — keeping parseable logic in portable (non-js) packages so it's fuzzable, writing targets, the properties to assert, corpus management. Use when you add or change any string/byte parser, custom wire format, or decoder in your app./Other plugins' skills for the same job