What problem does it solve?
This Skill helps you build Tauri 2.0 desktop apps safely by preventing common IPC and filesystem vulnerabilities while generating robust Rust backend code patterns.
Core Features & Use Cases
- Secure IPC command design: Validate all untrusted frontend inputs at Tauri command boundaries using typed request structs and
validator.
- Path traversal and filesystem safety: Canonicalize and enforce containment within allowed app directories using
dunce, avoiding out-of-scope reads/writes.
- Injection-resistant command execution: Enforce anti-hallucination rules that prevent frontend-driven shell/command construction (use allowlists and fixed argument execution).
- Secure capability configuration guidance: Apply least-privilege principles for
tauri.conf.json (CSP, scoped plugins, and reduced permissions).
- Privacy and error handling: Serialize safe error messages (avoid leaking internal details), keep secrets in Rust/OS keychain, and apply fail-secure defaults.
Quick Start
Use the tauri skill to generate Rust #[tauri::command] handlers that validate inputs, canonicalize any filesystem paths, and return safe error messages for a Tauri 2.0 app.