tauri

协助使用 Tauri 构建轻量级跨平台桌面及移动端应用。适用于创建小型、快速、安全的应用,前端采用 Web 技术、后端使用 Rust,并利用系统 WebView 而非捆绑 Chromium。触发词示例:tauri、rust 桌面、系统 webview、tauri 命令、tauri 插件。

仓库最近推送
GitHub Stars
219
Forks
38
Issues / PRs
7

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "tauri":https://skillpi.com/zh/skills/deepskill-c78897022381043520080361497cb6e21bc609a9bbe11f943a0d6957917e0c61。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

协助使用 Tauri 构建轻量级跨平台桌面及移动端应用。适用于创建小型、快速、安全的应用,前端采用 Web 技术、后端使用 Rust,并利用系统 WebView 而非捆绑 Chromium。触发词示例:tauri、rust 桌面、系统 webview、tauri 命令、tauri 插件。

0 下载

介绍来源: third_party · TerminalSkills · 1.0.0 参考来源

SkillPi 解读

实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: tauri
description: >-
  Assists with building lightweight cross-platform desktop (and mobile) applications using
  Tauri. Use when creating small, fast, secure apps with a web frontend and Rust backend
  that use the system webview instead of bundling Chromium. Trigger words: tauri, rust
  desktop, system webview, tauri commands, tauri plugins.
license: Apache-2.0
compatibility: "Requires Rust toolchain and Node.js 18+"
metadata:
  author: terminal-skills
  version: "1.0.0"
  category: development
  tags: ["tauri", "desktop", "rust", "cross-platform", "webview"]

Tauri

Overview

Tauri is a framework for building cross-platform desktop and mobile applications using any web framework for the frontend and Rust for the backend. By using the system webview instead of bundling Chromium, Tauri produces binaries under 10MB with 30-80MB memory usage, featuring capability-based security, type-safe IPC commands, and a plugin ecosystem for native APIs.

Instructions

  • When setting up the architecture, build the UI with any web framework (React, Vue, Svelte, Solid) rendered in the system webview, and implement system access and heavy computation in Rust backend commands.
  • When implementing IPC, define Rust functions with #[tauri::command] for request-response patterns (called via invoke() from JS), and use events for push-style communication from backend to frontend.
  • When accessing native APIs, use Tauri plugins (@tauri-apps/plugin-fs, @tauri-apps/plugin-dialog, @tauri-apps/plugin-shell, @tauri-apps/plugin-notification) and define allowed capabilities in the capabilities/ directory.
  • When managing security, define capability-based permissions to restrict which APIs the frontend can access, set CSP headers, and use the isolation pattern for sandboxed environments.
  • When building for distribution, use cargo tauri build to produce platform-specific installers (NSIS/MSI for Windows, DMG for macOS, AppImage/deb for Linux) with code signing and notarization.
  • When implementing auto-updates, use @tauri-apps/plugin-updater with GitHub Releases or a custom server, with signature verification to prevent tampering.

Examples

Example 1: Build a note-taking app with encrypted local storage

User request: "Create a Tauri note-taking app with local file storage and encryption"

Actions:

  1. Set up a Svelte frontend with the Tauri project scaffolding
  2. Implement Rust commands for reading, writing, and encrypting note files using the aes-gcm crate
  3. Use @tauri-apps/plugin-store for app settings and @tauri-apps/plugin-dialog for file dialogs
  4. Configure capability permissions to allow only the required file system paths

Output: A lightweight note-taking app with encrypted local storage and native file dialogs, under 10MB.

Example 2: Build a system monitoring dashboard

User request: "Create a desktop app that shows CPU, memory, and disk usage in real time"

Actions:

  1. Define Rust commands using the sysinfo crate to collect system metrics
  2. Use Tauri events to push metric updates from backend to frontend every second
  3. Build a React dashboard with real-time charts displaying CPU, memory, and disk usage
  4. Add system tray icon with quick-view menu using @tauri-apps/plugin-tray

Output: A real-time system monitor with tray icon, using under 50MB of memory.

Guidelines

  • Use commands for request-response patterns and events for push notifications; do not mix them.
  • Define all allowed APIs in capabilities/ following the principle of least privilege.
  • Use tauri::State<Mutex<T>> for shared mutable state since Rust enforces thread safety.
  • Use @tauri-apps/plugin-store over localStorage for persistent data since it survives app updates.
  • Handle errors in Rust with Result<T, String> so error messages surface as rejected promises in JS.
  • Keep the frontend framework-agnostic since Tauri works with any web framework.
  • Use the auto-updater with signature verification for production apps.

当前收录版本

1.0.0

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • Tauri 框架开发指导覆盖完整生命周期,从架构设计到构建分发
  • 提供加密存储、系统监控等高质量端到端示例,实用性强
  • 适用于高频刚需的跨平台桌面应用开发场景
触发精准95/100

亮点

  • 触发词覆盖全面且边界清晰,有效区分其他桌面开发工具
  • description 位置正确,内容完整无截断
结构规范94/100

亮点

  • 文档结构清晰,包含完整的使用指南和最佳实践
  • 提供两个详实的端到端示例,frontmatter 完整规范
执行可靠90/100

亮点

  • 工具来源明确,参数使用正确,异常处理机制完善
  • 能力权限控制确保安全,不可逆操作有确认机制
证据可验 (前四项均值)93/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。