Communitygithub.com

amplitude/builder-skills

Node/TypeScript MCP 서버에 Amplitude의 @amplitude/mcp-analytics SDK를 설치하여 도구 호출, 세션, 근거를 Amplitude 이벤트로 추적합니다. 사용자가 MCP 서버에 Amplitude 분석을 추가하려 하거나, "MCP Analytics", "@amplitude/mcp-analytics" 등을 언급할 때 이 스킬을 사용하세요.

builder-skills란 무엇인가요?

이 스킬은 Node.js/TypeScript 기반 MCP 서버에 Amplitude MCP Analytics SDK를 통합하는 방법을 안내합니다. 주요 기능은 다음과 같습니다: 1) 모든 MCP 도구 호출을 Amplitude 이벤트로 자동 변환하여 기존 제품 분석 데이터(리텐션, 수익, 웹/모바일 사용량)와 결합 가능하게 합니다. 2) 사용자 식별(user_id)을 일치시켜 MCP 트래픽이 독립된 인구로 분리되지 않도록 합니다. 3) 에이전트가 도구를 호출한 이유(rationale)를 캡처하여 '무슨 일이 일어났는가'에서 '사용자가 무엇을 하려 했는가'로 데이터 해석을 전환합니다. 4) MCP에서 반환된 링크에 UTM 파라미터를 추가하여 클릭스루가 MCP/에이전트 트래픽으로 귀속되도록 합니다. 스킬은 Claude Code, Cursor, Codex 등 모든 MCP 클라이언트에서 작동하며, SDK README를 최신 상태로 유지하고 단계별로 구현할 것을 권장합니다. 특히 사용자 식별을 먼저 올바르게 설정하지 않으면 전체 통합의 목적이 무의미해지므로 주의가 필요합니다.

지원 대상✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/amplitude/builder-skills/tree/HEAD/engineering-skills/skills/instrument-mcp-server

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Amplitude MCP Analytics 설정

MCP 서버의 모든 도구 호출을 Amplitude 이벤트로 만들어, 제품의 다른 Amplitude 데이터(리텐션, 수익, 웹/모바일 사용량)와 결합할 수 있도록 계측합니다.

권위 있는 SDK 참조는 패키지 README입니다: https://github.com/amplitude/Amplitude-MCP-Analytics-Node (npm: @amplitude/mcp-analytics). SDK는 프리뷰 상태이며 빠르게 진화합니다 — 항상 최신 README를 가져와 설치, API 형태, 설정 및 기본 이벤트에 대해 따르십시오. 암기한 코드 조각이나 이 스킬의 요약에 의존하지 마십시오. SDK API 세부 사항은 README가 우선합니다.

네 단계가 있습니다. 1~2단계는 필수이며 README에 문서화되어 있습니다 — 이 스킬은 따라야 할 섹션과 확인해야 할 불변 조건을 알려줍니다. 3~4단계는 강력히 권장되며 여기에 완전히 문서화되어 있습니다. SDK README가 의도적으로 다루지 않는 SDK 외부의 변경(서버의 도구 스키마 및 제품의 웹 앱)이 필요하기 때문입니다.

순서대로 수행하십시오: 1단계(도구 호출) → 2단계(식별) → 3단계(근거) → 4단계(UTM, 서버가 링크를 반환하는 경우에만). "완료"라고 말하기 전에 식별을 올바르게 설정하십시오 — 모든 하위 항목이 이에 의존합니다.

시작하기 전에

다음 사항을 확인하십시오:

  1. 이것은 @modelcontextprotocol/sdk로 구축된 Node/TypeScript MCP 서버입니다. 이 SDK는 다른 언어/런타임을 지원하지 않습니다.
  2. 사용자가 이벤트가 전송될 프로젝트에 대한 Amplitude API 키를 가지고 있거나 얻을 수 있습니다.
  3. 저장소에서 사용하는 패키지 관리자(pnpm/npm/yarn) — 설치 명령어를 조정하십시오.

1단계 — SDK 설치 및 도구 호출 추적 (필수)

