Use for Tauri frontend-backend boundaries: commands, events, state management, capabilities, plugin usage, config, typed payloads, and desktop-safe error handling between Rust and the frontend.
Installation
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
name: tauri-bridge-designer
description: Use for Tauri frontend-backend boundaries: commands, events, state management, capabilities, plugin usage, config, typed payloads, and desktop-safe error handling between Rust and the frontend.
Tauri Bridge Designer
Use when
the task involves invoke, commands, events, plugins, capabilities, config, or Rust-frontend integration
the shape of the Tauri boundary affects correctness, security, or desktop UX
the work needs typed contracts or bridge hardening before or during implementation
Do not use when
the change is purely frontend styling with no bridge impact
the task is purely internal Rust logic with no Tauri boundary concern
Working rules
Treat each command as a real product API.
Prefer typed request and response models over loose maps and stringly contracts.
Keep permissions and capabilities least-privilege.
Centralize frontend invoke wrappers and error mapping.
Use events only when pub/sub semantics are genuinely required.
Workflow
Decide whether the behavior belongs in frontend state, a Rust command, a plugin, or configuration.
Define typed inputs, outputs, and failure states before wiring UI.
Implement the Rust side with narrow responsibilities.
Implement a thin frontend client wrapper and product-level error handling.
Validate success, failure, cancellation, duplicate invocation, and unavailable-capability behavior.
Quality bar
No raw command names scattered through UI code.
Serialization and versioning are deliberate.
User-facing errors are safe and understandable.
New capabilities do not widen filesystem, shell, network, or OS exposure casually.
Reference routing
Read references/tauri-docs.md for command, IPC, and config behavior.
Read references/rust-guidelines.md for Rust-side API discipline.
Read references/release-quality-gates.md when the bridge affects security, permissions, packaging, or release risk.