analytics-setup

Featured

Generates protocol-based analytics infrastructure with swappable providers (TelemetryDeck, Firebase, Mixpanel). Use when user wants to add analytics, track events, or set up telemetry.

AI & Automation 565 stars 47 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
92
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Analytics Setup Generator Generate a protocol-based analytics infrastructure that makes it easy to swap providers without changing app code. ## When This Skill Activates Use this skill when the user: - Asks to "add analytics" or "set up analytics" - Mentions "TelemetryDeck", "Firebase Analytics", "Mixpanel" - Wants to "track events" or "add telemetry" - Asks about "privacy-friendly analytics" - Wants to swap analytics providers ## Key Feature: Swappable Providers The generated code uses a protocol-based architecture: ```swift // Your app uses the protocol analytics.track(.buttonTapped("subscribe")) // Swap providers by changing ONE line: let analytics: AnalyticsService = TelemetryDeckAnalytics() // or FirebaseAnalytics() ``` ## Pre-Generation Checks ### 1. Project Context Detection - [ ] Check for existing analytics implementations - [ ] Look for TelemetryDeck/Firebase/Mixpanel in Package.swift or Podfile - [ ] Identify source file locations ### 2. Conflict Detection Search for existing analytics: ``` Glob: **/*Analytics*.swift, **/*Telemetry*.swift Grep: "protocol.*Analytics" or "TelemetryDeck" or "Firebase" ``` If found, ask user: - Extend existing analytics? - Replace with new implementation? - Add new provider to existing setup? ## Configuration Questions Ask user via AskUserQuestion: 1. **Which provider(s)?** - TelemetryDeck (privacy-friendly, recommended) - Firebase Analytics - Mixpanel - None (NoOp for now, add later) 2. **What events to tr...

Details

Author
rshankras
Repository
rshankras/claude-code-apple-skills
Created
9 months ago
Last Updated
4 days ago
Language
Swift
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category