Metrics Taggingのロゴ

Metrics Tagging

コミュニティ
ommakes
metrics-tagging

Analyze UI mockups, screenshots, or prototype frames to identify all trackable interactions and generate a complete analytics event taxonomy table, including multi-step task/flow completion events. Use this skill whenever a designer uploads a screen, mockup, prototype screenshot, or UI frame and wants to know what should be tagged, what events to fire, or how to document analytics for handoff. Also trigger when someone asks to "tag this screen," "identify events," "create a tagging spec," "what should we track," "build an event table," or "tag this flow/task" for any UI. If a designer shares any visual of a UI and mentions analytics, tracking, tagging, GTM, events, funnels, or metrics — use this skill.

概要

公開者ommakes
リポジトリSkills
スキル名metrics-tagging
スター
21
フォーク
0
同梱ファイル
2
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    ommakesがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Metrics Tagging」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/ommakes/Skills/tree/main/metrics-tagging
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ommakes/Skills.git /tmp/Skills
mkdir -p .claude/skills
cp -r /tmp/Skills/metrics-tagging .claude/skills/metrics-tagging
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでMetrics Taggingを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にMetrics Taggingを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Metrics Taggingは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Metrics Tagging Skill

Analyze a UI mockup or screenshot and produce a complete analytics event taxonomy, ready for handoff to a tag implementation team.

Mental Model: Three Levels of Tagging

Before generating the table, always frame the output across three levels. This helps designers understand why each tag matters — not just what it is.

LevelWhat it answersExample
PageWhat happened on screenUser clicked "Save" button
AppWhat workflow is this part ofAccount setup flow completion
BusinessWhich KPI does this feedTask completion rate, time-on-task, abandonment rate

Input

Accept any of:

  • Screenshot or photo of a UI mockup
  • Prototype frame image
  • Annotated design screenshot
  • Description of a screen with listed components

The designer may also provide:

  • The flow name (e.g. "Onboarding", "Checkout", "Settings", "Profile Edit")
  • The product type (e.g. SaaS, e-commerce, internal tool, consumer app)
  • Existing event naming conventions already in use
  • Business KPIs this flow relates to

If the designer does not provide product or flow context, ask for it before generating the table. The "Purpose" column cannot be filled accurately without knowing what the flow is trying to accomplish.

Naming Convention

Use camelCase. Follow this pattern: noun + Verb

Format: [object/screen][Action]

General examples:

  • checkoutViewed — page load on checkout screen
  • cartItemRemoved — user removes item from cart
  • planSelected — user selects a pricing plan
  • passwordChanged — user updates their password
  • formSubmitted — generic form submit
  • modalDismissed — user closes a modal
  • flowCancelled — user exits a multi-step flow

Rules:

  • No underscores, no hyphens
  • Noun first, verb second
  • Use past tense for completed actions (Saved, Selected, Changed, Entered)
  • Use present tense for initiated states (Start, Viewed)
  • Keep names under 30 characters
  • If the product already has a naming convention, follow it exactly and note it in the output

Output: Event Taxonomy Table

Produce a markdown table with exactly these six columns:

#Event or ActionID or VariableDefinitionPropertiesPurposeEvent Name

Column definitions:

Event or Action — Plain English label. What the user did or what happened. Use the element type + label text. Examples:

  • Button Click: "Save Changes"
  • Dropdown: "Account Type"
  • Page Load
  • Text Input: "Email Field Changed"
  • Radio: "Billing Frequency"

ID or Variable — The DOM-level selector or variable name the tag team will hook into. Use kebab-case. Infer from the label text if not visible in the mockup. Examples:

  • save-changes-btn
  • account-type-select
  • email-input
  • billing-frequency-radio

Definition — When exactly does this event fire? Be precise. Start with "When the user..." or "The moment the page..."

Properties — The contextual data that rides along on the event payload, not the event name itself. This is where variation belongs — do NOT create a separate event for every possible value. Examples:

  • planSelected → properties: plan_type (starter/pro/enterprise)
  • personaCreateBtnClicked → properties: flow_id (see Task-Level Events below)
  • formSubmitted → properties: error_code (if validation failed)

If a field has no meaningful downstream property (e.g. a static page load), write "—".

Never put PII in a property — no email, name, phone, or address. Reference a user/account ID instead and let the backend join it if needed.

Purpose — Which business question does tracking this answer? Connect to a KPI. If flow context was provided, map directly to a stated KPI. If not, use the most likely KPI for that element type:

  • Submit buttons → task completion rate
  • Cancel/close buttons → abandonment rate
  • Start events → funnel entry rate
  • Feature toggles → feature adoption rate
  • Error states → error rate

Event Name — camelCase event name following the naming convention above.

Cascading Input Priority

Not all inputs are equal. When deciding whether to tag a specific input field, apply these two tests. If either passes, the input must be tagged and flagged.

