Skip to main content
setting-up-tauri-projects Create and initialize Tauri v2 cross-platform desktop and mobile projects, covering prerequisites, create-tauri-app or manual CLI setup, directory structure, and config. USE WHEN scaffolding a new Tauri app, installing prerequisites on macOS/Windows/Linux, or picking a frontend (React, Vue, Svelte, vanilla JS/TS).
跳到安装 Skills Marketplace 发现并探索由社区构建的 Agent Skills
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Sheshiyer/skill-clusters --skill setting-up-tauri-projects命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
下载 Zip 下载中... 同仓库更多 Skills Arcplume runs Grok through the Grok Build CLI's own OAuth-authenticated session (grok login) for image generation, with strict preflight validation, secret-safe handling, and headless CLI-driven execution -- no separate XAI_API_KEY billing. Video falls back to the billed xAI API. USE WHEN a user wants to generate an image via a locally logged-in Grok Build CLI session, e.g. 'generate an image with grok', 'use grok build', or 'use my logged-in grok session'.
Shared reference for the Selemene cluster: the two report surfaces (deterministic Rust reports vs. narrative witness-pipeline readings), the @selemene/bridge CLI contract, the output manifest format, and non-prescriptive witnessing tone. USE WHEN deciding which Selemene surface to invoke or when routing between birth/compatibility/transit reports and solo/dyadic readings.
Route Selemene Engine tasks to the right surface: deterministic reports (birth/compatibility/transit) via selemene-core and the @selemene/bridge CLI, or narrative witness readings via selemene-report. USE WHEN the user wants anything under the Selemene/Noesis umbrella but has not named the exact surface.
name setting-up-tauri-projects description Create and initialize Tauri v2 cross-platform desktop and mobile projects, covering prerequisites, create-tauri-app or manual CLI setup, directory structure, and config. USE WHEN scaffolding a new Tauri app, installing prerequisites on macOS/Windows/Linux, or picking a frontend (React, Vue, Svelte, vanilla JS/TS). cluster tauri version 1.0.0
Setting Up Tauri Projects
What is Tauri?
Tauri is a framework for building tiny, fast binaries for all major desktop and mobile platforms. It combines any frontend that compiles to HTML/JS/CSS with Rust for the backend.
Key characteristics:
Minimal apps can be under 600KB (uses system webview, not bundled browser)
Built on Rust for memory, thread, and type safety
Supports virtually any frontend framework
Cross-platform: Windows, macOS, Linux, iOS, Android
System Prerequisites
macOS
xcode-select --install
Windows
Microsoft C++ Build Tools : Download from Visual Studio, select "Desktop development with C++"
WebView2 : Pre-installed on Windows 10 v1803+ (install manually if needed)
Rust toolchain :winget install Rustlang.Rustup
rustup default stable-msvc
Linux sudo apt update
sudo apt install libwebkit2gtk-4.1-dev build-essential curl wget file \
libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev
sudo pacman -S webkit2gtk-4.1 base-devel curl wget file openssl \
appmenu-gtk-module libappindicator-gtk3 librsvg xdotool
sudo dnf install webkit2gtk4.1-devel openssl-devel curl wget file \
libappindicator-gtk3-devel librsvg2-devel libxdo-devel \
@development-tools
Rust (All Platforms)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
winget install Rustlang.Rustup
Node.js Required only for JavaScript/TypeScript frontends. Install LTS version from nodejs.org.
Mobile Development (Optional)
rustup target add aarch64-linux-android armv7-linux-androideabi \
i686-linux-android x86_64-linux-android
Set environment variables: JAVA_HOME, ANDROID_HOME, NDK_HOME
rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim
brew install cocoapods
Creating a Project
Method 1: create-tauri-app (Recommended) Interactive scaffolding with framework templates.
npm create tauri-app@latest
pnpm create tauri-app
yarn create tauri-app
bun create tauri-app
cargo install create-tauri-app --locked
cargo create-tauri-app
sh <(curl https://create.tauri.app/sh)
irm https://create.tauri.app/ps | iex
Project name
Bundle identifier (e.g., com.example.app)
Frontend language: TypeScript/JavaScript, Rust, or .NET
Package manager
UI template: vanilla, Vue, Svelte, React, SolidJS, Angular, Preact, Yew, Leptos, Sycamore
cd your-project
npm install
npm run tauri dev
Method 2: Manual Setup (Existing Projects) Add Tauri to an existing frontend project.
npm install -D @tauri-apps/cli@latest
npx tauri init
App name
Window title
Frontend dev server URL (e.g., http://localhost:5173)
Frontend build output directory (e.g., dist)
Frontend dev command (e.g., npm run dev)
Frontend build command (e.g., npm run build)
Project Structure my-tauri-app/
├── package.json # Frontend dependencies
├── index.html # Frontend entry point
├── src/ # Frontend source code
│ └── main.js
└── src-tauri/ # Rust backend
├── Cargo.toml # Rust dependencies
├── Cargo.lock
├── build.rs # Tauri build script
├── tauri.conf.json # Main Tauri configuration
├── capabilities/ # Permission/capability definitions
├── icons/ # App icons (all formats)
└── src/
├── lib.rs # Main Rust code + mobile entry point
└── main.rs # Desktop entry point
Key Files tauri.conf.json - Primary configuration:
{
"productName" : "my-app" ,
"version" : "0.1.0" ,
"identifier" : "com.example.my-app" ,
"build" : {
"devUrl" : "http://localhost:5173" ,
"frontendDist" : "../dist"
} ,
"app" : {
"windows" : [ { "title" : "My App" , "width" : 800 , "height" : 600 } ]
}
}
src/lib.rs - Rust application code:
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run () {
tauri::Builder::default ()
.run (tauri::generate_context!())
.expect ("error while running tauri application" );
}
src/main.rs - Desktop entry point:
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows" )]
fn main () {
app_lib::run ();
}
capabilities/ - Define what commands JavaScript can invoke:
{
"identifier" : "main-capability" ,
"windows" : [ "main" ] ,
"permissions" : [ "core:default" ]
}
Common Commands
npm run tauri dev
npm run tauri build
npm run tauri icon path/to/icon.png
npm run tauri android init
npm run tauri ios init
npm run tauri android dev
npm run tauri ios dev
Quick Reference: Supported Frontend Templates Template Languages Notes vanilla JS, TS No framework react JS, TS Vite-based vue JS, TS Vite-based svelte JS, TS Vite-based solid JS, TS Vite-based angular TS Angular CLI preact JS, TS Vite-based yew Rust Rust WASM frontend leptos Rust Rust WASM frontend sycamore Rust Rust WASM frontend