discover-analytics-patterns
Skill by amplitude
Finds how analytics tracking calls are written in a codebase, including SDK calls, custom wrappers and naming conventions. Built for engineers who need to match existing instrumentation before adding new events.
Install discover-analytics-patterns
Built from the published package, never by AI.
git clone --depth 1 https://github.com/amplitude/mcp-marketplace /tmp/mcp-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/mcp-marketplace/plugins/amplitude/skills/discover-analytics-patterns ~/.claude/skills/discover-analytics-patternsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install discover-analytics-patterns in Claude Code
git clone --depth 1 https://github.com/amplitude/mcp-marketplace /tmp/mcp-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/mcp-marketplace/plugins/amplitude/skills/discover-analytics-patterns ~/.gemini/antigravity-cli/skills/discover-analytics-patternsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install discover-analytics-patterns in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
discover-analytics-patterns is an agent skill from Amplitude that finds how analytics tracking calls are written in a codebase. It looks for concrete SDK calls, function signatures, import patterns and custom wrappers such as trackEvent or analytics hooks. Results are grouped into deduplicated patterns, each with a generalized example and the file paths where it appears. Test and mock files are skipped unless they are the only place a pattern appears.
The skill checks the repo's .amplitude/instrumentation-agent-context.md file first, then uses the Amplitude MCP server when it is connected to sample event and property names. Without MCP it falls back to Grep searches. It also reports the dominant event and property naming conventions. If no tracking calls are found, it says so and suggests checking other analytics libraries.
Written from the project's SKILL.md and checked against it.
What it can do
- Find tracking callsSearches the codebase for SDK calls such as amplitude.track, ampli methods and sendEvent.
- Detect custom wrappersFinds custom analytics wrappers such as trackEvent or tracking hooks and documents them as separate patterns.
- Group patternsDeduplicates call sites by library, method name and argument structure, with file paths for each pattern.
- Infer naming conventionsReports dominant event and property naming conventions from repo context, MCP data or call sites.
Try asking
- How do we track events in this codebase?
- Show me the analytics setup and tracking patterns here
- What analytics pattern should I follow before adding new tracking?
Good to know
- Excludes test and mock files unless they are the only place a pattern appears.
- Does not use Amplitude system event names as naming evidence.
- Falls back to Grep searches when the Amplitude MCP server is not available.
- Reports insufficient evidence when naming conventions remain unclear.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/amplitude/skills/discover-analytics-patterns/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to discover-analytics-patterns
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
discover-analytics-patterns: common questions
Does it need the Amplitude MCP server?
No. It uses the MCP server when connected and falls back to Grep searches of the codebase when it is not.
Does it skip test files?
Yes. Test, spec and mock files are excluded unless a pattern appears only in them.
What does it output?
A list of unique tracking patterns with generalized examples, file paths, and event and property naming conventions.
How do I install discover-analytics-patterns?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is discover-analytics-patterns free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is discover-analytics-patterns safe to use?
It scores 67 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to discover-analytics-patterns?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
