Skip to main content
skill CX Codex

capacitor-app-development — Claude Code skill: what it does, install

Guides coding agents through configuring, running, and troubleshooting existing Capacitor 6, 7, and 8 apps across iOS and Android.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add capawesome-team/skills --skill capacitor-app-development -a claude-code
Open on GitHub

What capacitor-app-development does

This skill guides agents through existing Capacitor codebases. It inspects the project structure, checking for android/ and ios/ folders, the @capacitor/core package version, and tool configs like Vite or Next.js. The agent then pulls targeted reference material instead of spitting out generic advice.

Guidance covers capacitor.config.ts, Android safe area rules, edge-to-edge layout, deep links, storage options, and live reload setups. It also provides exact fixes for failed npx cap sync runs and Gradle build errors.

You need Xcode on macOS for iOS targets, and Android Studio for Android. The skill expects an initialized Capacitor project. It does not scaffold new apps or write framework-specific React and Angular code.

What it helps with

  • configure live reload for testing on physical mobile hardware
  • resolve plugin synchronization errors during npx cap sync
  • implement Android edge-to-edge displays and safe area handling
  • set up deep links and universal links for iOS and Android

Example prompts for the agent

  • Configure live reload in capacitor.config.ts for my local network IP.
  • Fix the Gradle build failure in android/ after adding the latest plugins.
  • Show me how to handle Android safe area insets and edge-to-edge layout.

How to install capacitor-app-development

1Skills CLI (Vercel)

npx skills add capawesome-team/skills --skill capacitor-app-development -a claude-code

2Manually: put the files in place

~/.claude/skills/capacitor-app-development/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/capacitor-app-development/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about capacitor-app-development

How do I install capacitor-app-development in Claude Code?

Run npx skills add capawesome-team/skills --skill capacitor-app-development -a claude-code. The skill writes to ~/.claude/skills/capacitor-app-development/SKILL.md.

What does capacitor-app-development do?

It teaches coding agents how to inspect Capacitor configurations, handle Android and iOS platform files, configure live reload, and debug native build issues.

Can I use this skill to create a brand new Capacitor project?

No, it only supports existing projects on Capacitor 6, 7, or 8. Use the capacitor-app-creation skill instead to generate a new app from scratch.

Source text

SKILL.md · MIT
---
name: capacitor-app-development
description: "Guides the agent through general Capacitor app development topics. Covers core concepts (native bridge, plugins, web layer), Capacitor CLI usage, app configuration (capacitor.config.ts, splash screens, app icons, deep links), platform management (Android, iOS, Electron, PWA), edge-to-edge and safe area handling on Android, live reload setup, storage solutions, file handling, security best practices, CI/CD references, iOS package managers (SPM, CocoaPods), and troubleshooting for Android and iOS. Do not use for creating new Capacitor apps, Capacitor plugin APIs, creating Capacitor plugins, in-app purchases, upgrading Capacitor versions, Cordova or PhoneGap migration, or framework-specific patterns (Angular, React, Vue)."
license: MIT
compatibility: "Requires Node.js and npm. Xcode on macOS is required for iOS and Android Studio for Android."
metadata:
  author: capawesome-team
  source: https://github.com/capawesome-team/skills/tree/main/skills/capacitor-app-development
---

# Capacitor App Development

General guidance for developing cross-platform apps with Capacitor, covering core concepts, CLI usage, app configuration, platform management, and troubleshooting.

## Prerequisites

1. **Capacitor 6, 7, or 8** app already created and initialized.
2. Node.js and npm installed (Node 18+ for Cap 6, Node 20+ for Cap 7, Node 22+ for Cap 8).
3. For **Android**: Android Studio installed.
4. For **iOS**: Xcode installed on macOS.

## Agent Behavior

- **Auto-detect before asking.** Inspect the project for platforms (`android/`, `ios/`), framework (`vite.config.ts`, `angular.json`, `webpack.config.js`, `next.config.js`), Capacitor version (`@capacitor/core` in `package.json`), and iOS dependency manager (`ios/App/Podfile` for CocoaPods vs. SPM).
- **Route to the right reference file.** Use the topic index below to identify the correct reference file and read it before providing guidance.
- **One topic at a time.** Address the user's specific question. Do not provide a general overview unless explicitly requested.
- **Prefer actionable instructions.** Provide exact file paths, commands, and diff blocks rather than conceptual explanations.

## Procedures

### Step 1: Identify the Topic

Match the user's request to a topic from the index below. If the request spans multiple topics, address them sequentially.

If the request matches a topic covered by a **different skill**, redirect the user to that skill (see Related Skills at the bottom).

### Step 2: Analyze the Project

Auto-detect the following by reading project files:

