Communitygithub.com

amplitude/builder-skills

自然言語による記述からAmplitudeチャートを作成します。イベント選択、フィルター、グループ化、可視化の選択を自動で処理します。測定したい内容は明確だが、手動でのチャート構築を避けたい場合に使用します。

builder-skills とは?

このスキルは、自然言語の記述からAmplitudeのチャートを作成するためのAIエージェントスキルです。開発者やアナリストは、測定したいKPIや分析の意図を自然言語で伝えるだけで、適切なイベントの選択、フィルター、グループ化、可視化の種類を自動的に判断し、完全なチャート定義を構築します。対応するチャートタイプは、イベントセグメンテーション、ファネル、リテンション、データテーブル、カスタマージャーニー、セッション分析など、Amplitudeが提供する主要な分析機能をほぼすべてカバーしています。ワークフローは「計画→イベント発見→評価と決定→定義構築→チャート作成→結果検証→保存」という段階を踏み、特にイベント発見フェーズでは広く検索してから絞り込む「ワイドネット」アプローチを推奨しています。また、複数のイベント候補が存在する場合には、最も包括的なカスタムイベントを優先的に選択し、その判断理由をユーザーに説明することで透明性を確保します。エラーハンドリングやベストプラクティスも充実しており、ゼロ結果の場合の対処法や命名規則、時間範囲のデフォルト設定など、実運用で求められる細かな指針が提供されています。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/amplitude/builder-skills/tree/HEAD/analytics-skills/skills/create-chart

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Amplitudeチャートを作成

自然言語からチャートを作成し、イベントの発見、チャート定義の構築、結果の検証を行います。

最初に計画を立てる(重要)

ツールを呼び出す前に、リクエストを分解します:

1. チャートの構成要素を特定:

  • チャートの種類と指標(何を測定するか)
  • 時間範囲(指定がない場合のデフォルト:過去30日間)
  • プライマリイベント(カウント対象のアクション)
  • セグメント条件(ユーザーフィルター/グループ)
  • フィルター、グループ化、内訳
  • ファネルステップ(コンバージョン分析の場合)

2. イベント検索の計画:

  • 異なるイベント概念ごとに1回の検索
  • 複数の概念を1回の検索にまとめない
  • 例:「purchase」と「signup」は別々に検索

3. 並行ツール呼び出しの計画:

  • コンテキスト取得、イベント検索、コホート検索は並行して実行可能
  • 定義を構築する前に結果を待つ

イベント発見(重要:発見が優先)

重要:絞り込む前に広く検索すること

ユーザーのリクエストがあいまい、または複数のイベントにマッピングされる可能性がある場合:

  1. 最初に広く検索して、関連するオプションを発見する
  2. 関連する結果を確認し、関連イベント、カスタムイベント、メタイベントを探す
  3. オプションをユーザーに提示するか、選択した理由を説明する
  4. 探索せずに単一のイベントだけが答えだと決めつけない

イベントの検索:

Amplitude:search with entity_types=['EVENT', 'CUSTOM_EVENT']
  • 一度に1つの概念を検索
  • まず広い検索語を使用(例:「AIチャット」ではなく「AI」)
  • ✓ 良い例:「user completes purchase」
  • ✗ 悪い例:「signup or purchase events」

情報に基づいた判断を下し、説明する:

  1. 広く検索してすべてのオプションを発見
  2. 結果を確認し、最も包括的/正確なアプローチを特定
  3. 最善の判断を下す(単一イベントよりも集約されたカスタムイベントを優先)
  4. 常に説明する:「X、Y、Zのオプションが見つかりました。[理由]により[X]を選択しました。これには[範囲]が含まれ/除外されます。」
  5. ユーザーは前提が間違っていた場合に修正可能

判断基準:

  • 関連アクティビティを集約するカスタムイベントを優先(例:「[2026] Activation Metric [AI events only]」)
  • 集約イベントが存在しない場合は、主要なインタラクションイベントを選択
  • そのプロダクトエリアでの「アクティブユーザー」の一般的な意味を考慮
  • ユーザーが狭い焦点を指定しない限り、デフォルトでより広い範囲を選択

例:

  • ❌ 悪い例:ユーザーが「週間AIユーザー」と依頼 → 即座に「ai-chat: send message」を選択、探索なし、説明なし
  • ✅ 良い例:ユーザーが「週間AIユーザー」と依頼 → 「AI」を検索し、Ask AI、Agents、Visibility、カスタム集約イベントを見つける。応答:「AIアクティビティはAsk AI、Agents、Visibilityにわたって見つかりました。すべてのAIプロダクトインタラクションを含むカスタムイベント「[2026] Activation Metric [AI events only]」を使用しています。これにより、全機能にわたる総AIユーザー数が得られます。特定のAIプロダクトに焦点を当てたい場合はお知らせください。」

