tauri

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

When to use this skill

何时使用该技能

Use this skill as the primary entry point for any Tauri-related request. It serves as a "Total Index" (like
nvm
) that routes you to specific sub-skills.
Why?
  • Token Efficiency: Each sub-skill contains local
    examples/
    and
    templates/
    directories, providing detailed, offline-ready documentation without expensive network searches.
  • Tauri v2 Ready: All sub-skills are updated for Tauri v2.0+ (plugins, capabilities, permissions).
将此技能作为任何Tauri相关需求的主要入口点。它充当类似
nvm
的“总索引”,可将你导向特定的子技能。
为何使用?
  • 令牌效率:每个子技能都包含本地
    examples/
    templates/
    目录,无需昂贵的网络搜索即可提供详细的离线可用文档。
  • 适配Tauri v2版本:所有子技能均已针对Tauri v2.0+更新(包括插件、功能、权限)。

How to use this skill

如何使用该技能

  1. Identify Intent: Determine if the user needs setup, specific plugin functionality (FS, Dialog, SQL), or core app configuration.
  2. Route: Invoke the specific sub-skill listed below.
  3. Explore: Inside the sub-skill, use
    examples/usage.md
    for step-by-step guides and
    templates/capabilities.json
    for permission configs.
  1. 识别意图:确定用户是否需要设置、特定插件功能(FS、Dialog、SQL)或核心应用配置。
  2. 路由导向:调用下方列出的特定子技能。
  3. 探索学习:在子技能内,使用
    examples/usage.md
    获取分步指南,使用
    templates/capabilities.json
    进行权限配置。

Sub-skill Map

子技能映射

Planning & Architecture
  • tauri-app-planning
    : START HERE. Requirement analysis, plugin selection, architecture design, and Todo list generation. Includes orchestration patterns.
Core & Lifecycle
  • tauri-setup
    : Project initialization and environment setup.
  • tauri-scaffold
    : Creating files and structures.
  • tauri-app-develop
    : Development workflow (dev, build, debug).
  • tauri-app-process
    : Process management and exit handling.
  • tauri-app-updater
    : Auto-update configuration and API.
  • tauri-mobile
    : Android and iOS specific development.
System Integration
  • tauri-app-shell
    : Spawn sidecars and run system commands.
  • tauri-app-os-info
    : Get OS version, arch, and locale.
  • tauri-app-clipboard
    : Read/write to system clipboard.
  • tauri-app-dialog
    : Native file open/save dialogs and message boxes.
  • tauri-app-notification
    : System notifications.
  • tauri-app-global-shortcut
    : Register system-wide keyboard shortcuts.
  • tauri-app-autostart
    : Launch app on system login.
  • tauri-app-biometric
    : TouchID/FaceID authentication.
  • tauri-app-opener
    : Open URLs/files in default apps.
  • tauri-app-deep-linking
    : Handle custom protocol links (e.g.,
    myapp://
    ).
Data & Networking
  • tauri-app-http-client
    : Rust-based HTTP client (CORS-free).
  • tauri-app-websocket
    : WebSocket client.
  • tauri-app-upload
    : File upload utility.
  • tauri-app-sql
    : SQLite, MySQL, PostgreSQL database access.
  • tauri-app-store
    : Simple persistent key-value store.
  • tauri-app-stronghold
    : Secure secret management and encryption.
  • tauri-app-file-system
    : Read/write files (sandboxed).
Window & UI
  • tauri-app-window-menu
    : Native application menus and context menus.
  • tauri-app-system-tray
    : System tray icon and menu.
  • tauri-app-window-state
    : Persist window size/position.
  • tauri-app-positioner
    : Tray and window positioning.
  • tauri-app-single-instance
    : Prevent multiple app instances.
规划与架构
  • tauri-app-planning
    从此开始。需求分析、插件选择、架构设计及待办事项生成,包含编排模式。
核心与生命周期
  • tauri-setup
    :项目初始化与环境搭建。
  • tauri-scaffold
    :创建文件与结构。
  • tauri-app-develop
    :开发工作流(开发、构建、调试)。
  • tauri-app-process
    :进程管理与退出处理。
  • tauri-app-updater
    :自动更新配置与API。
  • tauri-mobile
    :Android和iOS专属开发。
