tauri-v2-build
Skill2 starsChanged 2 months agoApache-2.0View on GitHub
Build, debug, review, or verify Station's Tauri v2 desktop, Android, and iOS shells. Use for changes under src-desktop, native adapters, capabilities, platform configuration, generated Android or Apple projects, native packaging, mobile lifecycle behavior, or claims that require real Tauri shell evidence. Do not use for browser-only Station work with no native boundary.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- src-desktop/AGENTS.mdAGENTS.md
- src-server/AGENTS.mdAGENTS.md
- src-ui/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- scripts/CLAUDE.mdCLAUDE.md
- src-desktop/CLAUDE.mdCLAUDE.md
- src-server/CLAUDE.mdCLAUDE.md
- src-ui/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
- deslopSkill
- documentation-auditSkill
- security-triageSkill
- test-auditSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Read AGENTS.md, src-desktop/AGENTS.md, and the instructions for every other touched scope.
- Very specific: line 12
Run npm run tauri:context -- --platform <platform> before proposing a native change.
- Distinctive: line 14
Read the pinned Cargo/npm versions and resolved platform configuration from that report before consulting upstream documentation.
- Very specific: line 19
Keep React feature code behind src-ui/src/platform/native/.
- Distinctive: line 20
Keep Rust domain logic independently testable.
- Distinctive: line 22
Treat capabilities and CSP as authority changes.
- Very specific: line 23
Treat src-desktop/gen/android and src-desktop/gen/apple as reproducible native projects.
- Distinctive: line 28
Read references/platform-proof.md before claiming native behavior.
- Very specific: line 30
Run npm run gate:for -- <paths...> before editing.
- Distinctive: line 31
Run the selector and exact focused checks while iterating.
- Distinctive: line 34
Keep signed-artifact and store-provider receipts separate from compilation and runtime evidence.
- Distinctive: line 42
Use a native automation bridge only when it is debug-only, authenticated per run, Origin-safe, tunnel/loopback constrained, allowlisted, …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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 v2 build workflow
Establish current truth
- Read
AGENTS.md,src-desktop/AGENTS.md, and the instructions for every other touched scope. - Work in a fresh sibling worktree based on current
origin/main; preserve the primary checkout and active native lanes. - Run
npm run tauri:context -- --platform <platform>before proposing a native change. Treat everyfailed,skipped, and finding as evidence to resolve or disclose. For machine-readable output, callnode scripts/tauri-context.mjs --platform <platform> --jsondirectly so npm's banner cannot contaminate JSON. - Read the pinned Cargo/npm versions and resolved platform configuration from that report before consulting upstream documentation.
- For upstream behavior, run
npm run tauri:docs -- --topic <topic>. Use--list-topicsto discover supported topics. Load one narrow topic; never place Tauri's multi-megabyte full LLM corpus into context.
Change the owning seam
- Keep React feature code behind
src-ui/src/platform/native/; never add direct Tauri imports or platform-global inference outside the reviewed adapter files. - Keep Rust domain logic independently testable. Let the Tauri shell own lifecycle, IPC registration, platform facilities, and thin Swift/Kotlin bridges.
- Preserve runtime validation for every IPC response even when compile-time bindings exist. Generate or mirror raw Rust command/event contracts instead of inventing stringly fixtures.
- Treat capabilities and CSP as authority changes. Use least privilege, platform scopes, and exact ratchets; never widen a grant merely to unblock a test.
- Treat
src-desktop/gen/androidandsrc-desktop/gen/appleas reproducible native projects. Put durable customization in the owning config/template/script and prove regeneration retains it. - Make blocking command work asynchronous or move it through
tauri::async_runtime::spawn_blocking; avoid panics across mobile IPC.
Select proportionate evidence
Read references/platform-proof.md before claiming native behavior. Use the smallest lane that can observe the property, then escalate at completion:
- Run
npm run gate:for -- <paths...>before editing. - Run the selector and exact focused checks while iterating.
- Exercise a real Tauri shell for IPC, capability, lifecycle, WebView, packaging, or native-window claims. A browser viewport is not shell evidence.
- Exercise a simulator/emulator for platform integration and a physical device for backgrounding, secure storage, notification, pairing, and OS lifecycle claims.
- Keep signed-artifact and store-provider receipts separate from compilation and runtime evidence.
- Freeze the worktree and use Station's canonical completion command only after focused evidence passes.
Debug live shells
- Android physical device: use the
tauri-mobile-debugandb10skills. Prefer CDP evaluation inside the WebView and single-ABI builds; inspect logcat and process-freezer state before rebuilding. - macOS/iOS: use Xcode, Safari Web Inspector, LLDB, unified logs, and a simulator or connected device as appropriate.
- Windows: use the
desktop-winskill and verify the packaged WebView2 shell in the interactive desktop session. - Use a native automation bridge only when it is debug-only, authenticated per run, Origin-safe, tunnel/loopback constrained, allowlisted, redacted, and proven absent from release artifacts.
Report honestly
Name the exact revision, configuration, artifact, host, device, and interaction checked. Report absent hardware, skipped lanes, browser-only evidence, unsigned artifacts, and provider processing as NOT_VERIFIED; do not promote likely portability into platform proof.
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.

