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.
In this repository8 other files it gives its agents.
- tauri-architectureSkill
- tauri-mobileSkill
- tauri-pluginsSkill
- tauri-releaseSkill
- tauri-rustSkill
- tauri-securitySkill
- tauri-setupSkill
- tauri-testingSkill
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
- Very specific: line 14
Verify framework-specific configuration from the official pages before changing it: Next.js, Nuxt, Qwik,
- Very specific: line 15
Import only required API modules.
- Distinctive: line 17
Keep a browser-compatible adapter or mock for unit tests when the UI can run outside the Tauri WebView.
- Distinctive: line 21
Treat all frontend input as untrusted.
- Distinctive: line 22
Do not put secrets in bundles, local storage, URLs, or command arguments.
- Distinctive: line 23
Avoid broad window or filesystem permissions for prototypes.
- Distinctive: line 24
Follow calling Rust and keep IPC payloads small and versioned when needed.
≈ “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.
Files
Tauri frontend
This skill is scoped to Tauri 2. Verify version-sensitive fields against the installed CLI, framework adapter, and frontend documentation.
Workflow
- Confirm the project's framework, package manager, build command,
@tauri-apps/apiversion, dev URL, and output directory. Use installed types and the matching frontend setup rather than generic web assumptions. - Treat Tauri's frontend as a static/SSG artifact consumed by the WebView. Configure
frontendDistand 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. - 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.
- 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. - 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.
- 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.
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
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.

