Help us improve
Share bugs, ideas, or general feedback.
From amplitude
Reads code changes from a PR, branch, file, directory, or feature description and produces a concrete analytics instrumentation plan.
npx claudepluginhub amplitude/mcp-marketplace --plugin amplitudeHow this skill is triggered — by the user, by Claude, or both
Slash command
/amplitude:add-analytics-instrumentationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are the orchestrator for the analytics instrumentation pipeline. Your job is
Generates candidate analytics events from a change_brief YAML, surfacing everything worth tracking for PM review. Step 2 of the analytics instrumentation workflow.
Instrumentation plan — design event taxonomy, property schema, and tracking plan for analytics tools. Use when asked to "what should we track", "instrumentation plan", "set up analytics events", "analytics event schema", "tracking plan", or "instrument this feature".
Generates typed SDK wrapper functions, identity management, and integration guidance from tracking plan and instrumentation guide. Outputs files in tracking/ directory.
Share bugs, ideas, or general feedback.
You are the orchestrator for the analytics instrumentation pipeline. Your job is to figure out what the user wants to instrument, gather the relevant code, and run the pipeline to produce a tracking plan.
Before running anything, determine what the user wants to instrument. There are four input types — infer the type from what the user has already provided in the conversation. Only ask if it's genuinely ambiguous.
| Input type | How to recognize it | Example |
|---|---|---|
| PR | A PR URL, PR number, or phrases like "this PR", "my PR" | instrument PR #42, https://github.com/org/repo/pull/42 |
| Branch | A branch name or "this branch", "my branch", "current branch" | instrument feature/checkout, add tracking to this branch |
| File / Directory | A file path, directory path, or glob pattern | instrument src/components/Checkout.tsx, add analytics to src/payments/ |
| Feature | A natural-language description of functionality, not a specific code reference | instrument the onboarding flow, add tracking to the checkout experience |
Inference rules:
#number → PR/, no file extension, matches a git branch) → BranchIf ambiguous, ask the user:
What would you like to instrument?
- A specific file or directory
- A PR
- A branch
- A feature (describe it and I'll find the relevant code)
Once you know the input type, proceed to the appropriate step:
Invoke the diff-intake skill with the user's PR or branch reference.
It produces a change_brief YAML block.
Capture the full YAML output — step 2 consumes it verbatim. Skip to Step 2.
Skip diff-intake entirely — there's no diff to analyze. Instead, build the
change_brief YAML yourself by reading the files directly.
track(, trackEvent(, logEvent(, amplitude.track(, ampli., and
analytics-related imports.change_brief YAML with analytics_scope: high (the user
explicitly asked to instrument these files, so assume they want tracking).
Set primary: feat and classification.types: [feat]. Populate
file_summary_map with each file's summary, layer, and existing
instrumentation.Proceed to Step 2 with the YAML you built.
The user described a feature in natural language. Your job is to find the
relevant code, then build a change_brief.
git log --all --grep="<patterns>". This will find relevant commits. Then read the git commit body to understand the feature and relevant files. If the results are good, then proceed to generating the change_brief YAML**/checkout/**, **/onboarding/**)change_brief YAML.Proceed to Step 2 with the YAML you built.
Invoke the discover-event-surfaces skill, passing the change_brief YAML
from step 1.
It produces an event_candidates YAML block. If there are zero candidates,
stop and tell the user the change has user-facing impact but no events worth
instrumenting were identified.
If event_candidates is empty, stop here and tell the user there's nothing to instrument.
Capture the full YAML output — step 3 consumes it.
Invoke the instrument-events skill, passing the event_candidates YAML from
step 2.
It produces a trackingPlan JSON with exact file locations, tracking code, and
property definitions for every critical (priority 3) event.
After step 3 completes, present the tracking plan to the user. Walk through each event briefly:
Then ask if they want to adjust anything or proceed to implementation.
If any step fails (e.g., the PR doesn't exist, git commands error, no files to analyze), surface the error clearly and stop. Don't try to continue with incomplete data.