一键导入
tauri
Tauri framework for building cross-platform desktop and mobile apps. Use for desktop app development, native integrations, Rust backend, and web-based UIs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Tauri framework for building cross-platform desktop and mobile apps. Use for desktop app development, native integrations, Rust backend, and web-based UIs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Comprehensive backend development guide for Langfuse's Next.js 14/tRPC/Express/TypeScript monorepo. Use when creating tRPC routers, public API endpoints, BullMQ queue processors, services, or working with tRPC procedures, Next.js API routes, Prisma database access, ClickHouse analytics queries, Redis queues, OpenTelemetry instrumentation, Zod v4 validation, env.mjs configuration, tenant isolation patterns, or async patterns. Covers layered architecture (tRPC procedures → services, queue processors → services), dual database system (PostgreSQL + ClickHouse), projectId filtering for multi-tenant isolation, traceException error handling, observability patterns, and testing strategies (Jest for web, vitest for worker).
Define database models with clear naming, appropriate data types, constraints, relationships, and validation at multiple layers. Use this skill when creating or modifying database model files, ORM classes, schema definitions, or data model relationships. Apply when working with model files (e.g., models.py, models/, ActiveRecord classes, Prisma schema, Sequelize models), defining table structures, setting up foreign keys and relationships, configuring cascade behaviors, implementing model validations, adding timestamps, or working with database constraints (NOT NULL, UNIQUE, foreign keys). Use for any task involving data integrity enforcement, relationship definitions, or model-level data validation.
Implement authentication and authorization with Better Auth - a framework-agnostic TypeScript authentication framework. Features include email/password authentication with verification, OAuth providers (Google, GitHub, Discord, etc.), two-factor authentication (TOTP, SMS), passkeys/WebAuthn support, session management, role-based access control (RBAC), rate limiting, and database adapters. Use when adding authentication to applications, implementing OAuth flows, setting up 2FA/MFA, managing user sessions, configuring authorization rules, or building secure authentication systems for web applications.
Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test websites, automate browser interactions, validate web functionality, or perform any browser-based testing.
Optimize Next.js App Router data fetching by converting slow client-side fetching to fast server-side fetching using React Server Components (RSC). Use when: - User reports slow initial page load with loading spinners - Page uses useEffect + useState for data fetching - StoreContext/useStore pattern causes waterfall fetching - Need to improve SEO (content not in initial HTML) - Converting "use client" pages to Server Components Triggers: "slow loading", "optimize fetching", "SSR data", "RSC optimization", "remove loading spinner", "server-side fetch", "convert to server component", "data fetch lambat", "loading lama"
Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.
基于 SOC 职业分类
| name | tauri |
| description | Tauri framework for building cross-platform desktop and mobile apps. Use for desktop app development, native integrations, Rust backend, and web-based UIs. |
Comprehensive assistance with Tauri development, generated from official documentation.
This skill should be triggered when:
Tauri uses a Core Process (Rust) and WebView Process (HTML/CSS/JS) architecture:
Two IPC primitives:
invoke() API (WebView → Core only)[build-dependencies]
tauri-build = "2.0.0"
[dependencies]
tauri = { version = "2.0.0" }
{
"tauri": {
"bundle": {
"windows": {
"certificateThumbprint": "A1B1A2B2A3B3A4B4A5B5A6B6A7B7A8B8A9B9A0B0",
"digestAlgorithm": "sha256",
"timestampUrl": "http://timestamp.comodoca.com"
}
}
}
}
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Tauri Development Debug",
"cargo": {
"args": [
"build",
"--manifest-path=./src-tauri/Cargo.toml",
"--no-default-features"
]
},
"preLaunchTask": "ui:dev"
}
]
}
let data = app.state::<AppData>();
name: 'publish'
on:
push:
tags:
- 'app-v*'
# Trunk.toml
[watch]
ignore = ["./src-tauri"]
[serve]
ws_protocol = "ws"
[server.azurekv]
url = "https://<KEY_VAULT_NAME>.vault.azure.net/certificates/<CERTIFICATE_NAME>"
{
"tauri": {
"bundle": {
"windows": {
"signCommand": "relic sign -c relic.conf -f -o \"%1\""
}
}
}
}
use tauri::Manager;
#[tauri::command]
fn open_devtools(window: tauri::Window) {
window.open_devtools();
}
@Command
fun download(invoke: Invoke) {
val args = invoke.parseArgs(DownloadArgs::class.java)
// Command implementation
invoke.resolve()
}
This skill includes comprehensive documentation organized into 9 categories:
Contains: 7 pages covering foundational architecture
vscode-lldb, launch.json configuration, Windows debuggerWhen to use: Understanding Tauri's design philosophy, debugging setup, architecture decisions
Contains: 13 pages on development workflows
When to use: Setting up development environment, debugging strategies, mobile development
Contains: 8 pages on app distribution
When to use: Preparing apps for release, code signing, CI/CD pipelines, production builds
Contains: Quick start guides and initial setup instructions
When to use: Starting new Tauri projects, onboarding new developers
Contains: Plugin development and integration guides
When to use: Extending Tauri with native functionality, integrating third-party libraries
Contains: API references and configuration schemas
When to use: Looking up specific API methods, configuration properties, CLI flags
Contains: Security best practices and patterns
When to use: Hardening applications, security audits, implementing secure features
Contains: Step-by-step implementation guides
When to use: Learning by example, implementing common patterns
Contains: Miscellaneous documentation not categorized above
When to use: Troubleshooting unusual issues, platform-specific implementations
getting_started.md for project setup and basic conceptscore_concepts.md → Process Model and IPC sectionsdevelopment.md → Debug in VS Codetutorials.mdCommon beginner questions:
getting_started.mdcore_concepts.md → Process Modelcore_concepts.md → IPC → Commandsplugins.md for custom native functionalitydevelopment.md for debugging and DevToolsreference.md for API detailscore_concepts.mdCommon intermediate questions:
plugins.md → Plugin Developmentdevelopment.md → CrabNebula DevToolsreference.mdsecurity.md for production-ready securityplugins.mddistribution.mdother.mdCommon advanced questions:
distribution.md → Windows Code Signingdevelopment.md → Mobile Plugin Developmentsecurity.mdWhen asking Claude for help with Tauri:
tauri.conf.json if relevantOrganized documentation extracted from official Tauri sources (https://tauri.app/). These files contain:
Helper scripts for common automation tasks:
Add your custom scripts here for project-specific automation
Templates, boilerplate, and example projects:
Add your templates and boilerplate code here
#[tauri::command]
fn greet(name: &str) -> String {
format!("Hello, {}!", name)
}
// In main.rs
fn main() {
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![greet])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
import { invoke } from '@tauri-apps/api/core';
const greeting = await invoke('greet', { name: 'World' });
console.log(greeting); // "Hello, World!"
// From Rust
app.emit_all("event-name", Payload { message: "Hello".into() }).unwrap();
// Listening in JavaScript
import { listen } from '@tauri-apps/api/event';
const unlisten = await listen('event-name', (event) => {
console.log(event.payload.message);
});
# Linux/macOS
RUST_BACKTRACE=1 tauri dev
# Windows (PowerShell)
$env:RUST_BACKTRACE=1; tauri dev
npm run tauri build -- --debug
use tauri::Manager;
window.open_devtools();
window.close_devtools();
To refresh this skill with updated documentation:
configs/tauri.jsonscripts/ and assets/