tauri2-react-rust — community tauri2-react-rust, dida-clone, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0

关于此技能

Perfect for Cross-Platform Agents needing advanced desktop application development capabilities with Tauri 2, React, and Rust. Guides development of cross-platform desktop apps with Tauri 2, TypeScript, React, and Rust. Use when building Tauri apps, implementing IPC, designing Rust backend or TypeScript/React frontend, when researching or cloning a website (open site, snapshot elements), when verifying local dev or built frontend in browser, or when the user mentions Tauri, Tauri 2, Rust backend, React frontend, desktop app architecture, invoke/commands, cross-platform, 调研网站, 验证效果, agent-browser.

jameingh jameingh
[0]
[0]
更新于: 3/12/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 7/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
7/11
Quality Score
36
Canonical Locale
zh
Detected Body Locale
zh

Perfect for Cross-Platform Agents needing advanced desktop application development capabilities with Tauri 2, React, and Rust. Guides development of cross-platform desktop apps with Tauri 2, TypeScript, React, and Rust. Use when building Tauri apps, implementing IPC, designing Rust backend or TypeScript/React frontend, when researching or cloning a website (open site, snapshot elements), when verifying local dev or built frontend in browser, or when the user mentions Tauri, Tauri 2, Rust backend, React frontend, desktop app architecture, invoke/commands, cross-platform, 调研网站, 验证效果, agent-browser.

核心价值

Empowers agents to build robust cross-platform desktop applications using Tauri 2, TypeScript, React, and Rust, providing guidance on architecture, IPC, and best practices for a seamless development experience with TypeScript and Rust integration.

适用 Agent 类型

Perfect for Cross-Platform Agents needing advanced desktop application development capabilities with Tauri 2, React, and Rust.

赋予的主要能力 · tauri2-react-rust

Designing and implementing Tauri application architectures with IPC communications
Developing Rust backend commands, state management, and error handling
Creating TypeScript/React frontend applications with type safety and invoke encapsulation
Configuring security features like allowlists and debugging cross-platform applications

! 使用限制与门槛

  • Requires knowledge of Tauri 2, TypeScript, React, and Rust
  • Limited to cross-platform desktop application development
  • Dependent on Tauri 2 and Rust for backend functionality

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

tauri2-react-rust 是什么?

Perfect for Cross-Platform Agents needing advanced desktop application development capabilities with Tauri 2, React, and Rust. Guides development of cross-platform desktop apps with Tauri 2, TypeScript, React, and Rust. Use when building Tauri apps, implementing IPC, designing Rust backend or TypeScript/React frontend, when researching or cloning a website (open site, snapshot elements), when verifying local dev or built frontend in browser, or when the user mentions Tauri, Tauri 2, Rust backend, React frontend, desktop app architecture, invoke/commands, cross-platform, 调研网站, 验证效果, agent-browser.

如何安装 tauri2-react-rust?

运行命令:npx killer-skills add jameingh/dida-clone/tauri2-react-rust。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

tauri2-react-rust 适用于哪些场景?

典型场景包括:Designing and implementing Tauri application architectures with IPC communications、Developing Rust backend commands, state management, and error handling、Creating TypeScript/React frontend applications with type safety and invoke encapsulation、Configuring security features like allowlists and debugging cross-platform applications。

tauri2-react-rust 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

tauri2-react-rust 有哪些限制?

Requires knowledge of Tauri 2, TypeScript, React, and Rust;Limited to cross-platform desktop application development;Dependent on Tauri 2 and Rust for backend functionality。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add jameingh/dida-clone/tauri2-react-rust。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    tauri2-react-rust 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Imported Repository Instructions

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

Supporting Evidence

tauri2-react-rust

安装 tauri2-react-rust,这是一款面向AI agent workflows and automation的 AI Agent Skill。支持 Claude Code、Cursor、Windsurf,一键安装。

SKILL.md
Readonly
Imported Repository Instructions
The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.
Supporting Evidence

Tauri 2 + React + Rust 跨平台开发

基于 Tauri 2、TypeScript、React、Rust 技术栈的跨平台桌面应用开发指引。整合架构、IPC、后端与前端最佳实践。

