wasm-rust-expert
Skill5 starsChanged 21 days agoMITView on GitHub
Use when Rust/WebAssembly boundary design, wasm-bindgen or web-sys integration, WASI targeting, browser Canvas, parity, or Wasm performance is central.
In this repository47 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agents-md-fixerSkill
- arch-docsSkill
- book-to-markdownSkill
- docset-updaterSkill
- humanizerSkill
- news-release-docsSkill
- pdf-guideSkill
- readme-docsSkill
- screenshot-docsSkill
- see-also-docsSkill
- setup-install-usage-docsSkill
- bptools-writer-expertSkill
- color-accessibility-expertSkill
- css-creative-expertSkill
- game-design-expertSkill
- geometry-expertSkill
- glass-expertSkill
- hic-human-interact-expertSkill
- openscad-3d-printing-expertSkill
- podman-expertSkill
- postgresql-expertSkill
- pyside6-engineerSkill
- rust-code-expertSkill
- solid-js-expertSkill
- svg-creator-expertSkill
- typescript-engineerSkill
- ui-ux-engineerSkill
- vision-expertSkill
- webwork-writer-expertSkill
- delegate-manager-to-subagentsSkill
- gas-town-workflowSkill
- hang-checkSkill
- html-game-parallel-builderSkill
- parallel-planSkill
- stay-busySkill
- repo-rules-readerSkill
- blueprint-plan-drafterSkill
- ideonomy-plainSkill
- ideonomy-richSkill
- make-goalSkill
- modest-plan-drafterSkill
- audit-code-reviewerSkill
- old-python-code-reviewSkill
- prune-testsSkill
- unit-test-starterSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 20 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈20
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill to take a Rust-to-WebAssembly request from target selection through browser integration, measurable performance work, and an …
- Distinctive: line 12
Start from the shipped runtime and browser boundary: target triple, package tool, JavaScript bindings, browser APIs, and the computation …
- Distinctive: line 14
Keep Rust computation portable and make the browser adapter a narrow, typed boundary.
- Distinctive: line 15
Use current wasm-bindgen, Rust target, MDN WebAssembly, browser, and WASI documentation for version-sensitive behavior.
- Distinctive: line 26
Read references/task_selection.md when Rust, TypeScript, Solid, or WebAssembly ownership needs a precise handoff.
- Distinctive: line 34
Read references/project_workflow.md for the greenfield wasm-pack path and the existing-crate browser-target path.
- Distinctive: line 38
Put deterministic domain computation in an ordinary Rust module that native tests can call.
- Distinctive: line 39
Add a focused wasm-bindgen or WASI adapter that converts host values at one boundary.
- Distinctive: line 42
Add a native-versus-Wasm oracle before optimization.
- Distinctive: line 43
Run the same fixed inputs through native Rust and the Wasm export, then compare exact output or a documented numeric tolerance.
- Distinctive: line 45
Add boundary fixtures for empty values, Unicode strings, large buffers, error conversion, and browser scheduling when those surfaces apply.
- Distinctive: line 47
Read references/testing_and_oracles.md.
- Distinctive: line 57
Use the local corpus through references/local_books.md and references/reference_survey.md when it is available.
- Distinctive: line 59
When the corpus is absent, follow references/topic_index.md to current wasm-bindgen, Rust target, MDN WebAssembly, browser, or WASI …
- Very specific: line 65
Use wasm32-unknown-unknown with wasm-bindgen and wasm-pack for browser packages.
- Very specific: line 66
Use web-sys feature flags for browser APIs and js-sys for JavaScript built-ins.
- Distinctive: line 67
Keep the domain core host-neutral, then expose small typed exports with explicit ownership.
- Very specific: line 68
Use requestAnimationFrame and a measured frame budget for Canvas or interactive rendering.
- Distinctive: line 69
Use release builds, size profiling, and browser network inspection before selecting a size fix.
- Distinctive: line 70
Use current Rust target and WASI documentation to choose a WASI target and runtime.
- Distinctive: line 71
Read references/topic_index.md for corpus-absent current sources and a command or browser check that verifies each route.
- Distinctive: line 77
Keep each cross-language conversion explicit, typed, and covered by fixtures.
- Distinctive: line 85
When using this skill, aim to produce:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Wasm Rust expert
Overview
Use this skill to take a Rust-to-WebAssembly request from target selection through browser integration, measurable performance work, and an executable comparison. Start from the shipped runtime and browser boundary: target triple, package tool, JavaScript bindings, browser APIs, and the computation that must agree with native Rust. Keep Rust computation portable and make the browser adapter a narrow, typed boundary. Use current wasm-bindgen, Rust target, MDN WebAssembly, browser, and WASI documentation for version-sensitive behavior; local books add concepts and worked examples when present.
Workflow
- Classify the Wasm target and route the request.
- Name the runtime: browser, WASI, embedded host, or another WebAssembly environment.
- Name the integration surface: wasm-bindgen export, wasm-pack package, web-sys API, Canvas loop, JavaScript data exchange, target setup, or performance measurement.
- Consult references/topic_index.md for the default tools, current-documentation route, and executable oracle.
- Read references/task_selection.md when Rust, TypeScript, Solid, or WebAssembly ownership needs a precise handoff.
- Detect the project shape and establish its Wasm contract.
- Inspect Cargo manifests, target configuration, generated package files, browser entry points, JavaScript or TypeScript bindings, and existing tests before changing code.
- Record the target triple, package command, host API boundary, supported browsers or runtime, data ownership, error surface, and performance budget in the project documentation.
- Read references/project_workflow.md for the greenfield wasm-pack path and the existing-crate browser-target path.
- Build the smallest vertical slice and preserve a portable computation core.
- Put deterministic domain computation in an ordinary Rust module that native tests can call.
- Add a focused wasm-bindgen or WASI adapter that converts host values at one boundary.
- Build one observable browser or runtime path before expanding API breadth.
- Add a native-versus-Wasm oracle before optimization.
- Run the same fixed inputs through native Rust and the Wasm export, then compare exact output or a documented numeric tolerance.
- Add boundary fixtures for empty values, Unicode strings, large buffers, error conversion, and browser scheduling when those surfaces apply.
- Read references/testing_and_oracles.md.
- Measure the delivered artifact in its real host.
- Build the release package, record compressed and uncompressed bundle sizes, and inspect the largest contributors with a size-analysis tool when size matters.
- Capture browser performance traces and measure frame time, startup, or allocation behavior against a stated budget.
- Re-run the native-versus-Wasm oracle after each performance change.
- Select current sources and close the loop.
- Use the local corpus through references/local_books.md and references/reference_survey.md when it is available.
- When the corpus is absent, follow references/topic_index.md to current wasm-bindgen, Rust target, MDN WebAssembly, browser, or WASI documentation and execute the named native-versus-Wasm or browser oracle.
Implementation defaults
- Use
wasm32-unknown-unknownwith wasm-bindgen and wasm-pack for browser packages. - Use
web-sysfeature flags for browser APIs andjs-sysfor JavaScript built-ins. - Keep the domain core host-neutral, then expose small typed exports with explicit ownership.
- Use
requestAnimationFrameand a measured frame budget for Canvas or interactive rendering. - Use release builds, size profiling, and browser network inspection before selecting a size fix.
- Use current Rust target and WASI documentation to choose a WASI target and runtime.
- Read references/topic_index.md for corpus-absent current sources and a command or browser check that verifies each route.
Quality bar
- State the target triple, host runtime, browser support, and package command.
- Keep each cross-language conversion explicit, typed, and covered by fixtures.
- Compare native and Wasm results for the same deterministic inputs.
- Measure bundle size and frame time or startup time in a release artifact.
- Present a browser-visible result, a runtime log, or a reproducible test output.
- Make one focused change tied to a failing oracle or a recorded measurement.
Output expectations
When using this skill, aim to produce:
- A target classification and topic-index route, including the owning skill for adjacent work.
- A project-shape finding with the inspected file or command and the Wasm contract.
- A small implementation plan naming the Rust core, adapter boundary, package command, and host API.
- Native-versus-Wasm fixtures and their comparison command or browser harness.
- Release bundle-size and frame-time or startup measurements with a stated budget.
- A concrete next change and the check that confirms it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

