tauri-syntax-state

tauri-syntax-state is a skill for Claude Code from OpenAEC-Foundation/OpenAEC-Workspace-Composer. It costs 95 tokens per session (1,930 once invoked), scanned A, original, MIT.

A guide to shared application data in Tauri 2, such as settings or in-memory values that multiple commands can access. It explains how to register this data and protect it when several tasks use it at once.

In plain words
What is it for?
Use it to register state during startup, access it from Rust commands or app handles, choose between mutexes and read-write locks, and handle optional state safely.
Why use it?
It helps prevent runtime failures from unregistered or mismatched state, deadlocks caused by locks, and unnecessary wrappers around data that does not need them.

Skill for Claude Code

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

Good fit Use it to register state during startup, access it from Rust commands or app handles, choose between mutexes and read-write locks, and handle optional state safely.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openaec-foundation/openaec-workspace-composer/tauri-syntax-state
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-state
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-state

README.md
[![agentmods](https://agentmods.dev/badge/skills/openaec-foundation/openaec-workspace-composer/tauri-syntax-state/github.svg)](https://agentmods.dev/skills/openaec-foundation/openaec-workspace-composer/tauri-syntax-state)
Your own site
<a href="https://agentmods.dev/skills/openaec-foundation/openaec-workspace-composer/tauri-syntax-state"><img src="https://agentmods.dev/badge/skills/openaec-foundation/openaec-workspace-composer/tauri-syntax-state/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-state

Your own site · 80×15
<a href="https://agentmods.dev/skills/openaec-foundation/openaec-workspace-composer/tauri-syntax-state"><img src="https://agentmods.dev/badge/skills/openaec-foundation/openaec-workspace-composer/tauri-syntax-state.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,930 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.00095 $0.01930
Opus 5.5 $0.00038 $0.00772
Sonnet 5.5 $0.00019 $0.00386
Haiku 4.5 $0.00010 $0.00193

Measured 3mo ago against content hash 58ae1d0a3130, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tauri-syntax-state 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 3mo 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-state/SKILL.md · 254 lines

How it starts

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

tauri-syntax-state

Quick Reference

State Registration (Tauri 2.x)

Method Context Description
Builder::manage(T) Builder chain Register state during app construction
App::manage(T) setup() hook Register state that depends on app initialization
AppHandle::manage(T) Any context Register state at runtime (rare)

State Access

Method Context Returns
State<'_, T> Command parameter Injected automatically by Tauri
app_handle.state::<T>() Any code with AppHandle State<'_, T> (panics if not registered)
app_handle.try_state::<T>() Any code with AppHandle Option<State<'_, T>> (safe)

Thread-Safety Wrappers

Wrapper Use Case Lock Method
std::sync::Mutex<T> Mutable state, no .await while locked .lock().unwrap()
tokio::sync::Mutex<T> Mutable state with .await while locked .lock().await
std::sync::RwLock<T> Read-heavy access, concurrent readers .read().unwrap() / .write().unwrap()
None (immutable) Read-only config data Direct field access

Critical Warnings

NEVER use State<'_, T> when you registered Mutex<T> — the type must match EXACTLY or Tauri panics at runtime, not at compile time. If you registered Mutex<Counter>, the command parameter must be State<'_, Mutex<Counter>>.

NEVER wrap managed state in Arc — Tauri already wraps all managed state in Arc internally. Using app.manage(Arc::new(data)) adds a redundant layer.

NEVER lock the same Mutex twice in the same call chain — this causes a deadlock. If a function holding a lock calls another function that also locks, the thread blocks forever.

NEVER use tokio::sync::Mutex unless you need to hold the lock across .await points — std::sync::Mutex is more efficient for synchronous access.

ALWAYS register state before any command tries to access it — accessing unregistered state via State<T> causes a runtime panic.

Read the full file on GitHub · 254 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. 3mo ago First seen · 254 lines · 95 tokens per session scan A 58ae1d0a3130

Subscribe to this mod's changes

tauri-syntax-state is a skill published in the GitHub repository OpenAEC-Foundation/OpenAEC-Workspace-Composer (8 stars, last pushed 2mo ago), licensed MIT. It adds 95 tokens to every session and 1,930 once invoked, about $0.0004 per session on Opus 5.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

tauri-syntax-state compared with skills from other repositories

tauri-syntax-state next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tauri-syntax-stateOpenAEC-Foundation/OpenAEC-Workspace-ComposerSkill82mo agoMITA95Claude Code
rest-graphql-debugandrooAGI/starnetSkill2.0ktodayMITA45Claude Code, Codex
mcp-server-buildingandrooAGI/starnetSkill2.0ktodayMITA44Claude Code, Codex
service-app-creatorPeiiii/nextclawSkill266yesterdayMITA74Claude Code, Codex
Forsion Connect AI SDKChangan-Su/ForsionSkill221todayApache-2.0A168Claude Code, Codex
schema-validationdatadrivenconstruction/DDC_Skills_for_AI_Agents_in_ConstructionSkill4571mo agoMITA29Claude Code, Codex
erp-data-extractordatadrivenconstruction/DDC_Skills_for_AI_Agents_in_ConstructionSkill4571mo agoMITA25Claude Code, Codex