何时使用本 Skill

  • 设计或实现 Tauri 应用架构、IPC 通信
  • 编写 Rust 后端命令、状态、错误处理
  • 编写 TypeScript/React 前端、类型与 invoke 封装
  • 新建项目、实现功能、异步/复杂类型场景
  • 配置安全(allowlist)、构建与调试
  • 调研目标网站:克隆/仿站时,自动打开网站并查看页面元素、结构、交互,指导实现
  • 验证开发效果:开发完成后,自动打开本地开发站点或打包前端,验证元素与交互是否按预期完成

开发流程建议

  1. 先设计后编码:brainstorming → 架构设计 → 实现
  2. 测试驱动:先写测试再写实现
  3. 类型一致:Rust 模型与 TypeScript 类型严格对应
  4. 异步优先:I/O 用 async/await;CPU 密集用 spawn_blocking
  5. 安全第一:配置 allowlist、校验并规范化输入(如路径)

项目结构

project/
├── src-tauri/                 # Rust 后端
│   ├── src/
│   │   ├── main.rs            # 入口,注册 commands、manage state
│   │   ├── lib.rs             # 模块导出
│   │   ├── commands/          # IPC 命令(按域拆分)
│   │   ├── models/            # 与前端共享的数据结构
│   │   ├── db/                # 数据库访问(Repository 模式)
│   │   ├── state.rs           # AppState
│   │   └── error.rs           # 统一可序列化错误类型
│   ├── Cargo.toml
│   └── tauri.conf.json
├── src/                       # 前端 React + TypeScript
│   ├── components/            # 原子化、职责单一
│   ├── hooks/                 # React Query 等服务器状态
│   ├── services/              # 封装 invoke 的 API 层
│   ├── store/                 # Zustand 等 UI 状态
│   ├── types/                 # 与 Rust 模型一致的 TS 类型
│   └── App.tsx
├── package.json
└── tsconfig.json

IPC 通信

前端 → 后端:Command

typescript
1// src/services/xxx.ts 2import { invoke } from '@tauri-apps/api/core'; 3 4export async function getItems(): Promise<Item[]> { 5 return await invoke<Item[]>('get_items'); 6}
rust
1// src-tauri/src/commands/xxx.rs 2#[tauri::command] 3pub async fn get_items(state: State<'_, AppState>) -> Result<Vec<Item>, AppError> { 4 let db = state.db.lock().map_err(|_| AppError::Lock)?; 5 Ok(repo::list(&db)?) 6}

后端 → 前端:Event

rust
1use tauri::Manager; 2app.emit_all("event-name", payload).ok();
typescript
1import { listen } from '@tauri-apps/api/event'; 2const unlisten = await listen<T>('event-name', (e) => { ... }); 3// 组件卸载时 unlisten()

契约一致

  • 所有跨边界数据结构在 Rust(models/)与 TypeScript(types/)中成对定义
  • 使用 serde 与 TS 接口一致命名与类型(如 snake_case ↔ 前端可选 camelCase 转换)

后端 (Rust) 要点

  • 状态AppStatemain.rsmanage(),命令内用 State<'_, AppState> 注入
  • 错误:统一错误类型实现 serde::Serialize,便于前端展示;用 thiserror + From 收敛
  • I/O:异步命令用 async + tokio;CPU 密集用 tokio::task::spawn_blocking
  • 路径/输入:校验类型与范围,必要时 canonicalize 并限制在允许目录内

深层 Rust 能力(所有权、并发、性能、测试)参考:Rust 专家级实践(rust-pro、rust-async-patterns)。

