cap-go avatar

Capacitor Best Practices

This covers the production-ready stuff for Capacitor apps that usually gets learned the hard way. It walks through keeping core packages in sync (a common source of crashes), proper plugin initialization with availability checks, and security practices like using native biometric storage instead of plain preferences. The performance section is solid on lazy loading plugins and minimizing bridge calls. What I appreciate is the CORRECT/INCORRECT pattern throughout, it makes the guidance immediately actionable rather than theoretical. The error handling section addresses real scenarios like users canceling camera permissions versus actual failures. If you're setting up a new Capacitor project or reviewing one that's headed to production, this gives you a checklist of things that'll bite you if missed.

skills.sh installs
2.9K
GitHub stars
77
last updated
Aug 21, 2026

Install

$ npx -y skills add cap-go/capgo-skills --skill capacitor-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

Capacitor Best Practices

Review a Capacitor app for structural mistakes that cause broken builds, lost edits, production leaks, and plugin crashes. Route deep topics to the sibling skill that owns them.

When to Use

Use the selected project and its installed dependencies. Package installation and migration tools execute code; limit them to the requested setup or upgrade, preserve the lockfile and existing changes, and review generated edits before running changed build scripts.

Sponsors

Details

Repository
github.com/cap-go/capgo-skills
Categories
Security, Debugging, Mobile Development
First seen
Jun 3, 2026

More from cap-go/capgo-skills

All 41

Recommended

More Security
1cursor avatarthermo-nuclear-reviewcursor/pluginsComprehensive security and correctness audit of a branch's changes. Use for thermo nuclear, thermonuclear, or deep review requests, or branch/PR diff audits foc2.8Kskills.sh installs
2dynatrace avatardt-obs-kubernetesdynatrace/dynatrace-for-aiKubernetes cluster, pod, node, and workload monitoring. Use when analyzing K8s health, resource optimization, pod failures, OOMKills, scheduling, or security po2.8Kskills.sh installs
3forcedotcom avatargenerating-mermaid-diagramsforcedotcom/sf-skillsSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows,2.8Kskills.sh installs
4coinbase avataragentic-walletcoinbase/agentic-wallet-skillsCrypto wallet operations via the awal CLI — sign in, check balances, send USDC/ETH/POL/SOL, trade tokens, fund the wallet, and use the x402 payment protocol to 2.8Kskills.sh installs
5payloadcms avatarpayloadpayloadcms/payloadUse when working with Payload projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Use when debugging validation errors, secur2.7Kskills.sh installs
6elastic avatarcloud-create-projectelastic/agent-skillsCreates Elastic Cloud Serverless projects (Elasticsearch, Observability, or Security) via the REST API, saves credentials to file, and bootstraps a scoped Elast2.7Kskills.sh installs