analytics-setup

Generate a protocol-based analytics scaffold with swappable providers for SwiftUI apps.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/mazicimert/RunDom --skill analytics-setup-mazicimert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analytics-setup
Source: https://github.com/mazicimert/RunDom/tree/main/.claude/skills/generators/analytics-setup
Command: npx skills add https://github.com/mazicimert/RunDom --skill analytics-setup-mazicimert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates a protocol-based analytics infrastructure with swappable providers (TelemetryDeck, Firebase, Mixpanel) to add analytics, track events, and configure telemetry without code changes.

Core Features & Use Cases

  • Swappable analytics providers through a single Protocol (AnalyticsService)
  • Core file scaffold generation: AnalyticsService.swift, AnalyticsEvent.swift, NoOpAnalytics.swift
  • Optional provider integrations and environment-based wiring for SwiftUI apps

Quick Start

Ask me to generate a swappable analytics setup for your app by selecting providers and events, and I will generate the core scaffold.

Frequently Asked Questions about analytics-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up swappable analytics providers in a SwiftUI app?

Swappable analytics providers in SwiftUI use a single AnalyticsService protocol injected into the environment. This lets you swap Firebase Analytics, Mixpanel, or TelemetryDeck without modifying your app's tracking code.

What is a protocol-based analytics scaffold and when do I need one?

A protocol-based analytics scaffold is an abstraction layer defining tracking events and user properties via a shared interface. You need it when planning to switch or run multiple analytics providers like Firebase and Mixpanel simultaneously without rewriting code.

Can I use this analytics setup to track events with both Firebase and Mixpanel?

Yes, you can use this setup to track events with Firebase and Mixpanel. It generates optional provider files for each service alongside a NoOpAnalytics default, ensuring your event tracking logic remains decoupled from the specific provider implementations.

What's the best way to add TelemetryDeck to an existing Swift project without changing app code?

The best way to add TelemetryDeck without changing app code is generating a protocol-based scaffold. It creates an AnalyticsService protocol and optional TelemetryDeck provider file, wiring the new provider into your existing Swift environment seamlessly.

What core files are needed to configure telemetry and analytics in Swift?

To configure telemetry and analytics in Swift, the core files needed are AnalyticsService.swift for the protocol, AnalyticsEvent.swift for event definitions, and NoOpAnalytics.swift for a default no-operation implementation. Optional provider files are also generated.

Does the generated analytics scaffold handle file placement based on existing project structure?

Yes, the generated analytics scaffold handles file placement based on existing project structure. It automatically determines where to place core files like AnalyticsService.swift and optional provider integrations within your Swift project directories.