前端 (React + TypeScript) 要点

  • 服务层src/services/ 统一用 invoke 调用命令,返回类型与 Rust 一致
  • 状态:UI 状态用 Zustand(store/);服务端数据用 React Query(hooks/
  • 错误:对 invoke 的 Promise 做 try/catch,将后端错误转为用户可读信息
  • 类型:严格 TS 配置;泛型与工具类型保证与 Rust 契约一致

复杂类型与架构参考:TypeScript 专家级实践(typescript-pro)。

安全

  • allowlist:在 tauri.conf.json 中按需开启 fsshell 等,并设置 scope
  • 命令参数:校验类型、长度、业务规则;路径类参数做规范化与白名单校验

开发与构建

bash
1npm run tauri dev # 开发 2npm run tauri build # 生产构建

测试

  • Rust:单元测试放在 commands/db/ 等模块内;集成测试可放在 src-tauri/tests/
  • 前端:使用 @tauri-apps/api/mocksmockIPC 模拟命令返回值,再测组件与 hooks
  • 调研与验证:见下一节 agent-browser 流程。

调研与验证:agent-browser

调研验证阶段用浏览器自动化(如 agent-browser)可显著提效:克隆网站时先打开目标站调研元素,开发完成后打开本地站点验证效果。

核心流程(通用)

  1. 打开页面agent-browser --cdp 9222 open <url>
  2. 获取可交互元素agent-browser --cdp 9222 snapshot -i → 得到 @e1@e2 等引用及类型/文案
  3. 操作:用 refs 执行 clickfillselectcheck
  4. 页面变化后:再次 snapshot -i 获取新 refs,再继续操作或断言

场景一:调研目标网站(克隆/仿站)

目标:了解要仿造的网站的 DOM 结构、可交互元素、文案与交互路径。

bash
1agent-browser --cdp 9222 open https://目标网站.com/页面 2agent-browser --cdp 9222 snapshot -i 3# 根据输出识别:导航、列表、表单、按钮等对应 @e1 @e2 ... 4# 需要文案或结构时: 5agent-browser --cdp 9222 get text @e1 6agent-browser --cdp 9222 get text body > page.txt 7# 可选:截图留档 8agent-browser --cdp 9222 screenshot

据此确定组件划分、数据结构与 IPC 设计,再进入开发。

场景二:验证本地开发效果

目标:开发完成后,在浏览器中打开本地前端,确认元素存在、可点击、表单可填写、流程可走通。

bash
1# 先启动本地前端(另起终端):npm run dev 或 npm run tauri dev,记下 URL(如 http://localhost:1420 2agent-browser --cdp 9222 open http://localhost:1420 3agent-browser --cdp 9222 snapshot -i 4# 按设计逐项验证:点击侧栏、打开列表、新建任务、填写表单、提交等 5agent-browser --cdp 9222 click @e1 6agent-browser --cdp 9222 wait --load networkidle 7agent-browser --cdp 9222 snapshot -i 8agent-browser --cdp 9222 fill @e2 "测试任务" 9agent-browser --cdp 9222 click @e3 10# 需要时截图或保存页面文本做回归 11agent-browser --cdp 9222 screenshot

Tauri dev 为 http://localhost:1420

常用命令速查

用途命令
打开页面agent-browser --cdp 9222 open <url>
可交互元素agent-browser --cdp 9222 snapshot -i
点击/填写agent-browser --cdp 9222 click @e1agent-browser --cdp 9222 fill @e2 "内容"
等待agent-browser --cdp 9222 wait --load networkidleagent-browser --cdp 9222 wait 2000
取文案agent-browser --cdp 9222 get text @e1agent-browser --cdp 9222 get text body > out.txt
截图agent-browser --cdp 9222 screenshotagent-browser --cdp 9222 screenshot --full

注意:页面跳转或 DOM 更新后必须重新 snapshot -i,否则旧 ref 会失效。完整命令与语义定位符见 agent-browser SKILL

项目专用约定(本仓库)

  • 前端:React 19、TypeScript、Tailwind CSS、Zustand、React Query
  • 后端:Tauri 2、Rust、SQLite(如 rusqlite)
  • 更多细节见项目根目录下的 .agent/rules/Tauri跨平台开发助手.md

参考资源

用途参考
Tauri 官方https://tauri.app/ 、Tauri 2 文档与 API
Rust 深度rust-pro、rust-async-patterns 等 skill
TypeScript 深度typescript-pro、typescript-advanced-types 等 skill
流程与关键词项目内或个人维护的 tauri-skills-quick-reference
浏览器自动化agent-browser SKILL(完整命令、语义定位符、多会话等)

常见场景速查

场景侧重
新建项目架构设计 → 目录与 tauri.conf → 第一个 command + 前端 invoke
实现功能先定 Rust 模型与 TS 类型 → 命令与 services → 组件与状态
调研仿站agent-browser --cdp 9222 open 目标站 → snapshot -i → get text / screenshot,再设计组件与数据
验证效果启动本地前端 → agent-browser --cdp 9222 open localhost → snapshot -i → click/fill 逐项验证
异步操作Rust async + spawn_blocking 区分;前端 debounce/批量
复杂类型泛型与 trait(Rust)+ 泛型与工具类型(TS)保持一致

相关技能

寻找 tauri2-react-rust 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

为prompts.chat的信息反馈系统生成可定制的插件小部件

149.6k
0
AI

flags

Logo of vercel
vercel

React 框架

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

Python中具有强大GPU加速的张量和动态神经网络

98.6k
0
开发者工具