• Projects
  • Service
  • About
  • branding.bz
  • Podcast
  • Tips
  • FAQ
  • Recruit
  • Download
  • Contact
  • branding.bz(ブランド構築SaaS)
  • DESIGN NOW(デザインメディア)
  • X
  • LinkedIn
  • Spotify
  • Facebook

213-0011 神奈川県川崎市高津区久本3-6-7-303

© 2026 ID INC. All rights reserved

claude-skills/スキル
SKILLOfficialmonitoring

tracking-plan-audit

プラグイン
amplitude
ソース
GitHub で見る ↗
説明

次のような場合に使用: Amplitudeのトラッキングプラン(アプリやウェブサイトの利用者行動の記録設定)について、以下のような問題のあるイベント(記録対象となる利用者の行動)やイベントプロパティ(その詳細な属性情報)の中から、安全に削除できるものを監査・確認する場合 - 古い・重複している - 孤立している(どこからも参照されていない) - 複数のアプリ間での矛盾がある - 廃止された - 記録量が非常に多い - 自動生成されたクライアント側のもの - 一度も実際に記録されたことがない - 削除済みなのに今も送信されている

原文を表示

Use when auditing Amplitude tracking plans for safe deletion candidates among stale, duplicate, orphaned, cross-app, retired, high-volume, generated-client, never-ingested, or deleted-but-still-emitted events and event properties.

ユースケース
  • 古い・重複しているイベントを削除
  • 孤立したイベントを安全に削除
  • 複数アプリ間の矛盾を監査
  • 廃止されたイベントを確認
  • 記録量が多いイベントを削除
本文(日本語訳)

トラッキングプラン監査

削除を中心とした、証拠に基づくクリーンアップ一覧を作成します。このスキルは、テレメトリ(データ送信)、ソースコード、所有権、依存関係、トラッキングプランブランチ全体の削除監査に特化しています。広範な分類設計、命名、メタデータ、ガバナンス(統治)のガイダンスについては taxonomy を使用してください。

ユーザーが明示的に指示しない限り、分類オブジェクトの追加・復元、メタデータのみの変更、またはAmplitudeブランチの作成・変更・マージ・削除は行いません。

最初に以下を確立します:

  • Amplitudeプロジェクトと環境
  • 目標が取り込みボリュームの削減、分類タイプの削減、またはその両方かどうか
  • プロジェクトのデータを送信する可能性があるすべてのリポジトリまたはディレクトリ
  • リクエストされた監査モードとさかのぼり期間

ソースコードゲート

ソースコードが必須です。ユーザーがプロジェクトに送信できるすべてのリポジトリまたはディレクトリを特定していない場合は、削除候補を推奨する前に、それらの場所を尋ねます。待機中に分類オブジェクトをインベントリできますが、結果は不完全とラベル付けし、削除の推奨または実行は行いません。このゲートを解除する前に、提供されたソースインベントリが既知のすべてのデータ送信元を網羅していることを確認するよう、ユーザーに要求してください。

「コード参照なし」と報告するのは、ユーザーが指定したすべてのソースルート(起点)が検索された場合のみです。

リポジトリ名、サービス、言語、プロジェクトID、イベント名、監視システム、またはファイルシステムレイアウトを仮定しないでください。各ソースルートのローカル指示を検索前に確認してください。

監査のルーティング

主要なモードを選択し、発見前に明記します。追加リクエストされたモードを順序立てて実行し、各モードが独自の基準を保つようにします。各モードの基準については references/modes.md をお読みください。

  1. 一般的な古いイベント・プロパティ
  2. アプリ間の重複
  3. 計画されたが取り込まれていない
  4. グローバル孤立プロパティ
  5. 削除された生成クライアント定義
  6. 重複イベント・プロパティ
  7. リタイア機能、ルート、フラグ、実験
  8. 高ボリュームで低クエリ(問い合わせ)の計測
  9. 削除またはブロックされたイベントをまだ送信しているコード

ユーザーが分類変更をリクエストした場合は、変更前に references/mutations.md もお読みください。

