К основному содержанию
скилл CX Codex

ionic-enterprise-sdk-migration — скилл для Claude Code: миграция

Ведёт агента через перенос Capacitor-приложения с закрытых плагинов Ionic Enterprise SDK на альтернативы Capawesome: OAuth, Vault, Biometrics, Secure Preferences, SQLite.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add capawesome-team/skills --skill ionic-enterprise-sdk-migration -a claude-code
Открыть на GitHub

Что делает ionic-enterprise-sdk-migration

Скилл нужен, когда в package.json висят @ionic-enterprise/auth, @ionic-enterprise/identity-vault или @ionic-enterprise/secure-storage. Агент сам сканирует зависимости, показывает список найденных плагинов и спрашивает, с какого начать. Дальше он ведёт миграцию по одному плагину за раз, чтобы не смешивать правки.

Внутри лежит таблица соответствия: Auth Connect меняется на @capawesome-team/capacitor-oauth, Identity Vault — на @capawesome-team/capacitor-vault вместе с @capawesome-team/capacitor-biometrics, Secure Storage распадается на @capawesome-team/capacitor-secure-preferences или @capawesome-team/capacitor-sqlite. Для каждой пары есть отдельный reference-файл с таблицей API, списком отличий и примерами «до/после». Установку плагинов и настройку платформ скилл передаёт скиллу capacitor-plugins, себе оставляет удаление старых пакетов и замену кода. В конце — поиск оставшихся импортов @ionic-enterprise через grep, npx cap sync и проверка сборки.

Заранее понадобится лицензионный ключ Capawesome Insiders: все плагины-замены лежат в приватном npm-реестре, и без ключа npm install отвалится с 404 или ошибкой авторизации. Нужны Node.js, npm и приложение на Capacitor 6, 7 или 8. Отдельный момент — Identity Vault: если данные на устройствах уже лежат, скилл спросит, сохранять их или делать hard cutover, и при сохранении старый плагин останется в проекте до выхода миграции данных.

Какие задачи решает

  • найти в проекте устаревшие плагины Ionic Enterprise и понять, чем их заменить
  • перенести вызовы Auth Connect на OAuth без потери scopes
  • перевести хранилище с Secure Storage на Secure Preferences или SQLite
  • решить, сохранять ли данные Identity Vault на устройствах или резать сразу
  • вычистить оставшиеся импорты @ionic-enterprise перед релизом

Примеры запросов агенту

  • Проверь package.json и скажи, какие плагины Ionic Enterprise у нас остались
  • Начни миграцию с @ionic-enterprise/auth на @capawesome-team/capacitor-oauth
  • Мы хотим сохранить данные Identity Vault на устройствах — распиши шаги

Как установить ionic-enterprise-sdk-migration

1Через Skills CLI (Vercel)

npx skills add capawesome-team/skills --skill ionic-enterprise-sdk-migration -a claude-code

2Вручную: положить файлы

~/.claude/skills/ionic-enterprise-sdk-migration/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/ionic-enterprise-sdk-migration/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о ionic-enterprise-sdk-migration

Как установить ionic-enterprise-sdk-migration в Claude Code?

Выполните npx skills add capawesome-team/skills --skill ionic-enterprise-sdk-migration -a claude-code. После этого файл скилла окажется в ~/.claude/skills/ionic-enterprise-sdk-migration/SKILL.md.

Что делает ionic-enterprise-sdk-migration?

Проводит миграцию Capacitor-приложения с закрытых плагинов Ionic Enterprise SDK на аналоги Capawesome. Агент находит зависимости, меняет вызовы API по таблицам соответствия и настраивает платформы.

Что нужно для работы скилла?

Node.js, npm, приложение на Capacitor 6, 7 или 8 и лицензионный ключ Capawesome Insiders — плагины-замены доступны только через приватный npm-реестр.

Исходный текст

SKILL.md · MIT
---
name: ionic-enterprise-sdk-migration
description: "Guides the agent through migrating Capacitor apps from discontinued Ionic Enterprise SDK plugins (Auth Connect, Identity Vault, Secure Storage) to their Capawesome alternatives (OAuth, Vault, Biometrics, Secure Preferences, SQLite). Covers dependency detection, side-by-side API mapping, code replacement, and platform-specific configuration for each plugin pair. Do not use for migrating Capacitor apps or plugins to a newer version, setting up Capawesome Cloud, or non-Capacitor mobile frameworks."
license: MIT
compatibility: "Requires Node.js and npm, plus a Capawesome Insiders license key for access to the private npm registry."
metadata:
  author: capawesome-team
  source: https://github.com/capawesome-team/skills/tree/main/skills/ionic-enterprise-sdk-migration
