
Discover analytics patterns
Finds how existing analytics tracking calls are written so new events match the codebase
Discover analytics patterns is an open-source agent skill for analytics and data. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 50
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Discover analytics patterns
This skill searches a codebase for the concrete ways analytics events are sent, such as direct SDK calls, typed Ampli methods, and custom tracking wrappers. It groups the matches into distinct patterns, lists the files where each appears, and works out the dominant event and property naming conventions.
The workflow starts by checking for a repository instrumentation context file that may hold customer naming rules. If an Amplitude MCP server is connected, it samples real non-system event names from the project and then uses Grep to locate their call sites. Without the MCP, it searches for tracking method names, Amplitude imports and HTTP API endpoints, and looks for wrapper functions or hooks that call into the SDK. Test and mock files are skipped unless they are the only occurrence.
It expects access to the codebase through search tools and is aimed at developers preparing to add instrumentation. Its output is meant to be read by other instrumentation skills so they follow the same coding style.
When your agent uses it
Discovers how analytics tracking calls are actually written in this codebase — the concrete SDK calls, function signatures, and import patterns used to send events. Use this skill whenever you need to understand the existing analytics instrumentation patterns before adding new tracking, when someone asks "how do we track events here?", "show me the analytics setup", "what's the analytics pattern in this codebase?", or any time the instrument-events or discover-event-surfaces skills are about to run and you need to know the correct coding style to follow. Outputs a deduplicated list of patterns with generalized examples and the file paths where each pattern appears, plus the dominant event and property naming conventions inferred from those call sites. Always use this skill before writing any analytics instrumentation code.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (9 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the amplitude plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add amplitude/mcp-marketplace
/plugin install amplitude@amplitudeOr copy only this skill to ~/.claude/skills/discover-analytics-patterns:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/discover-analytics-patterns &&
cp -R "$tmp/plugins/amplitude/skills/discover-analytics-patterns" ~/.claude/skills/discover-analytics-patterns &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/discover-analytics-patterns inside it instead.
Copy the skill folder to ~/.agents/skills/discover-analytics-patterns to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/discover-analytics-patterns &&
cp -R "$tmp/plugins/amplitude/skills/discover-analytics-patterns" ~/.agents/skills/discover-analytics-patterns &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/discover-analytics-patterns inside it instead.
Copy the skill folder to ~/.cursor/skills/discover-analytics-patterns to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/discover-analytics-patterns &&
cp -R "$tmp/plugins/amplitude/skills/discover-analytics-patterns" ~/.cursor/skills/discover-analytics-patterns &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/discover-analytics-patterns inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/amplitude/mcp-marketplace.git --path plugins/amplitude/skills/discover-analytics-patternsOr copy the folder to ~/.gemini/skills/discover-analytics-patterns yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/discover-analytics-patterns:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/discover-analytics-patterns &&
cp -R "$tmp/plugins/amplitude/skills/discover-analytics-patterns" ~/.copilot/skills/discover-analytics-patterns &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/discover-analytics-patterns inside it instead.
Get the folder:
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.gitThen copy mcp-marketplace/plugins/amplitude/skills/discover-analytics-patterns into your agent's skills folder as discover-analytics-patterns. Agents that support SKILL.md read one folder per skill.
What it does
- Tracking pattern discovery
- Locates analytics calls across the codebase using search patterns for SDKs, typed clients and HTTP endpoints.
- Wrapper detection
- Identifies custom tracking functions and hooks that wrap the underlying analytics SDK.
- Naming convention inference
- Infers dominant event and property naming styles from real call sites and project samples.
- Deduplicated pattern listing
- Groups matching calls by library, method and argument structure with file paths for each.
- MCP-aware sampling
- Uses a connected Amplitude catalog to pick representative events before searching the code.
Good for
- Show me how we track events in this codebase
- Find the analytics wrapper our frontend uses before I add a new event
- Check the naming style for event and property names before instrumenting a feature
- List every file where we call the Amplitude SDK
Discover analytics patterns FAQ
When should Discover analytics patterns be used?
Before writing any analytics instrumentation code, and when someone asks how tracking is set up in the codebase.
What does Discover analytics patterns output?
A set of conventions for event and property naming, followed by deduplicated tracking patterns with generalized examples and relevant file paths.
What happens if no tracking calls are found?
It reports that clearly and suggests checking whether Amplitude or another analytics library is set up, offering to search for other libraries such as Segment, Mixpanel or PostHog.
How do I install Discover analytics patterns in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/discover-analytics-patterns to use it in all your projects, or to .claude/skills/discover-analytics-patterns in one project. Or install the amplitude plugin, which includes it: /plugin marketplace add amplitude/mcp-marketplace, then /plugin install amplitude@amplitude.
Does Discover analytics patterns run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Discover analytics patterns?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Discover analytics patterns?
The closest alternatives to Discover analytics patterns are Add analytics instrumentation, Instrument events, Use MCP analytics, Discover event surfaces and Taxonomy.
Where this comes from
- Description: from the skill's own SKILL.md.
More from amplitude/mcp-marketplace

Breaks down an Amplitude chart to explain a spike, drop or unusual trend
- Open source
- 50 GitHub stars
- Analytics and data

Triages product errors across network failures, JS errors and error clicks
- Open source
- 50 GitHub stars
- Analytics and data

Scans Amplitude experiments, triages them by importance and reports on the key ones
- Open source
- 50 GitHub stars
- Analytics and data

Copies tracking-plan events between Amplitude projects via CSV import and branch review
- Open source
- 50 GitHub stars
- Analytics and data

Orchestrates batched audits of missing Amplitude event descriptions via worker subagents
- Open source
- 50 GitHub stars
- Analytics and data

Onboards you to Amplitude's Grok bot: connects MCP servers, checks project access, picks
- Open source
- 50 GitHub stars
- Analytics and data

