/capacitor-core:capacitor-pluginsfrom capacitor-core
Helps pick, install, and wire up Capacitor plugins for native features (camera, filesystem, geolocation, biometrics, etc.). Covers @capacitor/* and @capgo/* packages, native permission keys, and common plugin errors.
Ships in capacitor-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Choose the right plugin, install it correctly, and prove it is linked natively.
TRIGGER when:
"X" plugin is not implemented on ios|android|web, UNIMPLEMENTED, unable to find plugin, or an OS-PLUG-* code.Info.plist / AndroidManifest.xml / variables.gradle entries for a plugin.Do not use (load the sibling skill instead):
capacitor-push-notificationscapacitor-splash-screencapacitor-keyboardcapacitor-deep-linkingcapgo-live-updatescapacitor-plugin-upgrades (and capacitor-plugin-upgrade-v8-to-v9)capacitor-plugin-spm-support; moving an app to SPM: cocoapods-to-spmcapacitor-uiscene-migrationcapacitor-app-upgradessqlite-to-fast-sqllatest). Capacitor 9 is 9.0.0-alpha on the next dist-tag. Official plugins follow: most v8 plugins are 8.x on latest and 9.0.0-alpha on next.latest-<major> tags, e.g. npm install @capacitor/camera@latest-7.npm view <pkg> peerDependencies instead of matching the number.@capgo/* plugins use the Capacitor major as their own major (8.x for Capacitor 8). LTS tags such as lts-v7 exist on some packages.minSdkVersion = 26 (inappbrowser, barcode-scanner) stop needing a bump.Inspect first. Read package.json (@capacitor/core version), capacitor.config.*, and check whether iOS uses SPM (ios/App/CapApp-SPM/Package.swift) or CocoaPods (ios/App/Podfile). Run npx cap ls to see what is already linked.
Pick the package.
@capacitor/* package exists and covers the need: default to it. Load its reference from the index below.references/capgo-plugin-index.md and pick the exact @capgo/* name. State why it fits better.npm view <pkg> version first.Install with the matching major:
npm install @capacitor/<name> # or @capgo/<name>
npx cap sync
Add native config from the reference: usage-description keys, manifest permissions, variables.gradle minSdk/library versions, capabilities/entitlements, AppDelegate hooks. Missing iOS usage strings crash the app on first access.
Ask the user before raising minSdkVersion, adding entitlements (HealthKit, Push), or enabling exact alarms: these affect store review and device reach.
Verify (next section), then run on a real device for anything involving camera, health, LLM, BLE, or push.
references/capgo-plugin-index.md is the complete Capgo plugin source, generated from Cap-go GitHub package.json and src/definitions.ts: npm name, purpose, install command, platforms, key API methods, docs and repo links for every public non-archived package. references/capgo-plugin-catalog.md is the compact table of the same set. Load the index before recommending any @capgo/* package and use the exact name from it.
Use the bundled index for consumer projects. Index regeneration belongs to the capgo-skills maintainer workflow; do not extract GitHub credentials or run repository-maintenance scripts while selecting a plugin for an app.
npx cap sync # must finish without "[error]" lines
npx cap ls # lists "Found N Capacitor plugins for ios/android"; plugin must appear for each platform
android/app/capacitor.build.gradle contains implementation project(':capacitor-<name>') and android/capacitor.settings.gradle has the matching include. Then cd android && ./gradlew assembleDebug.ios/App/CapApp-SPM/Package.swift lists the plugin package. iOS CocoaPods: ios/App/Podfile has the pod and pod install succeeded. Build in Xcode or npx cap run ios.grep -rn "<old-package>" src android ios package.json.Capacitor.isPluginAvailable('Camera') and Capacitor.getPlatform().| Error | Cause | Fix |
|---|---|---|
"Camera" plugin is not implemented on ios (or android/web) | Native side not linked, or no web implementation | npx cap sync, rebuild the native app (live reload does not pick up new native code), check npx cap ls. On web, guard with Capacitor.isNativePlatform(). |
"Camera.takePhoto()" is not implemented on ios | Plugin linked but JS and native versions differ, or method is platform-specific | Align JS and native versions, npx cap sync, clean build. Check the reference for platform-only methods. |
UNIMPLEMENTED error code | Method not available on this platform/OS version | Branch on platform; see reference "Notes". |
Android log unable to find plugin : X | Plugin class not registered/included | Confirm capacitor.build.gradle entry, re-sync, Gradle sync in Android Studio. |
iOS log Error loading plugin X for call. Check that the pluginId is correct | Plugin not in the iOS build | Re-sync; check Package.swift (SPM) or Podfile; clean build folder. |
| App crashes on first camera/contacts/calendar/location access (iOS) | Missing NS*UsageDescription key | Add the key listed in the reference to Info.plist. |
Manifest merger failed : uses-sdk:minSdkVersion 24 cannot be smaller than version 26 declared in library [...] | Plugin needs higher minSdk | Raise minSdkVersion in android/variables.gradle (ask the user first). |
OS-PLUG-* codes (e.g. OS-PLUG-CAMR-0003) | Structured native errors in OutSystems-based official plugins | Look up the code in the plugin reference (camera, file-transfer, calendar, contacts list the common ones). |
npm ERESOLVE peer @capacitor/core conflict | Plugin major does not match app major | Install the matching tag (@latest-7, @next for v9 alpha) or upgrade the app with capacitor-app-upgrades. |
Only load a reference when its plugin is in play.
Official @capacitor/* packages (install, native config, usage, gotchas):
| Need | Reference |
|---|---|
| Action sheet | references/capacitor-action-sheet.md |
| Open other apps / check installed | references/capacitor-app-launcher.md |
| App state, back button, URL open events | references/capacitor-app.md |
| JS tasks in background | references/capacitor-background-runner.md |
| Barcode / QR scan | references/capacitor-barcode-scanner.md |
| OAuth-safe in-app browser (SFSafariViewController / Custom Tabs) | references/capacitor-browser.md |
| Calendar events | references/capacitor-calendar.md |
Camera, gallery, video (8.1+ API, getPhoto migration) | references/capacitor-camera.md |
| Clipboard | references/capacitor-clipboard.md |
| Contacts | references/capacitor-contacts.md |
| Native cookies (core) | references/capacitor-cookies.md |
| Device info / id / battery | references/capacitor-device.md |
| Native alert/confirm/prompt | references/capacitor-dialog.md |
| Upload/download with progress | references/capacitor-file-transfer.md |
| Open/preview documents | references/capacitor-file-viewer.md |
| File read/write | references/capacitor-filesystem.md |
| Location (foreground) | references/capacitor-geolocation.md |
| Google Maps | references/capacitor-google-maps.md |
| HealthKit / Health Connect | references/capacitor-health-fitness.md |
| Haptics | references/capacitor-haptics.md |
| Native HTTP (core, CORS bypass) | references/capacitor-http.md |
| WebView / system / external browser | references/capacitor-inappbrowser.md |
| Keyboard API basics | references/capacitor-keyboard.md |
| On-device LLM (experimental) | references/capacitor-local-llm.md |
| Local notifications | references/capacitor-local-notifications.md |
| Accelerometer / orientation | references/capacitor-motion.md |
| Connectivity | references/capacitor-network.md |
| Key/value storage | references/capacitor-preferences.md |
| Hide app switcher snapshot / block screenshots | references/capacitor-privacy-screen.md |
| Push API summary | references/capacitor-push-notifications.md |
| Orientation lock | references/capacitor-screen-orientation.md |
| TalkBack / VoiceOver state, TTS | references/capacitor-screen-reader.md |
| Share sheet | references/capacitor-share.md |
| Splash API summary | references/capacitor-splash-screen.md |
| Status bar (legacy) | references/capacitor-status-bar.md |
| Edge-to-edge system bars (core, preferred on Android 16+) | references/capacitor-system-bars.md |
| WebView text zoom | references/capacitor-text-zoom.md |
| Toast | references/capacitor-toast.md |
| Apple Watch UI (experimental) | references/capacitor-watch.md |
Capgo plugins: references/capgo-plugin-index.md (150 packages: full API methods, events, config keys, and per-release deltas since 2026-09-11) and references/capgo-plugin-catalog.md (compact table).
Capgo deep references (recent API changes):
| Need | Reference |
|---|---|
| Playlist queue, playback state, audio route | references/capgo-native-audio.md |
| Zebra DataWedge diagnostics and scan intents | references/capgo-zebra-datawedge.md |
| iOS geofence queue | references/capgo-background-geolocation.md |
PDF underWebView and layout | references/capgo-pdf-viewer.md |
| IAP configure and finishTransaction | references/capgo-native-purchases.md |
| Live Activities upgrade notes | references/capgo-live-activities.md |
OAuth openAuthSession | references/capgo-social-login.md |
| Apple Watch and Wear OS | references/capgo-watch.md |
| Capgo in-app browser fullscreen and scripting | references/capgo-inappbrowser.md |
| Need | Package |
|---|---|
| Background geolocation, geofencing | @capgo/background-geolocation |
| Custom camera preview / overlays | @capgo/camera-preview |
| Biometric login + secure credentials | @capgo/capacitor-native-biometric |
| Apple/Google/Facebook sign-in | @capgo/capacitor-social-login |
| Subscriptions / IAP | @capgo/native-purchases (revenue strategy: subscription-app-revenue) |
| Apple Pay / Google Pay | @capgo/capacitor-pay |
| Fast native SQLite | @capgo/capacitor-fast-sql |
| Native file ops / picking | @capgo/capacitor-file, @capgo/capacitor-file-picker |
In-app browser with JS injection, postMessage, screenshots | @capgo/capacitor-inappbrowser |
| WebView killed in background, relaunch | @capgo/capacitor-webview-guardian |
| App Attest / Play Integrity | @capgo/capacitor-app-attest |
| OTA live updates | @capgo/capacitor-updater (setup: capgo-live-updates) |
| Dev live reload | @capgo/capacitor-live-reload |
Traps:
@capgo/capacitor-firebase-* packages; there is no umbrella @capgo/capacitor-firebase package on npm.cordova-to-capacitor).metadata.json (opens in a new tab)references/capacitor-action-sheet.md (opens in a new tab)references/capacitor-app-launcher.md (opens in a new tab)references/capacitor-app.md (opens in a new tab)references/capacitor-background-runner.md (opens in a new tab)references/capacitor-barcode-scanner.md (opens in a new tab)references/capacitor-browser.md (opens in a new tab)references/capacitor-calendar.md (opens in a new tab)references/capacitor-camera.md (opens in a new tab)references/capacitor-clipboard.md (opens in a new tab)references/capacitor-contacts.md (opens in a new tab)references/capacitor-cookies.md (opens in a new tab)references/capacitor-device.md (opens in a new tab)references/capacitor-dialog.md (opens in a new tab)references/capacitor-file-transfer.md (opens in a new tab)references/capacitor-file-viewer.md (opens in a new tab)references/capacitor-filesystem.md (opens in a new tab)references/capacitor-geolocation.md (opens in a new tab)references/capacitor-google-maps.md (opens in a new tab)references/capacitor-haptics.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/capacitor-best-practicesReview and set up Capacitor apps against current best practices (Capacitor 8.5 stable, 9 alpha via `@next`). Use for a Capacitor codebase review, `capacitor.config.ts` audit, new project setup, aligning `@capacitor/core`/`cli`/`ios`/`android` and plugin majors, plugin patterns (availability checks, `checkPermissions`/`requestPermissions`, error `code` handling, web fallbacks), or release prep; or on `"<Plugin>" plugin is not implemented on ios`, `Could not find the web assets directory`, `platform has not been added yet`, a dev `server.url` shipped to production, lost edits in `android/app/src/main/assets/public`, SPM vs CocoaPods, or AppDelegate/UIScene drift. Do not use for security audits (capacitor-security), performance (capacitor-performance), tests (capacitor-testing), crashes (debugging-capacitor), major upgrades (capacitor-app-upgrades), SPM migration (cocoapods-to-spm), UIScene adoption (capacitor-uiscene-migration), or live updates (capgo-live-updates)./capacitor-mcpConnect AI agents (Claude Code, Claude Desktop, Cursor, VS Code, Cline, Codex) to Capacitor and Ionic tooling over Model Context Protocol. Covers the awesome-ionic-mcp server (Ionic component APIs, Capacitor plugin docs, Ionic/Capacitor CLI tools), the Capgo hosted MCP at https://api.capgo.app/mcp, the local Capgo CLI MCP (npx @capgo/cli@latest mcp), and Xcode's MCP bridge (xcrun mcpbridge) for building the iOS app from an agent. Use when the user wants to add, configure, verify, or troubleshoot an MCP server for a Capacitor project, or sees errors like "GitHub API rate limit exceeded", "unable to find utility \"mcpbridge\"", or an MCP server that connects with no tools. Do not use for Capgo account operations themselves (capgo-cloud, capgo-cli-usage), app debugging (debugging-capacitor), device logs (ios-android-logs), choosing plugins (capacitor-plugins), or Ionic UI work (ionic-design).npx claudepluginhub cap-go/capgo-skills --plugin capacitor-coreOther plugins' skills for the same job