Test 1 — Does it cascade? If changing this field's value causes anything else in the flow to change — other fields appearing or hiding, validation rules shifting, downstream behavior changing — it must be tagged. These inputs explain why users take different paths through the same flow.

Test 2 — Does it have sizeable outcome impact? Even if nothing visually changes, does this field's value directly affect the product's core outcome — pricing, eligibility, access level, subscription tier, risk calculation, permissions? If yes, tag it.

General examples of must-tag inputs:

  • Plan type selector — changes what features or pricing applies
  • Account type dropdown — may change what form fields appear next
  • Billing frequency toggle — affects pricing calculation
  • User role selector — changes what the user can access
  • A/B test variant toggle — affects the entire experience downstream
  • Any field that unlocks or hides a subsequent step

General examples of lower-priority inputs:

  • Middle name or suffix fields
  • Secondary address line
  • Optional bio or description fields (unless length or content triggers logic)
  • Display preference fields with no functional effect

When analyzing a mockup, mark each cascading or high-impact input with a [CASCADE] or [HIGH IMPACT] flag in the Purpose column. This tells the tag team what to prioritize if they need to phase implementation.

If cascade behavior of any input is unclear from the mockup, flag it in the Coverage Gaps section and prompt the designer to verify with a PM or business analyst before handoff.

Element Coverage Checklist

When analyzing a screen, systematically check for all of these. Do not skip any category.

Always tag:

  • Page/view load
  • Every CTA button (primary and secondary)
  • Every form submit button
  • Every cancel / dismiss / close button (high abandonment signal)
  • Every cascading input — any field whose value changes the flow
  • Every high-impact input — any field with direct effect on a core business outcome
  • Every radio button group
  • Every checkbox and toggle that affects downstream behavior

Tag if present and notable:

  • Dropdowns / selects (cascading ones first)
  • Text input fields (high-impact ones first)
  • Expand/collapse controls
  • Search / autocomplete interactions
  • Modal or drawer open/close events
  • Warning or alert dismissed actions
  • Add / expand section actions
  • Back / navigation links
  • Pagination or load-more actions

Flag but do not generate — prompt the designer:

  • Screen states not visible in the mockup: error state, empty state, loading state
  • Conditional logic (fires only when X condition is true)
  • Multi-step flows where the same element appears across steps
  • Any input whose cascade behavior cannot be determined from the mockup alone

Task-Level Events (Flow Completion)

Individual click events tell you what happened at one moment. They don't tell you whether the user actually finished what they set out to do. That requires a second, higher-level layer: pairing a start event with an end event to measure completion of a whole task, not just a single interaction.

When to generate this table: any time the screen (or set of screens) contains a create/edit/delete/setup pattern where a user initiates an action and completes it one or more steps later — e.g. personaCreateBtnClicked (start) → personaSaveBtnClicked (end) = "Add New Persona" task. If the flow spans multiple screens and only one has been shared, generate the table with the available half and flag the missing screen in Coverage Gaps.

How linking actually works: analytics tools (Amplitude, Mixpanel, GA4) don't have a native "paired event" object. They stitch a start and end event together via a shared property fired on both — typically a flow_id (a UUID generated the moment the start event fires, attached to every event in that task until it ends). Always specify this linking property; without it, "task completion rate" isn't computable, just a hopeful correlation.

Produce a second markdown table:

Task NameStart EventEnd EventLinking PropertySuccess DefinitionAbandonment RulePurpose
  • Task Name — camelCase, describes the outcome, not the click (addNewPersona, not saveBtnClicked)
  • Start Event / End Event — must be Event Names already defined in the main taxonomy table above
  • Linking Property — almost always flow_id, unless the product already uses something else (e.g. session_id, draft_id) — check existing conventions first
  • Success Definition — the end event must fire with no error state; state this explicitly
  • Abandonment Rule — what counts as giving up: navigating away, closing the modal, or a timeout (state a specific duration if known, otherwise flag it in Coverage Gaps for the designer/PM to define)
  • Purpose — usually task completion rate or time-on-task; note if multiple task rows roll up into one funnel

Edge cases to flag, not silently resolve:

  • Retries (user starts, cancels, starts again) — the flow_id must regenerate on each new start, or completion rate gets inflated
  • Two starts before one end — decide whether that's "abandon + restart" or an invalid state, and flag it if unclear from the mockup

Avoiding Taxonomy Bloat

More events isn't better tracking — it's noise that makes funnels unreadable. Before finalizing:

  • Never create a separate event for each option of a dropdown/radio/toggle. Use one event with a Properties value instead (billingFrequencyChanged + frequency: monthly/annual, not billingFrequencyMonthlySelected and billingFrequencyAnnualSelected).
  • If the main taxonomy table exceeds roughly 25-30 rows for a single screen, that's a signal to consolidate similar interactions into fewer events with more properties, and to say so in the output rather than shipping the sprawl silently.
  • Before naming a new event, scan the table so far for something that already covers the same action — duplicate near-identical events are the most common cause of taxonomy drift over time.

