/workmagic-skills:attribution-model-comparisonfrom workmagic-skills
Pulls attribution numbers under multiple models side-by-side (iDDA, DDA, last_click, platform_reported) and explains discrepancies in business language. Useful when numbers differ across dashboards.
Ships in workmagic-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pull attribution numbers under multiple attribution models side-by-side and explain why they differ, using business-language interpretation grounded in how each model works. Exists because users frequently see different numbers in different places (WorkMagic dashboard vs Meta Ads Manager vs Google Ads) and want to understand the discrepancy.
Shared conventions (canonical elsewhere — don't re-derive): attribution model default + aliases and sales-platform scope + measurement identity live in
attribution-data-query(references/attribution-model.md,references/sales-platform-scope.md); follow those (read viaskills_readif not loaded). This skill'sreferences/model-reference.mdowns only the model↔model_idSQL mapping.
This skill is NOT:
attribution-anomaly-diagnosisTrigger when user wants to compare attribution under different models.
Do NOT trigger:
attribution-data-queryattribution-anomaly-diagnosisdatabase-query-ask without pulling data| Field | Required? | Default / Notes |
|---|---|---|
models | Has default | DTC sales platform: [idda, dda, last_click, platform_reported] Non-DTC sales platform: [idda, dda, platform_reported] (no click-based models — see references/model-reference.md) |
ads_platform | Required | Meta / Google / TikTok / Pinterest / Snap / Amazon Ads / "all" |
sales_platform | Has default | If 1 connected → use it; if multiple → ask once. Never mix sales platforms in one comparison row. |
metric | Has default | attr_orders + roas (most commonly compared). If user specifies one, use it. |
dimension | Has default | By ads_platform (channel level). "All channels" / "across channels" → channel level. Named single channel → drill to tactic_name or campaign_name. |
time_range | Has default | Past 30 days. Model comparison needs enough volume to be stable; 7 days is too noisy. |
Model → model_id mapping + DTC vs non-DTC availability → references/model-reference.md
Step 1: Parse the request
idda available by probing for attr_model_name = 'idda' data via dashboard-metrics-list or a quick database-query-run count on model 32 — not via lift-test-list (a tenant can have ran lift tests historically without having current iDDA data). If no model 32 data, replace idda with dda in the default set and inform the user.Step 2: database-query-ask (MANDATORY)
attr_model_name / attr_model_arrayRequired for the ctx timestamp database-query-run needs.
Step 3: Validate fields via dashboard-metrics-list — confirm metric names + attr_model_name dimension.
Step 4: Build the SQL
**HARD RULE — copy the template, then fill placeholders** Copy `templates/01-multi-model-comparison.sql`. Single `CASE WHEN` query with one branch per model, NOT N separate queries — guarantees comparison is on the same row set (same time range, filters, dedup). Fill: `{ads_platform}` / `{sales_platform}` / `{start_date}` / `{end_date}`, then add the rows for the model variants the user asked for.Step 5: Compute deltas
delta = idda − last_click (or whichever anchor pair makes the user's question clearest)Step 6: Interpret using diff patterns — match observed gap to references/diff-patterns.md (10 patterns):
For few channels → 1-2 sentences per row. For many channels → cover the 2-3 most striking rows only.
Step 7: Return — build the comparison artifact (see §6), NO follow-up question
| Tool | Required? | Purpose |
|---|---|---|
database-query-ask | Required (first) | Model mechanism explanations + Cube.dev schema patterns + ctx timestamp. |
dashboard-metrics-list | Required | Validate attr_orders, attr_roas, attr_model_name and other field names |
database-query-run | Required | Execute the multi-model CASE WHEN SQL in one shot |
lift-test-list | Conditional | Optional context for grounding the dda-vs-idda interpretation (e.g., "iDDA dropped after this lift test"). |
A model comparison is a report-shaped, screenshot-and-share result → produce a
live-data artifact (the dashboard skill, Comparison archetype), not a wall of
table in chat.
Full artifact spec (layout, chart rules, measurement identity, one-platform-per-comparison)
references/output-template.mdtemplates/01-multi-model-comparison.sql) — never run N separate queries; they can drift on filters / dedup and produce non-comparable numbersdatabase-query-ask before SQL — ctx requiredattr_model_name / channel_attribution / ads_attribution / model_id as literal strings in the answer. A leaked identifier is a customer-facing defect.Full edge case & routing catalog → references/edge-cases.md
attribution-intent-clarification (when "compare attribution" is too vague — which models? which channel?)attribution-data-query (single-model number), attribution-anomaly-diagnosis (why a single model changed)attribution-anomaly-diagnosis (if comparison surfaces a one-off anomaly — e.g., iDDA fell off a cliff because a new lift test was applied)attribution-edge-routing (MMM, forecasting, non-WM attribution products)examples/example-A-meta-multi-model.md (opens in a new tab)references/diff-patterns.md (opens in a new tab)references/edge-cases.md (opens in a new tab)references/failure-modes.md (opens in a new tab)references/model-reference.md (opens in a new tab)references/output-template.md (opens in a new tab)templates/01-multi-model-comparison.sql (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub workmagicio/skills --plugin workmagic-skills16 skills in this plugin
/attribution-anomaly-diagnosisDiagnose "why" questions about attribution anomalies — attribution=0 (no attributed orders), and sudden drops, spikes or retroactive changes in attributed numbers. Do NOT use for "show me numbers" — that's attribution-data-query./attribution-custom-dimensionHandle attribution queries sliced by a business label ("by audience" / "by region" / "by brand") that is not a native field — it lives in campaign names and only becomes queryable once a Naming Convention (NC) rule is configured./attribution-data-queryTranslate explicit data requests into Cube.dev SQL and return results. Default skill for query-type asks in the Attribution domain. No estimation, no fabrication, no proactive dashboards.Other plugins' skills for the same job