---

# Ionic Enterprise SDK Migration

Migrate Capacitor apps from discontinued Ionic Enterprise SDK plugins to Capawesome alternatives.

## Plugin Mapping

| Ionic Enterprise Plugin | Package | Capawesome Replacement | Package(s) |
| ----------------------- | ------- | ---------------------- | ---------- |
| Auth Connect | `@ionic-enterprise/auth` | OAuth | `@capawesome-team/capacitor-oauth` |
| Identity Vault | `@ionic-enterprise/identity-vault` | Vault (+ Biometrics) | `@capawesome-team/capacitor-vault` (+ `@capawesome-team/capacitor-biometrics`) |
| Secure Storage (key-value) | `@ionic-enterprise/secure-storage` | Secure Preferences | `@capawesome-team/capacitor-secure-preferences` |
| Secure Storage (SQLite) | `@ionic-enterprise/secure-storage` | SQLite | `@capawesome-team/capacitor-sqlite` |

All Capawesome replacement plugins require a [Capawesome Insiders](https://capawesome.io/insiders/) license.

## Prerequisites

1. **Capacitor 6, 7, or 8** app.
2. Node.js and npm installed.
3. A [Capawesome Insiders](https://capawesome.io/insiders/) license key.

## Agent Behavior

- **Auto-detect dependencies.** Scan `package.json` for Ionic Enterprise packages before asking the user which plugins to migrate.
- **One plugin at a time.** Complete the full migration for one plugin before starting the next.
- **Use the `capacitor-plugins` skill for installation.** Delegate plugin installation and platform configuration to the `capacitor-plugins` skill. Only handle migration-specific steps (uninstall, code replacement) in this skill.
- **Preserve existing behavior.** When replacing API calls, maintain the same functional behavior (e.g., same scopes, same stored keys, same database schema).

## MCP Server

The [Capawesome MCP server](https://capawesome.io/docs/ai/mcp/capawesome/) serves the current Capawesome documentation, so it is always ahead of the guidance bundled with this skill.

- **If the Capawesome MCP tools are available**, call `search_docs` for the topic and read the matching page with `get_doc_page` before applying the guidance below. Where the two disagree, follow the documentation.
- **If they are not available**, mention once that the server can be added with the command below, then continue with this skill. Never block on it.

```bash
claude mcp add --transport http capawesome "https://mcp.capawesome.io/mcp"
```

The documentation tools need no account and no token. See the `capawesome-mcp` skill for full setup, including the Capawesome Cloud tools.

## Procedures

### Step 1: Detect Ionic Enterprise Dependencies

Read `package.json` and check for these packages:

- `@ionic-enterprise/auth` → Auth Connect
- `@ionic-enterprise/identity-vault` → Identity Vault
- `@ionic-enterprise/secure-storage` → Secure Storage

If none are found, inform the user that no Ionic Enterprise plugins were detected.

If multiple are found, list them and ask the user which to migrate first, or migrate all sequentially.

### Step 2: Set Up the Capawesome npm Registry

Check if the `@capawesome-team` npm registry is already configured:

```bash
npm config get @capawesome-team:registry
```

If not configured, guide the user through setup:

```bash
npm config set @capawesome-team:registry https://npm.registry.capawesome.io
npm config set //npm.registry.capawesome.io/:_authToken <YOUR_LICENSE_KEY>
```

Ask the user for their license key if needed. Wait for confirmation before continuing.

### Step 3: Migrate Each Plugin

For each detected Ionic Enterprise plugin, read the corresponding reference file and follow the migration steps:

- **Auth Connect** → Read `references/auth-connect-migration.md`
- **Identity Vault** → Read `references/identity-vault-migration.md`. Before changing code, ask the user whether they want to **preserve existing stored data** (keep both plugins installed for a transition period and migrate data at runtime) or make a **hard cutover** (drop the old data and switch immediately). The chosen strategy changes which steps run — see the strategy section in the reference file.
- **Secure Storage** → Read `references/secure-storage-migration.md`

Each reference file contains:

1. Feature mapping table (Ionic API → Capawesome API)
2. Key differences to be aware of
3. Step-by-step code replacement with before/after examples

For plugin installation and platform-specific configuration (Android permissions, iOS plist entries, Proguard rules, etc.), use the `capacitor-plugins` skill.

### Step 4: Search for Remaining Ionic Enterprise Imports

After completing all migrations, search the codebase for any remaining Ionic Enterprise imports:

```bash
grep -r "@ionic-enterprise" --include="*.ts" --include="*.tsx" --include="*.js" --include="*.jsx"
```

If any are found, replace them with the corresponding Capawesome imports.

### Step 5: Clean Up and Verify

1. Remove all Ionic Enterprise packages from `package.json`:

```bash
npm uninstall @ionic-enterprise/auth @ionic-enterprise/identity-vault @ionic-enterprise/secure-storage
```

Only uninstall packages that were actually installed.

> **Identity Vault exception (preserve-data strategy):** If the user chose to preserve existing data, do not uninstall `@ionic-enterprise/identity-vault` here. It can only export the old data while both plugins are installed, so it stays until the runtime data migration has shipped and run on devices, then is removed in a later release (see steps 2 and 9 in `references/identity-vault-migration.md`). For a hard cutover, Identity Vault was already uninstalled during its migration.

2. Sync the project:

```bash
npx cap sync
```

3. Verify the project builds successfully on all platforms.

## Error Handling

- **Capawesome registry not configured**: If `npm install` fails with a 404 or authentication error for `@capawesome-team/*` packages, verify the npm registry is configured correctly (Step 2).
- **Missing Capawesome Insiders license**: All replacement plugins require a Capawesome Insiders license. Direct the user to [capawesome.io/insiders](https://capawesome.io/insiders/) to obtain one.
- **Identity Vault session management**: The Capawesome Vault plugin natively supports auto-lock via the `lockAfterBackgrounded` option and `lock`/`unlock` event listeners, which map closely to Identity Vault's `lockAfterBackgrounded`, `onLock`, and `onUnlock`. Custom-passcode vaults have no direct equivalent and must be rebuilt with application logic. See `references/identity-vault-migration.md`.
- **Secure Storage encryption**: Ionic Secure Storage has built-in encryption. Capawesome SQLite encryption requires additional platform configuration (SQLCipher). If the user needs database encryption, guide them through the SQLite encryption setup in the `capacitor-plugins` skill reference.
- **Web platform limitations**: Capawesome Secure Preferences stores values unencrypted in `localStorage` on the web. This is for development only and should not be used in production.

## Related Skills

- **`capacitor-plugins`** — Referenced throughout this skill for plugin installation and platform configuration.
- **`ionic-appflow-migration`** — If the project also uses Ionic Appflow (Live Updates, Native Builds, App Store Publishing), use this skill to migrate to Capawesome Cloud.
- **`capawesome-mcp`** — Connect an MCP client to the hosted Capawesome MCP server for always-current documentation and Capawesome Cloud management.

© capawesome-team · MIT · capawesome-team/skills

Похожие скиллы

Всё по теме «Мобильная разработка» →

Из того же набора20

capacitor-plugin-development Ведёт агента через создание и поддержку плагинов Capacitor: скаффолдинг, нативные мосты iOS и Android, веб-слой, публикация в npm. CX Codex +1 745установок ionic-app-upgrades Ведёт агента через мажорный апгрейд Ionic: пошаговые миграции для Angular, React и Vue, ломающие изменения компонентов и CSS-переменных. CX Codex +1 740установок capacitor-in-app-purchases Скилл ведёт агента по шагам: настройка товаров в App Store Connect и Google Play Console, выбор плагина, покупки, валидация чеков и тесты в песочнице. CX Codex +1 728установок ionic-appflow-migration Проводит агента через переезд проекта с Ionic Appflow на Capawesome Cloud: импорт организации одной командой и замена Live Update SDK в приложении. CX Codex +1 663установок ionic-react Ведёт агента по разработке приложений на Ionic Framework с React: структура проекта, IonReactRouter, хуки жизненного цикла и работа с состоянием. CX Codex +1 622установок ionic-vue Ведёт агента по разработке Ionic-приложений на Vue: структура проекта, навигация, хуки жизненного цикла и композаблы. Пригодится, когда страницы не обновляют данные при повторном заходе. CX Codex +1 603установок capacitor-app-spm-migration Скилл ведёт агента через перенос iOS-зависимостей Capacitor-приложения с CocoaPods на Swift Package Manager. Пригодится, когда ios/ уже оброс кастомными файлами. CX Codex +1 593установок capacitor-platforms Проведёт агента через добавление и настройку десктопных платформ Capawesome для Capacitor — Electron и Tauri. Пригодится, когда веб-приложение пора собрать под macOS, Windows и Linux. CX Codex +1 496установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой