kmp-starter-feature-analytics
Skill by DevAtrii
Guides developers in the KMP Starter Template analytics feature. It covers typed AppEvent tracking, provider routing, and Mixpanel and Firebase providers for Kotlin Multiplatform apps.
Install kmp-starter-feature-analytics
Built from the published package, never by AI.
git clone --depth 1 https://github.com/DevAtrii/Kmp-Starter-Template /tmp/Kmp-Starter-Template && mkdir -p ~/.claude/skills && cp -r /tmp/Kmp-Starter-Template/.agents/skills/kmp-starter/starter-features/analytics ~/.claude/skills/kmp-starter-feature-analyticsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install kmp-starter-feature-analytics in Claude Code
git clone --depth 1 https://github.com/DevAtrii/Kmp-Starter-Template /tmp/Kmp-Starter-Template && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Kmp-Starter-Template/.agents/skills/kmp-starter/starter-features/analytics ~/.gemini/antigravity-cli/skills/kmp-starter-feature-analyticsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install kmp-starter-feature-analytics in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill documents the analytics system in the KMP Starter Template, a Kotlin Multiplatform project. Events are typed AppEvent models, and all of them live in one sealed AppEvents hierarchy in core domain. Calls are made from the presentation layer, usually a ViewModel, through the EventsTracker interface. Routing lives in the domain layer, and an Analytics router sends events to one or more providers.
Mixpanel and Firebase Analytics are opt-in providers, each with its own init function and data module. Providers are passed to initAnalytics, where they start active. The skill explains combining providers, switching active providers at runtime, and adding a custom backend by implementing StarterAnalyticsProvider. It is written for developers building KMP apps who want provider-agnostic analytics.
Written from the project's SKILL.md and checked against it.
What it can do
- Typed eventsDefines analytics events as nested types in one sealed AppEvents hierarchy.
- Event trackingTracks AppEvents from a ViewModel through the EventsTracker interface.
- User identity and propertiesSets a user ID, user properties, and default event parameters.
- Opt-in controlSupports opting in and out, toggling opt-in state, and checking consent.
- Provider routingRoutes events to a single provider, a combined set, or the active providers.
- Runtime provider switchingChanges active providers with setActiveProviders while SDKs stay initialized.
- Mixpanel and Firebase providersShips opt-in Mixpanel and Firebase Analytics providers with setup code.
- Custom providersAdds a new backend by implementing StarterAnalyticsProvider and passing it to initAnalytics.
What you need
- Kotlin Multiplatform project based on the KMP Starter Template
- Mixpanel API token, if using Mixpanel
- Firebase config files (google-services.json or GoogleService-Info.plist), if using Firebase
Try asking
- Add a new typed AppEvent for a checkout completed action.
- Route a tracked event to both Mixpanel and Firebase.
- Switch analytics to Firebase only at runtime.
Good to know
- Firebase user properties and default event parameters are stringified, while Mixpanel keeps native types.
- initFirebaseAnalytics has no userProperties option; set them with setUserProperty after initAnalytics.
- Install attribution runs on Android only; it is a no-op on iOS.
- Mixpanel and Firebase are not auto-registered as EventsTracker in Koin.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/kmp-starter/starter-features/analytics/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to kmp-starter-feature-analytics
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
kmp-starter-feature-analytics: common questions
Can I use Mixpanel and Firebase together in a KMP app?
Yes. Pass both providers to initAnalytics, then use combine or setActiveProviders to route events to one or both.
Do I have to use Mixpanel or Firebase?
No. Both are opt-in, and you can skip a backend and its data module if you do not want it.
Where should analytics calls go in the app?
The source says to keep analytics calls in the presentation layer, with the ViewModel as the best place.
How do I install kmp-starter-feature-analytics?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is kmp-starter-feature-analytics free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is kmp-starter-feature-analytics safe to use?
It scores 62 of 100. Grades: maintenance B, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to kmp-starter-feature-analytics?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
