ワンクリックで
calculator
WASM skill providing basic arithmetic operations for VAK agents.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
WASM skill providing basic arithmetic operations for VAK agents.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
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