使用前に検証:

  • そのイベントを使用している既存のチャートを検索で取得
  • イベントに実際のボリュームがあることを確認(ゼロまたは古いデータではない)
  • 関連アクティビティを集約するカスタムイベントを探す
  • 結果がゼロの場合は、代替案を検索

プロパティの取得:

Amplitude:get_event_properties で正確なプロパティ名/値を取得

コホートの検索:

Amplitude:search with entity_types=['COHORT']
Amplitude:get_cohorts で完全な定義を取得

チャートタイプの選択

チャートタイプ使用するタイミング
eventsSegmentationイベント/ユーザーを経時的にカウント、トレンド、比較、KPI、分布、プロパティ分析
funnels既知のシーケンスによるマルチステップコンバージョン分析、ドロップオフ分析、特定イベント間の時間、コンバージョンまでの時間指標
retentionユーザーのリターン行動、コホートリテンション曲線、チャーン分析
dataTableV2表形式の比較、ランキング、多次元の内訳
customerJourneyパス探索、ユーザーが取る未知のパスの発見、コンバージョンしたパスとドロップオフしたパスの比較
sessionsセッション期間、セッション頻度、ユーザーあたりの滞在時間、セッション長分布

クイックリファレンス

eventsSegmentation - 最も汎用性が高い。以下に使用:

  • ユーザー数(DAU、WAU、MAU)を uniques 指標で
  • イベント合計、平均、プロパティの合計
  • パーセンタイル、分布、数式
  • ローリングウィンドウによる時系列

集約スコープ(eventsSegmentation):

  • PROPSUM(A) / metric: "sums" = 全イベントにわたるグローバル合計
  • metric: "frequency" = ユーザーあたりのイベントカウントの分布(何人のユーザーが1回、2回、3回実行したか)
  • 「ユーザーあたりのプロパティ合計の分布」:Amplitudeはこれを直接サポートしていません。イベントカウント分布には metric: "frequency" を使用するか、user_idでグループ化したdataTableV2とPROPSUMを使用し、外部分析のためにエクスポートしてください。

funnels - 事前定義されたステップによるコンバージョン分析。以下に使用:

  • 期待されるシーケンスがわかっている場合のステップごとのコンバージョン率
  • 順序ありまたは順序なしのシーケンス
  • コンバージョンまでの時間(イベント間の中央時間)
  • 除外イベント、コンバージョンウィンドウ
  • 重複イベント:複数のイベントを(任意の順序で)実行したユーザーを見つけるには、「任意の順序」でファネルを使用し、コンバージョンウィンドウをチャートの日付範囲に設定します
  • 注:ユーザーが取るパスを発見したい場合は、代わりに customerJourney を使用してください

retention - リターン行動。以下に使用:

  • N日またはローリングリテンション曲線
  • コホート分析(新規 vs リピーターユーザー)
  • 開始イベント → リターンイベントのパターン

dataTableV2 - 表形式データ。以下に使用:

  • ディメンションによる内訳(国、プラットフォームなど)
  • 表形式での複数指標比較

customerJourney - パス探索と発見。以下に使用:

  • ユーザーが取る実際のパスを理解する(ファネルの期待パスとの比較)
  • 特定のイベントで始まる、終わる、または2つのイベント間のパスを分析
  • コンバージョンしたパスとドロップオフしたパスを並べて比較
  • 予期しないナビゲーションパターンや摩擦点を発見
  • パスの頻度、類似性、または完了までの平均時間を探索
  • 理想的なカスタマージャーニーと実際のユーザー行動のギャップを埋める

sessions - セッションベースのエンゲージメント指標。以下に使用:

  • セッション期間分析(平均長、滞在時間、分布)
  • セッション頻度(ユーザーあたりの平均セッション数、総セッション数)
  • 経時的なユーザーあたりの滞在時間
  • セッション内で実行されたイベント(セッションあたりの平均イベント数)
  • ユーザーセグメント間のセッション行動の比較

特別な指標:

  • ユーザー数:metric: "uniques"
  • イベント数:metric: "totals"
  • プロパティの合計:metric: "sums"(group_by にプロパティを指定)
  • 率/パーセンテージ:異なるサイズのグループを比較する場合に使用

メタイベント:

  • _active:任意のアクティブイベント(DAU、MAU)
  • _new:新規ユーザー(初回イベント)
  • _any_revenue_event:収益イベント

チャート定義の構造