README를 가져와 설치 및 빠른 시작 섹션을 따르십시오. 항상 최신 게시 버전을 설치하십시오 (예: pnpm add @amplitude/mcp-analytics@latest) — 기억에서 버전을 고정하지 말고, 이 스킬의 설치 명령어를 재현하지 마십시오.

연결 후 확인해야 할 불변 조건(README가 각각 설명):

  • analytics.instrumentServer(server, ...)는 server.connect() 전에 실행됩니다 — 순서가 중요합니다.
  • 모든 도구 핸들러가 analytics.instrumentTool(...)로 래핑됩니다. 래핑되지 않은 도구는 추적되지 않습니다. 래퍼는 핸들러와 동일한 형태를 가지며 서버가 바인딩되지 않은 경우 무작동 패스스루이므로 방어적으로 래핑해도 안전합니다.
  • 기본 이벤트는 모두 [MCP] 접두사를 가지므로 제품의 기존 Amplitude 이벤트와 충돌하지 않습니다. 현재 이벤트 세트 및 속성은 README의 기본 이벤트 테이블(및 저장소의 docs/events.md)을 참조하십시오.

선택 사항: instrumentTool/instrumentServer의 extra를 통해 안정적인 사용자 정의 차원(요금제, 팀, 기능 플래그)을 첨부할 수 있습니다 — README의 사용자 정의 이벤트 속성 섹션을 참조하십시오.

2단계 — 식별 올바르게 설정 (필수, 1단계를 "완료"라고 부르기 전에 수행)

MCP 이벤트는 제품이 웹/모바일에서 Amplitude로 이미 보내는 것과 **동일한 user_id**를 전달해야 합니다. 이를 건너뛰면 MCP 사용량이 연결 해제된 인구로 표시되어 제품 데이터에 결합할 수 없습니다 — 이는 통합의 대부분의 목적을 무력화합니다.

현재 API에 대해 README의 식별 섹션을 따르십시오: 서버 수준 바인딩, 핸들러 내에서의 요청별 setIdentity(), 요청의 authInfo 클레임에서의 옵트인 resolveIdentity 매핑을 제공합니다. 서버의 인증 모델에 맞는 것을 선택하십시오.

사용자에게 알려야 할 한 가지 동작: 완전히 익명의 앵커 없는 이벤트는 집계 전용 추적을 위해 명시적으로 emitAnonymousEvent: true를 옵트인하지 않는 한 기본적으로 드롭됩니다 (사용자로 계산되지 않음) — 이 설정을 켜기 전에 물어보십시오. 계산되는 항목이 변경되기 때문입니다.

3단계 — 근거 캡처 (권장)

사람이 버튼을 클릭하는 것과 달리, 에이전트는 도구를 호출한 이유를 알려줄 수 있습니다. 이를 캡처하면 데이터가 "무슨 일이 일어났는가"에서 "사용자가 무엇을 하려 했는가"로 전환됩니다.

SDK 측은 한 번의 호출(analytics.setRationale(...) — README의 근거 섹션 참조)이지만, SDK는 도구 입력에서 근거를 직접 읽지 않습니다: 근거가 서버에 도달하는 방식은 이 스킬이 구현하는 서버 측 규칙입니다. 전투에서 검증된 패턴은 스키마 주입입니다 — 모든 도구의 입력 스키마에 선택적 rationale 필드를 추가합니다. 매개변수가 에이전트가 이미 읽는 스키마에 설명되어 있기 때문에, 클라이언트 측 변경 없이 모든 클라이언트에서 자발적으로 채워집니다:

// 모든 도구의 입력 스키마에 추가 (zod 예제):
rationale: z
  .string()
  .optional()
  .describe(
    '이 도구를 호출하는 이유와 결과에서 무엇을 배울 것으로 예상하는지에 대한 간략한 설명.',
  ),

그런 다음 계측된 핸들러 내에서 이를 읽고 SDK에 전달합니다:

analytics.instrumentTool(async (args, extra) => {
  if (typeof args.rationale === 'string') {
    analytics.setRationale(args.rationale);
  }
  return doWork(args);
}, { name: 'search' });