1. **Capacitor version**: Read `@capacitor/core` version from `package.json`.
2. **Platforms**: Check which directories exist (`android/`, `ios/`).
3. **Framework**: Check for build tool config files.
4. **Capacitor config format**: Check for `capacitor.config.ts` or `capacitor.config.json`.
5. **iOS dependency manager**: Check for `ios/App/Podfile` (CocoaPods) or SPM usage.

### Step 3: Read the Reference File and Apply Guidance

Read the reference file for the matched topic and apply the instructions to the user's project.

## Topic Index

| Topic | Reference |
| ----- | --------- |
| Core concepts (native bridge, how Capacitor works) | `references/core-concepts.md` |
| Capacitor platforms (Android, iOS, Electron, PWA) | `references/platforms.md` |
| Capacitor CLI commands | `references/cli.md` |
| App configuration (`capacitor.config.ts`) | `references/app-configuration.md` |
| Splash screens and app icons | `references/splash-screens-and-icons.md` |
| Deep links and universal links | `references/deep-links.md` |
| Android edge-to-edge support | `references/edge-to-edge.md` |
| Android safe area handling | `references/safe-area.md` |
| Live reload setup | `references/live-reload.md` |
| Storage solutions | `references/storage.md` |
| File handling best practices | `references/file-handling.md` |
| Security best practices | `references/security.md` |
| iOS package managers (SPM, CocoaPods) | `references/ios-package-managers.md` |
| CI/CD for Capacitor apps | `references/ci-cd.md` |
| Testing (unit and E2E) | `references/testing.md` |
| Cross-platform best practices | `references/cross-platform-best-practices.md` |
| Android troubleshooting | `references/troubleshooting-android.md` |
| iOS troubleshooting | `references/troubleshooting-ios.md` |

## Error Handling

- **`npx cap sync` fails**: Verify `@capacitor/core` and `@capacitor/cli` versions match. On iOS with CocoaPods, run `cd ios/App && pod install`. On Android, sync Gradle files in Android Studio.
- **Android build fails after configuration changes**: Clean the build with `cd android && ./gradlew clean`, then rebuild.
- **iOS build fails after configuration changes**: Clean the build folder in Xcode (Product > Clean Build Folder) or delete `ios/App/Pods` and run `cd ios/App && pod install`.
- **Plugin not found at runtime**: Run `npx cap sync` after any plugin installation. Verify the plugin appears in `capacitor.config` or the native project.
- **Live reload not connecting**: Verify the device and development machine are on the same network. Check that the server URL in `capacitor.config` uses the correct LAN IP address.
- **Deep links not working**: Verify the site association file is accessible at `https://<domain>/.well-known/apple-app-site-association` (iOS) or `https://<domain>/.well-known/assetlinks.json` (Android). Verify the app is signed with the correct certificate.

## Related Skills

- **`capacitor-app-creation`** — Create a new Capacitor app.
- **`capacitor-angular`** — Angular-specific Capacitor development.
- **`capacitor-react`** — React-specific Capacitor development.
- **`capacitor-vue`** — Vue-specific Capacitor development.
- **`capacitor-plugins`** — Install and configure Capacitor plugins.
- **`capacitor-plugin-development`** — Create custom Capacitor plugins.
- **`capacitor-app-upgrades`** — Upgrade Capacitor to a newer major version.
- **`capacitor-in-app-purchases`** — Set up in-app purchases.
- **`capawesome-cloud`** — Cloud builds, live updates, and app store publishing.
- **`capacitor-mcp`** — Connect an MCP client to the current Capacitor documentation.

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

Similar skills

Everything for Mobile →

From the same set22

ionic-angular A skill that walks your coding agent through Angular patterns in Ionic: routing, lazy loading, forms, page lifecycle hooks. CX Codex +1 1,400installs ionic-app-development Guides coding agents through Ionic Framework development, covering 80+ UI components, CLI commands, and page lifecycle hooks for existing apps. CX Codex +1 1,200installs ionic-expert A skill that hands your agent a working reference for Ionic Framework: components, CLI, theming, navigation and Angular, React, Vue patterns. CX Codex +1 1,200installs capacitor-expert A Capacitor reference skill for AI agents: architecture, CLI, plugins, framework integration and Capawesome Cloud. Useful when the agent builds or debugs a cross-platform app. CX Codex +1 1,100installs capacitor-push-notifications Walks the agent through Firebase, the @capacitor-firebase/messaging plugin, Android, iOS and Web setup, APNs, FCM tokens and a test send. CX Codex +1 979installs capacitor-app-upgrades Walks the agent through upgrading a Capacitor app to a newer major version, including jumps across several versions. Useful when you finally move from 4 to 8. CX Codex +1 902installs capawesome-cloud The skill walks the agent through Capawesome Cloud setup: cloud builds for iOS and Android, OTA updates, and automated publishing to the App Store and Google Play. CX Codex +1 840installs capacitor-app-creation A skill that walks the agent through building a Capacitor app from scratch: web scaffold, config, native platforms, and running it. CX Codex +1 820installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor