/openclix:openclix-analyticsfrom openclix
Wires OpenClix events to Firebase, PostHog, Mixpanel, or Amplitude and produces pre/post campaign impact reports centered on 7-day retention.
Ships in openclix. 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.
Read when SKILL.md points to them; scripts run unread.
Add outcome measurement on top of OpenClix campaign delivery. This skill is for proving impact, not only sending events.
firebase > posthog > mixpanel > amplitude.openclix.message.*, app event names)..openclix/**, ensure .openclix/ is listed in .gitignore (add it if missing).references/event-contract.md.references/impact-metrics-spec.md:
openclix-init first.Run:
bash skills/openclix-analytics/scripts/detect_pa.sh <target-project-root>
Use the JSON output as source of truth:
installed_providersselected_providerevidenceopenclix_detectedDetection rules live in references/pa-detection-matrix.md.
If installed_providers is empty:
openclix-analytics.If at least one provider exists:
selected_provider by fixed priority.src/openclix/analytics/OpenClixAnalyticsEmitter.tslib/openclix/analytics/openclix_analytics_emitter.dartOpenClix/OpenClixAnalyticsEmitter.swift or Sources/OpenClix/OpenClixAnalyticsEmitter.swiftapp/src/main/kotlin/ai/openclix/analytics/OpenClixAnalyticsEmitter.kttrackEvent(...)trackSystemEvent(...)openclix-init output:
src/openclix/core/OpenClix.tslib/openclix/core/openclix.dartOpenClix/Core/OpenClix.swift or Sources/OpenClix/Core/OpenClix.swiftapp/src/main/kotlin/ai/openclix/core/OpenClix.ktTemplate emitters are in assets/<platform>/... with namespace-ready paths.
Run platform checks (same policy as openclix-init):
npx tsc --noEmitflutter analyze./gradlew assembleDebugxcodebuild -scheme <scheme> build or swift buildThen verify that forwarding is wired in both event paths.
After event flow is active, generate:
.openclix/analytics/impact-metrics.json.openclix/analytics/impact-report.mdUse:
references/impact-metrics-spec.mdreferences/provider-query-recipes.mdRequired metrics:
d7_retention_pred7_retention_postd7_retention_delta_ppnotification_open_rate_prenotification_open_rate_postsessions_per_user_presessions_per_user_postIf sample size is insufficient, report status: insufficient_data with explicit reasons and minimum required data.
When analytics artifacts are ready, hand off to the retention operations helper:
bash scripts/retention_ops_automation.sh \
--root <target-project-root> \
--agent all \
--delivery-mode auto \
--dry-run
This helper consumes analytics/config artifacts, runs campaign evaluation, and generates agent-specific review prompts under .openclix/automation/prompts/.
Failure codes from helper script:
10: prerequisite command or required script missing20: no supported PA provider detected21: OpenClix integration not detected30: required input artifact missing31: delivery mode unresolved (unknown)40: evaluator failedassets/android/app/src/main/kotlin/ai/openclix/analytics/OpenClixAnalyticsEmitter.kt (opens in a new tab)assets/flutter/lib/openclix/analytics/openclix_analytics_emitter.dart (opens in a new tab)assets/ios/OpenClix/OpenClixAnalyticsEmitter.swift (opens in a new tab)assets/react-native/src/openclix/analytics/OpenClixAnalyticsEmitter.ts (opens in a new tab)references/event-contract.md (opens in a new tab)references/impact-metrics-spec.md (opens in a new tab)references/pa-detection-matrix.md (opens in a new tab)references/provider-query-recipes.md (opens in a new tab)scripts/detect_pa.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
openclix, product-analytics, campaign-measurement, retention
npx claudepluginhub openclix/openclix --plugin openclix5 skills in this plugin
/openclix-design-campaignsDesign, create, and iterate OpenClix campaign configurations from product goals and app events, producing schema-valid openclix-config.json with delivery mode setup. TRIGGER when the user asks to "create campaigns", "design notifications", "configure engagement messages", "set up onboarding/re-engagement/streak flows", or refine trigger logic, suppression rules, or message content — even if they just describe a retention goal without mentioning campaigns. DO NOT trigger for campaign performance analysis or optimization from metrics — that belongs to openclix-update-campaigns./openclix-initSet up OpenClix in a mobile app by detecting the platform, copying source templates into a dedicated namespace, wiring initialization/event/lifecycle touchpoints, and running build verification. TRIGGER when the user asks to "integrate OpenClix", "set up local notifications", "add engagement logic", or mentions OpenClix for the first time in a project without an existing integration — even if they don't mention this skill by name. DO NOT trigger when OpenClix is already integrated and the user is asking about campaigns, analytics, or template updates — those belong to other openclix-* skills./openclix-updateSync OpenClix source-integration code with the latest openclix-init template baseline using dry-run planning and explicit overwrite controls. TRIGGER when the user asks to "update OpenClix", "sync templates", "refresh integration code", or when the openclix-init template baseline has changed and source files need re-sync. DO NOT trigger for campaign config updates — that belongs to openclix-update-campaigns. This skill updates integration source code, not campaign configurations.Other plugins' skills for the same job