tauri

When to use this skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "tauri" with this command: npx skills add partme-ai/full-stack-skills/partme-ai-full-stack-skills-tauri

When to use this skill

Use this skill whenever the user wants to:

  • Install and set up Tauri in a project

  • Create desktop applications with Tauri

  • Use Tauri CLI commands

  • Configure Tauri applications

  • Handle frontend-backend communication

  • Use Tauri APIs

  • Build and package Tauri applications

  • Troubleshoot Tauri issues

How to use this skill

This skill is organized to match the Tauri official documentation structure (https://v2.tauri.org.cn/, https://v2.tauri.org.cn/start/, https://v2.tauri.org.cn/reference/cli/). When working with Tauri:

Identify the topic from the user's request:

  • Installation/安装 → examples/start/installation.md

  • Quick Start/快速开始 → examples/start/quick-start.md

  • Guide/使用指南 → examples/guide/

  • CLI/命令行 → examples/reference/cli.md

  • API/API 文档 → api/

Load the appropriate example file from the examples/ directory:

Start (快速开始):

  • examples/start/intro.md

  • Introduction to Tauri

  • examples/start/installation.md

  • Installation guide

  • examples/start/quick-start.md

  • Quick start guide

  • examples/start/prerequisites.md

  • Prerequisites

Guide (使用指南):

  • examples/guide/architecture.md

  • Architecture

  • examples/guide/frontend.md

  • Frontend setup

  • examples/guide/backend.md

  • Backend (Rust)

  • examples/guide/commands.md

  • Commands

  • examples/guide/events.md

  • Events

  • examples/guide/window.md

  • Window management

  • examples/guide/filesystem.md

  • File system

  • examples/guide/configuration.md

  • Configuration

  • examples/guide/build.md

  • Build and package

Reference (参考):

  • examples/reference/cli.md

  • CLI commands

  • examples/reference/config.md

  • Configuration reference

Follow the specific instructions in that example file for syntax, structure, and best practices

Important Notes:

  • Tauri uses Web frontend and Rust backend

  • Frontend can be any web framework

  • Backend is written in Rust

  • Communication via commands and events

  • Each example file includes key concepts, code examples, and key points

Reference API documentation in the api/ directory when needed:

  • api/tauri-api.md

  • Tauri API

  • api/commands-api.md

  • Commands API

  • api/events-api.md

  • Events API

  • api/window-api.md

  • Window API

  • api/filesystem-api.md

  • File system API

  • api/config-api.md

  • Configuration API

Use templates from the templates/ directory:

  • templates/installation.md

  • Installation templates

  • templates/project-setup.md

  • Project setup templates

  • templates/configuration.md

  • Configuration templates

  1. Understanding Tauri

Tauri is a framework for building desktop applications using web frontend technologies and Rust backend.

Key Concepts:

  • Frontend: Web technologies (HTML, CSS, JavaScript)

  • Backend: Rust

  • Commands: Frontend-backend communication

  • Events: Event system

  • Window: Window management

  • File System: File operations

  1. Installation

Prerequisites:

  • Node.js

  • Rust

  • System dependencies

Using npm:

npm install @tauri-apps/cli

Using cargo:

cargo install tauri-cli

  1. Basic Setup

Create Tauri project

npm create tauri-app

Or using cargo

cargo tauri init

Doc mapping (one-to-one with official documentation)

Examples and Templates

This skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).

To use examples:

  • Identify the topic from the user's request

  • Load the appropriate example file from the mapping above

  • Follow the instructions, syntax, and best practices in that file

  • Adapt the code examples to your specific use case

To use templates:

  • Reference templates in templates/ directory for common scaffolding

  • Adapt templates to your specific needs and coding style

API Reference

Detailed API documentation is available in the api/ directory, organized to match the official Tauri API documentation structure:

Tauri API (api/tauri-api.md )

  • Tauri core API

  • API methods

  • API types

Commands API (api/commands-api.md )

  • Command definition

  • Command invocation

  • Command parameters

Events API (api/events-api.md )

  • Event emission

  • Event listening

  • Event handling

Window API (api/window-api.md )

  • Window creation

  • Window management

  • Window events

File System API (api/filesystem-api.md )

  • File operations

  • Directory operations

  • Path operations

Configuration API (api/config-api.md )

  • Configuration options

  • Configuration file

  • Environment variables

To use API reference:

  • Identify the API you need help with

  • Load the corresponding API file from the api/ directory

  • Find the API signature, parameters, return type, and examples

  • Reference the linked example files for detailed usage patterns

  • All API files include links to relevant example files in the examples/ directory

Best Practices

  • Separate frontend and backend: Keep frontend and backend code separate

  • Use commands: Use commands for frontend-backend communication

  • Handle errors: Properly handle errors in both frontend and backend

  • Security: Follow Tauri security best practices

  • Performance: Optimize application performance

  • Build configuration: Configure build and package properly

  • Use TypeScript: Leverage TypeScript for type safety

Resources

Keywords

Tauri, tauri, desktop application, 桌面应用, Rust, Web frontend, commands, events, window, file system, CLI, 命令, 事件, 窗口, 文件系统, 命令行, Tauri CLI, Tauri commands, Tauri events, Tauri window, Tauri filesystem, cross-platform, 跨平台

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

vue3

No summary provided by upstream source.

Repository SourceNeeds Review
General

element-plus-vue3

No summary provided by upstream source.

Repository SourceNeeds Review
General

uniapp-project

No summary provided by upstream source.

Repository SourceNeeds Review
General

vite

No summary provided by upstream source.

Repository SourceNeeds Review