peditx/tauri-skills/tauri-desktop-apps

Claude Code and agent skill by peditx/tauri-skills

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

UNIVERSAL Tauri 2 skill for ANY desktop app — web apps, CRUD, dashboards, utilities, chat apps, media tools, CLI wrappers, AI apps. Auto-triggers on 'desktop' keyword. Rust backend, React frontend, Python sidecar. ALL work parallel via subagents.

Install

npx vskill@latest install peditx/tauri-skills/tauri-desktop-apps

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as peditx/tauri-skills/tauri-desktop-apps.

Tauri 2 Desktop App Development — Universal Reference

Build ANY type of desktop app with Tauri 2. Not tied to any specific project type.

Supported App Types

TypeExampleKey Features
DashboardAnalytics, monitoring, admin panelCharts, tables, real-time data
Chat / AIChatGPT client, AI assistantSSE streaming, markdown, multimodal
CRUDTodo app, note manager, CRMForms, database, search
MediaImage editor, video tool, audio playerFFmpeg, canvas, playback
UtilityClipboard manager, file converter, system monitorSystem tray, hotkeys, file I/O
API ClientREST/GraphQL client, API testerHTTP requests, auth, history
CLI WrapperGit GUI, Docker manager, SSH clientProcess management, terminal
Dev ToolDatabase viewer, log viewer, API mockSQLite, WebSocket, file watching

When to Use

  • Building ANY Tauri 2 desktop app
  • Adding features to an existing Tauri app
  • Setting up cross-platform builds (Windows/Mac/Linux)
  • Integrating Python for local processing
  • Setting up CI/CD

Prerequisites

  • Rust (stable, 1.75+) + Node >= 20
  • @tauri-apps/cli@2 in devDependencies

PARALLEL EXECUTION PLAYBOOK (MANDATORY)

Rule: EVERYTHING IS PARALLEL by default

When this skill activates, ALL independent work MUST run via delegate_task subagents concurrently.

Subagent Roles
RoleResponsibilityVerify
rust-backendAll Rust code: commands, state, plugins, db, sidecarcargo check
react-frontendAll React/TypeScript: components, hooks, stores, stylesnpm run typecheck
python-sidecarPython scripts (if needed)python3 -c 'import ast; ast.parse(...)'
testingRust tests + frontend testscargo test && npm run test
ci-cdGitHub Actions workflowsYAML syntax check
Pattern 1: New App (4 parallel agents)
python
delegate_task(tasks=[
{
"goal": "Create Rust backend: main.rs + lib.rs + Cargo.toml + tauri.conf.json",
"context": """Create Tauri 2 Rust backend.
PROJECT: {project_path}/src-tauri/
Create: main.rs (entry), lib.rs (Tauri commands + state).
Cargo.toml: tauri 2, serde, serde_json, reqwest (if needed).
tauri.conf.json: window config, CSP, plugins.
VERIFY: cargo check""",
"role": "leaf"
},
{
"goal": "Create React frontend: components + hooks + store + styles",
"context": """Create React + TypeScript + Vite + Tailwind frontend.
PROJECT: {project_path}/src/
Create: App.tsx, components/, hooks/, store/ (Zustand), styles.css.
package.json: @tauri-apps/api, zustand, tailwindcss.
VERIFY: npm run typecheck""",
"role": "leaf"
},
{
"goal": "Create Python sidecar (if needed for local processing)",
"context": """Create Python FastAPI sidecar.
PROJECT: {project_path}/python/
server.py (FastAPI on 127.0.0.1:8765, CORS for tauri://localhost).
VERIFY: python3 -c 'import ast; ast.parse(open("server.py").read())'""",
"role": "leaf"
},
{
"goal": "Create GitHub Actions CI/CD workflows",
"context": """Create GitHub Actions for Tauri build.
PROJECT: {project_path}/.github/workflows/
build.yml: matrix build (windows, macos, linux), tauri-action@v1, releaseDraft:false.
VERIFY: yamllint""",
"role": "leaf"
},
])
Pattern 2: Add Feature (3 parallel agents)
python
delegate_task(tasks=[
{
"goal": "Rust: Add command/feature in lib.rs",
"context": "Add #[tauri::command] in lib.rs. VERIFY: cargo check",
"role": "leaf"
},
{
"goal": "React: Add component + hook + store slice",
"context": "Create component, useTauriCommand hook, Zustand slice. VERIFY: npm run typecheck",
"role": "leaf"
},
{
"goal": "Add tests for feature",
"context": "Rust #[cfg(test)] + Vitest. VERIFY: cargo test && npm run test",
"role": "leaf"
},
])
Pattern 3: Fix Bug (2 parallel agents)
python
delegate_task(tasks=[
{
"goal": "Debug + fix in Rust backend",
"context": "Search src-tauri/src/. Fix. VERIFY: cargo check",
"role": "leaf"
},
{
"goal": "Debug + fix in React frontend",
"context": "Search src/. Fix. VERIFY: npm run typecheck",
"role": "leaf"
},
])
Pattern 4: Full Build (3 parallel agents)
python
delegate_task(tasks=[
{
"goal": "Rust: cargo check + cargo test",
"context": "Run cargo check, fix errors, then cargo test.",
"role": "leaf"
},
{
"goal": "React: npm run typecheck + npm run build",
"context": "Fix TS errors, then build.",
"role": "leaf"
},
{
"goal": "CI/CD: validate all workflows",
"context": "Check .github/workflows/*.yml syntax.",
"role": "leaf"
},
])
When Sequential (NOT Parallel)
  • Two agents edit the SAME file → sequential or merge after
  • Agent B needs output from Agent A
  • Build ordering dependency

