migrate-cordova

migrate-cordova is a skill for Claude Code, Codex from Phaedra-Solutions/cursor-rules. It costs 112 tokens per session (1,134 once invoked), scanned A, original, MIT.

A migration guide for moving a Cordova mobile app to Capacitor, a newer system for packaging web apps as native Android and iOS apps.

In plain words
What is it for?
Use it to inventory the app, map plugins to Capacitor or compatible alternatives, add native platforms, and move configuration and assets.
Why use it?
It helps replace or retain Cordova plugins while accounting for native settings, platform changes, store requirements, and existing native edits.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inventory the app, map plugins to Capacitor or compatible alternatives, add native platforms, and move configuration and assets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phaedra-solutions/cursor-rules/migrate-cordova
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Phaedra-Solutions/cursor-rules --skill migrate-cordova
Clone the repo
git clone --depth 1 https://github.com/Phaedra-Solutions/cursor-rules

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for migrate-cordova

README.md
[![agentmods](https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/migrate-cordova/github.svg)](https://agentmods.dev/skills/phaedra-solutions/cursor-rules/migrate-cordova)
Your own site
<a href="https://agentmods.dev/skills/phaedra-solutions/cursor-rules/migrate-cordova"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/migrate-cordova/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for migrate-cordova

Your own site · 80×15
<a href="https://agentmods.dev/skills/phaedra-solutions/cursor-rules/migrate-cordova"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/migrate-cordova.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,134 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00112 $0.01134
Opus 5.5 $0.00045 $0.00454
Sonnet 5.5 $0.00022 $0.00227
Haiku 4.5 $0.00011 $0.00113

Measured 3d ago against content hash 154d2d810885, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

migrate-cordova scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/migrate-cordova/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Migrate Cordova to Capacitor

When to use

  • The app is built with Cordova (see legacy/cordova) and the user wants Capacitor.
  • Cordova plugins the app needs are abandoned or block store requirements (API 36, Xcode 26).

Before you start

  • Inventory: config.xml (widget id, version, preferences, <access>, <allow-navigation>, icons, splash), every cordova-plugin-* with version and purpose, hooks, and any native edits under platforms/.
  • For each plugin decide: official @capacitor/* plugin, maintained community plugin, keep the Cordova plugin (Capacitor runs many Cordova plugins; check the compatibility list), or drop it.
  • Ask the user:
    • target (default Capacitor 8, latest 8.6.0; minimum safe 8.5.1 or 8.4.3 for CVE-2026-103922);
    • whether to migrate in place (default) or in a new project;
    • whether package installs are approved (core/supply-chain).
  • Tooling: Node 22+, Android Studio with API 36, Xcode 26 on macOS.
  • Working tree clean; new branch; record the main flows on the current build.

Steps

  1. Install Capacitor in the existing project and initialize with the same app name and bundle ID from config.xml:

    npm install @capacitor/core @capacitor/cli
    npx cap init "<App Name>" <com.example.app> --web-dir www
    npm run build
    npm install @capacitor/android @capacitor/ios
    npx cap add android
    npx cap add ios
    
  2. Plugins: install Capacitor replacements one at a time (for example @capacitor/camera, @capacitor/preferences, @capacitor/push-notifications, @capacitor/browser instead of InAppBrowser), update the calling code, and remove the Cordova plugin. Keep a Cordova plugin only if it's on the compatibility list and maintained; npx cap sync installs it into the native projects.

  3. Configuration: move config.xml preferences into capacitor.config.ts (server.allowNavigation only for your own hosts; no server.url in release builds) and native settings into android/ (manifest, variables.gradle, network security config) and ios/ (Info.plist, entitlements). Recreate icons and splash screens with @capacitor/assets.

  4. Security parity: keep the CSP in index.html, HTTPS only, secure storage for tokens, external links in the system browser.

  5. Native projects are source: commit android/ and ios/; remove platforms/, plugins/ and config.xml once nothing uses them.

  6. Versioning and signing: same applicationId / bundle ID, a higher version code and build number, the existing signing keys.

  7. Show the diff and results; wait for approval. Commit only when asked (git-commit skill). Then apply mobile/mobile-security.

Read the full file on GitHub · 67 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 67 lines · 112 tokens per session scan A 154d2d810885

Subscribe to this mod's changes

migrate-cordova is a skill published in the GitHub repository Phaedra-Solutions/cursor-rules (4 stars, last pushed 2d ago), licensed MIT. It adds 112 tokens to every session and 1,134 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-01.

Related

Other skills, from other repositories

compose-multiplatform-patterns

Compose Multiplatform and Jetpack Compose patterns for KMP projects — state management, navigation, theming, performance, and platform-specific UI.

hashgraph-online/awesome-codex-plugins · 37 tokens

kotlin-android

Use when building or fixing a native Android app in Kotlin and Jetpack Compose on the UDF layered architecture — ViewModel/StateFlow, Hilt, Room, Retrofit, coroutines, type-safe Navigation, and the Gradle/AGP surface. NOT shared Android and iOS UI from one Kotlin codebase (that is compose-multiplatform).

ericrisco/rsc-harness · 78 tokens

compose-multiplatform

Use when building one shared Compose UI in Kotlin across Android, iOS, and desktop — commonMain @Composables, expect/actual, source-set placement, native interop, multiplatform ViewModel/navigation/Koin. NOT a single-platform native build (that is kotlin-android / swift-ios), and NOT Dart/Flutter cross-platform UI…

ericrisco/rsc-harness · 80 tokens

ui-mobile

Mobile UI patterns - React Native, iOS/Android, touch targets.

alinaqi/maggy · 17 tokens

grok-cli

Delegate bounded tasks to Grok Build from a supervising agent such as Codex. Use when the user asks Grok to investigate, review, implement, or provide another perspective, or when a distinct coding agent would materially help. Includes a background ACP client for progress, follow-up prompts, permissions, and…

scarletkc/agents · 66 tokens

init-project

Turn this boilerplate into a new app by renaming it, removing sample files, and linking it to EAS. Use when starting a new app from this template, or when asked to init, bootstrap, or rename the project.

wataru-maeda/react-native-boilerplate · 50 tokens