技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
ionic-enterprise-sdk-migration【数据与研究】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 p…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Migrate Capacitor apps from discontinued Ionic Enterprise SDK plugins to Capawesome alternatives.
| 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 license.
package.json for Ionic Enterprise packages before asking the user which plugins to migrate.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.The Capawesome MCP server serves the current Capawesome documentation, so it is always ahead of the guidance bundled with this skill.
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.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.
Read package.json and check for these packages:
@ionic-enterprise/auth → Auth Connect@ionic-enterprise/identity-vault → Identity Vault@ionic-enterprise/secure-storage → Secure StorageIf 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.
Check if the @capawesome-team npm registry is already configured:
npm config get @capawesome-team:registry
If not configured, guide the user through setup:
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.
For each detected Ionic Enterprise plugin, read the corresponding reference file and follow the migration steps:
references/auth-connect-migration.mdreferences/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.references/secure-storage-migration.mdEach reference file contains:
For plugin installation and platform-specific configuration (Android permissions, iOS plist entries, Proguard rules, etc.), use the capacitor-plugins skill.
After completing all migrations, search the codebase for any remaining Ionic Enterprise imports:
grep -r "@ionic-enterprise" --include="*.ts" --include="*.tsx" --include="*.js" --include="*.jsx"
If any are found, replace them with the corresponding Capawesome imports.
package.json: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-vaulthere. 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 inreferences/identity-vault-migration.md). For a hard cutover, Identity Vault was already uninstalled during its migration.
npx cap sync
npm install fails with a 404 or authentication error for @capawesome-team/* packages, verify the npm registry is configured correctly (Step 2).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.capacitor-plugins skill reference.localStorage on the web. This is for development only and should not be used in production.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.