Skip to content
Skill

Instrument events

Turns event candidates into a concrete, placed analytics tracking plan for an agent

Instrument events 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 Instrument events

This skill takes a YAML list of event candidates from an earlier analytics discovery step and narrows it to the highest-priority events. For each one, it reads the file hinted at in the candidate, locates the exact handler or callback where the tracking call belongs, and records a stable anchor alongside the line number.

The skill is written to fit the existing codebase. It looks at which variables are in scope at the insertion point, keeps only a few primitive properties that would be useful in a chart, and matches the tracking function, import path and call shape already used in the repo. It can also read an optional repo context file and a routing config that maps folders to Amplitude project IDs, and it flags events whose project cannot be confirmed.

The output is a structured JSON tracking plan. After the user confirms the scope, the skill can create the events and their properties in Amplitude through the MCP tools, but only for events whose project mapping is confirmed. It expects an Amplitude MCP connection and a repository with the candidate list available.

When your agent uses it

Given event_candidates YAML (output from discover-event-surfaces), generates a concrete instrumentation plan for priority-3 (critical) events. Acts as a Software Architect: discovers existing analytics patterns in the codebase, reads the hinted files to determine what variables are in scope, designs minimal chart-useful properties, and identifies the exact insertion point for each tracking call. Outputs a structured JSON trackingPlan. Use this as step 3 of the analytics instrumentation workflow, after discover-event-surfaces. Trigger whenever a user has event_candidates and wants to generate tracking code, asks "instrument these events", "generate tracking plan", "add analytics for these events", "where should I put the tracking calls", or any request to turn event candidates into concrete implementation guidance.

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 (15 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/instrument-events:

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

For one project only, put the folder in .claude/skills/instrument-events inside it instead.

Claude Code docs on skills

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

For one repository only, put the folder in .agents/skills/instrument-events inside it instead.

Codex docs on skills

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

For one project only, put the folder in .cursor/skills/instrument-events 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/instrument-events

Or copy the folder to ~/.gemini/skills/instrument-events yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/instrument-events:

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

For one project only, put the folder in .github/skills/instrument-events 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/instrument-events into your agent's skills folder as instrument-events. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Priority event filtering
Selects only the highest-priority candidates so the plan covers release-blocking events.
Insertion point discovery
Finds the function or callback where the outcome is confirmed and records a stable anchor.
Minimal property design
Chooses a few primitive properties that each support a specific chart or filter.
Existing pattern matching
Reuses the tracking function, import path and call shape already in the codebase.
Project routing by path
Maps code locations to Amplitude project IDs using a repo config file.
Amplitude write-back
Creates confirmed events and properties in Amplitude via MCP tools after approval.

Good for

  • Generate a tracking plan for critical events found in a codebase audit
  • Find where to place track calls for a checkout success flow
  • Propose minimal event properties that support dashboard charts
  • Check which Amplitude project a tracked event should be routed to
  • Create approved events and properties in an Amplitude project

Instrument events FAQ

What does Instrument events need before it can run?

It needs event_candidates YAML from the discover-event-surfaces step. The skill also asks for a .amplitude/instrumentation-agent.yaml file to route events to projects, and it can work without the optional context file.

Does Instrument events change my code?

The skill produces a plan with file paths, line numbers and suggested tracking code for an engineer to implement. It writes to Amplitude only after explicit confirmation and only for events with confirmed project IDs.

When does Instrument events trigger?

It triggers when a user has event candidates and asks to instrument them, generate a tracking plan, or find where tracking calls should go.

How do I install Instrument events in Claude Code?

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

Does Instrument events 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 Instrument events?

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 Instrument events?

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

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