erkamyaman/ionic-capacitor-skills/ionic-shared
Claude Code and agent skill by erkamyaman/ionic-capacitor-skills
- community
Checking that the SKILL.md file is still in the repository.
Framework-agnostic Capacitor concerns shared by Ionic Angular, React, and Vue apps — AdMob, RevenueCat, push notifications, @capacitor/preferences storage, theme switching, localization content, and App/Play store submission notes. Referenced by ionic-angular, ionic-react, and ionic-vue.
Install
npx vskill@latest install erkamyaman/ionic-capacitor-skills/ionic-sharedSKILL.md
The same SKILL.md was published earlier as erkamyaman/ionic-capacitor-skills/ionic-shared.
Ionic Shared (Capacitor) Guidelines
Cross-framework guidance for Ionic Capacitor apps. The framework skills (ionic-angular, ionic-react, ionic-vue) link here for native plugin and content topics so the same code is not repeated three times.
When to consult these references
- Capacitor config / native platforms: capacitor-config.md
- Environments & API keys (env vars per framework, what's safe to ship): environments-and-keys.md
- Persistent storage (
@capacitor/preferences): storage.md - Theme switching (Light / Dark / System): theming.md
- AdMob banner ads: admob.md
- RevenueCat purchases / paywall logic: revenuecat.md
- Push notifications: push-notifications.md
- Translation strings (TR / EN): localization-content.md
- App Store / Play Store submission notes: app-store-notes.md
- Pre-release testing checklist: testing-checklist.md
Hard rules (apply to all frameworks)
- ✅ Use the latest stable versions of Ionic Framework, Capacitor, and the framework (Angular / React / Vue). When scaffolding a new project, do not pin to older majors — let
npm install <pkg>resolve the latest. Verify againstnpm view <pkg> versionif uncertain. Do not write specific version numbers intoSKILL.mdexamples — they go stale. - ✅ Read API keys and ad unit IDs from environment variables, never hardcoded in source. The mobile bundle is not a secret container — only publishable keys (RevenueCat SDK key, AdMob unit ID, Firebase web config, Sentry DSN) belong in the app. Secret keys (Stripe
sk_…, OpenAI / Anthropic, RevenueCat REST secret) MUST live behind a backend. See environments-and-keys.md. - ✅ Tie `isTesting` flags to the build mode, not a hardcoded
true. ShippinginitializeForTesting: trueorisTesting: trueto production can get an AdMob account banned. - ❌ NEVER use
localStoragedirectly — use@capacitor/preferences. - ❌ NEVER use
@ionic/storage— use@capacitor/preferences. - ❌ NEVER use
cordova-plugin-*— use the Capacitor equivalent. - ❌ NEVER use
ngx-admob-freeor other deprecated ad libraries — use@capacitor-community/admob. - ❌ NEVER call Capacitor plugin methods synchronously — always
await. - ✅ ALWAYS guard native-only code with
Capacitor.isNativePlatform(). - ✅ ALWAYS run
npx cap syncafter installing or updating any Capacitor plugin.
Required shared libraries
@capacitor/app is needed by ionic-deep-links (and any skill that listens to appUrlOpen / appStateChange), so it's part of the shared baseline.
These are installed in addition to the framework-specific i18n library (see each framework's SKILL.md).
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ionic-shared/SKILL.md
Popularity
- Repository stars
- 16
- Repository forks
- 4
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/erkamyaman/ionic-capacitor-skills/ionic-shared)