tauri-syntax-commands skillA
tauri-syntax-commands is agent-read markdown (skill) from impertio-studio/tauri-2-claude-skill-package: Use when writing Tauri commands, calling invoke(), handling IPC errors, or streaming data from Rust to JavaScript. Prevents command registration omissions, argument type mismatches between Rust and JS, and missing error serialization. Covers #[tauri::command] macro, sync/async commands, argument types, return types, thiserror, invoke() API, and Channel streaming. Keywords: tauri command, invoke, IPC, async command, thiserror, Channel, generate_handler, command registration, invoke example, call .
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# tauri-syntax-commands ## Quick Reference ### Command Definition (Rust) | Pattern | Syntax | Notes | |---------|--------|-------| | Sync command | `#[tauri::command] fn name() -> T` | Runs on main thread | | Async command | `#[tauri::command] async fn name() -> T` | Spawned on tokio runtime | | Forced async | `#[tauri::command(async)] fn name() -> T` | Sync function on tokio runtime | | Renamed args | `#[tauri::command(rename_all = "snake_case")]` | JS passes snake_case keys | ### Argument Types (Rust <- JS) | Rust Type | JS Type | Notes | |-----------|---------|-------| | `i32`, `u64`, `f64` | `number` | Direct mapping | | `bool` | `boolean` | Direct mapping | | `String` | `string` | Owned string | | `Vec<T>` | `T[]` | Array to Vec | | `Option<T>` | `T \| null \| undefined` | Nullable | | `PathBuf` | `string` | Path string | | Custom struct | object | Must `#[derive(Deserialize)]` | ### Return Types (Rust -> JS) | Rust Return | JS Result | Notes | |-------------|-----------|-------| | `()` | `void` / `null` | No return value | | `T` (Serialize) | `T` | Direct serialization | | `Result<T, E>` | `T` or throw `E` | E must impl `Serialize` | …
Read the whole file at its exact version.
How to install
mdr add impertio-studio/tauri-2-claude-skill-package/tauri-syntax-commands@v1.0mdr add impertio-studio/tauri-2-claude-skill-package/tauri-syntax-commands@sha256:5895ab4534452890Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_fp22d4fzgzcke3qy)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.0 latest | 2026-03-30 | ebe35c0 | 12,135 B | A | view · diff |
| v1.0 | 2026-03-19 | 8ab49f9 | 12,044 B | A | view · diff |
| v1.0 | 2026-03-18 | 02b5a8f | 11,977 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (12135 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
impertio-studio/tauri-2-claude-skill-package · 4 stars · license MIT · pushed 2026-09-15 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_fp22d4fzgzcke3qy GET https://markdownregistry.com/api/v1/resolve?ref=impertio-studio/tauri-2-claude-skill-package/tauri-syntax-commands GET https://markdownregistry.com/api/v1/blob/5895ab4534452890dd4c1c08b178882c698b1470e9f21df26d490bd568ad6bed
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.