analytics-setup
FeaturedGenerates 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 719 stars
68 forks Updated 1 months ago MIT
Install
Quality Score: 93/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
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
- 10 months ago
- Last Updated
- 1 months ago
- Language
- Swift
- License
- MIT
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
analytics
When the user wants to set up, improve, or audit analytics tracking and measurement.
1 Updated 1 months ago
imMamdouhaboammar Code & Development Listed
analytics
Product analytics implementation — event tracking, funnel analysis, A/B testing, Segment/Amplitude/Mixpanel/PostHog, privacy-compliant instrumentation.
26 Updated 1 weeks ago
arbazkhan971 AI & Automation Featured
error-monitoring
Generates protocol-based error/crash monitoring with swappable providers (Sentry, Crashlytics). Use when user wants to add crash reporting, error tracking, or production monitoring.
719 Updated 1 months ago
rshankras