系统集成
  • tauri-app-shell
    :生成辅助进程并运行系统命令。
  • tauri-app-os-info
    :获取操作系统版本、架构与区域设置。
  • tauri-app-clipboard
    :读写系统剪贴板。
  • tauri-app-dialog
    :原生文件打开/保存对话框与消息框。
  • tauri-app-notification
    :系统通知。
  • tauri-app-global-shortcut
    :注册系统级键盘快捷键。
  • tauri-app-autostart
    :系统登录时自动启动应用。
  • tauri-app-biometric
    :TouchID/FaceID身份验证。
  • tauri-app-opener
    :在默认应用中打开URL/文件。
  • tauri-app-deep-linking
    :处理自定义协议链接(如
    myapp://
    )。
数据与网络
  • tauri-app-http-client
    :基于Rust的HTTP客户端(无CORS限制)。
  • tauri-app-websocket
    :WebSocket客户端。
  • tauri-app-upload
    :文件上传工具。
  • tauri-app-sql
    :SQLite、MySQL、PostgreSQL数据库访问。
  • tauri-app-store
    :简单持久化键值存储。
  • tauri-app-stronghold
    :安全密钥管理与加密。
  • tauri-app-file-system
    :读写文件(沙箱环境)。
窗口与UI
  • tauri-app-window-menu
    :原生应用菜单与上下文菜单。
  • tauri-app-system-tray
    :系统托盘图标与菜单。
  • tauri-app-window-state
    :持久化窗口大小/位置。
  • tauri-app-positioner
    :托盘与窗口定位。
  • tauri-app-single-instance
    :防止应用多实例运行。

Examples and Templates

示例与模板

Global Examples (General Architecture)
  • examples/start/
    : Introduction and Quick Start.
  • examples/guide/
    : Architecture, Frontend/Backend patterns.
Sub-skill Examples (Specific Features) CRITICAL: Every sub-skill above has its own local assets.
  • skills/tauri-app-dialog/examples/usage.md
    : detailed Dialog plugin usage.
  • skills/tauri-app-sql/examples/usage.md
    : detailed SQL plugin usage.
  • ...
    and so on for all skills.
全局示例(通用架构)
  • examples/start/
    :介绍与快速入门。
  • examples/guide/
    :架构、前端/后端模式。
子技能示例(特定功能) 重要提示:上述每个子技能都有自己的本地资源。
  • skills/tauri-app-dialog/examples/usage.md
    :详细的Dialog插件使用指南。
  • skills/tauri-app-sql/examples/usage.md
    :详细的SQL插件使用指南。
  • ...以此类推,所有技能均有对应示例。

Keywords

关键词

Tauri, tauri v2, rust, desktop app, mobile app, plugins, capabilities, permissions, system tray, notifications, file system, database, sql, http, websocket, updater, sidecar, ipc, events, commands, window customization
Tauri, tauri v2, rust, desktop app, mobile app, plugins, capabilities, permissions, system tray, notifications, file system, database, sql, http, websocket, updater, sidecar, ipc, events, commands, window customization

References

参考资料

国内适配

国内适配

  • 支持中文文档和中文注释
  • 示例代码兼容国内开发环境
  • 提供中文 FAQ 和常见问题解答
  • 支持中文文档和中文注释
  • 示例代码兼容国内开发环境
  • 提供中文 FAQ 和常见问题解答

能力边界

能力边界

✅ 适用场景

✅ 适用场景

  • 当你需要使用此技能对应的技术栈时
  • 当项目需要遵循最佳实践时
  • 当需要快速上手或深入理解核心概念时
  • 当你需要使用此技能对应的技术栈时
  • 当项目需要遵循最佳实践时
  • 当需要快速上手或深入理解核心概念时

⚠️ 需要注意

⚠️ 需要注意

  • 复杂业务逻辑需要结合具体场景调整
  • 性能优化需要根据实际数据量评估
  • 复杂业务逻辑需要结合具体场景调整
  • 性能优化需要根据实际数据量评估

❌ 不适用场景

❌ 不适用场景

  • 不相关的技术栈或框架
  • 需要完全自定义的特殊场景
  • 不相关的技术栈或框架
  • 需要完全自定义的特殊场景

使用流程

使用流程

Step 1: 环境准备

Step 1: 环境准备

确保开发环境已安装必要的依赖和工具。
确保开发环境已安装必要的依赖和工具。

Step 2: 配置初始化

Step 2: 配置初始化

根据项目需求进行基础配置。
根据项目需求进行基础配置。

Step 3: 核心功能使用

Step 3: 核心功能使用

按照示例代码实现核心功能。
按照示例代码实现核心功能。

Step 4: 测试验证

Step 4: 测试验证

运行测试确保功能正常。
运行测试确保功能正常。

Step 5: 部署上线

Step 5: 部署上线

完成开发后进行部署和监控。
完成开发后进行部署和监控。