cosmian-kms-wasm-instructions.ocm.json json Copy{
"ocm": "1",
"id": "cosmian-kms-wasm-instructions",
"kind": "skill",
"name": "WASM Bindings",
"description": "Keep WASM exports, regenerated TypeScript types, and UI consumers in sync",
"publisher": "Cosmian",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Keep WASM exports, regenerated TypeScript types, and UI consumers in sync"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/Cosmian/kms",
"path": ".github/instructions/wasm.instructions.md",
"ref": "6b3a44767d40c9826639aabacef0b4233ce2d62e",
"url": "https://github.com/Cosmian/kms/blob/6b3a44767d40c9826639aabacef0b4233ce2d62e/.github/instructions/wasm.instructions.md",
"key": "Cosmian/kms/.github/instructions/wasm.instructions.md"
},
"applies_to": "crate/clients/wasm/**/*.rs"
},
"instructions": "# WASM bindings sync\n\nA WASM binding change must be rebuilt and its generated types committed.\n\n## Checklist\n\n- [ ] `crate/clients/wasm/src/wasm.rs` — `#[wasm_bindgen]` exported function added\n- [ ] Rebuild WASM: `wasm-pack build --target web` (from `crate/clients/wasm/`)\n- [ ] `ui/src/wasm/pkg/` — regenerated TS types committed\n- [ ] UI component imports and calls the new WASM function\n\n> Rule 4.5 of `/kms-sync-rules`. For WASM target constraints (no `std::fs`, `std::net`, `tokio::runtime`), see `rust-cli.instructions.md`.",
"cost": {
"context_tokens": 132
}
}