/capacitor-core:capacitor-app-creationfrom capacitor-core
Guides creating a new Capacitor app from scratch: scaffolding with Capacitor CLI, configuring appId/appName/webDir, adding iOS/Android platforms, and syncing. Includes optional Ionic Framework, live updates, and CI/CD setup.
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.
None: SKILL.md is the whole skill.
Create a new Capacitor app from scratch, including project scaffolding, platform setup, and optional integrations.
The commands in this skill create a Capacitor 8 app. Every command that installs a @capacitor/* package names the version 8. Capacitor 9 is not covered by this skill yet.
The requirements of Capacitor 8 are:
node --version.xcodebuild -version. Install Xcode Command Line Tools: xcode-select --install.If a tool is older, stop and tell the user which tool to update.
Before creating the app, ask the user:
Do you want to use the Ionic Framework for UI components and theming? (yes/no)
If the user answers yes, stop this skill and switch to the ionic-app-creation skill instead. If no, continue with Step 2.
Ask the user which web framework they want to use. Present these options:
Based on the selection, scaffold the web project. Replace my-app with the project name in all commands.
npx --yes @angular/cli@latest new my-app --interactive=false --ssr=false
cd my-app
--yes keeps npx from asking whether it may install the package. --interactive=false turns off the terminal questions of the Angular CLI. The CLI uses its default for every option that is not passed. --ssr=false creates a client-side app. Capacitor needs static web files and cannot run a server-rendered app. The command also installs the npm packages. No global install of the Angular CLI is needed. The project has its own copy, which npx ng runs.
The default web asset directory for Angular is dist/my-app/browser. Adjust the directory name based on the actual project name.
npm create --yes vite@latest my-app -- --template react-ts --no-interactive
cd my-app
npm install
--yes keeps npm from asking whether it may install create-vite. --no-interactive turns off the terminal questions of create-vite.
The default web asset directory for React (Vite) is dist.
npm create --yes vite@latest my-app -- --template vue-ts --no-interactive
cd my-app
npm install
The default web asset directory for Vue (Vite) is dist.
If the user has an existing web app, confirm it meets these requirements:
package.json file exists at the project root.dist, www, build).index.html file exists at the root of the build output directory.index.html file contains a <head> tag (required for Capacitor plugins to work).If the user wants a vanilla project:
mkdir my-app && cd my-app
npm init -y
mkdir www
Then create www/index.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My App</title>
</head>
<body>
<h1>My App</h1>
</body>
</html>
The web asset directory is www.
Navigate to the project root directory and install the Capacitor core packages in version 8:
npm install @capacitor/core@8
npm install -D @capacitor/cli@8
Always name the version 8. Do not use the latest tag and do not leave the version out. Both can install a newer major version than this skill covers. @8 installs the newest Capacitor 8 release.
Confirm the result:
npm ls @capacitor/core @capacitor/cli
Both packages must show a version that starts with 8..
Run the Capacitor init command with the app name, app ID, and web asset directory. Pass all three values. Without them the CLI asks for them in the terminal.
npx cap init "<appName>" <appID> --web-dir <webDir>
<appName>: Ask the user for the display name of the app (e.g., "My App").<appID>: Ask the user for the app ID in reverse-domain format (e.g., com.example.myapp).<webDir>: Use the web asset directory determined in Step 2 (e.g., dist, www, dist/my-app/browser).This creates the Capacitor config file in the project root. The file is capacitor.config.ts if the typescript package is installed in the project (Angular, and the react-ts and vue-ts templates). Otherwise it is capacitor.config.json (the vanilla project of Step 2).
Before adding native platforms, build the web app so the output directory exists:
npx ng build
npm run build
No build step needed if using a static www/ directory.
Ask the user which platforms to add:
Which platforms do you want to add? (android/ios/both)
npm install @capacitor/android@8
npx cap add android
This creates the android/ directory with a native Android project.
npm install @capacitor/ios@8
npx cap add ios
The platform packages must have the same major version as @capacitor/core. Always name the version 8 here too.
This creates the ios/ directory with a native iOS project. Since Capacitor 8, the CLI uses Swift Package Manager (SPM) for iOS dependency management by default. Use SPM. Only if the user explicitly asks for CocoaPods, run npx cap add ios --packagemanager CocoaPods instead.
Sync the web assets and native dependencies:
npx cap sync
This copies the built web assets into each native platform project and installs native dependencies (Gradle for Android, SPM for iOS).
Run the app on a connected device or emulator/simulator. List the available targets first, then pass the ID of one target. Without --target the CLI asks for a device in the terminal when more than one is available.
npx cap run android --list
npx cap run android --target <android-target-id>
npx cap run ios --list
npx cap run ios --target <ios-target-id>
If the list is empty, ask the user to start an emulator or simulator, or to connect a device.
After the app is running, ask the user:
Do you want to set up Live Updates for over-the-air updates? (yes/no)
If yes, refer the user to the capawesome-cloud skill for live update setup.
Then ask:
Do you want to set up CI/CD for native builds and app store publishing? (yes/no)
If yes, refer the user to the capawesome-cloud skill for CI/CD setup.
If official @capacitor/* plugins are installed later, install them with the version 8 too, for example npm install @capacitor/app@8. Do not use the latest tag and do not leave the version out.
npx cap init fails with "Cannot run init for a project using a non-JSON configuration file": A capacitor.config.ts file already exists. The project is already a Capacitor project. Edit the existing config file, or delete it if re-initialization is intended.npx cap add fails with "platform already exists": The android/ or ios/ directory already exists. Remove the directory first: rm -rf android or rm -rf ios, then re-run npx cap add.npx cap sync fails with "could not find the web assets directory": The web app has not been built yet, or the webDir in the Capacitor config file points to a non-existent directory. Run the web app build command first (e.g., npm run build, npx ng build).node --version.npm ls @capacitor/core shows a version that does not start with 8.: A package was installed without the version 8. Install it again with the version, for example npm install @capacitor/core@8, and do the same for @capacitor/cli, @capacitor/android and @capacitor/ios.npx cap sync ios to ensure SPM dependencies are resolved.ANDROID_HOME or ANDROID_SDK_ROOT environment variable is set. Open Android Studio SDK Manager to install missing SDK versions.index.html missing <head> tag: Capacitor plugins inject scripts into the <head> tag. Ensure the index.html in the web asset directory contains a <head> element.npm install with npm 12: npm 12 does not run the install scripts of dependencies until they are approved. Run npx cap doctor (Capacitor CLI 8.6.0 or later) to list the blocked packages. Approve each one with npm install-scripts approve <package>, then run npm rebuild.ionic-app-creation — Create a new Ionic app with UI components and theming instead of a plain Capacitor app.capacitor-app-development — General Capacitor app development guidance after app creation.capacitor-angular — Angular-specific patterns and best practices for Capacitor apps.capacitor-react — React-specific patterns and best practices for Capacitor apps.capacitor-vue — Vue-specific patterns and best practices for Capacitor apps.capacitor-plugins — Install and configure Capacitor plugins after app creation.capawesome-cloud — Set up live updates, native builds, and CI/CD for the app.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
capacitor, mobile-app, project-scaffolding, ionic-framework, ios, android
npx claudepluginhub capawesome-team/skills --plugin capacitor-core8 skills in this plugin
/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./capacitor-platformsGuides the agent through adding, configuring, and using the Capawesome desktop platforms for Capacitor — @capawesome/capacitor-electron and @capawesome/capacitor-tauri. Covers choosing between Electron and Tauri, installation and scaffolding, sync/run workflows, live reload, deep links, splash screens, tray icons, plugin compatibility (Electron plugin implementations and web fallback; Tauri plugin tiers), packaging, app updates including Capawesome Cloud Live Updates on Electron, monorepo setup, and the migration from @capacitor-community/electron. Do not use for the Android or iOS platforms, installing individual Capacitor plugins, migrating Capacitor apps or plugins to newer versions, or non-Capacitor desktop frameworks.Other plugins' skills for the same job