Cross-Session Consistency (Event Registry)

Every run of this skill invents event names and selector IDs fresh, with no memory of what got named last time. Left unchecked, that's how the same "Save" button pattern ends up as saveBtn on one screen and saveChangesBtn on another a few weeks later — the exact naming-drift problem the Quality Check dedup rule above is trying to catch within a single run, extended across runs.

Fix: maintain a running ledger at references/event-registry.md (in the same repo/workspace as this skill, not bundled with it — it's project-specific, not skill-specific).

Before tagging a new screen:

  1. Read references/event-registry.md if it exists.
  2. Check whether any element on the new screen matches (or closely resembles) an already-registered pattern — same interaction type, same rough purpose. If so, reuse its Event Name and ID convention exactly, even if your first instinct would've named it slightly differently.
  3. If the file doesn't exist yet, this is the first run for this project — proceed normally and create it at the end.

After finalizing output: Append one row per new event (skip ones reused from the registry) to a table with this shape:

Event NameID or VariableScreen/FlowDate Added

Don't rewrite history — only add rows for genuinely new events. If naming conventions in the registry conflict with this skill's default pattern (e.g. the project already uses snake_case), follow the registry, not the skill defaults, and note that in the Naming Convention Reference block.

Coverage Gap Section

After the table, always output a Coverage Gaps section: The following were NOT visible in the provided mockup or could not be determined from it. Verify these before handoff:

Error state: What fires if form validation fails? Loading state: Is there a spinner or skeleton? Should it be tracked? Empty state: What fires if the list/section is empty on load? [Any cascading inputs flagged as unclear] [Any conditional logic that depends on user state or permissions]

Business Context Priming

If the designer provides flow context, use it to sharpen the Purpose column. Common KPIs by product type to map to:

SaaS / internal tools:

  • Task completion rate → flow save/submit events
  • Task abandonment rate → cancel, close, back events
  • Time on task → flow start + flow saved pair
  • Feature adoption → optional feature toggles
  • Error rate → validation error events

E-commerce:

  • Conversion rate → add to cart, checkout initiated, purchase completed
  • Cart abandonment → remove from cart, checkout exited
  • Funnel drop-off → step viewed vs. step completed pairs

Consumer apps:

  • Activation rate → onboarding completed event
  • Retention signal → return visit, key feature used
  • Engagement depth → feature interaction frequency

If no context is provided, use generic KPI language and note in the output that Purpose column accuracy will improve with flow context.

Output Format

  1. Start with a brief Screen Summary (1-2 sentences: what screen is this, what flow is it part of)
  2. Output the Event Taxonomy Table in full
  3. Output the Task-Level Events table if the screen contains any multi-step create/edit/delete pattern (omit this step entirely if none exist — don't force it)
  4. Output the Coverage Gaps section
  5. End with a Naming Convention Reference block showing the pattern used and any conventions observed or inferred

Example Output Structure

Quality Check Before Outputting

Before finalizing output, verify:

  • Every visible interactive element is in the table
  • No event name is duplicated
  • All event names follow the camelCase nounVerb pattern
  • Every row has all 6 columns populated (use "—" for Properties when there's genuinely none)
  • Cancel/close/dismiss buttons are included
  • Cascading inputs are flagged [CASCADE] in the Purpose column
  • High-impact inputs are flagged [HIGH IMPACT] in the Purpose column
  • No two events describe the same underlying action (check for near-duplicates before finalizing)
  • If references/event-registry.md exists, it was checked for reusable names before new ones were invented, and new events were appended to it after finalizing
  • Every Task-Level Events row references Start/End events that actually exist in the main table, and specifies a Linking Property
  • Coverage gaps section calls out all missing screen states
  • Any input whose cascade behavior is unclear is flagged in Coverage Gaps
  • If no flow context was provided, the output notes that Purpose column accuracy is limited and prompts the designer to re-run with context

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Metrics Tagging」では何ができますか?

Analyze UI mockups, screenshots, or prototype frames to identify all trackable interactions and generate a complete analytics event taxonomy table, including multi-step task/flow completion events. Use this skill whenever a designer uploads a screen, mockup, prototype screenshot, or UI frame and wants to know what should be tagged, what events to fire, or how to document analytics for handoff. Also trigger when someone asks to "tag this screen," "identify events," "create a tagging spec," "what should we track," "build an event table," or "tag this flow/task" for any UI. If a designer share...

TypingMindでMetrics Taggingを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Metrics Taggingはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにMetrics Taggingをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/ommakes/Skills/tree/main/metrics-taggingを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Metrics Taggingを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Metrics Taggingで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもMetrics Taggingを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Metrics Tagging」は無料ですか?

はい。ommakesがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