When to use this skill
ALWAYS use this skill when the user mentions:
- Frontend-to-Rust IPC or invoke calls
- Tauri commands or type-safe bindings
- Bidirectional messaging or event-based IPC
Trigger phrases include:
- "IPC", "invoke", "command", "tauri-specta", "type safety"
- "IPC", "invoke commands", "type safety", "tauri-specta"
How to use this skill
- Define Rust commands and register them in the Tauri builder
- Use invoke on the frontend with typed payloads
- Apply type generation tools to avoid any-typed IPC
- Establish error handling and response contracts
Outputs
- Typed IPC request/response contract
- Error handling and validation guidance
Scope
- Boundary: invoke calls and command definitions only
- v2 focus: type-safe IPC with tauri-specta or official generators
References
- https://v2.tauri.app/concept/inter-process-communication/
- https://v2.tauri.app/develop/calling-rust/
- https://v2.tauri.app/develop/calling-frontend/
Keywords
tauri ipc, invoke, tauri command, type safety, tauri-specta