コアパラメータ(全チャートタイプ共通):

{
  "name": "説明的なチャートタイトル",
  "projectId": "12345",
  "definition": {
    "app": "12345",
    "type": "eventsSegmentation",
    "params": {
      "range": "Last 30 Days",
      "events": [{
        "event_type": "Purchase Completed",
        "filters": [],
        "group_by": []
      }],
      "metric": "uniques",
      "countGroup": "User",
      "interval": 1,
      "segments": [{"conditions": []}]
    }
  }
}

主要パラメータ:

  • countGroup:「User」(ユニークユーザー)または「Event」(イベント発生回数)
  • interval:1(日次)、7(週次)、30(月次)
  • segments:ユーザーフィルター/グループ(空配列 = 全ユーザー)

イベントフィルター(インラインOR論理):

"filters": [{
  "group_type": "User",
  "subprop_key": "country",
  "subprop_op": "is",
  "subprop_type": "event",
  "subprop_value": ["United States", "Canada"]
}]

ユーザーセグメント(条件AND論理):

"segments": [{
  "name": "Active Users",
  "conditions": [{
    "type": "property",
    "group_type": "User",
    "prop_type": "user",
    "prop": "plan",
    "op": "is",
    "values": ["Pro", "Enterprise"]
  }]
}]

コホートセグメント: コホートを検索し、IDを取得後:

"segments": [{
  "name": "My Cohort",
  "conditions": [{
    "type": "cohort",
    "group_type": "User",
    "cohort_id": "abc123",
    "op": "is_in"
  }]
}]

ワークフロー:チャートを作成

  1. コンテキストを取得:
Amplitude:get_context (projectId を取得)
  1. イベントを発見(最初に広く検索):
Amplitude:search で各異なる概念ごとに
- 最初は広い検索語を使用
- すべての関連イベント、カスタムイベント、コホートを確認
- 選択前にすべての結果を確認
  1. 評価して決定:
  • 発見されたすべてのイベントとカスタムイベントを確認
  • 情報に基づいた決定を行う(集約イベントを優先)
  • 見つけた内容と選択理由の明確な説明を準備
  1. 類似チャートを見つける(例を参考に):
Amplitude:search entity_types=['CHART'] query="類似概念"
Amplitude:get_charts で定義構造を確認
  1. 必要に応じてプロパティを取得:
Amplitude:get_event_properties
  1. 発見した名前を使用して定義を構築
  • 応答でイベント選択の根拠を説明
  1. チャートを作成:
Amplitude:query_dataset で完全な定義を送信
  1. 結果を検証 - データが妥当か確認

  2. チャートを保存:

Amplitude:save_chart_edits with editId from query_dataset

エラーハンドリング

query_dataset が失敗した場合:

  • エラーメッセージを注意深く読む
  • 一般的な問題:誤ったイベント名、無効なフィルター、誤ったパラメータタイプ
  • 定義を修正して再試行
  • 検索でイベントが存在することを最初に確認

結果がゼロの場合:

  • フィルターが制限しすぎていないか確認
  • イベントにデータがあることを確認(それを使用したチャートを検索)
  • より広い時間範囲を試す
  • セグメント条件を確認

ベストプラクティス

命名:

  • 指標 + 時間コンテキストを含める:「過去90日間の週間アクティブユーザー」
  • 避けるべき例:「WAU」や「Users」

時間範囲:

  • デフォルトは「過去30日間」
  • 特定の期間には包括的な範囲を使用
  • 解釈した範囲を明示的に記載

検証:

  • 使用前にイベントが存在することを常に確認
  • 類似チャートを確認してイベントの使用法を理解
  • get_event_properties でプロパティを確認

比較:

  • 同じチャート上でユーザーグループを比較するにはセグメントを使用
  • 異なるサイズのグループには率/パーセンテージを使用

常に含めること:

  • 応答内のチャートURL
  • チャートが示す内容
  • 初期データからの主要なインサイト
  • 使用した方法論

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

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

Instrument a Node/TypeScript MCP server with Amplitude's @amplitude/mcp-analytics SDK so tool calls, sessions, and rationale are tracked as Amplitude events. Use this skill whenever the user wants to add Amplitude analytics to their MCP server, mentions "MCP Analytics", "@amplitude/mcp-analytics", "instrument my MCP server", "track MCP tool calls", "add rationale to my MCP tools", or wants agent traffic (Claude, Cursor, ChatGPT) attributed back to Amplitude. Also use for adding UTM tagging to MCP-returned links, or for troubleshooting identity/user_id mismatches between MCP events and web/mobile Amplitude data.

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.

関連スキル