Skill / SKILL.md

Capacitor Plugin Upgrade V4 To V5

Cap-go/capgo-skills

Upgrades a Capacitor plugin library from v4 to v5 using `npx @capacitor/plugin-migration-v4-to-v5@latest`, then the manual checklist - `@capacitor/*` dev deps to `latest-5`, compile/target SDK 33 defaults, AGP 8.0.0, Gradle 8.0.2, `namespace` in build.gradle instead of manifest `package`, Java 17, Jetifier removal, Kotlin 1.8.20 with `kotlin-stdlib`, plus code changes - `CAPBridgedPlugin` requirements moved to instance level (`pluginId` -> `identifier`, `pluginMethods` typed `[CAPPluginMethod]`) and Android `PluginCall.getObject()` / `getArray()` may return null. Use when a plugin's peer dependency is Capacitor 4 and it must support 5, or apps on v5 fail with "Namespace not specified" in the plugin module. Do not use for app upgrades, other major versions, or non-Capacitor libraries.
2 views 79 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Upgrades a Capacitor plugin library from v4 to v5 using `npx @capacitor/plugin-migration-v4-to-v5@latest`, then the manual checklist - `@capacitor/*` dev deps to `latest-5`, compile/target SDK 33 defaults, AGP 8.0.0, Gradle 8.0.2, `namespace` in build.gradle instead of manifest `package`, Java 17, Jetifier removal, Kotlin 1.8.20 with `kotlin-stdlib`, plus code changes - `CAPBridgedPlugin` requirements moved to instance level (`pluginId` -> `identifier`, `pluginMethods` typed `[CAPPluginMethod]`) and Android `PluginCall.getObject()` / `getArray()` may return null. Use when a plugin's peer dependency is Capacitor 4 and it must support 5, or apps on v5 fail with "Namespace not specified" in the plugin module. Do not use for app upgrades, other major versions, or non-Capacitor libraries.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/Cap-go/capgo-skills' skill-source

Use the complete skill-source/plugins/capacitor-plugin-dev/skills/capacitor-plugin-upgrade-v4-to-v5 directory with your client’s skill installer.

  • plugins/capacitor-plugin-dev/skills/capacitor-plugin-upgrade-v4-to-v5

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory plugins/capacitor-plugin-dev/skills/capacitor-plugin-upgrade-v4-to-v5

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
d3c2cba5fb4c3021c64e64d855a1b9ab65c891606527d2bf01ee63a2b76ecfcf
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills