npx skills add https://github.com/hairyf/skills --skill tauriTauri 允许您使用 Rust 核心进程和在操作系统 WebView 中运行的前端来构建桌面(和移动)应用程序。在搭建项目、连接命令和事件、配置能力和权限或编写插件时,请使用这些技能。
此技能基于 Tauri v2,生成于 2026-01-30。
| 主题 | 描述 | 参考链接 |
|---|---|---|
| 架构 | 核心 crate、WRY/TAO、工具链、插件 | core-architecture |
| 进程间通信 | 事件(发射后不管)与命令(调用/响应),各自的使用时机 | core-ipc |
| 进程模型 | 核心进程与 WebView 进程,安全影响 | core-process-model |
| 项目结构 | src-tauri 布局、tauri.conf.json、能力、构建流程 | core-project-structure |
| 应用大小 | 为何小巧,Cargo 发布配置(LTO、strip、opt-level) |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| concept-size |
| 进程间通信模式 | 棕地模式(默认)与隔离模式(沙盒、加密) | concept-ipc-patterns |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| 创建项目 | create-tauri-app 与 tauri init,开发服务器 URL | start-create-project |
| 先决条件 | 系统依赖、Rust、Node、WebView2、移动端(Android/iOS) | start-prerequisites |
| 前端 | 静态托管模型,Vite/Next/Nuxt/SvelteKit/Leptos/Trunk | start-frontend |
| 迁移 | 从 Tauri 1.x 或 2 beta 升级,migrate 命令 | start-migrate |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| 配置文件 | tauri.conf.json、平台覆盖配置、Cargo.toml、package.json | develop-configuration-files |
| 命令 | #[tauri::command]、invoke、参数、错误、异步、State、通道 | develop-commands |
| 事件与通道 | 发射/监听、全局与特定 WebView、使用 Channel 进行流式传输 | develop-events-and-channels |
| 状态管理 | app.manage()、命令中的 State<T>、Mutex | develop-state-management |
| 窗口 | 创建窗口(配置 vs WebviewWindowBuilder)、标签、URL、可见性 | develop-windows |
| 图标 | tauri icon 命令、bundle.icon、平台格式 | develop-icons |
| 资源 | 捆绑资源、解析路径、$RESOURCE、文件系统权限 | develop-resources |
| 侧载程序 | externalBin、shell 插件、从 Rust/JS 生成、权限 | develop-sidecar |
| 调试 | 开发与构建、Rust 控制台、WebView 开发者工具、RUST_BACKTRACE | develop-debug |
| 测试 | 模拟运行时、WebDriver 端到端测试、CI | develop-tests |
| 测试模拟 | mockIPC、mockWindows、clearMocks(前端测试) | develop-tests-mocking |
| 测试 WebDriver | tauri-driver、平台驱动程序、Selenium/WebdriverIO、CI | develop-tests-webdriver |
| 更新依赖 | npm/Cargo 版本同步,tauri 和插件 | develop-updating-dependencies |
| 插件移动端 | Android(Kotlin)、iOS(Swift)、桌面端与移动端实现 | develop-plugins-mobile |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| 能力 | 哪些权限适用于哪些窗口;能力文件、远程、平台 | security-capabilities |
| 权限 | 允许/拒绝命令、作用域、权限集;插件与应用权限 | security-permissions |
| 作用域 | 按命令或全局允许/拒绝,路径/URL 模式 | security-scope |
| 内容安全策略 | 内容安全策略配置、script-src、style-src | security-csp |
| HTTP 头 | 用于 WebView 响应的 CORS、COOP、Permissions-Policy | security-http-headers |
| 运行时权限 | 核心进程在每次调用时强制执行权限;拒绝 = 永不运行 | security-runtime-authority |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| 安全生命周期 | 上游、开发、构建、运行时;依赖、审计、开发服务器 | best-practices-security-lifecycle |
| 编写插件权限 | 自动生成的允许/拒绝、权限文件、默认集、作用域模式 | best-practices-writing-plugin-permissions |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| 插件 | 插件开发、生命周期钩子、命令、权限、状态 | features-plugins |
| 官方插件概览 | dialog、fs、shell、store、updater 等;各自的使用时机 | features-official-plugins-overview |
| 深度链接 | 自定义 URL 方案、App/Universal Links、单实例 + argv | features-deep-linking |
| 更新器 | 应用内更新 — 检查、下载、安装、签名、静态/动态端点 | features-updater |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| 打包 | build、bundle、安装程序(DMG、MSI、AppImage 等)、签名概览 | distribute-packaging |
| 签名 | 各平台代码签名(macOS、Windows、Linux、Android、iOS) | distribute-signing |
| 流水线 | GitHub Actions(tauri-action)、CI 签名、CrabNebula Cloud | distribute-pipelines |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| 菜单与托盘 | 窗口菜单、系统托盘、Menu/TrayIcon、预定义项 | learn-windows-menus-tray |
| 窗口自定义 | 自定义标题栏、装饰、data-tauri-drag-region、透明(macOS) | learn-window-customization |
| 启动画面 | 额外窗口、主窗口可见/隐藏、设置任务、准备就绪后关闭 | learn-splashscreen |
| 侧载程序 Node.js | Node 应用作为二进制文件(pkg)、externalBin、shell 插件 | learn-sidecar-nodejs |
| 使用插件权限 | 添加插件、能力、允许命令、默认权限 | learn-using-plugin-permissions |
| 按窗口/平台配置能力 | 不同窗口的不同能力;平台数组 | learn-capabilities-windows-platforms |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| 命令行界面 | dev、build、icon、init、migrate、bundle | reference-cli |
| 环境变量 | CI、配置深度、签名、Apple/Windows/Linux、钩子环境 | reference-environment-variables |
| WebView 版本 | WebView2(Windows)、WKWebView(macOS/iOS)、WebKitGTK(Linux) | reference-webview-versions |
| 核心权限(访问控制列表) | core:default、app、event、window、path、menu、tray、resources | reference-acl-core-permissions |
每周安装量
144
代码仓库
GitHub 星标数
6
首次出现
2026年2月2日
安全审计
安装于
cursor138
claude-code132
opencode74
codex74
gemini-cli73
github-copilot73
Tauri lets you build desktop (and mobile) apps with a Rust Core process and a frontend running in the OS WebView. Use these skills when scaffolding projects, wiring commands and events, configuring capabilities and permissions, or authoring plugins.
The skill is based on Tauri v2, generated at 2026-01-30.
| Topic | Description | Reference |
|---|---|---|
| Architecture | Core crates, WRY/TAO, tooling, plugins | core-architecture |
| IPC | Events (fire-and-forget) vs Commands (invoke/response), when to use each | core-ipc |
| Process Model | Core process vs WebView processes, security implications | core-process-model |
| Project Structure | src-tauri layout, tauri.conf.json, capabilities, build flow | core-project-structure |
| App Size | Why small, Cargo release profile (LTO, strip, opt-level) | concept-size |
| IPC Patterns | Brownfield (default) vs Isolation (sandbox, encrypt) | concept-ipc-patterns |
| Topic | Description | Reference |
|---|---|---|
| Create Project | create-tauri-app vs tauri init, dev server URL | start-create-project |
| Prerequisites | System deps, Rust, Node, WebView2, mobile (Android/iOS) | start-prerequisites |
| Frontend | Static host model, Vite/Next/Nuxt/SvelteKit/Leptos/Trunk | start-frontend |
| Migrate | Upgrading from Tauri 1.x or 2 beta, migrate command | start-migrate |
| Topic | Description | Reference |
|---|---|---|
| Configuration Files | tauri.conf.json, platform overrides, Cargo.toml, package.json | develop-configuration-files |
| Commands | #[tauri::command], invoke, args, errors, async, State, channels | develop-commands |
| Events and Channels | Emit/listen, global vs webview-specific, streaming with Channel | develop-events-and-channels |
| State Management | app.manage(), State<T> in commands, Mutex | develop-state-management |
| Windows | Creating windows (config vs WebviewWindowBuilder), label, url, visible | develop-windows |
| Icons |
| Topic | Description | Reference |
|---|---|---|
| Capabilities | Which permissions apply to which windows; capability files, remote, platforms | security-capabilities |
| Permissions | Allow/deny commands, scopes, permission sets; plugin vs app permissions | security-permissions |
| Scopes | allow/deny per command or global, path/URL patterns | security-scope |
| CSP | Content Security Policy config, script-src, style-src | security-csp |
| HTTP Headers | CORS, COOP, Permissions-Policy for webview responses | security-http-headers |
| Runtime Authority |
| Topic | Description | Reference |
|---|---|---|
| Security Lifecycle | Upstream, development, build, runtime; deps, audit, dev server | best-practices-security-lifecycle |
| Writing Plugin Permissions | Autogenerated allow/deny, permission files, default set, scope schema | best-practices-writing-plugin-permissions |
| Topic | Description | Reference |
|---|---|---|
| Plugins | Plugin development, lifecycle hooks, commands, permissions, state | features-plugins |
| Official Plugins Overview | dialog, fs, shell, store, updater, and others; when to use which | features-official-plugins-overview |
| Deep Linking | Custom URL scheme, App/Universal Links, single-instance + argv | features-deep-linking |
| Updater | In-app updates — check, download, install, signing, static/dynamic endpoints | features-updater |
| Topic | Description | Reference |
|---|---|---|
| Packaging | build, bundle, installers (DMG, MSI, AppImage, etc.), signing overview | distribute-packaging |
| Signing | Code signing per platform (macOS, Windows, Linux, Android, iOS) | distribute-signing |
| Pipelines | GitHub Actions (tauri-action), CI signing, CrabNebula Cloud | distribute-pipelines |
| Topic | Description | Reference |
|---|---|---|
| Menus and Tray | Window menu, system tray, Menu/TrayIcon, predefined items | learn-windows-menus-tray |
| Window Customization | Custom titlebar, decorations, data-tauri-drag-region, transparent (macOS) | learn-window-customization |
| Splashscreen | Extra window, visible/hidden main, setup tasks, close when ready | learn-splashscreen |
| Sidecar Node.js | Node app as binary (pkg), externalBin, shell plugin | learn-sidecar-nodejs |
| Using Plugin Permissions | Add plugin, capability, allow commands, default permissions | learn-using-plugin-permissions |
| Topic | Description | Reference |
|---|---|---|
| CLI | dev, build, icon, init, migrate, bundle | reference-cli |
| Environment Variables | CI, config depth, signing, Apple/Windows/Linux, hook env | reference-environment-variables |
| WebView Versions | WebView2 (Windows), WKWebView (macOS/iOS), WebKitGTK (Linux) | reference-webview-versions |
| Core Permissions (ACL) | core:default, app, event, window, path, menu, tray, resources | reference-acl-core-permissions |
Weekly Installs
144
Repository
GitHub Stars
6
First Seen
Feb 2, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
cursor138
claude-code132
opencode74
codex74
gemini-cli73
github-copilot73
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
118,000 周安装
AI图像生成与编辑Skill:使用FAL.AI API生成和编辑高质量图像
81 周安装
测试质量分析指南:检测异味、提升覆盖率与测试最佳实践
81 周安装
规范驱动开发 (Spec-Driven Development) | 自适应项目规划与执行 | Tech Lead's Club
81 周安装
PPTX文档自动化技能:使用Python和Node.js编程创建编辑PowerPoint演示文稿
81 周安装
project-discover:AI辅助项目逆向工程与知识沉淀工具,一键建立项目SSOT
81 周安装
Angular 17+ 现代开发规范:独立组件、Signal 状态管理与原生控制流最佳实践
81 周安装
| tauri icon command, bundle.icon, platform formats |
| develop-icons |
| Resources | Bundled resources, resolve path, $RESOURCE, fs permissions | develop-resources |
| Sidecar | externalBin, shell plugin, spawn from Rust/JS, permissions | develop-sidecar |
| Debug | dev vs build, Rust console, WebView devtools, RUST_BACKTRACE | develop-debug |
| Tests | Mock runtime, WebDriver E2E, CI | develop-tests |
| Tests Mocking | mockIPC, mockWindows, clearMocks (frontend tests) | develop-tests-mocking |
| Tests WebDriver | tauri-driver, platform drivers, Selenium/WebdriverIO, CI | develop-tests-webdriver |
| Updating Dependencies | npm/Cargo version sync, tauri and plugins | develop-updating-dependencies |
| Plugins Mobile | Android (Kotlin), iOS (Swift), desktop vs mobile impl | develop-plugins-mobile |
| Core enforces permissions on every invoke; denied = never run |
| security-runtime-authority |
| Capabilities per Window/Platform | Different capabilities per window; platforms array | learn-capabilities-windows-platforms |