Project Structure (Generic)

YourApp/
├── src/ # React/TypeScript frontend
│ ├── components/ # UI components
│ ├── hooks/ # Custom hooks
│ ├── lib/ # Utility libraries
│ ├── store/ # Zustand state
│ ├── types/ # TypeScript types
│ └── styles.css # Tailwind + theme
├── src-tauri/
│ ├── src/
│ │ ├── main.rs # Entry point
│ │ ├── lib.rs # Tauri commands + state
│ │ ├── db.rs # Optional: SQLite
│ │ └── error.rs # Optional: custom errors
│ ├── capabilities/
│ │ └── default.json # IPC permissions
│ ├── Cargo.toml
│ └── tauri.conf.json
├── python/ # Optional: Python sidecar
└── .github/workflows/ # CI/CD

Reference Files

All in references/:

FileTopic
react-tauri-patterns.mdReact + Tauri: hooks, stores, SSE, components
python-sidecar-pattern.mdPython integration: subprocess, HTTP, PyO3, FFI
cross-platform-patterns.mdMatrix builds, macOS/Linux/Windows specifics
streaming-patterns.mdSSE, WebSocket, Tauri events
security-patterns.mdCSP, IPC permissions, keyring
database-patterns.mdSQLite with rusqlite or tauri-plugin-sql
testing-patterns.mdRust unit tests, Vitest, E2E
tauri-v2-plugins.mdPlugin catalog, custom plugins
auto-updater-pattern.mdSigning, latest.json, update UI
error-handling-patterns.mdRust Result, custom errors
multi-window-tray.mdSystem tray, multi-window

Quick Reference: Core Patterns

Tauri Command (Rust)
rust
#[tauri::command]
fn my_command(param: String) -> Result<String, String> {
// Do work
Ok(format!("result: {param}"))
}
Invoke from React
typescript
import { invoke } from '@tauri-apps/api/core';
const result = await invoke<string>('my_command', { param: 'hello' });
Zustand Store
typescript
import { create } from 'zustand';
const useStore = create<AppState>((set) => ({
data: null,
fetch: async () => {
const data = await invoke('get_data');
set({ data });
},
}));
Custom Hook
typescript
const { data, loading, error, execute } = useTauriCommand<Args, Result>('cmd');

Cross-Platform Build Matrix

PlatformRunnerSystem DepsBundles
Windowswindows-latestchoco install ffmpeg (if media)NSIS + MSI
macOSmacos-latestNone (WebKit native)DMG
Linuxubuntu-22.04libwebkit2gtk-4.1-dev + 4 depsAppImage + deb
CI/CD Workflow (All 3 Platforms)
yaml
name: Release
on: { push: { tags: ['v*'] } }
permissions: { contents: write }
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
args: '--bundles nsis,msi'
- os: macos-latest
args: '--bundles dmg'
- os: ubuntu-22.04
args: '--bundles appimage,deb'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 20, cache: npm }
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install deps (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y \
libwebkit2gtk-4.1-dev libgtk-3-dev libappindicator3-dev librsvg2-dev patchelf
- run: npm ci && npm run build
- uses: tauri-apps/tauri-action@v1
env: { GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} }
with:
tagName: ${{ github.ref_name }}
releaseDraft: false
args: ${{ matrix.args }}

Security (Quick Reference)

  1. CSP in tauri.conf.json: default-src 'self'; connect-src 'self' http://127.0.0.1:*
  2. IPC Permissions in capabilities/default.json
  3. API Keys in OS keyring (NOT plaintext)
  4. Input validation on all #[tauri::command] parameters

Database (Quick Reference)

rust
use rusqlite::Connection;
let conn = Connection::open(&db_path)?;
conn.execute_batch("PRAGMA journal_mode=WAL;")?;

Error Handling (Quick Reference)

rust
fn cmd() -> Result<Data, String> {
let val = operation().map_err(|e| format!("failed: {e}"))?;
Ok(val)
}

User Preference: Functionality First

CRITICAL: Do NOT create UI without wiring to actual logic. Every UI element MUST read/write state and trigger real actions.


Related Skills

  • tauri-desktop-builder — Building apps with specific integrations (MCP, AI, MIDI)
  • tauri-desktop-client — Client apps connecting to remote APIs
  • github-actions-setup — CI/CD pipeline patterns

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
55
Repository forks
7
7-day trend score
25

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks
  • pluginCustom plugin integration

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/peditx/tauri-skills/tauri-desktop-apps/badge)](https://verified-skill.com/skills/peditx/tauri-skills/tauri-desktop-apps)

Something wrong with this skill or its page? Tell us.