From wasp
Build a UOMI WASM agent from Rust source code. Use when a developer wants to compile their agent, run the build pipeline, or troubleshoot Rust/WASM compilation errors.
How this skill is triggered — by the user, by Claude, or both
Slash command
/wasp:buildThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are helping a developer compile their UOMI agent from Rust to WebAssembly.
You are helping a developer compile their UOMI agent from Rust to WebAssembly.
The build pipeline (npm run build → bin/build_and_run_host.sh) performs:
cargo build --target wasm32-unknown-unknown --release inside agent-template/.wasm file to host/src/agent_template.wasmcd host && cargo run — executes the agent against the configured inputCheck you're in the project root (where package.json lives):
ls package.json agent-template/cargo.toml 2>/dev/null && echo "OK" || echo "Wrong directory — cd into your project root"
npm run build
This is equivalent to:
sh ./bin/build_and_run_host.sh
Successful build looks like:
Compiling agent-template v0.1.0
Finished release [optimized] target(s)
Compiling host v0.1.0
Finished dev [unoptimized + debuginfo] target(s)
Running `target/debug/host`
Successful agent execution looks like:
Assistant:
<response from the LLM>
Performance Metrics:
- Time taken: 1.20s
- Tokens/second: 45
- Total tokens: 54
error[E0463]: can't find crate for 'std' or wasm32 target not foundrustup target add wasm32-unknown-unknown
error: linker 'cc' not found (Linux)sudo apt-get install build-essential
error: package not found in cargo.tomlThe project name in agent-template/cargo.toml must match the directory name (underscores, not hyphens). Check:
cat agent-template/cargo.toml | grep "^name"
# Should match the directory name with - replaced by _
The host is running your WASM and calling an LLM. Check uomi.config.json:
models.1.name set? (uses UOMI network — requires node-ai service)models.2 with a valid url + api_key and use call_ai_service(2, request) in your lib.rsthread 'main' panicked in WASMAdd debug logs in your lib.rs to trace the issue:
utils::log("checkpoint 1: input read");
let input = utils::read_input();
utils::log(&format!("input length: {}", input.len()));
Logs appear in the terminal output.
The built WASM is at host/src/agent_template.wasm. This is the file you'll upload to IPFS when deploying.
To run interactively (multi-turn conversation), use /wasp-dev instead of npm run build.
npx claudepluginhub uomi-network/agents-skills --plugin waspProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.