From capacitor-plugin-dev
Upgrades Capacitor plugins to newer major versions by aligning dependencies, updating iOS/Android native code, verifying example apps, and handling multi-version jumps.
npx claudepluginhub cap-go/capgo-skills --plugin capacitor-plugin-devThis skill is limited to using the following tools:
Upgrade a Capacitor plugin to a newer major version.
Upgrades Capacitor app projects to newer major versions via step-by-step process handling multi-jumps, dependency updates, native iOS/Android checks, syncs, and builds.
Upgrades Capacitor plugins from v4 to v5: updates peer dependencies, reviews migration notes, edits native iOS/Android code, updates example apps, runs npm install, syncs and verifies.
Guides migration from Apache Cordova/PhoneGap to Capacitor including plugin equivalents, config updates, platform addition for iOS/Android, and key differences.
Share bugs, ideas, or general feedback.
Upgrade a Capacitor plugin to a newer major version.
Plugin and Capacitor package snapshot:
!node -e "const fs=require('fs');if(!fs.existsSync('package.json'))process.exit(0);const pkg=JSON.parse(fs.readFileSync('package.json','utf8'));const out=['package.name='+(pkg.name||''),'package.version='+(pkg.version||'')];for(const section of ['peerDependencies','dependencies','devDependencies']){for(const [name,version] of Object.entries(pkg[section]||{})){if(name.startsWith('@capacitor/'))out.push(section+'.'+name+'='+version)}}console.log(out.join('\n'))"
Example and native project paths:
!find . -maxdepth 3 \( -path './example-app' -o -path './ios' -o -path './android' -o -name 'capacitor.config.json' -o -name 'capacitor.config.ts' -o -name 'capacitor.config.js' \)
Start from the injected snapshot above, then inspect package.json if the Capacitor ranges or package version need confirmation.
Ask the user to confirm the exact target major version before proceeding.
For each major jump:
@capacitor/* peer dependencies and native bridge code as needed.npm install.npx cap sync from the example or test app directory that contains capacitor.config.*, or rebuild that app with the repository's documented command.Do not skip intermediate major versions.
Review these plugin areas carefully:
Check whether npm run verify exists in package.json or the repository scripts.
If it exists, run:
npm run verify
If it does not exist, run the repository's documented fallback checks instead:
npm run buildnpm testnpx cap sync from the example/test app directoryRun the sync and build commands from the plugin's example/test app directory, not the plugin root.