Skip to content
Back to skills

Tauri Rust

ASecurity

Implement Tauri 2 Rust commands, managed state, validation, errors, and native integrations. Use when changing `src-tauri`, exposing commands, or reviewing Rust-side application logic.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
developmentrustgoapifrontendsecurity

Works with

  • api

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add fxckcode/tauri-skills --skill tauri-rust --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tauri Rust?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tauri Rust
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fxckcode-tauri-rust/badge)](https://www.skillsdirectory.com/skills/fxckcode-tauri-rust)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tauri-rust
description: Implement Tauri 2 Rust commands, managed state, validation, errors, and native integrations. Use when changing `src-tauri`, exposing commands, or reviewing Rust-side application logic.
---

# Tauri Rust

## Workflow

1. Read `src-tauri/Cargo.toml`, `lib.rs`/`main.rs`, command registration, state setup, and existing error conventions.
2. Define a narrow command with serializable arguments and return values. Validate paths, URLs, sizes, identifiers, and authorization context before side effects.
3. Use [managed state](https://v2.tauri.app/develop/state-management/) for shared application state; choose synchronization deliberately and avoid holding locks across slow I/O or callbacks. Note that an unregistered `State` type rejects the command rather than panicking, and the requirement to return `Result` in `async` commands applies specifically when they take borrowed arguments.
4. Return structured, user-safe errors to the frontend while logging diagnostic context without secrets.
5. Register the command exactly where the application already registers commands, then run `cargo fmt --check`, `cargo check`, and relevant tests.

## Safe defaults

- Prefer standard Rust error handling and typed domain errors over `unwrap()` in command paths.
- Canonicalize and constrain filesystem paths before access; do not accept a frontend path as trusted.
- Keep blocking work off the UI thread and use async only where the operation and runtime support it.
- Use the [Tauri 2 API reference](https://docs.rs/tauri/2/tauri/) for signatures matching the crate actually installed; verify newer crate versions against their corresponding docs.rs version.

A command is a security boundary, not merely a convenience wrapper. Pair implementation changes with capability/permission review.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.