con un clic
calculator
WASM skill providing basic arithmetic operations for VAK agents.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
WASM skill providing basic arithmetic operations for VAK agents.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Instructions for building the VAK project including Rust, WASM skills, and Python bindings.
WASM skill providing cryptographic hashing operations for VAK agents.
WASM skill providing JSON validation and manipulation for VAK agents.
WASM skill providing pattern matching operations for VAK agents.
Instructions for releasing and publishing the VAK project to crates.io and PyPI.
WASM skill providing text analysis operations for VAK agents.
| name | calculator |
| description | WASM skill providing basic arithmetic operations for VAK agents. |
A WebAssembly module providing basic arithmetic operations that runs inside the VAK kernel sandbox.
This skill provides safe arithmetic operations with proper error handling for:
# Build for WASM target
cargo build -p calculator --target wasm32-unknown-unknown --release
# Output location
# target/wasm32-unknown-unknown/release/calculator.wasm
| Operation | Input | Output | Error Conditions |
|---|---|---|---|
add | (a: i64, b: i64) | i64 | Overflow |
subtract | (a: i64, b: i64) | i64 | Overflow |
multiply | (a: i64, b: i64) | i64 | Overflow |
divide | (a: i64, b: i64) | i64 | Division by zero |
This skill runs in the VAK WASM sandbox with:
// SAFETY: comments// From VAK kernel
let result = kernel.execute_skill("calculator", "add", &[10, 20]).await?;
assert_eq!(result, 30);
Cargo.toml - Crate configurationsrc/lib.rs - Skill implementation