wasm

Build and optimize Rust-to-WASM modules with wasm-bindgen and wasm-opt.

16|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/JCETools-Petra/JCE-Opencode-Tools --skill wasm-jcetools-petra
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wasm
Source: https://github.com/JCETools-Petra/JCE-Opencode-Tools/tree/main/config/skills/wasm
Command: npx skills add https://github.com/JCETools-Petra/JCE-Opencode-Tools --skill wasm-jcetools-petra

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you design, build, optimize, and debug WebAssembly and WASI projects so your code runs efficiently across browsers, servers, and edge runtimes.

Core Features & Use Cases

  • WASM project setup for Rust/wasm-bindgen: Create a working Rust-to-WASM pipeline and wire up JS interop patterns.
  • Performance-focused optimization: Apply wasm-opt sizing/perf guidance, plus SIMD and threading considerations (SharedArrayBuffer).
  • Runtime targeting and verification: Choose browser vs server/edge execution paths and run WASI Component Model workflows with wasmtime tooling.

Quick Start

Use the wasm skill to help you turn your Rust library into an optimized WebAssembly module with correct wasm-bindgen exports and a tested loading flow in JavaScript.

Frequently Asked Questions about wasm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compile Rust to WebAssembly using wasm-bindgen for JavaScript interop?

To compile Rust to WebAssembly, you need a pipeline that uses wasm-bindgen to wire up JavaScript interop patterns and export correct module interfaces. This skill helps establish that working Rust-to-WASM build flow.

What is the best way to optimize WebAssembly module size and performance?

Optimizing WebAssembly modules involves applying wasm-opt sizing analysis, leveraging SIMD instructions, and considering threading with SharedArrayBuffer. This skill provides performance engineering guidance for compute-heavy workloads.

Can I run WASI Component Model workflows with wasmtime on the server or edge?

Yes, you can run WASI Component Model workflows on server and edge runtimes using wasmtime tooling. This skill assists in choosing execution paths and validating runnable WASI preview 2 workflows.

Does WebAssembly work across both browser and server runtimes?

WebAssembly works across browser, server, and edge runtimes by targeting correct execution paths and applying memory boundary best practices. This skill helps verify runtime targeting and validate cross-environment execution.

What toolchain do I need to build WebAssembly modules from Rust?

Building WebAssembly modules requires correct toolchain selection for Rust-to-WASM pipelines, including wasm-bindgen for JS interop and wasm-opt for sizing analysis. This skill guides toolchain setup and validation.