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.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
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.