/capacitor-plugin-dev:capacitor-plugin-upgradesfrom capacitor-plugin-dev
Guides upgrading a Capacitor plugin to a newer major version (4 through 8), including multi-version jumps. Covers automated migration tools, Android SDK targets, Gradle config, Java/Kotlin versions, iOS deployment targets, and UIScene lifecycle audit for Capacitor 8.5.
Ships in capacitor-plugin-dev. 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 plugin to a newer major version (4→5, 5→6, 6→7, or 7→8).
| Target Version | Node.js |
|---|---|
| 5 | 16+ |
| 6 | 18+ |
| 7 | 20+ |
| 8 | 22+ |
The project must be a Capacitor plugin (not an app project).
Capacitor 9 is not covered by this skill yet.
Read @capacitor/core version from package.json (devDependencies or peerDependencies). Determine the current major version.
Ask the user for the target version. Default to 8 if not specified.
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 |
For multi-version jumps (e.g., 5 → 8), apply each upgrade in order:
references/upgrade-v5-to-v6.mdnpm install && npx cap sync, build, and verify the plugin's test/example appreferences/upgrade-v6-to-v7.mdnpm install && npx cap sync, build, and verify the plugin's test/example appreferences/upgrade-v7-to-v8.mdnpm install && npx cap sync, build, and verify the plugin's test/example appDo not skip intermediate versions.
Apply this step when the target version is 8 and the plugin has iOS code.
Capacitor 8.5 moved iOS apps to the UIScene lifecycle. Most plugins need no change. Search the plugin's iOS code for these patterns:
| Pattern | Action |
|---|---|
UIApplication.shared.applicationState | Still works in a single-scene app. In scene-aware code, read the activationState of the window scene instead. |
Observers of .capacitorOpenURL or .capacitorOpenUniversalLink | No change. Capacitor still posts both notifications with the same payload. |
.capacitorSceneWillConnect, .capacitorSceneOpenURL, .capacitorSceneOpenUniversalLink | These notifications exist only in Capacitor 8.5 and later. A plugin that also supports Capacitor 8.0 to 8.4 must stay on .capacitorOpenURL and .capacitorOpenUniversalLink. |
tmpWindow or TmpViewController | Both were removed in Capacitor 8.5. Delete the code that uses them. Use the viewController of the bridge to present screens. |
Source: Updating to 8.5.
After completing all upgrade steps:
npm install
npx cap sync
Build the plugin's test/example app on both platforms to verify.
.gradle files for property assignments without = and update them.capacitor-app-upgrades — If the app project itself also needs upgrading, use this skill.capacitor-plugin-spm-support — After upgrading a plugin to Capacitor 6+, use this skill to add Swift Package Manager support.capacitor-plugin-development — For creating new Capacitor plugins from scratch, including scaffolding, native implementation, and publishing.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
capacitor, plugin-upgrade, android-sdk, ios-deployment, uisene-lifecycle
3 skills in this plugin
/capacitor-plugin-developmentGuides the agent through creating and maintaining Capacitor plugins from scratch. Covers scaffolding a new plugin project, designing the TypeScript API, implementing native iOS (Swift) and Android (Java/Kotlin) bridges, implementing the web layer, defining TypeScript type definitions, plugin configuration values, plugin hooks, development workflow with local testing, documentation generation, and publishing to npm. Do not use for installing existing plugins into an app, upgrading existing plugins to newer Capacitor versions, adding SPM support to plugins, or non-Capacitor plugin frameworks./capacitor-plugin-spm-supportGuides the agent through adding Swift Package Manager (SPM) support to an existing Capacitor plugin. Covers creating a Package.swift manifest for Capacitor 6 through 8, replacing Objective-C bridge files with the CAPBridgedPlugin Swift protocol, updating .gitignore for SPM artifacts, cleaning up the Xcode project file, and updating package.json. Do not use for Capacitor app projects, creating new plugins from scratch, or non-Capacitor plugin frameworks.npx claudepluginhub capawesome-team/skills --plugin capacitor-plugin-devOther plugins' skills for the same job