필드를 선택 사항으로 만들면 에이전트가 생략해도 아무것도 깨지지 않습니다. 예약된 [MCP] Rationale 속성으로 전송됩니다(1,000자로 잘림; 마지막 쓰기가 우선). 샘플이 아닌 모든 도구에 적용할 가치가 있습니다.

4단계 — 아웃바운드 링크에 UTM 태그 추가 (권장, 서버가 URL을 반환하는 경우에만)

이 단계는 완전히 SDK 외부에 있습니다 — 서버가 URL을 구축하는 방식을 변경하며 제품의 웹 측 분석에 의존합니다. SDK README에서는 다루지 않습니다.

도구 응답에 링크(대시보드, 문서, 제품 페이지)가 포함된 경우, 서버를 떠나기 전에 태그를 추가하여 클릭스루가 직접 방문으로 표시되지 않고 MCP/에이전트 트래픽으로 귀속되도록 하십시오:

function addUtmParams(url: string, clientName?: string): string {
  const u = new URL(url);
  u.searchParams.append('utm_source', 'mcp');
  u.searchParams.append('utm_medium', 'referral');
  // 연결된 클라이언트(예: "Claude", "Cursor"), 알고 있는 경우:
  u.searchParams.append('utm_content', clientName ?? 'unknown');
  return u.toString();
}

도구 응답의 모든 URL 구축 경로를 이와 같은 하나의 중앙 함수를 통해 라우팅하십시오 — 태그가 없는 단일 링크는 해당 흐름의 기여 분석을 깨뜨립니다.

전제 조건 (사용자에게 명시적으로 알리십시오): 이는 웹 분석이 페이지 조회 이벤트(또는 사이트가 방문 시 발생시키는 이벤트)에서 UTM 매개변수를 캡처하는 경우에만 작동합니다. Amplitude의 Browser SDK 2는 기본적으로 이 작업을 수행합니다 — 마케팅 기여도 추적을 참조하십시오(UTM, 리퍼러 및 클릭 ID 매개변수가 기본적으로 캡처됨). 사용자 정의 페이지 조회 추적기를 사용하는 경우 UTM 값도 해당 이벤트에 포함되는지 확인해야 합니다. 그렇지 않으면 MCP 태그가 지정된 클릭을 결합할 대상이 없습니다.

관련 Amplitude 문서:

계측 후

이벤트가 흐르기 시작하면, 코딩 에이전트를 Amplitude의 게시된 analyze-mcp-server 스킬로 안내하여 의도 클러스터링을 실행하고 의도별 도구 호출 오류 패턴을 표면화하십시오. (이 프로젝트에 mcp-intent-error-analysis 스킬이 설치된 경우, 그것을 사용하십시오 — 사용자가 데이터를 흐르게 하고 분석하려 할 때 이 분석을 여기서 중복하지 말고 사용하십시오.)

표시해야 할 일반적인 실수

  • 오래된 API 조각을 따르는 대신 현재 README를 사용 — 새로 가져오십시오. SDK는 프리뷰 상태이며 빠르게 움직입니다.
  • 최신 릴리스 대신 고정된/오래된 버전을 설치.
  • server.connect() 후에 instrumentServer() 호출 — 반드시 전에 해야 합니다.
  • 일부 도구 핸들러만 래핑하고 다른 것은 래핑하지 않음 — 모든 도구에 instrumentTool이 필요합니다.
  • 웹/모바일에서 사용되는 것과 일치하지 않는 user_id 전송 — 결합성을 깨뜨리며, 통합의 핵심 목적입니다.
  • 사용자가 이해하지 못한 채 emitAnonymousEvent: true를 켜면 앵커 없는 트래픽으로 집계가 부풀려집니다.
  • UTM 전제 조건(웹 측 캡처)을 잊고 링크 태그만으로 충분하다고 가정.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

amplitude/builder-skills