譲歩できない証拠ルール

  • テレメトリ、クエリ・依存関係の使用状況、コード参照、ソース所有権、分類状態を別々のシグナルとして保持します。単一のシグナルでは削除の安全性は証明されません。
  • 指定されたすべてのソースルートを監査します。生成クライアント、ダイレクトSDK使用、ラッパー、動的ディスパッチ、フロントエンド、バックエンド、モバイル、ジョブ、統合が存在する場所を含めます。
  • 生成定義は潜在的な使用法であり、本番呼び出しサイトではありません。インポート、ラッパー、レジストリ、エイリアス、テスト、本番呼び出し元を通じてそのメソッドまたはクラスをトレースします。
  • リテラル検索の失敗は不十分です。汎用トラッカー、構成された名前またはキー、辞書スプレッド、シリアライザー、定数、サービス固有クライアントを確認します。
  • 各エンクロージング(外側の)コードパスがインポート、ルート配線、フラグ、実験、ジョブ、テスト、呼び出し元を通じて到達可能かどうかを判定します。デッドコードと分析呼び出しのみを削除すべきライブ機能を区別します。
  • 既知ルートに所有者がいない最近の取り込みは、外部またはパイア未特定ソースを示します。報告し、削除を推奨する前に別の可能性が高いソースルートを要求してください。
  • グラフ、ダッシュボード、コホート(グループ)、メトリクス、実験、変換、派生プロパティ、ルックアップ、アラート、エクスポート、その他の関係を利用可能な場合チェックします。ゼロの保存済みクエリ数は依存関係がないことを証明しません。必要な依存関係サーフェスが利用できない場合は、未解決とマークし、削除を推奨しないでください。
  • リタイアメントまたは本番アクティビティが重要な場合は、ユーザーが接続した監視、フィーチャーフラグ、実験、デプロイメントシステムを確認してください。仮定またはマニュアルスクリーンショットより、読み取り専用MCPまたはアプリ機能を優先します。
  • デフォルト・システムオブジェクトおよび実験、セッションリプレイ、エージェントフィールドは、選択モードが明示的に調査していない限り、慎重に扱います。
  • 認証情報、プロパティ値、個人識別情報、顧客ペイロード、その他の顧客機密データを公開しないでください。集計、必要な場合のみ名前を報告し、アクセス制御された証拠リンクを提供します。

公開Amplitude MCP機能

実行時に接続された公開Amplitude MCPカタログを検査し、提供している機能、アクション値、パラメータ、制限のみを使用します。ツール名をハードコード化または作成しないでください。公開ツールはロールアウト時に統合、名前変更、異なる方法で公開されることがあります。

利用可能な機能を使用して:

  • アクセス可能なプロジェクトを発見し、IDが不足している場合ユーザーに選択を要求します。名前からIDを推測しないでください。
  • 生テレメトリとイベントプロパティを読取、カタログが統合分類リーダーを公開している場合はそれを優先します。
  • 状態や過去の所有権を比較する際に削除されたオブジェクトを含めます。
  • トラッキングプランブランチを監査する際にブランチ識別子を正確に1つ選択します。
  • レスポンスの文書化されたスコープフィールドを使用して、プロジェクト全体・グローバルプロパティを1つのイベントに接続されたプロパティと区別します。

変更機能の選択と確認動作の詳細については、references/mutations.md をお読みください。

完全な分類読取

すべての完全なページ区切り読取について:

  1. サポートされている最大ページサイズ(最大500)をリクエストします。
  2. レスポンスがそれ以上行がないと言うまで、返されたすべてのカーソルに従います。
  3. レスポンスの安定識別子とプロパティ・イベントスコープを使用して一意の行を追跡し、蓄積数をAPIの報告総数と比較します。
  4. 一時的なタイムアウトとゲートウェイ・サーバー障害を最後の既知カーソルから再試行し、接続ホストに適切な制限付き再試行とバックオフを使用します。エラーペイロードまたは失敗した空ページを完了として扱わないでください。
  5. 再試行が終了または数が一致しない場合、カバレッジが不完全であることを報告し、部分的結果から削除を推奨しないでください。

