agentleFS
kontouraikontourai/station/.agents/skills/tauri-v2-build/SKILL.md

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.

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
  1. Very specific:

    Read AGENTS.md, src-desktop/AGENTS.md, and the instructions for every other touched scope.

    line 10
  2. Very specific:

    Run npm run tauri:context -- --platform <platform> before proposing a native change.

    line 12
  3. Distinctive:

    Read the pinned Cargo/npm versions and resolved platform configuration from that report before consulting upstream documentation.

    line 14
  4. Very specific:

    Keep React feature code behind src-ui/src/platform/native/.

    line 19
  5. Distinctive:

    Keep Rust domain logic independently testable.

    line 20
  6. Distinctive:

    Treat capabilities and CSP as authority changes.

    line 22
  7. Very specific:

    Treat src-desktop/gen/android and src-desktop/gen/apple as reproducible native projects.

    line 23
  8. Distinctive:

    Read references/platform-proof.md before claiming native behavior.

    line 28
  9. Very specific:

    Run npm run gate:for -- <paths...> before editing.

    line 30
  10. Distinctive:

    Run the selector and exact focused checks while iterating.

    line 31
  11. Distinctive:

    Keep signed-artifact and store-provider receipts separate from compilation and runtime evidence.

    line 34
  12. Distinctive:

    Use a native automation bridge only when it is debug-only, authenticated per run, Origin-safe, tunnel/loopback constrained, allowlisted, …

    line 42

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

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

Tauri v2 build workflow

Establish current truth

  1. Read AGENTS.md, src-desktop/AGENTS.md, and the instructions for every other touched scope.
  2. Work in a fresh sibling worktree based on current origin/main; preserve the primary checkout and active native lanes.
  3. Run npm run tauri:context -- --platform <platform> before proposing a native change. Treat every failed, skipped, and finding as evidence to resolve or disclose. For machine-readable output, call node scripts/tauri-context.mjs --platform <platform> --json directly so npm's banner cannot contaminate JSON.
  4. Read the pinned Cargo/npm versions and resolved platform configuration from that report before consulting upstream documentation.
  5. For upstream behavior, run npm run tauri:docs -- --topic <topic>. Use --list-topics to 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/android and src-desktop/gen/apple as 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:

  1. Run npm run gate:for -- <paths...> before editing.
  2. Run the selector and exact focused checks while iterating.
  3. Exercise a real Tauri shell for IPC, capability, lifecycle, WebView, packaging, or native-window claims. A browser viewport is not shell evidence.
  4. Exercise a simulator/emulator for platform integration and a physical device for backgrounding, secure storage, notification, pairing, and OS lifecycle claims.
  5. Keep signed-artifact and store-provider receipts separate from compilation and runtime evidence.
  6. 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-debug and b10 skills. 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-win skill 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.

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.