name: tauri-window description: Guidance for Tauri v2 window creation, configuration, lifecycle management, and custom titlebar UI. license: Complete terms in LICENSE.txt
When to use this skill
ALWAYS use this skill when the user mentions:
- Creating or configuring Tauri windows / 创建或配置 Tauri 窗口
- Window lifecycle, behaviors, or multi-window patterns / 窗口生命周期、行为或多窗口模式
- Custom titlebar or frameless window UI / 自定义标题栏或无边框窗口
Trigger phrases include:
- "window", "titlebar", "frameless", "multi-window", "window lifecycle"
- "窗口", "标题栏", "无边框", "多窗口", "生命周期"
How to use this skill
- Identify the window requirements and platform targets
- Map requirements to windows config and runtime APIs
- Provide custom titlebar structure and event handling guidance
- Validate lifecycle events and window state transitions
Outputs
- Window configuration and lifecycle plan / 窗口配置与生命周期方案
- Custom titlebar guidance / 自定义标题栏指导
Scope
- Boundary: Window creation, configuration, and lifecycle only
- v2 focus: Windows config and runtime window APIs
References
- https://v2.tauri.app/learn/window-customization/
- https://v2.tauri.app/zh-cn/learn/window-customization/
- https://v2.tauri.app/reference/config/#windows-config
Keywords
tauri v2, window, titlebar, lifecycle, windows config, frameless