Agent skill · Data & Analytics

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.

rshankrasgithub.com/rshankrasGitHub ↗
claude-codecan modify filesMIT
Install
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.

Facts
Files in the skill folder: 8
SKILL.md size: 5 KB
Bundled scripts: none
Allowed tools: ReadWriteEditGlobGrepBashAskUserQuestion
Path: skills/generators/analytics-setup/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 589
Language: Swift

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. When This Skill Activates
  2. Key Feature: Swappable Providers
  3. Pre-Generation Checks
  4. 1. Project Context Detection
  5. 2. Conflict Detection
  6. Configuration Questions
  7. Generation Process
  8. Step 1: Create Core Files
  9. Step 2: Create Selected Provider(s)
  10. Step 3: Create Environment Integration
  11. Step 4: Determine File Location
  12. Output Format
  13. Files Created
  14. Integration Steps
Ships with 7 files
  • analytics-patterns.md
  • templates/AnalyticsEvent.swift
  • templates/AnalyticsService.swift
  • templates/AnalyticsServiceKey.swift
  • templates/Providers/FirebaseAnalytics.swift
  • templates/Providers/NoOpAnalytics.swift
  • templates/Providers/TelemetryDeckAnalytics.swift
More from claude-code-apple-skills
All skills →
About this skill
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.

Keep going