Skip to content
Skill

Add analytics instrumentation

Turns code changes in a PR, branch, file or feature into an analytics tracking plan

Add analytics instrumentation is an open-source agent skill for analytics and data. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
50
Last commit
License
MIT
Listing updated

Similar skills

About Add analytics instrumentation

This skill orchestrates an end-to-end analytics instrumentation workflow. Given a pull request, branch, file, directory or a natural-language feature description, it gathers the relevant code, reads what changed or what the code does, and identifies user-facing moments that deserve tracking.

The workflow runs in stages: it captures what the user wants instrumented, builds a summary of the change, discovers candidate events worth tracking, and then produces a concrete plan listing where each tracking call should go, the file and function involved, and the properties it should send. For feature requests it searches git history and the codebase for matching files, and for files it reads them directly while scanning for existing tracking calls.

The skill expects a git repository that the agent can read, and it relies on helper skills named diff-intake, discover-event-surfaces and instrument-events. It is distributed as part of the Amplitude plugin marketplace and is licensed under MIT.

When your agent uses it

End-to-end analytics instrumentation workflow for a PR, branch, file, directory, or feature. Reads the code, discovers what events should be tracked, and produces a concrete instrumentation plan — all in one shot. Use this skill whenever a user wants to add analytics to a PR, asks "instrument this PR", "add tracking to this branch", "what analytics does this file need", "instrument the checkout flow", "run the full instrumentation workflow", or any request that implies going from code changes to a tracking plan. Also trigger when the user gives you a PR link, branch name, file path, or feature description and mentions analytics, events, or instrumentation. This is the main entry point for the analytics workflow — prefer it over calling the individual steps (diff-intake, discover-event-surfaces, instrument-events) separately.

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 (7 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@amplitude

Or copy only this skill to ~/.claude/skills/add-analytics-instrumentation:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/add-analytics-instrumentation &&
cp -R "$tmp/plugins/amplitude/skills/add-analytics-instrumentation" ~/.claude/skills/add-analytics-instrumentation &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/add-analytics-instrumentation inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/add-analytics-instrumentation 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/add-analytics-instrumentation &&
cp -R "$tmp/plugins/amplitude/skills/add-analytics-instrumentation" ~/.agents/skills/add-analytics-instrumentation &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/add-analytics-instrumentation inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/add-analytics-instrumentation 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/add-analytics-instrumentation &&
cp -R "$tmp/plugins/amplitude/skills/add-analytics-instrumentation" ~/.cursor/skills/add-analytics-instrumentation &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/add-analytics-instrumentation inside it instead.

Cursor docs on skills

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/add-analytics-instrumentation

Or copy the folder to ~/.gemini/skills/add-analytics-instrumentation yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/add-analytics-instrumentation:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/add-analytics-instrumentation &&
cp -R "$tmp/plugins/amplitude/skills/add-analytics-instrumentation" ~/.copilot/skills/add-analytics-instrumentation &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/add-analytics-instrumentation inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git

Then copy mcp-marketplace/plugins/amplitude/skills/add-analytics-instrumentation into your agent's skills folder as add-analytics-instrumentation. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Input type detection
Works out whether the request refers to a PR, branch, file, directory or feature and routes it accordingly.
Change summarization
Reads the code and summarizes user-facing behavior and existing tracking calls for each affected file.
Feature code search
Searches git history and the codebase with keywords, globs and route definitions to locate a described feature.
Event candidate discovery
Identifies which user actions and flows are worth tracking as analytics events.
Tracking plan output
Produces a plan with file locations, tracking code and property definitions for each critical event.
Error stop handling
Halts and reports clearly when a PR, git command or file input fails instead of continuing with partial data.

Good for

  • Instrument the analytics events for an open pull request
  • Add tracking to the checkout flow in my current branch
  • Work out what analytics a specific component file needs
  • Plan event tracking for the onboarding experience
  • Review which events a directory of code should emit

Add analytics instrumentation FAQ

What does the skill need to run?

It needs access to the repository, since it reads code and runs git commands such as git log to find related commits.

What does Add analytics instrumentation produce?

It produces a tracking plan with exact file locations, tracking code and property definitions for each critical event, and then asks whether to adjust or proceed to implementation.

Does Add analytics instrumentation change my code?

The workflow as written builds a plan and asks whether to proceed to implementation; it does not describe editing files itself.

When does Add analytics instrumentation trigger?

It triggers on requests to instrument or add analytics to a PR, branch, file, directory or feature, including phrases such as instrument this PR or add tracking to this branch.

How do I install Add analytics instrumentation in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/add-analytics-instrumentation to use it in all your projects, or to .claude/skills/add-analytics-instrumentation in one project. Or install the amplitude plugin, which includes it: /plugin marketplace add amplitude/mcp-marketplace, then /plugin install amplitude@amplitude.

Does Add analytics instrumentation 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 Add analytics instrumentation?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Add analytics instrumentation?

The closest alternatives to Add analytics instrumentation are Discover event surfaces, Instrument events, Discover analytics patterns, Product tracking edho ferdian and Tracking plan audit.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from amplitude/mcp-marketplace

  1. Breaks down an Amplitude chart to explain a spike, drop or unusual trend

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

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

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

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

    • Open source
    • 50 GitHub stars
    • Analytics and data