Performs deep analysis of a specific Amplitude chart to explain trends, anomalies, and likely drivers. Use when a metric looks unusual, investigating a spike or drop, or understanding the "why" behind numbers.

amplitude/builder-skills

Deeply analyze Amplitude dashboards by analyzing key charts, surfacing top areas for concern and takeaways, identify anomalies, then explain changes using customer feedback trends.

amplitude/builder-skills

Designs A/B tests with proper metrics and variants, analyzes running or completed experiments, and interprets results with statistical rigor. Use when setting up experiments, checking experiment status, analyzing results, or making ship decisions.

amplitude/builder-skills

Synthesizes customer feedback into actionable themes including feature requests, bugs, pain points, and praise. Use when planning product roadmap, understanding user sentiment, investigating specific issues, or preparing voice-of-customer reports.

amplitude/builder-skills

Analyze MCP server usage instrumented with Amplitude's MCP Analytics SDK: break usage and errors down by tool, read the rationales within each tool to see what callers are trying to do, and produce a prioritized write-up of actionable fixes. Use this skill whenever the user asks to understand how their MCP server is being used, what agents/users are trying to do with it, why tool calls are failing, what to fix or improve in their MCP server, or asks for an "MCP usage report", "tool error analysis", "intent analysis", "rationale clustering", or "MCP insights". Also trigger when the user mentions [MCP]-prefixed events, tool rationale, tool call errors, or just finished instrumenting their MCP server and wants to see what the data says. Requires the Amplitude MCP connector.

amplitude/builder-skills

Read lost deals and churned accounts from your CRM, extract reasons clustered by theme (missing features, pricing, competitors, UX), and write a prioritized weekly analysis with product improvement recommendations. Use before roadmap planning or to build the case for prioritizing retention work.

amplitude/builder-skills

Creates Amplitude charts from natural language descriptions, handling event selection, filters, groupings, and visualization choices. Use when you know what you want to measure but prefer not to build the chart manually.

amplitude/builder-skills

Guide an Amplitude user through building a custom agent by suggesting use cases grounded in their role and data, shaping the idea into a well-formed spec, and generating a ready-to-run Global Agent deeplink that creates it. Use to create, build, or set up a custom agent, automate a recurring analysis, or put a repeated report on a schedule.

amplitude/builder-skills

Builds comprehensive Amplitude dashboards from requirements or goals, organizing charts into logical sections with appropriate layouts. Use when creating a complete dashboard from scratch or assembling existing charts into a cohesive view.

amplitude/builder-skills

Monitors all active and recently completed experiments across Amplitude projects, triages them by importance, then runs deep analysis and reporting on the most impactful ones. Use when the user asks to "check on experiments", "experiment status", "experiment review", "what experiments are running", or wants a periodic experiment health report.

amplitude/builder-skills

Pull Intercom tickets and Slack support messages from the past 7 days, classify each signal, enrich with CRM data (ARR, plan, renewal), score by customer value and churn risk, and output a tiered priority report saved to Drive. Use when you need a fast, data-driven view of what support signals matter most.

amplitude/builder-skills

Use this skill whenever a user wants to improve existing pages on their website to get cited more by AI models — whether they say "our pages aren't getting cited", "improve this page for AI visibility", "which of our pages should we update", "make this article more cite-worthy", "our competitors are getting cited instead of us", "update our content for AI search", or any variation where the goal is improving an existing asset rather than creating something new. This skill pulls owned pages from AI Visibility, identifies which ones have citation potential but are underperforming, compares them against the external pages that are winning citations on the same topics, and produces section-level rewrites or a full-page update — then pushes the revision to the CMS as a draft. Trigger even if the user just says "help me get cited more" or "why is [competitor] getting cited instead of us".

amplitude/builder-skills

Use this skill whenever a user wants to win AI citations on prompts that competitors currently dominate — whether they say "competitors are getting cited instead of us", "we're losing on these prompts", "how do I outrank [competitor] in AI answers", "find prompts where we should be winning", "create content to beat [competitor]", or any variation where the goal is capturing AI share on prompts a competitor currently owns. This skill pulls competitor visibility data from AI Visibility, identifies the specific prompts where competitors win and Amplitude is absent, clusters them by intent, and produces targeted comparison pages, alternatives content, or rebuttal assets — then pushes drafts to CMS. Trigger on any mention of competitor, prompt hijack, outrank, or "why is [competitor] getting cited instead of us".

