webassembly-component-development
БесплатноБез исполняемых скриптовНе проверенBuild, compose, run, test and debug WebAssembly components targeting WASI 0.3 (wasip3) with native async. Use this skill whenever the user is building or…
Об этом скилле
WebAssembly Component Development
Build components against WASI 0.3 (wasip3). It adds native async, stream<T> and future<T> to the component model, so most of the old workarounds (poll loops, tokio_unstable, third-party async runtimes) are no longer needed for new code. Fall back to wasip2 only when a runtime or dependency requires it.
Key Defaults
- Target:
wasm32-wasip3(Tier 2 in Rust, stable since 1.100.0). Use thewasip3crate for WASI bindings (wasip2crate for the fallback). Gate code with#[cfg(all(target_os = "wasi", target_env = "p3"))]. - Build: use
wash buildwhen the project has.wash/config.yaml. For plugins usewash build --skip-fetch(thewasmcloud:washinterface isn't published). Otherwisecargo build --target wasm32-wasip3 --release. - Async: use the component model's native async:
async fnin exported handlers,wit_stream/wit_futurefor streams and futures,wit_bindgen::spawn_localfor background tasks. Don't pull intokioorwstdfor new p3 code (see async.md). - Threading: not available yet.
std::thread::spawnreturns an error on wasip3, and cooperative threading is still in development. Design single-threaded and avoidrayon. - Strings: UTF-8. Avoid
as_encoded_bytes(). - Version matching: the runtime must implement the exact WASI 0.3.x versions your component imports. Check with
wasm-tools component wit component.wasm. - wasmCloud docs: use https://wasmcloud.com/docs/, never
/docs/v1/.
Reference Files
Load the relevant file when working on the matching topic:
| Topic | File |
|---|---|
| Component Model, wasip3 vs wasip2, targets and worlds | core-concepts.md |
Composition patterns, building with wash / cargo, wac, .wash/config.yaml |
composition-and-building.md |
| Languages and toolchains (Rust, JS/TS, Go, Python, C/C++) | language-interop.md |
Native async on wasip3: handlers, streams, futures, spawning; the wasip2 fallback (tokio, wstd) |
async.md |
| Gotchas (threading, strings, networking), unknown-import errors, runtimes (wasmtime, jco, wasmCloud), version alignment | gotchas-and-runtime.md |
| Testing with mock components, debugging workflow, error patterns, performance | testing-debugging-performance.md |
| Development practices, CI/CD, architecture patterns | patterns-and-best-practices.md |
| Designing or reviewing WIT interfaces (naming, capability grants, errors, versioning) | the wit-interface-design skill |
Related skills
wit-interface-design: how to design the WIT contract.wash: thewash build/wash devtoolchain.cosmonic-go: Go components withcomponentize-goon async wasip3.
Установить webassembly-component-development в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл webassembly-component-development?
Build, compose, run, test and debug WebAssembly components targeting WASI 0.3 (wasip3) with native async. Use this skill whenever the user is building or troubleshooting a component or `.wasm` file, targeting `wasm32-wasip3` (or falling back to wasip2/wasip1), choosing an async approach, composing components with wac or wasm-tools, resolving WIT dependencies (wkg, wit-bindgen, `wash wit update`), hitting "unknown import" or version-mismatch errors, picking a runtime (wasmtime, jco, wasmCloud), or working across languages (Rust, JS/TS, Go, Python, C/C++). Also use it when the user mentions WASI, the component model, wasip3, or component composition. For designing or reviewing the WIT interfaces themselves (naming, capability scoping, errors, versioning), use wit-interface-design.
Как установить скилл webassembly-component-development?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл webassembly-component-development запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic