Skip to content
cap-go avatar

Cordova To Capacitor

Migrate Apache Cordova and PhoneGap apps to Capacitor one plugin at a time, removing Cordova last.

CCM score
68 of 100
skills.sh installs
851
GitHub stars
79
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full path: auditing Cordova plugins, installing Capacitor, adding native projects, replacing plugins, and removing Cordova
  • Includes reference guides for plugin replacements, config.xml and data preservation, and callback-to-promise code patterns
  • Preserves localStorage and IndexedDB on first launch by keeping the old webview scheme (iosScheme/androidScheme)
  • Designed for projects with config.xml, platforms/, or cordova-plugin-* dependencies that need to move to Capacitor 9

Install

$ npx -y skills add cap-go/capgo-skills --skill cordova-to-capacitor -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Cordova to Capacitor Migration

Move a Cordova app onto Capacitor incrementally: Capacitor first, plugins one by one, Cordova removed last.

When to Use

TRIGGER when:

  • config.xml, platforms/, plugins/, cordova-android/cordova-ios, or cordova-plugin-* are present and the user wants Capacitor.
  • Code waits on deviceready or calls navigator.camera, window.plugins.*, cordova.plugins.*, @awesome-cordova-plugins/*, @ionic-native/*.
  • After migration: data loss on first launch, missing Cordova plugin behaviour, or Capacitor 9 build errors referencing Cordova symbols.

Do not use for:

  • Rewriting a Cordova plugin's Java/Objective-C as a Capacitor plugin (plugin-level port) -> follow Capacitor plugin docs; capacitor-plugins for existing replacements.
  • Upgrading Capacitor majors -> capacitor-app-upgrades.
  • Replacing Appflow Live Updates (cordova-plugin-ionic) -> ionic-appflow-migration + capgo-live-updates.
  • Framework build config (Angular output path, Vite) -> framework-to-capacitor.

Project Inspection

Details

Repository
github.com/cap-go/capgo-skills
Categories
Mobile Apps, Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the cordova-to-capacitor skill do?

The cordova-to-capacitor skill migrates an Apache Cordova, PhoneGap, or Ionic-Cordova app to Capacitor, one step at a time. It covers adding Capacitor native projects, replacing Cordova plugins, and removing Cordova once everything is verified.

How do I install the cordova-to-capacitor skill?

Run npx -y skills add cap-go/capgo-skills --skill cordova-to-capacitor -y in your project. After that, the agent can use cordova-to-capacitor to audit your config.xml and plugins before editing.

Which Cordova apps is the cordova-to-capacitor skill for?

The cordova-to-capacitor skill is for projects that have config.xml, a platforms or plugins folder, or cordova or phonegap dependencies. It also fits apps that use deviceready listeners or cordova.plugins calls and want Capacitor native projects.

Will cordova-to-capacitor keep my localStorage and IndexedDB data after migration?

The cordova-to-capacitor skill covers preserving localStorage and IndexedDB data through the iosScheme and androidScheme settings. It explains that Capacitor serves the app from a new origin, so the scheme must be decided before the first release.

More from cap-go/capgo-skills

All 41

Similar to Cordova To Capacitor

More Mobile Apps