tauri-v2

Verified·Scanned 2/17/2026

Provides Tauri v2 development guidance for Rust-backed desktop and mobile apps. Contains explicit shell commands (e.g., npm run dev, rustup target add ...) and example network calls to http://localhost:5173, https://api.example.com, and https://example.com/file.zip.

by nodnarbnitram·va8609ad·31.8 KB·160 installs
Scanned from main at a8609ad · Transparency log ↗
$ vett add nodnarbnitram/claude-code-extensions/tauri-v2

Tauri v2 Development Skill

Build cross-platform desktop and mobile apps with web frontends and Rust backends.

StatusActive
Version1.0.0
Last Updated2025-12-31
Confidence4/5
Production Testedhttps://v2.tauri.app/

What This Skill Does

Provides expert assistance for Tauri v2 application development, covering the full development lifecycle from project setup to cross-platform deployment. Specializes in Rust backend commands, IPC patterns, security configuration, and frontend-backend communication.

Core Capabilities

  • Implement Rust commands with #[tauri::command] and proper error handling
  • Configure IPC patterns (invoke, events, channels) for frontend-backend communication
  • Set up security capabilities and permissions for plugins and APIs
  • Build and deploy for desktop (macOS, Windows, Linux) and mobile (iOS, Android)
  • Integrate Vite + TanStack Router frontends with Tauri backends
  • Configure tauri.conf.json and Cargo.toml for cross-platform builds

Auto-Trigger Keywords

Primary Keywords

Exact terms that strongly trigger this skill:

  • tauri
  • tauri v2
  • tauri.conf.json
  • src-tauri
  • #[tauri::command]
  • tauri::invoke
  • capabilities.json

Secondary Keywords

Related terms that may trigger in combination:

  • rust backend
  • desktop app
  • cross-platform app
  • webview
  • invoke command
  • emit event
  • app permissions
  • bundle desktop

Error-Based Keywords

Common error messages that should trigger this skill:

  • "Command not found"
  • "Permission denied" (in Tauri context)
  • "Failed to invoke command"
  • "Missing capability"
  • "Cannot read property of undefined" (invoke result)
  • "tauri build failed"
  • "Missing Rust target"

Known Issues Prevention

IssueRoot CauseSolution
Command not foundMissing from generate_handler![]Register all commands in the macro
Permission deniedMissing capability configurationAdd required permissions to capabilities file
State access panicType mismatch in State<T>Use exact type matching .manage() call
White screenFrontend not buildingVerify beforeDevCommand and devUrl
Mobile build failsMissing Rust targetsRun rustup target add <platform-targets>
IPC timeoutBlocking in async commandUse non-blocking async or spawn threads

When to Use

Use This Skill For

  • Creating new Tauri v2 projects or commands
  • Configuring permissions and capabilities
  • Setting up IPC (invoke, events, channels)
  • Debugging command invocation issues
  • Cross-platform build configuration
  • Plugin integration and configuration
  • Mobile (iOS/Android) deployment setup

Don't Use This Skill For

  • Tauri v1 development (use migration guide then this skill)
  • Pure frontend development without Tauri integration
  • Native mobile development (Swift/Kotlin directly)
  • Backend API development without Tauri

Quick Usage

# Create new Tauri project
npm create tauri-app@latest

# Add Tauri to existing project
npm install -D @tauri-apps/cli@latest
npx tauri init

# Development
npm run tauri dev

# Build
npm run tauri build

Token Efficiency

ApproachEstimated TokensTime
Manual Implementation~15,0002+ hours
With This Skill~6,00030 min
Savings60%~1.5 hours

File Structure

tauri-v2/
├── SKILL.md        # Detailed instructions and patterns
├── README.md       # This file - discovery and quick reference
└── references/     # Supporting documentation
    ├── capabilities-reference.md
    └── ipc-patterns.md

Dependencies

PackageVersionVerified
@tauri-apps/cli^2.0.02025-12-31
@tauri-apps/api^2.0.02025-12-31
tauri (Rust)^2.0.02025-12-31
tauri-build (Rust)^2.0.02025-12-31

Official Documentation

Related Skills

  • tanstack-start-expert - TanStack Router patterns for type-safe frontend routing
  • react-component-architect - React component patterns for Tauri frontends
  • go-google-style-expert - Alternative backend patterns (if using Go instead)

License: MIT