Install
$ agentstack add skill-gertsylvest-meta-team-wasm-worklet-smoke ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README — it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps — measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
WASM Worklet Smoke Test
Automated headless verification of an Emscripten + AudioWorklet build. Catches the class of failures that require a browser to surface: worklet registration failures, Emscripten runtime errors (self is not defined, fetch is not a function), WASM instantiation failures, and silent audio output.
Covers the gaps in a basic log-message-only smoke test: verifies actual audio output is non-silent, verifies the parameter message path, and catches all console.error / unhandled rejection events.
Requirements
- Node.js 18+ and npm
- Playwright with Chromium:
npm install playwright && npx playwright install chromium - Python 3 (for the HTTP server)
- make with a WASM build target (default:
synth-wasm) - Project setup:
main.jsmust exposewindow.__audioCtxandwindow.__synthNodefor audio verification (see Project Setup below)
Project setup
The audio verification step reads audioCtx and synthNode from window. The IIFE in main.js hides these by default. Add the following lines inside the IIFE after the AudioWorkletNode is connected and ready:
// Expose for automated testing (safe: AudioWorkletGlobalScope is isolated)
if (typeof window !== 'undefined') {
window.__audioCtx = audioCtx;
window.__synthNode = synthNode;
}
Guard with window.__TEST_MODE if you prefer to enable this only during tests:
if (window.__TEST_MODE) {
window.__audioCtx = audioCtx;
window.__synthNode = synthNode;
}
If the audio check is not needed, pass --no-audio-check to skip this step and the project setup requirement.
Instructions
Arguments are in $ARGUMENTS. Pass them directly to the smoke test script:
node "$(dirname "$0")/smoke.js" $ARGUMENTS
What the test verifies
| Check | What it catches | |-------|-----------------| | Build succeeds | Compilation errors in any source file, missing include paths | | Server starts | Broken asset copy, missing synth.js / synth.wasm | | WASM engine initialised log | Worklet registered, WASM instantiated, onRuntimeInitialized fired | | Zero console.error events | Any runtime JS error in the worklet or main thread | | Zero pageerror events | Uncaught exceptions | | Non-silent audio (AnalyserNode) | Silent engine (stuck envelope, null DSP output, broken computeSynth call) | | Expected fundamental frequency | Wrong oscillator frequency, detuning bug, wrong default param |
Options
| Option | Default | Description | |--------|---------|-------------| | --build-dir DIR | build/web | Directory containing synth.js and synth.wasm | | --port N | 8001 | Port for the local HTTP server | | --freq HZ | 440 | Expected fundamental frequency in Hz. Set to 0 to skip frequency check. | | --make-target TARGET | synth-wasm | Make target to build (skipped with --no-rebuild) | | --no-rebuild | off | Skip make , use existing build artifacts | | --no-audio-check | off | Skip AnalyserNode audio capture step | | --timeout MS | 15000 | Timeout waiting for engine initialisation | | --capture-delay MS | 200 | Delay after engine ready before capturing audio (allows envelope decay tail) |
Exit codes
0— all checks passed1— build failed, engine did not initialise, console errors detected, or audio checks failed
Examples
# Standard run: build, serve, test
node smoke.js
# Skip rebuild (fast re-check after a CSS-only change)
node smoke.js --no-rebuild
# Different expected pitch, custom build dir
node smoke.js --freq 880 --build-dir dist/web
# Minimal check without audio verification
node smoke.js --no-audio-check
Adding to make
test-wasm: synth-wasm
node tests/smoke_wasm.js --no-rebuild
Notes
ENVIRONMENT=workerlimitation: Emscripten has noaudioworkletenvironment.ENVIRONMENT=workeris the closest option but still assumesself,self.location, andfetch()are available. These are absent inAudioWorkletGlobalScope. The known-working mitigation is a--pre-jspolyfill forself/self.locationand main-thread WASM compilation passed viaprocessorOptions. This test will surface failures caused by missing polyfills.MODULARIZE=1incompatibility: WithMODULARIZE=1,--post-jscontent (includingregisterProcessor()) is wrapped inside the factory function and never executes at top level. This causesDOMException: AudioWorkletProcessor 'synth-processor' is not defined. This test catches that failure.- Audio timing: The default capture delay of 200 ms assumes an envelope with ~10 ms attack, ~100 ms decay, ~300 ms release. Adjust
--capture-delayif the synth's envelope shape differs significantly. - Frequency resolution: At
sampleRate=48000andfftSize=2048, each FFT bin is ≈23.4 Hz wide. Frequency verification checks the peak bin and its two neighbours, so the tolerance is approximately ±1 bin (±23 Hz). For tight tuning verification use theaudio-fft-sanityskill on a longer capture.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: gertsylvest
- Source: gertsylvest/meta-team
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.