tauri-v2-build
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.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 1
01 前言 Front Matter
- name
- tauri-v2-build
- description
- 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.
02 资源文件 2
- 参考文档agents/openai.yaml283 B
- 参考文档references/platform-proof.md2.5 KB
03 SKILL.md 正文
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.
04 同仓库更多 Skills
migrate-agent-plugin
Migrate an existing Claude, Copilot, Codex, Cursor, Kiro, VS Code, or other client-specific agent plugin to the portable Agent Plugins v1 structure while preserving platform-specific hooks, agents, commands, LSP, UI, and marketplace behavior. Use when auditing, converting, or modernizing an agent plugin.
stress-test-idea
Ask adaptive questions to clarify an idea, its constraints, and its unresolved decisions.
inspect-onboarding
Inspect a project onboarding document and report actionable gaps without changing files.
stress-test-idea
Ask adaptive questions to clarify an idea, its constraints, and its unresolved decisions.
draft-brief
Turn supplied notes into a concise brief with explicit facts, assumptions, and open questions.
wayfinder
Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.