Skill / SKILL.md

Capacitor Plugin Upgrade V5 To V6

Cap-go/capgo-skills

Upgrades a Capacitor plugin library from v5 to v6 using `npx @capacitor/plugin-migration-v5-to-v6@latest`, then the manual checklist - `@capacitor/*` dev deps to `latest-6`, `compileSdkVersion` replaced by `compileSdk`, compile/target SDK 34 defaults, AGP 8.2.1, Gradle 8.2.1, Kotlin 1.9.10, plus code changes - `addListener` in `definitions.ts` returns only `Promise<PluginListenerHandle>` (drop `& PluginListenerHandle`), remove `CAP_PLUGIN_METHOD(removeAllListeners, ...)` from the `.m` file, and optional experimental SPM support via `Package.swift`. Use when a plugin targets Capacitor 5 and must support 6. 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 v5 to v6 using `npx @capacitor/plugin-migration-v5-to-v6@latest`, then the manual checklist - `@capacitor/*` dev deps to `latest-6`, `compileSdkVersion` replaced by `compileSdk`, compile/target SDK 34 defaults, AGP 8.2.1, Gradle 8.2.1, Kotlin 1.9.10, plus code changes - `addListener` in `definitions.ts` returns only `Promise<PluginListenerHandle>` (drop `& PluginListenerHandle`), remove `CAP_PLUGIN_METHOD(removeAllListeners, ...)` from the `.m` file, and optional experimental SPM support via `Package.swift`. Use when a plugin targets Capacitor 5 and must support 6. 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-v5-to-v6 directory with your client’s skill installer.

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

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

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

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
906f2a555913dde434f07b987c1f633c2d33e0815957f317cf63a7253a66ce53
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills