/ionic-capacitor-skills:ionic-in-app-reviewfrom ionic-capacitor-skills
Shows the native App Store / Play Store rating prompt via @capacitor-community/in-app-review. Includes best practices for timing, quotas, and trigger patterns.
Ships in ionic-capacitor-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The native rating dialog — Apple's SKStoreReviewController and Google Play's In-App Review API. Both are quota-limited by the OS to prevent spam (you can call them; the OS decides whether to actually show).
npm install @capacitor-community/in-app-review
npx cap sync
import { InAppReview } from '@capacitor-community/in-app-review';
await InAppReview.requestReview();
That's it. The OS handles the dialog presentation, throttling, and submission.
SKStoreReviewController.requestReview HIG for the published guideline). Don't try to detect this — just call when appropriate.// utils/review.ts
import { Preferences } from '@capacitor/preferences';
import { InAppReview } from '@capacitor-community/in-app-review';
const SESSION_COUNT_KEY = 'reviewSessionCount';
const LAST_PROMPT_KEY = 'reviewLastPromptedAt';
const PROMPT_AFTER_SESSIONS = 5;
const PROMPT_COOLDOWN_DAYS = 90;
export async function maybeRequestReview() {
const sessions = Number((await Preferences.get({ key: SESSION_COUNT_KEY })).value ?? 0);
const lastPrompted = Number((await Preferences.get({ key: LAST_PROMPT_KEY })).value ?? 0);
const now = Date.now();
const cooldownMs = PROMPT_COOLDOWN_DAYS * 24 * 60 * 60 * 1000;
if (sessions < PROMPT_AFTER_SESSIONS) return;
if (now - lastPrompted < cooldownMs) return;
await InAppReview.requestReview();
await Preferences.set({ key: LAST_PROMPT_KEY, value: String(now) });
}
export async function bumpSessionCount() {
const current = Number((await Preferences.get({ key: SESSION_COUNT_KEY })).value ?? 0);
await Preferences.set({ key: SESSION_COUNT_KEY, value: String(current + 1) });
}
Then call:
bumpSessionCount() once on app launch.maybeRequestReview() after a positive moment (e.g., after a successful purchase, after the user completes onboarding flow, etc.).Apple/Google return no signal about whether the user actually rated. Don't try to track conversion — track the call, not the result.
Some teams add a "Rate the app" Settings button that opens the App Store / Play Store listing directly (skipping the in-app dialog) — useful for users who want to leave a written review:
import { Browser } from '@capacitor/browser';
import { Capacitor } from '@capacitor/core';
async function openStoreListing() {
const url = Capacitor.getPlatform() === 'ios'
? 'itms-apps://itunes.apple.com/app/idAPPSTORE_ID?action=write-review'
: 'market://details?id=com.company.appname';
await Browser.open({ url });
}
Replace APPSTORE_ID and the bundle ID with your actual values.
What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/capacitor-foldableBuild Capacitor apps that adapt to foldable devices, iPhone Duo and Android foldables, with @erkamyaman/capacitor-foldable. Trigger when laying out around the crease or fold, reading the hinge angle or posture, using window size classes, polyfilling the Device Posture and Viewport Segments APIs, telling the outer display from the inner one, using rear display or dual screen on an Android foldable, moving an Ionic tab bar where iPhone Duo puts native bars, or testing on the iPhone Duo simulator or a foldable emulator./ionic-analyticsAdd product analytics to an Ionic Capacitor app — Firebase Analytics or PostHog. Trigger when adding event tracking, screen views, funnel analytics, A/B testing, or user behavior tracking to an Ionic mobile app./npx claudepluginhub erkamyaman/ionic-capacitor-skills --plugin ionic-capacitor-skillsOther plugins' skills for the same job