Capacitor App Development
CLAWHUB · Unverified
Guides the agent through general Capacitor app development topics. Covers core concepts (native bridge, plugins, web layer), Capacitor CLI usage, app configu...
- 62
- Rank
- 84
- Safety
- 1.1k
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 11, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 11, 2026
- Adoption signal
- 1.1K downloadsadoption · Oct 11, 2026
- Latest release
- 1.0.0release · Mar 24, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 1.0.0release
Initial release of the Capacitor App Development skill. - Provides structured guidance for general Capacitor app development topics, including core concepts, configuration, platform management, security, and troubleshooting. - Includes a topic index with mapped reference files for quick navigation. - Details agent behavior for project auto-detection, topic routing, and actionable, step-by-step instructions. - Specifies prerequisites and error handling best practices. - Clarifies out-of-scope topics, with redirects to related specialized skills as needed.
Observed Mar 24, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s172kzsd0nw5q1rrp6ec1xm85183g7d7:capacitor-app-development- Install using `clawhub skill install s172kzsd0nw5q1rrp6ec1xm85183g7d7:capacitor-app-development` in an isolated environment before connecting it to live workloads.
- No published capability contract is available yet, so validate auth and request/response behavior manually.
- Review the upstream CLAWHUB listing at https://clawhub.ai/robingenz/capacitor-app-development before using production credentials.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-robingenz-capacitor-app-development/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
49,487 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
--- 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)." 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
_meta.json
{
"ownerId": "kn75k0y6hs2k3w2w5v5pjzetvs831x18",
"slug": "capacitor-app-development",
"version": "1.0.0",
"publishedAt": 1774371594896
}references/app-configuration.md
# App Configuration
Capacitor is configured through `capacitor.config.ts` (TypeScript) or `capacitor.config.json` (JSON) in the project root.
## Configuration File Formats
### TypeScript (recommended)
```typescript
import { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = {
appId: 'com.example.myapp',
appName: 'My App',
webDir: 'dist',
};
export default config;
```
### JSON
```json
{
"appId": "com.example.myapp",
"appName": "My App",
"webDir": "dist"
}
```
TypeScript is preferred because it enables IDE autocompletion and type checking for all configuration options.
## Core Properties
| Property | Type | Description |
| -------- | ---- | ----------- |
| `appId` | `string` | App identifier in reverse-domain format (e.g., `com.example.myapp`). Must match the native project's bundle/application ID. |
| `appName` | `string` | Display name of the app. |
| `webDir` | `string` | Directory containing the built web assets (e.g., `dist`, `www`, `build`). Relative to the project root. |
| `bundledWebRuntime` | `boolean` | Deprecated. Do not use. |
## Server Configuration
Control how the WebView loads content:
```typescript
const config: CapacitorConfig = {
server: {
url: 'http://192.168.1.68:8100', // Load from a remote URL (for live reload)
cleartext: true, // Allow HTTP (non-HTTPS) traffic
androidScheme: 'https', // URL scheme for Android (default: 'https')
iosScheme: 'capacitor', // URL scheme for iOS (default: 'capacitor')
hostname: 'localhost', // Hostname for the local server
allowNavigation: ['example.com'], // Allowed navigation hosts
errorPath: 'error.html', // Custom error page
},
};
```
- **`url`**: Override the default local file serving to load from a remote URL. Used primarily for live reload during development. **Do not commit to version control.**
- **`cleartext`**: Set to `true` to allow HTTP traffic. Required when `url` uses `http://`.
- **`androidScheme`**: The URL scheme used on Android. Default is `https`. Changing this affects CORS, localStorage, and cookie behavior.
- **`iosScheme`**: The URL scheme used on iOS. Default is `capacitor`.
- **`allowNavigation`**: List of hostnames or URL patterns the WebView is allowed to navigate to.
## Plugin Configuration
Configure plugin-specific options under the `plugins` key:
```typescript
const config: CapacitorConfig = {
plugins: {
SplashScreen: {
launchShowDuration: 2000,
backgroundColor: '#ffffff',
},
Keyboard: {
resize: 'body',
resizeOnFullScreen: true,
},
SystemBars: {
insetsHandling: 'disable',
},
},
};
```
Each plugin documents its own configuration options. Refer to the plugin's documentation for available keys.
## Android-Specific Configuration
```typescript
const config: CapacitorConfig = {
android: {
path: 'android', // Path to thereferences/ci-cd.md
# CI/CD for Capacitor Apps
Set up continuous integration and continuous deployment for Capacitor apps.
## Capawesome Cloud (Recommended)
Capawesome Cloud provides a managed CI/CD solution for Capacitor apps with native builds, live updates, and app store publishing.
For full setup and usage, use the **`capawesome-cloud`** skill.
Key features:
- Cloud-based native builds for iOS and Android (no local Xcode/Android Studio required for builds).
- Live updates (OTA) to push web layer changes without app store review.
- Automated app store publishing to Apple App Store and Google Play Store.
- Signing certificate management.
- Environment variables and secrets.
- CI/CD integration via the `@capawesome/cli`.
## Self-Hosted CI/CD
For self-hosted CI/CD pipelines (GitHub Actions, GitLab CI, Bitbucket Pipelines, etc.), the general workflow is:
### Web Build
```bash
npm ci
npm run build
```
### Android Build
```bash
npm ci
npm run build
npx cap sync android
cd android && ./gradlew assembleRelease
```
The APK is at `android/app/build/outputs/apk/release/app-release.apk`.
For AAB (Android App Bundle):
```bash
cd android && ./gradlew bundleRelease
```
The AAB is at `android/app/build/outputs/bundle/release/app-release.aab`.
Android builds require:
- Java (JDK 17 for Capacitor 7, JDK 21 for Capacitor 8).
- Android SDK and build tools.
- A signing keystore for release builds.
### iOS Build
```bash
npm ci
npm run build
npx cap sync ios
cd ios/App && xcodebuild -workspace App.xcworkspace -scheme App -configuration Release -archivePath build/App.xcarchive archive
cd ios/App && xcodebuild -exportArchive -archivePath build/App.xcarchive -exportOptionsPlist ExportOptions.plist -exportPath build/output
```
iOS builds require:
- macOS runner.
- Xcode.
- Apple signing certificate and provisioning profile installed on the runner.
- An `ExportOptions.plist` file specifying the export method and signing identity.
### Live Updates via CI/CD
Upload web bundles to Capawesome Cloud from CI:
```bash
npm ci
npm run build
npx @capawesome/cli login --token $CAPAWESOME_TOKEN
npx @capawesome/cli apps:bundles:create --app-id $APP_ID --path dist/
```
For full live update setup, use the **`capawesome-cloud`** skill.
## Automated Configuration with Trapeze
Use Trapeze (`@trapezedev/configure`) to automate native project configuration changes in CI/CD. This is useful for:
- Setting version numbers and build numbers per environment.
- Configuring different app IDs for staging vs. production.
- Injecting environment-specific values.
Define configuration in a YAML file (e.g., `trapeze.yaml`):
```yaml
platforms:
android:
versionName: $VERSION
versionCode: $BUILD_NUMBER
manifest:
- file: AndroidManifest.xml
target: manifest
attrs:
package: $APP_ID
ios:
version: $VERSION
buildNumber: $BUILD_NUMBER
targets:
App:
bundleId: $APP_ID
```
Apply in CI:
```bash
npx @trapezedev/configure run trapeze.yreferences/cli.md
# Capacitor CLI Command reference for the Capacitor CLI (`@capacitor/cli`). All commands are invoked via `npx cap <command>`. ## Commands ### `npx cap init` Initialize Capacitor in an existing web project. Creates `capacitor.config.ts` and `package.json` entries. ```bash npx cap init <appName> <appId> ``` - `appName`: The display name of the app (e.g., `"My App"`). - `appId`: The app identifier in reverse-domain format (e.g., `com.example.myapp`). ### `npx cap add <platform>` Add a native platform to the project. ```bash npx cap add android npx cap add ios ``` Creates the `android/` or `ios/` directory with a full native project. ### `npx cap sync` Copy web assets and update native plugins and dependencies. This is the most commonly used command. ```bash npx cap sync [platform] ``` Options: - `--deployment` — Prevent deletion of `Podfile.lock` and use `pod install --deployment`. - `--inline` — Inline JS source maps for Android WebView debugging. Run `npx cap sync` after: - Building web assets (`npm run build`) - Installing or removing plugins - Changing `capacitor.config.ts` or `capacitor.config.json` ### `npx cap copy` Copy web assets only (no native dependency updates). Faster than `sync` when only web code has changed. ```bash npx cap copy [platform] ``` ### `npx cap update` Update native plugins and dependencies only (no web asset copy). ```bash npx cap update [platform] ``` ### `npx cap run` Build, sync, and deploy to a device or emulator. ```bash npx cap run <platform> [options] ``` Options: - `--list` — List available target devices. - `--target <id>` — Deploy to a specific device by ID. - `--target-name <name>` — Deploy to a device by name (e.g., `"iPhone 17 Pro"`). - `--target-name-sdk-version <version>` — Target devices with a specific OS version. - `--flavor <name>` — Android build flavor. - `--scheme <name>` — iOS build scheme. - `--configuration <name>` — iOS scheme configuration. - `--live-reload` or `-l` — Enable live reload (see `references/live-reload.md`). - `--host <host>` — Live reload host. - `--port <port>` — Live reload port. - `--https` — Use HTTPS for live reload. - `--forwardPorts <port1:port2>` — Run `adb reverse` for Android live reload. - `--no-sync` — Skip the sync step before building. ### `npx cap open` Open the native project in the platform's IDE. ```bash npx cap open android # Opens Android Studio npx cap open ios # Opens Xcode ``` ### `npx cap build` Build the native project. ```bash npx cap build <platform> [options] ``` Options: - `--scheme <name>` — iOS scheme name. - `--configuration <name>` — iOS build configuration (e.g., `Debug`, `Release`). - `--flavor <name>` — Android flavor. - `--androidreleasetype <type>` — Android release type (`AAB` or `APK`). - `--signing <type>` — Android signing type. - `--keystorepath <path>` — Android keystore path. - `--keystorepass <pass>` — Android keystore password. - `--keystorealias <alias>` — Android key alias. - `--keystorealias
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-robingenz-capacitor-app-development. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about Capacitor App Development. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-robingenz-capacitor-app-development, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/robingenz/skills/capacitor-app-development",
"sourceUrl": "https://clawhub.ai/robingenz/skills/capacitor-app-development",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T11:36:00.348Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-robingenz-capacitor-app-development/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-robingenz-capacitor-app-development/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-11T11:36:00.348Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.1K downloads",
"href": "https://clawhub.ai/robingenz/capacitor-app-development",
"sourceUrl": "https://clawhub.ai/robingenz/capacitor-app-development",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T11:36:00.348Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.0",
"href": "https://clawhub.ai/robingenz/capacitor-app-development",
"sourceUrl": "https://clawhub.ai/robingenz/capacitor-app-development",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-03-24T16:59:54.896Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-robingenz-capacitor-app-development/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-robingenz-capacitor-app-development/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.0",
"description": "Initial release of the Capacitor App Development skill. - Provides structured guidance for general Capacitor app development topics, including core concepts, configuration, platform management, security, and troubleshooting. - Includes a topic index with mapped reference files for quick navigation. - Details agent behavior for project auto-detection, topic routing, and actionable, step-by-step instructions. - Specifies prerequisites and error handling best practices. - Clarifies out-of-scope topics, with redirects to related specialized skills as needed.",
"href": "https://clawhub.ai/robingenz/capacitor-app-development",
"sourceUrl": "https://clawhub.ai/robingenz/capacitor-app-development",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-03-24T16:59:54.896Z",
"isPublic": true
}
]
}Record generated Nov 24, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-robingenz-capacitor-app-development/run-check
