/capacitor-core:capacitor-platformsfrom capacitor-core
Guides adding, configuring, and using Capawesome desktop platforms (@capawesome/capacitor-electron and @capawesome/capacitor-tauri) for Capacitor apps on macOS, Windows, and Linux.
Ships in capacitor-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Bring a Capacitor app to macOS, Windows, and Linux with the Capawesome desktop platforms: @capawesome/capacitor-electron and @capawesome/capacitor-tauri. Both use the standard Capacitor workflow (cap add / cap sync / cap run), report Capacitor.isNativePlatform() as true, and deliver deep links through the standard @capacitor/app events. Capacitor.getPlatform() returns 'electron' or 'tauri'.
| Requirement | Electron | Tauri |
|---|---|---|
| Capacitor | 6+ | 8+ |
| Node.js | The version the Capacitor version needs: 18+ for Capacitor 6, 20+ for Capacitor 7, 22+ for Capacitor 8 | 22+ (Capacitor 8) |
| Electron | >= 28 (installed by the scaffold) | — |
| Tauri | — | >= 2 |
| Rust toolchain + system dependencies | — | Required — see the Tauri prerequisites guide |
On Capacitor 6 and 7, the Capacitor CLI ignores the exit code of platform hooks — a failing npx cap sync still reports success. Check the log output for [capacitor-electron] errors. Capacitor 8 fails the command properly.
Capacitor 9 is not covered by this skill yet.
package.json and the Capacitor config to determine installed platforms and plugins before prompting the user.npx cap sync @capawesome/capacitor-electron). A bare npx cap sync only processes Android, iOS and web. npx cap sync electron resolves to the electron npm package and silently does nothing. npx cap sync tauri does nothing either.references/tauri.md) before recommending it.Two hosted MCP servers serve the current documentation, so both are always ahead of the guidance bundled with this skill:
capacitor.config file, the native Android and iOS projects, and the official plugin APIs.Both expose search_docs and get_doc_page, so pick the server by topic before calling either.
search_docs on the server that owns the topic and read the matching page with get_doc_page before applying the guidance below. Where the two disagree, follow the documentation.claude mcp add --transport http capawesome "https://mcp.capawesome.io/mcp"
claude mcp add --transport http capacitor "https://capacitor-mcp.capawesome.io/mcp"
Neither server needs an account or a token for documentation. See the capawesome-mcp and capacitor-mcp skills for full setup, including the Capawesome Cloud tools.
If the task is a migration from @capacitor-community/electron, the platform is Electron. Go to references/electron.md, section "Migration from @capacitor-community/electron".
| The app needs… | Choose |
|---|---|
| Reuse of Capacitor plugins with native (Node) desktop implementations | Electron |
| Web-bundle over-the-air updates | Electron (Capawesome Cloud Live Updates via @capawesome/capacitor-live-update >= 8.5.0, requires Capacitor 8 — see references/electron.md; Tauri compiles web assets into the binary — only full signed binary updates) |
| A single, predictable bundled Chromium across all OSes | Electron |
| Smallest binaries (about 3 to 10 MB vs about 80 to 150 MB) and lowest memory use | Tauri |
| A deny-by-default security model with a Rust core | Tauri |
| No Rust toolchain in dev/CI | Electron |
| An app on Capacitor 6 or 7 | Electron (Tauri requires Capacitor 8) |
Tauri's trade-offs are inherent, not bugs: no Node runtime (so no arbitrary Capacitor plugin reuse), three different system webviews (WKWebView/WebView2/WebKitGTK), no web-bundle OTA, and a required Rust toolchain. They are listed in references/tauri.md, section "Honest Limitations".
Electron:
npm install @capawesome/capacitor-electron
npx cap add @capawesome/capacitor-electron
cd electron && npm install && cd ..
The npm install inside electron/ generates electron/package-lock.json. Commit this file. Then add a postinstall script to the app's root package.json so the Electron dependencies are always installed together with the main app dependencies. npm ci needs the committed lock file:
{
"scripts": {
+ "postinstall": "cd electron && npm ci && cd .."
}
}
If the root package.json already has a postinstall script, append the command to it with &&.
Tauri (verify rustc --version works first; if not, stop and walk the user through the Tauri prerequisites):
npm install @capawesome/capacitor-tauri
npx cap add @capawesome/capacitor-tauri
Both scaffolds contain only files the user owns (config, icons, a few-line entry point); all runtime logic lives in the versioned package/crate and updates via npm update / cargo update.
In an Nx workspace or another monorepo, read the "Monorepos" section of references/electron.md before running npx cap add.
npx cap sync @capawesome/capacitor-electron # or @capawesome/capacitor-tauri
npx cap run @capawesome/capacitor-electron # or @capawesome/capacitor-tauri
Build the web assets first (npm run build), unless server.url is set for live reload.
Electron sync copies web assets and regenerates the plugin manifest. Tauri sync additionally scans the app's Capacitor plugin dependencies and generates a deny-by-default capability file, the curated tauri-plugin-* crate dependencies, and the Rust plugin registrations.
For live reload on either platform, set server.url in the Capacitor config to the local dev server and run the platform — see the platform reference for details.
electron/capacitor.electron.config.ts (window, CSP, deep links, splash screen, plugin configuration, hooks) — see references/electron.md.src-tauri/tauri.conf.json (window, CSP, deep links via plugins.deep-link.desktop.schemes, bundle) — see references/tauri.md.cd electron && npm run pack (electron-builder; vendors the runtime and plugin implementations automatically) — see references/electron.md.npx cap sync @capawesome/capacitor-tauri && npx tauri build (native installers per OS) — see references/tauri.md.electron-updater, and web-bundle updates with Capawesome Cloud Live Updates. See references/electron.md, section "App Updates".tauri-plugin-updater only. See references/tauri.md.npx cap sync electron or npx cap sync tauri does nothing: The short name does not resolve to the platform. Use npx cap sync @capawesome/capacitor-electron or npx cap sync @capawesome/capacitor-tauri.npx cap sync @capawesome/capacitor-electron reports success but the app is broken (Capacitor 6 or 7): The Capacitor CLI ignores the exit code of platform hooks on these versions. Read the log output for [capacitor-electron] errors.npx cap add @capawesome/capacitor-electron does nothing in an Nx workspace: The capacitor:* scripts are missing in the package.json of the workspace root. See references/electron.md, section "Monorepos".npm ci fails in the postinstall script: electron/package-lock.json is missing or not committed. Run cd electron && npm install && cd .. once and commit the lock file.references/electron.md, section "Plugin Support".references/tauri.md, section "Plugin Tiers". Recommend the Electron platform if the plugin is required.@electron/rebuild, before packaging.assets/**/* is missing in the files entry of electron/electron-builder.config.js.references/electron.md, section "App Updates".rustc: command not found on Tauri: The Rust toolchain is missing. Stop and send the user to the Tauri prerequisites guide.references/electron.md — scaffold layout, monorepos, configuration, live reload, deep links, splash screen, debugging, tray icon, plugin support and plugin development contract, packaging and vendoring, app updates (binary updates and Live Updates), migration from @capacitor-community/electron, limitations.references/tauri.md — Rust prerequisites, scaffold layout, sync-time codegen, the plugin tier model (built-in / curated / web fallback), configuration, live reload, deep links, desktop patterns (start hidden, tray icon, splash screen), packaging, honest limitations.capacitor-app-creation — Create a new Capacitor app before adding a desktop platform.capacitor-app-development — General Capacitor development topics, configuration, and troubleshooting.capacitor-app-upgrades: Upgrade the app to Capacitor 8, which the Tauri platform and Live Updates on Electron need.capacitor-plugins — Install and configure Capacitor plugins, including checking desktop platform support.capacitor-plugin-development: Create a Capacitor plugin. The Electron implementation contract is in references/electron.md.capawesome-cloud — Set up Capawesome Cloud Live Updates for the Electron platform (same app and config as Android/iOS).capawesome-mcp — Connect an MCP client to the hosted Capawesome MCP server for always-current documentation and Capawesome Cloud management.capacitor-mcp: Connect an MCP client to the hosted Capacitor MCP server for the current Capacitor documentation.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub capawesome-team/skills --plugin capacitor-core8 skills in this plugin
/capacitor-app-creationGuides the agent through creating a new Capacitor app from scratch. Covers project scaffolding with the Capacitor CLI, configuring the app (appId, appName, webDir), adding native platforms (iOS, Android), and syncing. Includes decision points for Ionic Framework integration, live updates, and CI/CD setup. Do not use for upgrading existing Capacitor apps, migrating from other frameworks, or plugin installation./capacitor-app-developmentGuides the agent through general Capacitor app development topics. Covers core concepts (native bridge, plugins, web layer), Capacitor CLI usage, app configuration (capacitor.config.ts, splash screens, app icons, deep links), platform management (Android, iOS, Electron, Tauri, PWA), edge-to-edge and safe area handling with the SystemBars API, live reload setup, storage solutions, file handling, security best practices, CI/CD references, iOS package managers (SPM, CocoaPods), the UIScene lifecycle of Capacitor 8.5, and troubleshooting for Android and iOS. Do not use for creating new Capacitor apps, Capacitor plugin APIs, creating Capacitor plugins, in-app purchases, upgrading Capacitor versions, Cordova or PhoneGap migration, or framework-specific patterns (Angular, React, Vue)./capacitor-app-spm-migrationGuides the agent through migrating an existing Capacitor app project from CocoaPods to Swift Package Manager (SPM) for iOS dependency management. Covers prerequisite checks, inventorying installed Capacitor plugins, backing up customized iOS project files (Info.plist, AppDelegate.swift, Assets.xcassets, Base.lproj, App.entitlements, GoogleService-Info.plist, .xcconfig files, signing configuration), deleting the existing `ios/` folder, re-scaffolding with `npx cap add ios --packagemanager SPM`, restoring preserved files, re-syncing plugins, and verifying the build. Performs all migration steps manually — does not use the interactive `npx cap spm-migration-assistant` command. Do not use for Capacitor plugin projects, app projects already on SPM, app projects without an existing `ios/` folder, or non-Capacitor mobile frameworks./capacitor-app-upgradesGuides the agent through upgrading a Capacitor app project to a newer major version. Supports upgrades from Capacitor 4 through 8, including multi-version jumps. Also covers the Capacitor 8.5 update that moves an iOS app to the UIScene lifecycle, which Xcode 27 requires. Performs all upgrade steps by hand and does not use the `npx cap migrate` command. Do not use for plugin library upgrade or non-Capacitor mobile frameworks./capacitor-expertA comprehensive starting point for AI agents to work with Capacitor. Covers core concepts, version requirements for Capacitor 6 to 8, CLI, app creation, plugins and Premium SDKs, framework integration, best practices, storage, security, testing, troubleshooting, upgrading, the UIScene lifecycle of Capacitor 8.5, and Capawesome Cloud (live updates, native builds, app store publishing, automations). Pair with the other Capacitor skills in this collection for deeper topic-specific guidance. Do not use for non-Capacitor mobile frameworks./capacitor-mcpGuides the agent through connecting an MCP client to the hosted, unofficial Capacitor MCP server by Capawesome, which serves the official Capacitor documentation for v8, v7, v6 and next, the official and community plugin list, and the Capacitor posts from the Ionic blog. Covers client detection, setup for Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Zed and stdio-only clients, documentation version selection, verification, and troubleshooting. Do not use for installing or configuring Capacitor plugins, upgrading or migrating apps and plugins to a newer version, Ionic Framework UI components, Capawesome Cloud, or MCP servers other than the Capacitor one.Other plugins' skills for the same job