利用可能な場合は完全なトラッキングプランエクスポートを使用してイベント・プロパティ所有権を再構成し、メインとブランチを比較します。プロジェクト全体プロパティリストはグローバル定義を公開しますが、すべてのイベント接続を列挙しない場合があります。それのみ、エクスポート「Action」列、またはブランチUI計数から所有権を推測しないでください。分類状態を明示的に比較してください。

共有監査ワークフロー

  1. 関連するメインまたはブランチ分類とテレメトリウィンドウをスナップショットします。
  2. 必要な読取を完全にページング処理し、報告総数に対するカバレッジを記録します。
  3. アクティブおよび削除スコープを含む完全なエクスポートから所有権を構築します。
  4. すべての指定ソースルートを検索し、本番、動的、生成のみ、テストのみ、デッド、不明外部参照を分類します。
  5. 依存関係をチェックし、すべてのコード、所有権、ソースシグナルを解決します。
  6. 候補を信頼度、証拠、不確実性、推奨削除移行で分類します。
  7. イベント削除後、常にグローバル孤立プロパティスイープを実行します。グローバルプロパティ候補を別々に提示し、別々の明示的確認を要求してください。イベント削除はグローバル削除を承認または暗黙に含意しません。

強い候補は通常、到達可能な送信元がなく、最近の取り込みがなく、クエリ使用が少ないか全くなく、アクティブな所有者または依存関係がなく、未解決の動的または外部ソースがありません。既存テレメトリ、依存関係、汎用名、必要なスキーマ、または不明な所有権は調査が必要であり、削除ではありません。

プロパティについて、少なくとも以下を報告します:

プロパティ | スコープ・所有者 | ソース別コード参照 | ボリューム・クエリウィンドウ | 最終確認日 | 必須 | 依存関係 | 信頼度 | 推奨

またソースカバレッジ、除外、未解決パス、機密データの仮名化、確認可能なバッチも報告します。変更バッチをユーザーのリクエスト制限内に保つ。そうでなければ小さな最初のバッチを優先します。

原文(English)を表示

Tracking Plan Audit

Produce a deletion-focused, evidence-backed cleanup inventory. This skill specializes in deletion audits across telemetry, source code, ownership, dependencies, and tracking-plan branches. Use taxonomy for broad taxonomy design, naming, metadata, and governance guidance.

Do not add or restore taxonomy objects, make metadata-only changes, or create, mutate, merge, or delete an Amplitude branch unless the user explicitly asks.

At the start, establish:

  • the Amplitude project and environment;
  • whether the goal is lower ingestion volume, fewer taxonomy types, or both;
  • every repository or directory that may emit the project's data;
  • the requested audit mode and lookback window.

Source-code gate

Source code is required. If the user has not identified every repository or directory that can emit into the project, ask for those locations before recommending deletion candidates. You may inventory taxonomy objects while waiting, but label the result incomplete and do not recommend or execute any deletion. Before lifting this gate, ask the user to confirm that the supplied source inventory covers every known emitter. Never report "no code reference" unless every user-identified source root was searched.

Do not assume repository names, services, languages, project IDs, event names, observability systems, or filesystem layouts. Inspect each source root's local instructions before searching it.

Route the audit

Choose a primary mode and state it before discovery. Run additional requested modes sequentially so each keeps its own criteria. Read references/modes.md for each mode's criteria.

  1. General stale events/properties
  2. Cross-app overlap
  3. Planned but never ingested
  4. Global orphan properties
  5. Dead generated-client definitions
  6. Duplicate events/properties
  7. Retired features, routes, flags, or experiments
  8. High-volume, low-query instrumentation
  9. Code still emitting deleted or blocked events

If the user requests taxonomy changes, also read references/mutations.md before any mutation.

