analytics-setup
Generates protocol-based analytics infrastructure with swappable providers (TelemetryDeck, Firebase, Mixpanel). Use when user wants to add analytics, track events, or set up telemetry.
npx skills add rshankras/claude-code-apple-skills --skill analytics-setup --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- When This Skill Activates
- Key Feature: Swappable Providers
- Pre-Generation Checks
- 1. Project Context Detection
- 2. Conflict Detection
- Configuration Questions
- Generation Process
- Step 1: Create Core Files
- Step 2: Create Selected Provider(s)
- Step 3: Create Environment Integration
- Step 4: Determine File Location
- Output Format
- Files Created
- Integration Steps
What does the analytics-setup skill do?
Generates protocol-based analytics infrastructure with swappable providers (TelemetryDeck, Firebase, Mixpanel). Use when user wants to add analytics, track events, or set up telemetry.
How do I install it?
Run `npx skills add rshankras/claude-code-apple-skills --skill analytics-setup --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From rshankras/claude-code-apple-skills, a repository with 589 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
