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

tauri-frontend

Skill3 starsChanged 3 months agoMITView on GitHub

Build Tauri 2 frontend code that calls native functionality through explicit IPC and remains testable. Use when implementing UI, invoking commands, handling events, or integrating a frontend framework with Tauri.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Verify framework-specific configuration from the official pages before changing it: Next.js, Nuxt, Qwik,

    line 14
  2. Very specific:

    Import only required API modules.

    line 15
  3. Distinctive:

    Keep a browser-compatible adapter or mock for unit tests when the UI can run outside the Tauri WebView.

    line 17
  4. Distinctive:

    Treat all frontend input as untrusted.

    line 21
  5. Distinctive:

    Do not put secrets in bundles, local storage, URLs, or command arguments.

    line 22
  6. Distinctive:

    Avoid broad window or filesystem permissions for prototypes.

    line 23
  7. Distinctive:

    Follow calling Rust and keep IPC payloads small and versioned when needed.

    line 24

≈ “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 frontend

This skill is scoped to Tauri 2. Verify version-sensitive fields against the installed CLI, framework adapter, and frontend documentation.

Workflow

  1. Confirm the project's framework, package manager, build command, @tauri-apps/api version, dev URL, and output directory. Use installed types and the matching frontend setup rather than generic web assumptions.
  2. Treat Tauri's frontend as a static/SSG artifact consumed by the WebView. Configure frontendDist and the dev server explicitly. Tauri does not itself provide a general SSR server at runtime; SSR frameworks need a compatible build/export strategy or an separately deployed server and carefully modeled remote access.
  3. Verify framework-specific configuration from the official pages before changing it: Next.js, Nuxt, Qwik, SvelteKit, and Vite. Confirm static output, asset paths, routing fallback, and dev/production parity with a real build.
  4. Import only required API modules. Call named commands with typed payloads using invoke; never construct command names from user input. Use events for notifications and channels for ordered streams where appropriate.
  5. Model loading, success, and error states. Normalize errors at the UI boundary without hiding the original diagnostic, and unregister listeners when the view is destroyed.
  6. Keep a browser-compatible adapter or mock for unit tests when the UI can run outside the Tauri WebView.

Safe defaults

  • Treat all frontend input as untrusted; Rust validates it again.
  • Do not put secrets in bundles, local storage, URLs, or command arguments.
  • Avoid broad window or filesystem permissions for prototypes.
  • Follow calling Rust and keep IPC payloads small and versioned when needed.

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.