/capacitor-core:capacitor-app-upgradesfrom capacitor-core
Upgrades a Capacitor app project to a newer major version (4→5, 5→6, 6→7, 7→8) with manual step-by-step procedures. Also covers the Capacitor 8.5 UIScene lifecycle update required by Xcode 27.
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.
Upgrade a Capacitor app project to a newer major version (4→5, 5→6, 6→7, or 7→8).
| Target Version | Node.js | Xcode | Android Studio |
|---|---|---|---|
| 5 | 16+ | 14.1+ | Flamingo 2022.2.1+ (Java 17) |
| 6 | 18+ | 15.0+ | Hedgehog 2023.1.1+ |
| 7 | 20+ | 16.0+ | Ladybug 2024.2.1+ (Java 21) |
| 8 | 22+ | 26.0+ | Otter 2025.2.1+ |
Capacitor 9 is not covered by this skill yet.
Check the installed tools before the first change:
node --version
xcodebuild -version
If a tool is older than the row of the target version, stop and tell the user which tool to update.
Read @capacitor/core version from package.json (dependencies or devDependencies). Determine the current major version.
Ask the user for the target version. Default to 8 if not specified.
Do not run npx cap migrate. Apply each upgrade by hand with the steps in the corresponding reference file, so that every change is visible and uses the version of its step.
For each major version jump between the current and target version, apply the corresponding upgrade guide sequentially:
| Current → Target | Reference |
|---|---|
| 4 → 5 | references/upgrade-v4-to-v5.md |
| 5 → 6 | references/upgrade-v5-to-v6.md |
| 6 → 7 | references/upgrade-v6-to-v7.md |
| 7 → 8 | references/upgrade-v7-to-v8.md |
| 8 → 8.5 (iOS) | references/upgrade-v8-to-v8-5.md |
The row 8 → 8.5 (iOS) is not a major version. Capacitor 8.5 moved iOS apps to the UIScene lifecycle. Read references/upgrade-v8-to-v8-5.md when both of these are true:
ios/ exists.The signal for the lifecycle is the key UIApplicationSceneManifest in ios/App/App/Info.plist. Do not use the file ios/App/App/SceneDelegate.swift as the signal. A project can have this file from a newer template and still be on the old lifecycle.
ios/App/App/Info.plist has no key UIApplicationSceneManifest, the app is on the old lifecycle. Apply the whole file.UISceneStoryboardFile in Step 4 of the file, then Step 8.Step 1 of the file lists all cases.
Xcode 27 does not build an iOS app without the UIScene lifecycle. Skip this step only if the user asks to stay on the old lifecycle.
For multi-version jumps (e.g., 5 → 8), apply each upgrade in order:
references/upgrade-v5-to-v6.mdnpx cap sync, build, and verify on both platformsreferences/upgrade-v6-to-v7.mdnpx cap sync, build, and verify on both platformsreferences/upgrade-v7-to-v8.mdnpx cap sync, build, and verify on both platformsreferences/upgrade-v8-to-v8-5.mdnpx cap sync, build, and verify on both platformsDo not skip intermediate versions.
Each version step needs its own tool versions (see the Prerequisites table). A step can need an older or newer Node.js, Xcode or Android Studio than the next step. If the installed tools cannot build an intermediate version, apply the file changes of that step, run npx cap sync, and do the build check after the last step that the installed tools support. Tell the user which build checks were left out.
After completing all upgrade steps, sync the project:
npx cap sync
Compile both platforms without a device.
Android:
cd android && ./gradlew assembleDebug
iOS, if the file ios/App/CapApp-SPM/Package.swift exists (Swift Package Manager):
xcodebuild -project ios/App/App.xcodeproj -scheme App -destination 'generic/platform=iOS Simulator' build
iOS, if the file ios/App/Podfile exists (CocoaPods):
xcodebuild -workspace ios/App/App.xcworkspace -scheme App -destination 'generic/platform=iOS Simulator' build
Then run the app on a device, an emulator or a simulator. List the targets first and pass one ID. 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>
.gradle files for property assignments without = and update them.@capacitor/* package was installed with the tag latest or without a version, the installed major version can be newer than the step covers. Read the installed version with npm ls @capacitor/core. Install the major version of the step instead, for example npm i @capacitor/core@8. Every install command in the reference files names the major version. Do not leave it out.npm install, npm may have blocked install scripts of dependencies. With Capacitor CLI 8.6.0 or later, run npx cap doctor to list the blocked packages. Approve each one with npm install-scripts approve <package>, then run npm rebuild.capacitor-app-development — For general Capacitor development topics, troubleshooting, and best practices after completing the upgrade.capacitor-plugin-upgrades — If the project contains Capacitor plugins that also need upgrading, use this skill after the app upgrade.capacitor-plugins — For installing or reconfiguring plugins after the app upgrade.capacitor-app-spm-migration: If the iOS project still uses CocoaPods, use this skill to move it to Swift Package Manager. New projects use Swift Package Manager by default since Capacitor 8.ionic-app-upgrades — If the project uses the Ionic Framework UI library, the Ionic version may also need upgrading alongside Capacitor.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
capacitor, mobile-upgrade, ios-upgrade, android-upgrade, xcode
8 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-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.npx claudepluginhub capawesome-team/skills --plugin capacitor-coreOther plugins' skills for the same job