agentleFS
fxckcodefxckcode/tauri-skills/skills/tauri-architecture/SKILL.md

tauri-architecture

Skill3 starsChanged 3 months agoMITView on GitHub

Design Tauri 2 application boundaries, IPC contracts, state ownership, and platform abstractions. Use when planning features, splitting frontend and Rust responsibilities, or reviewing a Tauri architecture.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the Tauri process model: keep presentation in the webview, privileged work in the Rust core, and platform APIs behind narrow commands …

    line 13
  2. Distinctive:

    Keep startup and artifact size intentional.

    line 18

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Tauri architecture

This skill is scoped to Tauri 2. Tauri combines a web frontend, an application Rust core, a system WebView, and optional plugins. Start with the architecture overview and verify version-sensitive details against installed docs.

Workflow

  1. State the trust boundary and data flow: frontend input → command/channel/event → Rust validation and side effect → typed result.
  2. Use the Tauri process model: keep presentation in the webview, privileged work in the Rust core, and platform APIs behind narrow commands or plugins.
  3. Define small serializable command contracts, explicit errors, and stable identifiers. Avoid a generic “execute” command.
  4. Choose IPC deliberately: commands suit request/response; events suit notifications and broadcast-style messages; channels suit ordered, higher-throughput streaming tied to a request. Document ownership, cancellation, backpressure, and listener cleanup.
  5. For brownfield or isolated integrations, study brownfield IPC and isolation. Keep untrusted content away from privileged authority and mediate crossings with explicit contracts.
  6. Manage state using state management; avoid global mutable state unless ownership and synchronization are clear. Isolate platform-specific behavior behind Rust modules or plugin boundaries.
  7. Keep startup and artifact size intentional. Use the size guidance to audit release profile, assets, dependencies, symbols, and unnecessary frontend payload before adding optimization flags.

Review questions

  • Which process owns each secret, file, network call, and side effect?
  • Can the frontend call more than this feature requires?
  • Is a command, event, or channel the correct IPC contract?
  • Does brownfield content require isolation or a separate capability?
  • What is the smallest cross-platform core, and where do Android/iOS differences live?

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.