Analytics Setup
gustavscirulis/snapgrid
Generates protocol-based analytics infrastructure with swappable providers (TelemetryDeck, Firebase, Mixpanel).
The KMP Starter Template analytics system — AppEvent/EventsTracker, Analytics routing, Mixpanel + Firebase providers, combining providers, and runtime swaps.
$ npx skills add DevAtrii/Kmp-Starter-Template --skill kmp-starter-feature-analytics -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install DevAtrii/Kmp-Starter-Template kmp-starter-feature-analytics --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/DevAtrii/Kmp-Starter-Template.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/kmp-starter/starter-features/analytics .claude/skills/kmp-starter-feature-analytics && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "kmp-starter-feature-analytics" agent skill from https://github.com/DevAtrii/Kmp-Starter-Template/tree/main/.agents/skills/kmp-starter/starter-features/analytics into .claude/skills/kmp-starter-feature-analytics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kmp-starter-feature-analytics", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/DevAtrii/Kmp-Starter-Template/tree/main/.agents/skills/kmp-starter/starter-features/analyticsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add DevAtrii/Kmp-Starter-Template --skill kmp-starter-feature-analytics -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install DevAtrii/Kmp-Starter-Template kmp-starter-feature-analytics --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/DevAtrii/Kmp-Starter-Template.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/kmp-starter/starter-features/analytics .agents/skills/kmp-starter-feature-analytics && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "kmp-starter-feature-analytics" agent skill from https://github.com/DevAtrii/Kmp-Starter-Template/tree/main/.agents/skills/kmp-starter/starter-features/analytics into .agents/skills/kmp-starter-feature-analytics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kmp-starter-feature-analytics", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add DevAtrii/Kmp-Starter-Template --skill kmp-starter-feature-analytics -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install DevAtrii/Kmp-Starter-Template kmp-starter-feature-analytics --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/DevAtrii/Kmp-Starter-Template.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/kmp-starter/starter-features/analytics .cursor/skills/kmp-starter-feature-analytics && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "kmp-starter-feature-analytics" agent skill from https://github.com/DevAtrii/Kmp-Starter-Template/tree/main/.agents/skills/kmp-starter/starter-features/analytics into .cursor/skills/kmp-starter-feature-analytics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kmp-starter-feature-analytics", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/DevAtrii/Kmp-Starter-Template.git --path .agents/skills/kmp-starter/starter-features/analytics--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add DevAtrii/Kmp-Starter-Template --skill kmp-starter-feature-analytics -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install DevAtrii/Kmp-Starter-Template kmp-starter-feature-analytics --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/DevAtrii/Kmp-Starter-Template.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/kmp-starter/starter-features/analytics .gemini/skills/kmp-starter-feature-analytics && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "kmp-starter-feature-analytics" agent skill from https://github.com/DevAtrii/Kmp-Starter-Template/tree/main/.agents/skills/kmp-starter/starter-features/analytics into .gemini/skills/kmp-starter-feature-analytics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kmp-starter-feature-analytics", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install DevAtrii/Kmp-Starter-Template kmp-starter-feature-analyticsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add DevAtrii/Kmp-Starter-Template --skill kmp-starter-feature-analytics -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/DevAtrii/Kmp-Starter-Template.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/kmp-starter/starter-features/analytics .github/skills/kmp-starter-feature-analytics && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "kmp-starter-feature-analytics" agent skill from https://github.com/DevAtrii/Kmp-Starter-Template/tree/main/.agents/skills/kmp-starter/starter-features/analytics into .github/skills/kmp-starter-feature-analytics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kmp-starter-feature-analytics", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add DevAtrii/Kmp-Starter-Template --skill kmp-starter-feature-analytics -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install DevAtrii/Kmp-Starter-Template kmp-starter-feature-analytics --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/DevAtrii/Kmp-Starter-Template.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/kmp-starter/starter-features/analytics .opencode/skills/kmp-starter-feature-analytics && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "kmp-starter-feature-analytics" agent skill from https://github.com/DevAtrii/Kmp-Starter-Template/tree/main/.agents/skills/kmp-starter/starter-features/analytics into .opencode/skills/kmp-starter-feature-analytics/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "kmp-starter-feature-analytics", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
kmp-starter-feature-analyticsThe KMP Starter Template analytics system — AppEvent/EventsTracker, Analytics routing, Mixpanel + Firebase providers, combining providers, and runtime swaps.
Kmp Starter Feature Analytics is an agent skill from DevAtrii/Kmp-Starter-Template. The KMP Starter Template analytics system — AppEvent/EventsTracker, Analytics routing, Mixpanel + Firebase providers, combining providers, and runtime swaps.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Project scaffolding. It works with Firebase and Mixpanel. The repository describes itself as: Starter template is a multi-module KMP boilerplate for Android & iOS with clean architecture and high-quality code. It handles basics like remote config, in-app purchases, and… The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit a8f7b27. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are kotlin).
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
starter.atherio.devFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
MIXPANEL_API_TOKENFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Kmp Starter Feature Analytics loads about 1.8k tokens when it runs. Until then it costs about 47 tokens; SKILL.md has 380 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from DevAtrii/Kmp-Starter-Template at commit a8f7b27, republished under its MIT licence (© DevAtrii). 380 words, ~1,804 tokens.
.claude/skills/kmp-starter-feature-analytics/SKILL.md (or your agent's skills folder).Modular, provider-agnostic analytics. Track type-safe AppEvent models. Routing lives in domain. You pass providers in initAnalytics { providers(...) } after each backend's own init*. Mixpanel and Firebase Analytics are opt-in.
Kotlin types are StarterAnalyticsProvider / StarterAnalyticsProviderId / StarterAnalyticsProviderIds. Swift still sees AnalyticsProvider via @ObjCName.
| Piece | Module | Path |
|---|---|---|
AppEvent (base) | analytics domain | features/analytics/domain/.../AppEvent.kt |
EventsTracker / Analytics / StarterAnalyticsProvider | analytics domain | features/analytics/domain/... |
StarterAnalyticsProviderId / StarterAnalyticsProviderIds | analytics domain | features/analytics/domain/.../StarterAnalyticsProviderId.kt |
Router + analyticsDomainModule | analytics domain | features/analytics/domain/.../AnalyticsRouter.kt |
Mixpanel EventsTrackerImpl + analyticsDataModule | analytics data | features/analytics/data/... |
FirebaseStarterAnalyticsProvider + analyticsFirebaseDataModule | analytics data-firebase | features/analytics/data-firebase/... |
AppEvents (sealed) | core domain | features/core/domain/.../AppEvents.kt |
Keep one sealed AppEvents hierarchy in core domain. Each nested type is an event:
sealed class AppEvents(
event: String,
properties: Map<String, Any>? = null,
) : AppEvent(event, properties) {
constructor(event: String) : this(event, properties = null)
constructor(event: String, pair: Pair<String, Any>? = null) : this(
event = event,
properties = if (pair != null) mapOf(pair) else mapOf(),
)
data object DummyEvent : AppEvents(event = "dummy_event")
data class OnPurchaseSuccess(
val productId: String,
) : AppEvents(
event = "purchase_success",
pair = "product_id" to productId,
)
data class OnPurchaseFailure(
val productId: String,
val error: String,
) : AppEvents(
event = "purchase_failure",
properties = mapOf("product_id" to productId, "error" to error),
)
}Rules:
snake_case event names.pair; multiple → properties = mapOf(...).EventsTracker per event — the type is the event.Inject EventsTracker, call track(...) with an AppEvents instance:
class SignInViewModel(
private val eventsTracker: EventsTracker,
) : MviViewModel<SignInState, SignInActions, SignInEvents>() {
fun onSignIn(userId: String) {
viewModelScope.launch {
eventsTracker.track(
event = AppEvents.SignInSuccess(userId = userId),
)
eventsTracker.setUserId(userId)
eventsTracker.setUserProperty(key = "plan", value = "pro")
eventsTracker.setUserProperty(key = "is_pro", value = true)
eventsTracker.setUserProperties(
values = mapOf("plan" to "pro", "is_pro" to true, "login_count" to 3),
)
eventsTracker.setDefaultEventParameters(
params = mapOf("app_flavor" to "prod", "build_number" to 42),
)
}
}
}Keep analytics calls in the presentation layer (ViewModel is best). Typed AppEvent is preferred over the string overloads track(event), track(event, pair), track(event, properties).
EventsTracker also exposes setUserId, setUserProperty / setUserProperties (String keys + Any values), setDefaultEventParameters (Mixpanel registerSuperProperties / Firebase setDefaultEventParameters), optIn/optOut/toggleOptInOut/hasOptedIn, flush, reset. Firebase user properties and GitLive default params stringify. Mixpanel keeps native types.
Koin binds the same router as Analytics and EventsTracker. Inject Analytics only for lookup, combine, or setActiveProviders.
Set the Mixpanel token in composeApp/.../core/AppConstants.kt. Firebase uses platform config (google-services.json / GoogleService-Info.plist), not an API token. Wire after Koin:
object AppConstants {
const val MIXPANEL_API_TOKEN = "add-your-mixpanel-token-here"
}
initMixPanel(apiKey = AppConstants.MIXPANEL_API_TOKEN) {
logging = platform.debug
}
initFirebaseAnalytics {
enabled = true
sessionTimeoutInterval = 30.minutes
defaultEventParameters = mapOf("app_flavor" to "prod")
analyticsStorage = FirebaseAnalytics.ConsentStatus.GRANTED
}
initAnalytics {
enableInstallAttribution = true
providers(
MixPanelAnalyticsScope.getProvider(),
FirebaseAnalyticsScope.getProvider(),
)
}initFirebaseAnalytics options: enabled, sessionTimeoutInterval, defaultEventParameters: Map<String, String>, consent fields. No userProperties on init — use setUserProperty after initAnalytics.
enableInstallAttribution = true → Android Play Install Referrer once (install_attribution event + UTM user properties). iOS no-op.
Skip a backend (and its data module) if the consumer does not want it.
Lookups: StarterAnalyticsProviderIds.Mixpanel / .Firebase. Custom id: StarterAnalyticsProviderId("posthog").
All providers passed to initAnalytics start active. setActiveProviders reroutes the same injected instance; SDKs stay alive.
val analytics: Analytics = koinInject()
analytics.provider(StarterAnalyticsProviderIds.Mixpanel).track(AppEvents.DummyEvent)
analytics.combine(
StarterAnalyticsProviderIds.Mixpanel,
StarterAnalyticsProviderIds.Firebase,
).track(AppEvents.DummyEvent)
analytics.setActiveProviders(
StarterAnalyticsProviderIds.Mixpanel,
StarterAnalyticsProviderIds.Firebase,
)
analytics.setActiveProviders() // disable routed trackingAdd a backend by implementing StarterAnalyticsProvider, giving it its own init* if needed, and passing it in initAnalytics:
initMixPanel(apiKey = token)
initFirebaseAnalytics { }
initAnalytics {
providers(
MixPanelAnalyticsScope.getProvider(),
FirebaseAnalyticsScope.getProvider(),
)
}Do not auto-register Mixpanel (or Firebase) as EventsTracker in Koin.
analyticsDomainModule in InitKoin. Call initAnalytics after Koin + provider inits. Mixpanel: analyticsDataModule + initMixPanel + pass getProvider() only if you want it. Firebase: analyticsFirebaseDataModule + initFirebaseAnalytics + pass FirebaseAnalyticsScope.getProvider().https://starter.atherio.dev/features/ → Analyticsfeatures/analytics/*, features/core/domain/.../AppEvents.kt© DevAtrii, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/kmp-starter/starter-features/analytics of DevAtrii/Kmp-Starter-Template.
Open the folder on GitHubat commit a8f7b27
Kmp Starter Feature Analytics next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Kmp Starter Feature Analytics this skillDevAtrii/Kmp-Starter-Template | 167 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Analytics Setupgustavscirulis/snapgrid | 117 | 1 repos | ~1.2k | Automated safety check: Notes | Custom licence | |
| Trellis Spec Bootstarpanjiemo/SunnyBeach | 178 | 7 repos | ~740 | Automated safety check: Pass | Apache-2.0 | |
| Git Worktree Setupk8zdev/k8z | 155 | — | ~930 | Automated safety check: Pass | None | |
| Design Firstgetsentry/sentry-react-native | 1.8k | — | ~1.6k | Automated safety check: Pass | MIT | |
| Frb Code Generationfzyzcjy/flutter_rust_bridge | 5.4k | — | ~1.5k | Automated safety check: Pass | MIT |
gustavscirulis/snapgrid
Generates protocol-based analytics infrastructure with swappable providers (TelemetryDeck, Firebase, Mixpanel).
anjiemo/SunnyBeach
Bootstrap project-specific Trellis coding specs with a platform-neutral single-agent workflow.
k8zdev/k8z
Automate git worktree creation and copy private files (not tracked in git) to new workdirs.
getsentry/sentry-react-native
Shape non-trivial work before writing it — decide the modules, the seams, and the public API surface up front.
fzyzcjy/flutter_rust_bridge
A skill your agent uses when modifying Rust APIs, codegen, generated examples, or platform scaffolds in flutterrustbridge to select generation commands and preserve source-of-truth and convergence…
aiskillstore/marketplace
IDE-grade project scaffolding wizard for creating new projects with comprehensive configuration.
DevAtrii/Kmp-Starter-Template
Build production Android & iOS apps on the KMP Starter Template (Clean Architecture, MVI, Koin, Compose Multiplatform).
DevAtrii/Kmp-Starter-Template
Persistent per-project memory for KMP Starter Template apps.
DevAtrii/Kmp-Starter-Template
Clean Architecture module and package layout for KMP Starter Template features — data/domain/presentation layers, core dependency rule, screen-based package organization, the Screen vs Content…
DevAtrii/Kmp-Starter-Template
Research and plan a brand-new app before scaffolding it on the KMP Starter Template.
DevAtrii/Kmp-Starter-Template
Data layer on the KMP Starter Template — repositories and data sources, Logics guidance, DataStore persistence, Room database, StarterFileManager, and the Calf file picker.
DevAtrii/Kmp-Starter-Template
The KMP Starter Template Room database — entities, DAOs, migrations, and DB configuration in features/database.
Categories
The KMP Starter Template analytics system — AppEvent/EventsTracker, Analytics routing, Mixpanel + Firebase providers, combining providers, and runtime swaps. Kmp Starter Feature Analytics is an agent skill from DevAtrii/Kmp-Starter-Template. The KMP Starter Template analytics system — AppEvent/EventsTracker, Analytics routing, Mixpanel + Firebase providers, combining providers, and runtime swaps.
Kmp Starter Feature Analytics fits situations like: tasks that involve Project scaffolding.
Run `npx skills add DevAtrii/Kmp-Starter-Template --skill kmp-starter-feature-analytics -a claude-code`. Or copy the skill folder (.agents/skills/kmp-starter/starter-features/analytics in DevAtrii/Kmp-Starter-Template) into .claude/skills/kmp-starter-feature-analytics in your project. Claude Code loads it when a task matches its description.
Run `npx skills add DevAtrii/Kmp-Starter-Template --skill kmp-starter-feature-analytics -a codex`. Or copy the skill folder (.agents/skills/kmp-starter/starter-features/analytics in DevAtrii/Kmp-Starter-Template) into .agents/skills/kmp-starter-feature-analytics in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add DevAtrii/Kmp-Starter-Template --skill kmp-starter-feature-analytics -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kmp-starter-feature-analytics, .gemini/skills/kmp-starter-feature-analytics, .github/skills/kmp-starter-feature-analytics and .opencode/skills/kmp-starter-feature-analytics in your project.
Going by SKILL.md and its folder, Kmp Starter Feature Analytics needs credentials named MIXPANEL_API_TOKEN. Our summary lists: A credential in MIXPANEL_API_TOKEN.
SKILL.md names 1 domain. In commands or code: starter.atherio.dev; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Kmp Starter Feature Analytics is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Kmp Starter Feature Analytics: Analytics Setup (gustavscirulis/snapgrid, 117 stars), Trellis Spec Bootstarp (anjiemo/SunnyBeach, 178 stars), Git Worktree Setup (k8zdev/k8z, 155 stars) and Design First (getsentry/sentry-react-native, 1.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
DevAtrii (a GitHub user) maintains it in DevAtrii/Kmp-Starter-Template, which has 167 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on September 1, 2026.
Source: DevAtrii/Kmp-Starter-Template on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.