Optimize Tauri 2 backend architecture, command surfaces, IPC streams, and Rust development ergonomics.
Independent source repository, also distributed through lovstudio dev-skills — by lovstudio.ai
npx skills add lovstudio/optimize-tauri-backend-skillThe aggregate bundle remains available:
npx skills add lovstudio/dev-skillsOr through Claude Code plugin marketplace:
/plugin marketplace add lovstudio/dev-skills
/plugin install dev-tools@lovstudio-dev
- Explains why Rust-side Tauri changes restart the native app during
tauri dev. - Adds frontend-focused
tauri dev --no-watchworkflows. - Splits oversized
src-tauri/src/lib.rsinto real Rust modules. - Moves
generate_handler!into a stable command registry. - Reduces excessive
#[tauri::command]counts through typed domain routers. - Centralizes frontend
invoke()calls through an app adapter. - Adds stream id + cancel handling for long
ChannelIPC calls. - Preserves dev restart state with hash/session resume and save flushing.
/lovstudio-optimize-tauri-backend 分析这个 Tauri app 的 Rust 重启问题,并优化后端结构
/lovstudio-optimize-tauri-backend lib.rs 太大、commands 太多,帮我降到 100 个以内
/lovstudio-optimize-tauri-backend fix Tauri stale callback warnings after HMR/reload
The skill guides the agent to report:
- current
lib.rsline count; - largest Rust backend files;
- total
#[tauri::command]count; - whether startup code owns command registration;
- whether frontend invokes are centralized;
- which long IPC streams need cancellation;
- verification results from
cargo fmt,cargo check, and TypeScript checks when allowed by the target repo.
No script dependencies. This is an instruction-only development skill.
MIT