analytics-setup
Skill by gustavscirulis
Generates Swift analytics infrastructure built on a protocol, so apps can swap TelemetryDeck, Firebase Analytics or Mixpanel. Aimed at developers adding analytics or telemetry to Swift apps.
Install analytics-setup
Built from the published package, never by AI.
git clone --depth 1 https://github.com/gustavscirulis/snapgrid /tmp/snapgrid && mkdir -p ~/.claude/skills && cp -r /tmp/snapgrid/.claude/skills/skills/generators/analytics-setup ~/.claude/skills/analytics-setupRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/gustavscirulis/snapgrid /tmp/snapgrid && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/snapgrid/.claude/skills/skills/generators/analytics-setup ~/.gemini/antigravity-cli/skills/analytics-setupAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
analytics-setup is an agent skill that generates a protocol-based analytics layer for Swift apps. The generated AnalyticsService protocol lets an app switch between TelemetryDeck, Firebase Analytics and Mixpanel by changing one line, without changing app code. It also creates a NoOp provider for tests and privacy mode, and an AnalyticsEvent file for app-specific events.
Before generating, the skill checks the project for existing analytics code and for provider entries in Package.swift or a Podfile. It then asks which providers, events and user properties to use. Files are written to Sources/Analytics, App/Analytics or Analytics, depending on the project layout, and an optional SwiftUI environment key is added. It is aimed at developers who want to add analytics or telemetry to a Swift or SwiftUI app.
Written from the project's SKILL.md and checked against it.
What it can do
- Protocol-based analyticsGenerates an AnalyticsService protocol so providers can be swapped without changing app code.
- Provider filesCreates provider files for TelemetryDeck, Firebase Analytics or Mixpanel, based on the user's choice.
- NoOp providerCreates a NoOpAnalytics provider for testing and privacy mode.
- Conflict detectionSearches the project for existing analytics code and asks whether to extend, replace or add a provider.
- App event definitionsGenerates an AnalyticsEvent file for the app's own events.
- SwiftUI environment keyOptionally creates an AnalyticsServiceKey for dependency injection in SwiftUI apps.
What you need
- A Swift project
- Swift Package Manager or CocoaPods setup for provider SDKs
- A TelemetryDeck app ID, if using TelemetryDeck
- A GoogleService-Info.plist file, if using Firebase
Try asking
- Add analytics to my Swift app using TelemetryDeck.
- Set up a protocol-based analytics layer with Firebase and a NoOp provider.
- Track button taps and errors in my SwiftUI app with Mixpanel.
Good to know
- Generates Swift code only; the examples target Swift and SwiftUI.
- The SwiftUI environment key is optional and aimed at SwiftUI apps.
- Firebase setup also requires a GoogleService-Info.plist file.
Security check
B- Allowed to use Write, Edit, Bash without limitsIn
SKILL.md
Checked automatically: .claude/skills/skills/generators/analytics-setup/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditGlobGrepBashAskUserQuestion
Alternatives to analytics-setup
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
analytics-setup: common questions
Can I switch analytics providers later?
Yes. The source says you add the new provider file and change one line in the app entry point to switch.
Which analytics providers does it support?
The skill generates code for TelemetryDeck, Firebase Analytics and Mixpanel, and it can also create a NoOp provider.
How does it handle testing?
The source says to use NoOpAnalytics() in tests and previews, so tracking calls become no-ops and tests have no external dependencies.
How do I install analytics-setup?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is analytics-setup free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is analytics-setup safe to use?
It scores 52 of 100. Grades: maintenance D, licence F, quality B. Security check: grade B (allowed to use write, edit, bash without limits). Review the code before you install. How grades work.
What are alternatives to analytics-setup?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
