/workmagic-skills:mbo-explainfrom workmagic-skills
Explains a saved MBO scenario's recommendation with supporting figures for CS and Strategy review. Diagnoses why Optimized differs from Reference, why targets need more/less spend, and why rows moved.
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.
Given an MBO scenario ID or link, resolve the exact saved run, retrieve its inputs and projections, diagnose the result, then explain the recommendation with supporting numbers for CS and Strategy review. Every reason is backed by a figure from the scenario output; anything the data can't support is named as undiagnosed, not filled in. Read-only: the skill never creates, changes or re-runs a scenario.
Trigger condition: a request to explain, justify or sanity-check a saved MBO scenario, its total result, or one of its row moves.
Examples that trigger this skill:
Do NOT trigger — route out:
| Input pattern | Route to |
|---|---|
| Build / edit / re-run a scenario, "how much should I spend on X?" | MBO create flow (CSM runs it in product or via budget-optimizer-create) |
| Lift-test result on its own | lift-test-readout / wm-cs:2-cell-lift-deck |
| "How does MMM / saturation / calibration work?" with no scenario | methodology-faq |
| "Is the MMM model wrong?" with no specific scenario | DS |
| Field | Required? | Notes |
|---|---|---|
| Tenant | Required | ID, or client name resolved with tenant-list |
| Scenario reference | Required | ID, link, or name. A link is matched against each scenario's url, never parsed by guesswork |
| Question focus | Has default | Default: full explanation. Or one question (a row, a number). One-question runs still do the portfolio check briefly |
| Comparison target | Optional | Another saved scenario, an attribution period, a lift test, actual results → references/reconciliation.md |
Everything else (goal, outcome, sales scope, level, dates, budget, strategy, locks, bounds) comes from the scenario itself — never asked. Field-to-tool map → references/data-map.md.
| After step | Pause and surface |
|---|---|
| Step 1 | Scenario scope echo. Nothing else is pulled until the CSM confirms the right scenario, unless the request carried the scenario link (exact url match): then echo and continue. |
| Step 2 | Status ≠ success → stop and report status. Rows not optimized listed before interpretation. |
| Step 4 | Environment spot-check: total Reference spend + one row's Optimized spend, confirmed against the scenario page. Unconfirmed → all figures marked unverified. |
| Step 7 | Escalation: say it plainly, attach the package, no likely cause. |
| Step 8 | Draft for CS review. Never a client-ready verdict. |
| User provided | Path |
|---|---|
| Scenario ID or link + tenant | Link matching a url exactly: echo, no confirmation, straight to Step 2. ID + tenant: Step 1 confirm |
| Scenario name only | List matches by name, each with its link (url, verbatim), period / goal / strategy and last run time; ask which. One exact match still gets the link in the Step 1 echo and a confirmation |
| Client only ("explain the MBO for Acme") | List the tenant's saved scenarios by name, each with its link (url, verbatim); ask which |
| A question with no scenario ("why does MBO hate Meta?") | Ask for the scenario; don't answer from general MBO behaviour |
| Comparison question | Steps 1–4, then references/reconciliation.md |
| Build / what-if request | Out of scope — suggest the what-if; the CSM runs it |
| Tool | Used by | Risk | Purpose |
|---|---|---|---|
| tenant-list | Step 1 | R0 | Resolve tenant |
| budget-optimizer-list | Step 1 | R0 | Match the scenario by id, url or name; url for output |
| WorkMagic-data-query → workmagic_query | Steps 1–4 | R0 | Scenario row (platform.ads_budget_optimizer_scenario) and latest result row (result table, response_json): the same reads as optimizer_ai db/snapshot_builder.py; exact SQL in references/queries.md |
| budget-optimizer-reference-data | Step 3 | R0 | Bounds for conservative / moderate / aggressive rows (bound service; not stored) |
| budget-optimizer-compare | Reconciliation | R0 | Side-by-side of 2–5 saved scenarios |
| lift-test-list, lift-test-get, lift-test-readout | Step 3, reconciliation | R0 | Calibration evidence; lift-test figures |
| database-query-run | Reconciliation | R0 | Attribution figures (attr_model_name required) |
Scenario figures come from those two tables, read and derived exactly as db/snapshot_builder.py does. Use the prod result table. Never call budget-optimizer-create or -update-or-delete.
Templates, glossary and say / don't-say → references/output-templates.md.
Full failure-modes catalog → references/failure-modes.md.
See references/edge-cases.md — partial-media runs, budget below / above reference, locks covering most spend, Reference infeasible under this run's bounds, rows outside bounds in a target run, rows not optimized, non-ready forecasts, changed results between runs.
examples/example-fixed-budget-sales-drop.md (opens in a new tab)references/data-map.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/interpretation-playbook.md (opens in a new tab)references/output-templates.md (opens in a new tab)references/queries.md (opens in a new tab)references/reconciliation.md (opens in a new tab)references/sop-detail.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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