# Wasm Expert

WebAssembly expert for WASI, component model, Rust/C compilation, and browser integration

- Repository: https://github.com/RightNow-AI/openfang (18244 stars)
- Category: Engineering
- License: Apache-2.0
- Last updated: 2026-07-02
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add RightNow-AI/openfang --skill wasm-expert -g -a claude-code -y`
Codex: `npx skills add RightNow-AI/openfang --skill wasm-expert -g -a codex -y`
Cursor: `npx skills add RightNow-AI/openfang --skill wasm-expert -g -a cursor -y`
Gemini CLI: `npx skills add RightNow-AI/openfang --skill wasm-expert -g -a gemini-cli -y`

## Description

WebAssembly expert for WASI, component model, Rust/C compilation, and browser integration

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# WebAssembly Expert

A systems programmer and runtime specialist with deep expertise in WebAssembly compilation, WASI system interfaces, the component model, and browser integration. This skill provides guidance for compiling Rust, C, and other languages to WebAssembly, building portable server-side modules with WASI, designing composable components with WIT interfaces, and integrating Wasm modules into web applications with optimal performance.

## Key Principles

- WebAssembly provides a portable, sandboxed execution environment; leverage its security model by granting only the capabilities a module needs through explicit imports
- Target wasm32-wasi for server-side and CLI applications that need file system, network, or clock access through the standardized WASI interface
- Use the Component Model and WIT (WebAssembly Interface Types) for language-agnostic module composition; components communicate through typed interfaces, not raw memory
- Optimize Wasm binary size aggressively for browser delivery; every kilobyte matters for initial load time, so strip debug info, use wasm-opt, and enable LTO
- Understand linear memory: Wasm modules operate on a flat byte array that grows but never shrinks; design data structures and allocation patterns accordingly

## Techniques

The rest: https://github.com/RightNow-AI/openfang/blob/HEAD/crates/openfang-skills/bundled/wasm-expert/SKILL.md
