
Capacitor Plugin Upgrades
- 441 installs
- 57 repo stars
- Updated July 13, 2026
- cap-go/capgo-skills
capacitor-plugin-upgrades is an agent skill that upgrades Capacitor plugins across major versions with sequential dependency alignment, native platform changes, and example app verification for plugin maintainers shippin
About
capacitor-plugin-upgrades guides maintainers bumping @capacitor/* peer dependencies on custom or community plugins to a new major Capacitor release. A live snapshot reads package.json for @capacitor versions and locates example-app, ios/, android/, and capacitor.config files before confirming the target major. Each major jump updates peer deps and native bridge code, runs npm install and npx cap sync from the example app—not the plugin root—and verifies API surface across TypeScript definitions, Android Gradle settings, and iOS deployment targets without skipping intermediate majors. Final checks prefer npm run verify or fall back to build, test, cap sync, and per-platform example builds. Developers reach for capacitor-plugin-upgrades when a plugin breaks after a Capacitor major bump or before publishing a compatibility release.
- Tracks per-plugin migration notes
- Re-syncs iOS pods and Android Gradle
- Updates TypeScript call sites for API shifts
- Tests native permission side effects
- Isolates plugin failures from core upgrades
Capacitor Plugin Upgrades by the numbers
- 441 all-time installs (skills.sh)
- Ranked #323 of 1,039 Mobile Development skills by installs in the Skillselion catalog
- Data as of Aug 1, 2026 (Skillselion catalog sync)
npx skills add https://github.com/cap-go/capgo-skills --skill capacitor-plugin-upgradesAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 441 |
|---|---|
| repo stars | ★ 57 |
| Last updated | July 13, 2026 |
| Repository | cap-go/capgo-skills ↗ |
How do you upgrade Capacitor plugins across majors?
Upgrade individual Capacitor community or custom plugins, reconcile API changes, and re-sync native pods and Gradle artifacts without breaking app features.
Who is it for?
Capacitor plugin maintainers performing major-version compatibility bumps who need sequential migration checks across TypeScript, Gradle, and Swift bridge surfaces.
Skip if: Skip capacitor-plugin-upgrades for Capacitor app project upgrades or single-patch dependency bumps without native API changes—use capacitor-app-upgrades for full apps.
When should I use this skill?
User bumps a Capacitor plugin to a new major @capacitor/core version, example app breaks after cap sync, or needs npm run verify before publishing plugin update.
What you get
Updated peer dependencies, reconciled iOS and Android native code, passing example app build, and verified plugin API compatible with target Capacitor major.
- Updated peer dependencies
- Reconciled native platform code
- Verified example app build
By the numbers
- Upgrades Capacitor plugins sequentially without skipping intermediate major versions
- Snapshots @capacitor/* versions from package.json at skill start
- Final verification prefers npm run verify when present in package.json scripts
Files
Capacitor Plugin Upgrade
Upgrade a Capacitor plugin to a newer major version.
When to Use This Skill
- User wants to bump a Capacitor plugin package to a newer major version
- User needs help adapting native code to a new Capacitor major release
- User wants to verify the plugin still works in its example app after the upgrade
Live Project Snapshot
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' \)
Procedures
Step 1: Detect the Current Version
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.
Step 2: Upgrade Sequentially
For each major jump:
1. Update @capacitor/* peer dependencies and native bridge code as needed. 2. Adjust iOS and Android native project settings for the target Capacitor version. 3. Run npm install. 4. Run npx cap sync from the example or test app directory that contains capacitor.config.*, or rebuild that app with the repository's documented command. 5. Verify the plugin API still works in the example app or test app.
Do not skip intermediate major versions.
Step 3: Check Plugin-Specific Surface Area
Review these plugin areas carefully:
- TypeScript definitions and exported names
- Native method signatures and return payloads
- Android namespace, Gradle settings, and Java compatibility
- iOS deployment target, Swift syntax, and bridge registration
- Documentation snippets and README install steps
Step 4: Final Verification
Check whether npm run verify exists in package.json or the repository scripts.
If it exists, run:
npm run verifyIf it does not exist, run the repository's documented fallback checks instead:
npm run buildnpm testnpx cap syncfrom the example/test app directory- the example app or test app build for every shipped platform
Run the sync and build commands from the plugin's example/test app directory, not the plugin root.
Error Handling
- If a migration tool exists for the target version, use it first and then review the diff manually.
- If the example app breaks, fix the plugin API or native wiring before publishing the version bump.
- If a plugin supports multiple platforms, verify every platform that ships in the package.
{
"version": "1.0.0",
"organization": "Capgo",
"date": "March 2026",
"abstract": "Guide for upgrading a Capacitor plugin across major versions with sequential native and TypeScript verification.",
"triggers": [
"upgrade capacitor plugin",
"plugin major version",
"migrate capacitor plugin",
"bump plugin version",
"update capacitor plugin"
],
"references": [
"https://capacitorjs.com/docs/plugins"
]
}
Related skills
How it compares
Use capacitor-plugin-upgrades for maintainer-owned Capacitor plugins; use capawesome capacitor-app-upgrades when bumping the host application rather than a published plugin package.
FAQ
Can capacitor-plugin-upgrades skip Capacitor major versions?
capacitor-plugin-upgrades requires sequential major jumps. For each intermediate major, update @capacitor peer dependencies, adjust native bridge code, npm install, npx cap sync in the example app, and verify before advancing.
Where should npx cap sync run during plugin upgrades?
capacitor-plugin-upgrades runs npx cap sync from the plugin example or test app directory containing capacitor.config.*, not from the plugin package root, matching how consumers integrate the plugin.
What verification does capacitor-plugin-upgrades recommend?
capacitor-plugin-upgrades prefers npm run verify when defined in package.json. Otherwise it runs npm run build, npm test, npx cap sync, and example app builds for every shipped platform.