amplitude/builder-skills

Use this skill whenever a user wants to turn AI Visibility data into published content — whether they say "find content gaps", "what should we write about", "which topics have low visibility", "help me get cited by AI models", "create a blog post from our AI Visibility gaps", "we're losing to competitors on these prompts", or any variation where they want to go from AI visibility weakness to a draft article, landing page, or FAQ. This skill connects directly to Amplitude AI Visibility data (topics, prompts, visibility scores, citations, competitor data, full LLM responses and sources) and produces a publish-ready content brief plus full article draft. If the user mentions CMS (WordPress, Webflow, Contentful, Sanity, HubSpot, Ghost, Shopify), also trigger this skill to push the draft directly. Trigger even if they just say something vague like "what content should we create?" in an AI Visibility context.

amplitude/builder-skills

Use this skill whenever a user wants to test content variants before publishing to find which one will get cited most by AI models — whether they say "which version of this content will perform better", "test this article before we publish", "simulate how AI will respond to this content", "which angle should we use", "generate content variants and pick the winner", "run a simulation before publishing", or any variation where the goal is data-driven content selection rather than gut-feel publishing. This skill takes an identified content opportunity, generates 2–3 distinct variants with different angles or structures, scores them against actual AI model responses from AI Visibility, references the Simulate Changes feature for pre-publish validation, and produces a clear recommendation on which variant to publish — then pushes the winner to CMS. Trigger on any mention of "simulate", "test variants", "which performs better", "A/B content", or "before we publish".

amplitude/builder-skills

Use this skill whenever a user wants to understand which external sources are being cited by AI models on topics relevant to their brand, and wants to create content that will outrank those sources — whether they say "what sources are AI models citing", "why is [third-party site] being cited instead of us", "we want to be the definitive source on X", "build something that gets cited more than G2 or TechRadar", "create an authoritative asset", or any variation where the goal is producing a new reference asset (definition page, benchmark, methodology, glossary, comparison hub) designed to beat existing top-cited sources. This skill analyzes AI Visibility source data, reverse-engineers what makes top-cited pages authoritative, and produces a superior source asset — then pushes it to CMS as a draft. Trigger on any mention of "sources", "third-party citations", "authoritative content", "definitional pages", or "outrank".

amplitude/builder-skills

Instruments a pull request with Amplitude analytics that conform to the project's existing taxonomy. Reads the tracking plan via the Amplitude MCP server (events, properties, naming conventions), analyzes the PR diff to find the few user actions genuinely worth tracking, detects the codebase's SDK and tracking patterns, and adds instrumentation that matches both. Optionally (opt-in) stages new events and properties on an Amplitude tracking-plan branch for data-governance review. Use when asked to "instrument this PR", "add analytics to this change", "add tracking", "add Amplitude events", "instrument this feature", or "what should I track here".

amplitude/builder-skills

Diagnoses product health by cross-referencing Amplitude analytics (dashboards, charts, funnels, feedback, AI agent analytics), optionally Datadog (errors, latency, stack traces), and optionally Slack (qualitative feedback, bug reports, feature requests). Identifies what's broken, what's working, and what to do about it — with root causes, not just symptoms. Use when asked to "diagnose my product", "what's going on", "product health check", "what's broken", "where are users struggling", "give me a product diagnosis", or "what should I focus on".

amplitude/builder-skills

Turn one or more meeting transcripts, notes, or Slack threads into concise takeaways and clear action items with DRIs. Works with a single meeting or a batch from the whole week.

amplitude/builder-skills

Summarizes B2B account health by analyzing usage patterns, engagement trends, risk signals, and expansion opportunities. Use for customer success reviews, renewal preparation, QBRs, or account prioritization.

관련 스킬