Agent skill

Kmp Starter Feature Analytics

by DevAtrii in DevAtrii/Kmp-Starter-Template

The KMP Starter Template analytics system — AppEvent/EventsTracker, Analytics routing, Mixpanel + Firebase providers, combining providers, and runtime swaps.

MITAuto-check passedDevelopment

Install Kmp Starter Feature Analytics

skills CLI
$ npx skills add DevAtrii/Kmp-Starter-Template --skill kmp-starter-feature-analytics -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install DevAtrii/Kmp-Starter-Template kmp-starter-feature-analytics --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ 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-src

Use ~/.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/

Facts

Skill name
kmp-starter-feature-analytics
GitHub stars
167
Token cost
~1.8k tokens
SKILL.md length
380 words
Files
1
Skills in repo
23
Repo updated
First seen
Licence
MIT

At a glance

The KMP Starter Template analytics system — AppEvent/EventsTracker, Analytics routing, Mixpanel + Firebase providers, combining providers, and runtime swaps.

  • Works in 4 steps: Define events (one sealed hierarchy) → Track from the ViewModel → Setup (Mixpanel token + Firebase) → …
  • Tasks that involve Project scaffolding
  • SKILL.md covers Where things live, 1. Define events (one sealed…, 2. Track from the ViewModel and 3. Setup (Mixpanel token +…, plus 3 more sections
  • Reaches starter.atherio.dev; needs MIXPANEL_API_TOKEN

What it does

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.

When your agent uses it

  • Tasks that involve Project scaffolding

Example prompts

  • “/kmp-starter-feature-analytics”

Requirements

  • A credential in MIXPANEL_API_TOKEN

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Define events (one sealed hierarchy)
  2. Track from the ViewModel
  3. Setup (Mixpanel token + Firebase)
  4. Multiple providers

What it can do on your machine

Read from SKILL.md and the folder at commit a8f7b27. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    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.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • starter.atherio.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • MIXPANEL_API_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

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.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from DevAtrii/Kmp-Starter-Template at commit a8f7b27, republished under its MIT licence (© DevAtrii). 380 words, ~1,804 tokens.

Download SKILL.mdSave it as .claude/skills/kmp-starter-feature-analytics/SKILL.md (or your agent's skills folder).
name
kmp-starter-feature-analytics
description
The KMP Starter Template analytics system — AppEvent/EventsTracker, Analytics routing, Mixpanel + Firebase providers, combining providers, and runtime swaps.
author
DevAtrii
license
MIT

Analytics

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.

Where things live

PieceModulePath
AppEvent (base)analytics domainfeatures/analytics/domain/.../AppEvent.kt
EventsTracker / Analytics / StarterAnalyticsProvideranalytics domainfeatures/analytics/domain/...
StarterAnalyticsProviderId / StarterAnalyticsProviderIdsanalytics domainfeatures/analytics/domain/.../StarterAnalyticsProviderId.kt
Router + analyticsDomainModuleanalytics domainfeatures/analytics/domain/.../AnalyticsRouter.kt
Mixpanel EventsTrackerImpl + analyticsDataModuleanalytics datafeatures/analytics/data/...
FirebaseStarterAnalyticsProvider + analyticsFirebaseDataModuleanalytics data-firebasefeatures/analytics/data-firebase/...
AppEvents (sealed)core domainfeatures/core/domain/.../AppEvents.kt

1. Define events (one sealed hierarchy)

Keep one sealed AppEvents hierarchy in core domain. Each nested type is an event:

kotlin
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:

  • Prefer snake_case event names.
  • Single property → pair; multiple → properties = mapOf(...).
  • Do not add a method to EventsTracker per event — the type is the event.

2. Track from the ViewModel

Inject EventsTracker, call track(...) with an AppEvents instance:

kotlin
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.

Show full SKILL.md (168 more words)Show less

3. Setup (Mixpanel token + Firebase)

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:

kotlin
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").

4. Multiple providers

All providers passed to initAnalytics start active. setActiveProviders reroutes the same injected instance; SDKs stay alive.

kotlin
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 tracking

Add a backend by implementing StarterAnalyticsProvider, giving it its own init* if needed, and passing it in initAnalytics:

kotlin
initMixPanel(apiKey = token)
initFirebaseAnalytics { }
initAnalytics {
    providers(
        MixPanelAnalyticsScope.getProvider(),
        FirebaseAnalyticsScope.getProvider(),
    )
}

Do not auto-register Mixpanel (or Firebase) as EventsTracker in Koin.

Rules

  • Do not introduce a parallel analytics system.
  • Keep calls in the presentation layer.
  • Register 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().

Reference

  • Docs: https://starter.atherio.dev/features/ → Analytics
  • Source: features/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

Files

Just SKILL.md in .agents/skills/kmp-starter/starter-features/analytics of DevAtrii/Kmp-Starter-Template.

Open the folder on GitHubat commit a8f7b27

Compare with similar skills

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.

Kmp Starter Feature Analytics compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kmp Starter Feature Analytics this skillDevAtrii/Kmp-Starter-Template167—~1.8kAutomated safety check: PassMIT
Analytics Setupgustavscirulis/snapgrid1171 repos~1.2kAutomated safety check: NotesCustom licence
Trellis Spec Bootstarpanjiemo/SunnyBeach1787 repos~740Automated safety check: PassApache-2.0
Git Worktree Setupk8zdev/k8z155—~930Automated safety check: PassNone
Design Firstgetsentry/sentry-react-native1.8k—~1.6kAutomated safety check: PassMIT
Frb Code Generationfzyzcjy/flutter_rust_bridge5.4k—~1.5kAutomated safety check: PassMIT

Similar skills

  • Analytics Setup

    gustavscirulis/snapgrid

    Generates protocol-based analytics infrastructure with swappable providers (TelemetryDeck, Firebase, Mixpanel).

    117 GitHub starsUsed in 1 repo~1.2k tokens
    MobileAuto-check: notes
  • Trellis Spec Bootstarp

    anjiemo/SunnyBeach

    Bootstrap project-specific Trellis coding specs with a platform-neutral single-agent workflow.

    178 GitHub starsUsed in 7 repos~740 tokens
    DevelopmentAuto-check passed
  • Automate git worktree creation and copy private files (not tracked in git) to new workdirs.

    155 GitHub stars~930 tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Design First

    getsentry/sentry-react-native

    Official

    Shape non-trivial work before writing it — decide the modules, the seams, and the public API surface up front.

    1.8k GitHub stars~1.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Frb Code Generation

    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…

    5.4k GitHub stars~1.5k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Project Scaffolding

    aiskillstore/marketplace

    IDE-grade project scaffolding wizard for creating new projects with comprehensive configuration.

    430 GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed

More from DevAtrii/Kmp-Starter-Template

All 23 skills in this repo
  • Kmp Starter

    DevAtrii/Kmp-Starter-Template

    Build production Android & iOS apps on the KMP Starter Template (Clean Architecture, MVI, Koin, Compose Multiplatform).

    167 GitHub stars~3.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Kmp Starter Memory

    DevAtrii/Kmp-Starter-Template

    Persistent per-project memory for KMP Starter Template apps.

    167 GitHub stars~963 tokensUpdated 1 mo ago
    Auto-check passed
  • Kmp Starter Architecture

    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…

    167 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Kmp Starter Create Fresh App

    DevAtrii/Kmp-Starter-Template

    Research and plan a brand-new app before scaffolding it on the KMP Starter Template.

    167 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Kmp Starter Data

    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.

    167 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Kmp Starter Feature Database

    DevAtrii/Kmp-Starter-Template

    The KMP Starter Template Room database — entities, DAOs, migrations, and DB configuration in features/database.

    167 GitHub stars~806 tokensUpdated 1 mo ago
    Auto-check passed

Questions about Kmp Starter Feature Analytics

What does Kmp Starter Feature Analytics do?

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.

When should I use Kmp Starter Feature Analytics?

Kmp Starter Feature Analytics fits situations like: tasks that involve Project scaffolding.

How do I install Kmp Starter Feature Analytics in Claude Code?

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.

How do I install Kmp Starter Feature Analytics in Codex?

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.

Can I use Kmp Starter Feature Analytics in Cursor, Gemini CLI or GitHub Copilot?

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.

What does Kmp Starter Feature Analytics need to run?

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.

Does Kmp Starter Feature Analytics access the network?

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.

Is Kmp Starter Feature Analytics safe to install?

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.

What licence does Kmp Starter Feature Analytics use?

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.

How many tokens does Kmp Starter Feature Analytics use?

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.

What are the alternatives to Kmp Starter Feature Analytics?

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.

Who maintains Kmp Starter Feature Analytics?

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.