AGENT SKILL

desktop-runtime-selection

Decide whether an application genuinely requires a native desktop runtime, and if so select between Electron and Tauri using capability reach, backend language and team fit, bundle and startup profile, webview consistency, and ecosystem maturity.

License 许可
Apache-2.0
所属仓库
cwik-tech/octopus
最近更新
2026-10-27
Stars
★ 0
Forks
0

01 前言 Front Matter

name
desktop-runtime-selection
description
Decide whether an application genuinely requires a native desktop runtime, and if so select between Electron and Tauri using capability reach, backend language and team fit, bundle and startup profile, webview consistency, and ecosystem maturity.

03 SKILL.md 正文

Desktop Runtime Selection

Purpose

Produce a defensible runtime decision instead of a defaulted one. This skill runs two gates in order: first, whether a native desktop runtime is required at all; second, which runtime fits this specific application and this specific team.

Use this skill when the runtime is unchosen, when an existing choice is being reconsidered, or when the choice was made by familiarity rather than analysis.

Gate One — Is Desktop Required

Before comparing runtimes, establish that a runtime is needed. Answer each:

  1. Named capability. What does this application do that a browser tab cannot? Acceptable answers name specific mechanisms: arbitrary filesystem access, persistent background execution, system tray residency, global shortcuts, native menu integration, local process spawning, hardware or peripheral access, protocol handling, or hard offline guarantees.
  2. Distribution versus capability. If the only driver is presence — an icon in the dock, a downloadable installer, a perception of seriousness — then the desktop layer is a distribution decision. Scope it as thinly as possible and do not let it pull architecture into the native layer.
  3. Offline requirement. Does the application need to function with no network for a meaningful period? If yes, that is a real capability driver and it constrains storage design downstream.
  4. Data locality. Does data need to stay on the user's machine for policy, privacy, or trust reasons? This is a legitimate driver and it changes the whole boundary design.

Output of gate one: either a named list of capabilities that justify a desktop runtime, or an explicit finding that desktop is a distribution decision and should be scoped thin.

Gate Two — Runtime Comparison

Evaluate Electron and Tauri across these axes. Do not treat the axes as equally weighted — weight them by what this application actually needs.

Capability reach

What native surface does the application require, and which runtime exposes it without custom native code? Electron's Node backend gives broad immediate access through the npm ecosystem. Tauri's Rust backend gives access through its plugin system and direct Rust crates, which is powerful but may require writing native code for less common needs. Ask: is there a required capability where one runtime means writing custom native code and the other means installing a package?

Backend language and team fit

The privileged process is written in Node for Electron and Rust for Tauri. This decides who can maintain the security-critical code path. Ask:

  • Does anyone on the team write Rust today?
  • If not, is the privileged surface small enough that learning it is bounded?
  • Who is on call when the privileged process misbehaves in production?

Treat this as a first-order factor. A technically superior runtime that nobody on the team can maintain is the wrong choice.

Bundle size and startup profile

Tauri uses the system webview and produces substantially smaller bundles; Electron ships Chromium and does not. This matters when it matters — bandwidth-constrained distribution, many concurrent installs, or a user population that notices. It does not matter merely because a number is smaller.

Ask: who specifically is harmed by the larger bundle? If nobody can be named, this axis carries little weight for this decision.

Webview consistency

Electron ships its own Chromium, so rendering is identical everywhere. Tauri uses the system webview — WebKit on macOS, WebView2 on Windows — so rendering and web platform feature availability vary by platform and OS version. Ask:

  • How complex is the UI, and how sensitive is it to rendering differences?
  • Does the app depend on recent web platform features whose availability varies?
  • What is the minimum OS version being supported, and what webview ships with it?

A visually demanding or feature-dependent UI raises the cost of webview variance considerably.

Ecosystem and operational maturity

Consider available plugins, packaging and update tooling, documentation depth, community size, and how many teams have shipped and maintained comparable applications. Weight by how much of the operational path — signing, notarization, updating — the team wants to build versus adopt.

Decision Construction

Produce a decision that names:

  1. The choice. Electron or Tauri.
  2. The two or three axes that actually decided it. Not all six — the ones that carried weight for this application.
  3. What was traded away. Every choice loses something. Name it explicitly so the decision record is honest.
  4. The condition that would reverse the decision. What would have to change — a capability requirement, a team change, a bundle constraint — for the other runtime to be correct?

Anti-Patterns

  • Choosing by general reputation rather than by this application's requirements.
  • Citing bundle size without naming a user harmed by it.
  • Treating Rust as free because the app is small today, when the privileged surface will grow.
  • Ignoring webview variance because development happened on one platform.
  • Deciding before the required native capability list exists.
  • Skipping gate one and comparing runtimes for an application that does not need one.

Output

  • Desktop justification: named capabilities, or a finding that desktop is distribution-only.
  • Runtime choice with the deciding axes.
  • Explicit statement of what the choice trades away.
  • The reversal condition.

04 同仓库更多 Skills

cwik-tech
cwik-tech/octopus

twenty-year-land-plan

Apply the Bren discipline of evaluating every land and development decision on a twenty-year horizon, with a comprehensive plan for how the land, the community, and the surrounding public infrastructure evolve together. Deals optimized for a five-year exit are structurally different from deals that compound across generations; insist on knowing which kind you are making. Use when evaluating land, entitlements, master-planned development, or phasing decisions, and when separating five-year exit deals from generational holds.

★ 0
cwik-tech
cwik-tech/octopus

thematic-gut-check

Apply the Gray discipline of identifying the structural theme behind every real estate deal, testing where that theme sits in its capital-flow lifecycle, and insisting that deals without a named theme — or deals late in a crowded theme — clear a higher bar. A mediocre deal in a strong theme usually beats a clever deal in a weak one. Use when naming the structural thesis behind a deal, judging whether that theme is early or crowded, and setting the bar the deal must clear.

★ 0
cwik-tech
cwik-tech/octopus

supply-pipeline-gut-check

Apply the Zell discipline of grounding every real estate thesis in the local supply pipeline. Demand counts over adjectives — units under construction, units permitted, units proposed — and convert them into a forward absorption schedule. A deal that ignores the pipeline is a bet on a market you have not actually studied. Use when validating a market thesis, forecasting absorption and rent growth, or counting units under construction, permitted, and proposed.

★ 0
cwik-tech
cwik-tech/octopus

ruin-scenario-mapping

Apply the Taleb discipline of identifying, for every real estate deal, the specific chain of events that produces ruin — permanent, unrecoverable capital loss — and verifying that no single such chain has non-trivial probability. Deals with any plausible ruin path must be restructured or abandoned. Use when sizing leverage, testing refinancing, covenant, and liquidity risk, or checking whether any single failure chain can permanently wipe out the position.

★ 0
cwik-tech
cwik-tech/octopus

revenue-cost-architecture

Design a venture's revenue streams, pricing logic, cost structure, and unit economics so the business model has a coherent theory of value capture, not just value creation. Use after the value proposition and customer segment are set and before financial projections, when choosing a pricing model, calculating contribution margin or CAC payback, or checking whether the unit economics hold at scale.

★ 0
cwik-tech
cwik-tech/octopus

replacement-cost-stress-test

Apply the Buffett discipline of pricing every real estate asset against the cost to rebuild it from scratch. The ratio of purchase price to replacement cost sets a ceiling on long-run downside: below replacement cost, new supply cannot profitably undercut you; at or above it, you are buying a liability disguised as an asset. Use when setting a purchase price, judging downside protection, or testing how exposed an asset is to newly built competing supply.

★ 0