Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

instrument-pr

Skill by amplitude

Instruments a pull request with Amplitude analytics that match the project's existing tracking plan and code patterns. It is for engineers who want new events to follow the team's taxonomy.

  • Score 48
  • 166 stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install instrument-pr

Built from the published package, never by AI.

git clone --depth 1 https://github.com/amplitude/builder-skills /tmp/builder-skills && mkdir -p ~/.claude/skills && cp -r /tmp/builder-skills/engineering-skills/skills/instrument-pr ~/.claude/skills/instrument-pr

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install instrument-pr in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill adds Amplitude tracking to a pull request. It reads the project's existing tracking plan through the Amplitude MCP server, including events, properties and naming conventions. It then reads the PR diff to find the few user actions worth tracking, and detects the codebase's SDK and tracking patterns so the new calls match them.

The skill designs an event spec table, with names, properties, fire points and status, before it edits code. Writing new events or properties to the Amplitude tracking plan is opt-in and happens on a branch. The skill is aimed at engineers and data governors who want to avoid taxonomy drift.

Written from the project's SKILL.md and checked against it.

What it can do

  • get_amplitude_contextFinds the Amplitude org and projects so the target project can be confirmed.
  • get_workspace_contextChecks whether main is protected and whether changes span multiple environments.
  • get_eventsPulls the full event schema from the tracking plan, paginated.
  • get_propertiesPulls event and user properties, including what existing events carry.
  • get_tracking_plan_sourcesHelps match the right Amplitude project when the target is unclear.
  • create_branchCreates a tracking-plan branch for opt-in write-back of new events and properties.
  • create_eventsStages net-new events with descriptions on a tracking-plan branch.
  • create_propertiesStages new event or global properties with types, descriptions and enum values.
  • Analyze PR diffLists user actions in the diff and filters out refactors and internal changes.
  • Implement trackingAdds calls through the project's existing tracking wrapper and typed constants.

What you need

  • Amplitude MCP server access
  • An Amplitude project with a tracking plan
  • A git repository with the PR diff
  • An existing Amplitude or analytics SDK in the codebase
  • Update Tracking Plan permission for opt-in write-back

Try asking

  • Instrument this PR
  • What should I track here?
  • Add Amplitude events for this feature

Good to know

  • Stops if the codebase has no analytics SDK; it does not install or set one up.
  • Write-back to the tracking plan is opt-in and only happens on a branch.
  • Creating events or properties returns a 403 without the Update Tracking Plan permission.
  • Designed for typically 1 to 3 events per feature PR, sometimes none.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: engineering-skills/skills/instrument-pr/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to instrument-pr

All alternatives →
kaggle-cliKaggle
94

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.

AAA Skill 7.7k
bigquery-bigframesgoogle
94

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.

AAA Skill 25k
data-loadingmicrosoft
94

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.

AAA Skill 18k
data-manager-api-setupgoogle
94

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.

AAA Skill 25k
managed-airflow-dag-authoringgoogle
94

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.

AAA Skill 25k
data-feedsdavila7
94

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.

AAA Skill 34k

Compare with kaggle-cli, bigquery-bigframes or data-loading

instrument-pr: common questions

Does this skill change my Amplitude tracking plan automatically?

No. The skill only writes to the tracking plan if the user explicitly agrees, and it always uses a branch rather than main. Merging or approving that branch is left to the plan's reviewer.

How does it decide which actions to track?

It applies a judgment test: someone must query the event, it must not already be answerable from an existing event, and it must mark an outcome rather than mechanics.

What happens if the project has no analytics SDK?

The skill stops and tells the user. It does not add dependencies, initialize an SDK or wire API keys as part of an instrumentation request.

How do I install instrument-pr?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is instrument-pr free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is instrument-pr safe to use?

It scores 48 of 100. Grades: maintenance C, licence F, quality B. 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 instrument-pr?

Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.

instrument-pr Install

Add to stack

Loading.