Non-negotiable evidence rules

  • Keep telemetry, query/dependency usage, code references, source ownership, and taxonomy state as separate signals. No single signal proves deletion is safe.
  • Audit every identified source root. Include generated clients, direct SDK use, wrappers, dynamic dispatch, frontend, backend, mobile, jobs, and integrations where present.
  • A generated definition is potential usage, not a production call site. Trace its method or class through imports, wrappers, registries, aliases, tests, and production callers.
  • A literal-search miss is insufficient. Check generic trackers, constructed names or keys, dictionary spreads, serializers, constants, and service-specific clients.
  • Determine whether each enclosing code path is reachable through imports, route wiring, flags, experiments, jobs, tests, and callers. Distinguish dead code from a live feature whose analytics call alone should be removed.
  • Recent ingestion with no owner in the known roots indicates an external or unidentified source. Report it and ask for another likely source root before recommending deletion.
  • Check charts, dashboards, cohorts, metrics, experiments, transformations, derived properties, lookups, alerts, exports, and other relationships where available. A zero saved-query count does not prove there is no dependency. If a required dependency surface is unavailable, mark it unresolved and do not recommend deletion.
  • When retirement or production activity matters, ask which monitoring, feature-flag, experimentation, and deployment systems the user has connected. Prefer their read-only MCP or app capabilities over assumptions or manual screenshots.
  • Treat default/system objects and experiment, session-replay, or agent fields cautiously unless the selected mode explicitly investigates them.
  • Do not expose credentials, property values, PII, customer payloads, or other customer-sensitive data. Report aggregates, names only when necessary, and access-controlled evidence links.

Public Amplitude MCP capabilities

Inspect the connected public Amplitude MCP catalog at runtime and use only the capabilities, action values, parameters, and limits it advertises. Do not hard-code or invent tool names: public tools can be consolidated, renamed, or exposed differently during a rollout.

Use the available capabilities to:

  • discover accessible projects and ask the user to select one when its ID is missing; never infer an ID from a name;
  • read raw events and event properties, preferring the consolidated taxonomy reader when the catalog exposes one;
  • include deleted objects when comparing states or historical ownership;
  • select exactly one branch identifier when auditing a tracking-plan branch;
  • distinguish project-wide/global properties from properties attached to one event using the response's documented scope fields.

For mutation capability selection and exact confirmation behavior, read references/mutations.md.

Complete taxonomy reads

For every exhaustive paginated read:

  1. Request the largest supported page size, up to 500.
  2. Follow every returned cursor until the response says there are no more rows.
  3. Track unique rows using the response's stable identity plus property/event scope, then compare the accumulated count with the API's reported total.
  4. Retry transient timeouts and gateway/server failures from the last known cursor using bounded retries and backoff appropriate to the connected host. Never treat an error payload or failed empty page as completion.
  5. If retries are exhausted or counts disagree, report incomplete coverage and do not recommend deletions from the partial result.

Use a complete tracking-plan export when available to reconstruct event-to-property ownership and compare main with a branch. A project-wide property listing exposes global definitions but may not enumerate every event attachment. Do not infer ownership from it alone, the export Action column, or branch UI counters; compare taxonomy states explicitly.

Shared audit workflow

  1. Snapshot the relevant main or branch taxonomy and telemetry window.
  2. Fully paginate required reads and record coverage against reported totals.
  3. Build ownership from complete exports, including active and deleted scopes.
  4. Search every identified source root; classify production, dynamic, generated-only, test-only, dead, and unknown-external references.
  5. Check dependencies and resolve every code, ownership, and source signal.
  6. Classify candidates by confidence, evidence, uncertainty, and recommended deletion transition.
  7. After any event deletion, always perform a global orphan-property sweep. Present global property candidates separately and ask for separate explicit confirmation; event deletion never authorizes or implies global deletion.

Strong candidates normally have no reachable emitter, no recent ingestion, little or no query usage, no active owner or dependency, and no unresolved dynamic or external source. Existing telemetry, dependencies, generic names, required schemas, or unknown ownership require investigation, not deletion.

For properties, report at least:

property | scope/owners | code references by source | volume/query window | last seen | required | dependencies | confidence | recommendation

Also report source coverage, exclusions, unresolved paths, sensitive-data redactions, and a reviewable batch. Keep mutation batches within the user's requested limit; otherwise prefer a small first batch.

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。