tauri-impl-design-patterns

tauri-impl-design-patterns is a skill for Claude Code from OpenAEC-Foundation/OpenAEC-Workspace-Composer. It costs 97 tokens per session (3,661 once invoked), scanned A, original, MIT.

An architecture guide for communication inside a Tauri 2 app. It explains when the frontend and Rust backend should use commands, events, or channels to exchange data.

In plain words
What is it for?
Use it to design frontend-backend communication for tasks such as file operations, notifications, background work, downloads, live data, and shared application state.
Why use it?
It helps avoid using the wrong communication method, such as treating a continuous data stream like a single request and response.

Skill for Claude Code

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

Good fit Use it to design frontend-backend communication for tasks such as file operations, notifications, background work, downloads, live data, and shared application state.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/openaec-foundation/openaec-workspace-composer/tauri-impl-design-patterns"><img src="https://agentmods.dev/badge/skills/openaec-foundation/openaec-workspace-composer/tauri-impl-design-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,661 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.00097 $0.03661
Opus 5.5 $0.00039 $0.01464
Sonnet 5.5 $0.00019 $0.00732
Haiku 4.5 $0.00010 $0.00366

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

Security

Grade A, and why

tauri-impl-design-patterns 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 2mo 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-impl/tauri-impl-design-patterns/SKILL.md · 499 lines

How it starts

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

tauri-impl-design-patterns

IPC Decision Tree: Commands vs Events vs Channels

Choose the right IPC mechanism based on data flow pattern:

What is the communication pattern?
|
+-- Request/Response (frontend asks, Rust answers)
|   --> Use COMMANDS (invoke)
|   Examples: load file, save data, compute result, CRUD operations
|
+-- Push Notification (Rust notifies frontend, or frontend broadcasts)
|   --> Use EVENTS (emit/listen)
|   Examples: background task done, settings changed, new data available
|
+-- Streaming Data (continuous flow from Rust to frontend)
|   --> Use CHANNELS (Channel<T>)
|   Examples: download progress, log streaming, live sensor data
|
+-- Bidirectional Real-Time
    --> Use EVENTS for both directions
    Examples: chat messages, collaborative editing, sync status

IPC Mechanism Comparison

Feature Commands Events Channels
Direction Frontend -> Rust -> Frontend Bidirectional Rust -> Frontend
Cardinality 1 request : 1 response 1 emit : N listeners 1 command : N messages
Lifetime Single invocation App lifetime Tied to command call
Targeting Specific command Broadcast or filtered Specific caller
Error handling Result<T, E> Fire-and-forget Send errors possible
Typing Strong (generics) Payload-based Strong (generics)
Use when CRUD, queries, actions Notifications, state sync Progress, streaming

When to Combine

Pattern: Command + Channel
Use: Long-running operations with progress
Example: File download -- invoke starts it, channel streams progress

Pattern: Command + Event
Use: Action triggers background work, result broadcast later
Example: Start scan -> emit "scan-complete" when done

Pattern: Event + Event
Use: Multi-window state synchronization
Example: Window A emits "data-changed", Window B listens and refreshes

State Architecture

Where to Put State

+--------------------------------------------------+
|                STATE DECISION MATRIX               |
+------------------+----------------+---------------+
| Data Type        | Put In Rust    | Put In JS     |
+------------------+----------------+---------------+
| Persistent data  | YES            | Cache only    |
| User settings    | YES (Store)    | Mirror/cache  |
| Auth tokens      | YES (secure)   | Never store   |
| Database conn    | YES            | Never         |
| UI state         | No             | YES           |
| Form values      | No             | YES           |
| Animation state  | No             | YES           |
| Ephemeral flags  | No             | YES           |
| Shared/multi-win | YES            | Per-window    |
| Heavy compute    | YES (result)   | Display only  |
+------------------+----------------+---------------+

Read the full file on GitHub · 499 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. 2mo ago First seen · 499 lines · 97 tokens per session scan A 660d8a75d6af

Subscribe to this mod's changes

tauri-impl-design-patterns is a skill published in the GitHub repository OpenAEC-Foundation/OpenAEC-Workspace-Composer (6 stars, last pushed 1mo ago), licensed MIT. It adds 97 tokens to every session and 3,661 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-impl-design-patterns compared with skills from other repositories

tauri-impl-design-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tauri-impl-design-patternsOpenAEC-Foundation/OpenAEC-Workspace-ComposerSkill61mo agoMITA97Claude Code
massing-bimibuilder/massingSkill1334d agoMITA90Claude Code, Codex
ara3d-sdkznlgis/opengis-skillsSkill7610d agoMITA70Claude Code, Codex
elementsznlgis/opengis-skillsSkill7610d agoMITA81Claude Code, Codex
3d-skillsznlgis/opengis-skillsSkill7610d agoMITA100Claude Code, Codex
aios-archArchSightLabs/archsight-aiosSkill291mo agoApache-2.0A57Claude Code, Codex
aios-productArchSightLabs/archsight-aiosSkill291mo agoApache-2.0A76Claude Code, Codex