tauri-syntax-commands

tauri-syntax-commands is a skill for Claude Code from OpenAEC-Foundation/OpenAEC-Workspace-Composer. It costs 105 tokens per session (3,008 once invoked), scanned A, original, MIT.

A guide to Tauri commands, which are Rust functions that a JavaScript interface can call through Tauri’s built-in communication layer. It explains how values and errors cross between the two languages.

In plain words
What is it for?
Use it to write synchronous or asynchronous commands, map Rust values to JavaScript values, rename arguments, return binary data, and handle command errors.
Why use it?
It helps prevent commands that were never registered, mismatched argument names or types, and errors that cannot be sent back to JavaScript correctly.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

Good fit Use it to write synchronous or asynchronous commands, map Rust values to JavaScript values, rename arguments, return binary data, and handle command errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openaec-foundation/openaec-workspace-composer/tauri-syntax-commands
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OpenAEC-Foundation/OpenAEC-Workspace-Composer --skill tauri-syntax-commands
Clone the repo
git clone --depth 1 https://github.com/OpenAEC-Foundation/OpenAEC-Workspace-Composer

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tauri-syntax-commands

README.md
[![agentmods](https://agentmods.dev/badge/skills/openaec-foundation/openaec-workspace-composer/tauri-syntax-commands/github.svg)](https://agentmods.dev/skills/openaec-foundation/openaec-workspace-composer/tauri-syntax-commands)
Your own site
<a href="https://agentmods.dev/skills/openaec-foundation/openaec-workspace-composer/tauri-syntax-commands"><img src="https://agentmods.dev/badge/skills/openaec-foundation/openaec-workspace-composer/tauri-syntax-commands/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tauri-syntax-commands

Your own site · 80×15
<a href="https://agentmods.dev/skills/openaec-foundation/openaec-workspace-composer/tauri-syntax-commands"><img src="https://agentmods.dev/badge/skills/openaec-foundation/openaec-workspace-composer/tauri-syntax-commands.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,008 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.03008
Opus 5 $0.00053 $0.01504
Sonnet 5 $0.00021 $0.00602
Haiku 4.5 $0.00011 $0.00301

Measured 12d ago against content hash 05cf60f0308a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

tauri-syntax-commands scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/tauri-2/tauri-syntax/tauri-syntax-commands/SKILL.md · 405 lines

How it starts

The opening of the file, as written. The whole thing — 405 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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
Response ArrayBuffer Binary data bypass

Special Injected Parameters (NOT passed from JS)

Rust Parameter Purpose Example
app: AppHandle Application handle app.emit("event", data)
window: WebviewWindow Calling window window.label()
state: State<'_, T> Managed state state.inner()
request: tauri::ipc::Request Raw IPC request request.headers(), request.body()

Frontend invoke() API

Feature Syntax
Import import { invoke } from '@tauri-apps/api/core'
Basic call await invoke('command_name')
With args await invoke('cmd', { argName: value })
Typed return await invoke<ReturnType>('cmd')
With headers await invoke('cmd', args, { headers: {...} })
Binary data await invoke('cmd', new Uint8Array([...]))

Read the full file on GitHub · 405 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 405 lines · 105 tokens per session scan A 05cf60f0308a

Subscribe to this mod's changes

tauri-syntax-commands is a skill published in the GitHub repository OpenAEC-Foundation/OpenAEC-Workspace-Composer (5 stars, last pushed 5mo ago), licensed MIT. It adds 105 tokens to every session and 3,008 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

add-tauri-command

Use when adding a new Tauri command to Cowork-Z — a new backend capability the React frontend must call, a new #[tauri::command] fn, or a new invoke() wrapper in tauri-api.ts. Also use when a newly written command returns "Command not found" at runtime.

kevinlin/cowork-z · 69 tokens

fullstack-dev

Implement features that span backend and frontend together — API endpoints with their UI, auth flows, CRUD modules, validation. Use when the subtask requires both sides of the system to ship a working feature.

qinghaoliqaq/AutoCoder · 44 tokens

ipc-communication

Use when adding or debugging Electron IPC between preload, renderer, and main; implements strongly typed send/invoke/receive channels, payload contracts, window.electron API wiring, and safe handler registration.

trae-op/electron-modular-boilerplate · 43 tokens

nextjs-pages-router

Set up tRPC in Next.js Pages Router with createNextApiHandler, createTRPCNext, withTRPC HOC, SSR via ssr option and ssrPrepass, SSG via createServerSideHelpers with getStaticProps, and server-side helpers for getServerSideProps prefetching.

trpc/trpc · 67 tokens

service-digital-engagement-channel-configure

Configures and deploys enhanced chat Messaging Channels for Messaging for In-App and Web (MIAW). Use when the user needs to create, deploy, and activate a messaging channel configured with Omni-Channel Flow, Omni-Channel Queue, User, or Agentforce Service Agent routing. Generates MessagingChannel metadata, deploys it…

forcedotcom/sf-skills · 173 tokens

om-system-extension

Extend installed Open Mercato modules through UMES enrichers, interceptors, mutation guards, widgets, menus, entity extensions, events, component/page replacements, and overrides. Use for "extend core", "add field/column/action", "hide page", "intercept API", "UMES", or "rozszerz moduł".

open-mercato/open-mercato · 73 tokens