← 返回 Skills 市场
robingenz

Capacitor App Development

作者 Robin Genz · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
173
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install capacitor-app-development
功能描述
Guides the agent through general Capacitor app development topics. Covers core concepts (native bridge, plugins, web layer), Capacitor CLI usage, app configu...
使用说明 (SKILL.md)

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://\x3Cdomain>/.well-known/apple-app-site-association (iOS) or https://\x3Cdomain>/.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.
安全使用建议
This skill is a local, read-only reference for Capacitor app development. Before installing, note that the agent will inspect your project files (package.json, android/, ios/, config files) to auto-detect context — that's expected for targeted advice. There are no required credentials, no downloads, and no always-on/autonomous escalation. If you are comfortable with an assistant reading your project files, the skill is coherent with its stated purpose. If you prefer not to allow file inspection, do not enable the skill or limit its use to manual (user-invoked) sessions.
功能分析
Type: OpenClaw Skill Name: capacitor-app-development Version: 1.0.0 The skill bundle provides legitimate and comprehensive documentation for Capacitor app development, covering CLI usage, platform management, and troubleshooting. It includes a dedicated security reference (references/security.md) that correctly advises against embedding secrets in code and promotes the use of secure storage and Content Security Policies. The instructions in SKILL.md are strictly functional, guiding the agent to analyze project structures and provide actionable development advice without any evidence of malicious intent, data exfiltration, or harmful prompt injection.
能力评估
Purpose & Capability
The name/description (Capacitor app development guidance) matches the contents: an instruction file plus many Capacitor-focused reference documents. There are no unrelated env vars, binaries, or installs requested that would be out of scope.
Instruction Scope
Runtime instructions tell the agent to auto-detect Capacitor version, platforms, framework config files, and iOS package manager by reading project files (package.json, android/, ios/, config files). This is appropriate and necessary for giving targeted Capacitor guidance. The instructions do not ask the agent to exfiltrate secrets, contact unknown endpoints, or access unrelated system config.
Install Mechanism
No install spec and no code files to execute — the skill is instruction-only, so there is nothing to download or install. This is the lowest-risk install model.
Credentials
The skill declares no required environment variables, credentials, or config paths. The guidance references typical Capacitor network examples (example.com, api.example.com) only as examples; there is no real credential use or secret access requested.
Persistence & Privilege
The skill is not marked always:true and does not request persistent or elevated platform privileges. It only instructs the agent to read project files in the workspace for context — appropriate for a development assistance skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install capacitor-app-development
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /capacitor-app-development 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
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.
元数据
Slug capacitor-app-development
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Capacitor App Development 是什么?

Guides the agent through general Capacitor app development topics. Covers core concepts (native bridge, plugins, web layer), Capacitor CLI usage, app configu... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 173 次。

如何安装 Capacitor App Development?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install capacitor-app-development」即可一键安装,无需额外配置。

Capacitor App Development 是免费的吗?

是的,Capacitor App Development 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Capacitor App Development 支持哪些平台?

Capacitor App Development 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Capacitor App Development?

由 Robin Genz(@robingenz)开发并维护,当前版本 v1.0.0。

💬 留言讨论