/workmagic-skills:mbo-create-scenariofrom workmagic-skills
Turns forward-looking budget allocation questions into configured MBO scenarios with parsed budgets, goals, and constraints. Also handles rename, edit, and delete on existing scenarios.
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.
Take a user's natural-language ask about media budget optimization ("how should I split $500K across Meta and Google next month?") and turn it into a properly configured MBO scenario — collecting required settings, parsing budgets / goals / constraints from natural language, validating provisioning + scope, and creating the scenario via budget-optimizer-create. Also handles modify intents (rename, change inputs, delete) on existing scenarios.
Different from mbo-read-scenario (interpret existing results) and from attribution skills (historical data / why questions). MBO is forward-looking — it produces a plan.
Trigger when the user wants forward-looking budget allocation guidance or wants to modify an existing scenario's inputs.
MBO has 9 scenario settings. The skill must mirror UI defaults — if UI has a default, the skill applies it automatically and surfaces it via appliedDefaults in the preview so the user can override.
Top-level summary of each setting (required vs default):
| Field | Required vs default | Default value |
|---|---|---|
level | Has default | tactic |
channels | Has default | All available under outcome + level |
sales_platform | Has default | All Ready platforms (combined) |
optimization_period | Required | Next ISO week (Mon → Sun) |
reference_period | Required (the user chooses) | No default — show the allowed range, the user picks the dates |
goalMethod | Has default | maximum |
optimization goal | Has default | sales |
budget + budgetChangeType | Conditional (when goalMethod=maximum) | percentage=100 (keep flat) |
goalTarget | Conditional (when goalMethod=target) | No default — must ask |
budget_constraints | Has default | None (model runs free) |
perChannelBudgetChecked | Has default | false |
Full per-field semantics, parsing rules and budget percentage math live in references/inputs-detail.md. How to get the allowed range and help the user choose the reference period lives in references/reference-period-rules.md.
mbo-read-scenario) — rather than collecting inputs for a scenario they can't save.budget-optimizer-create (or update / delete) is rejected for permission, tell the user their role can't save scenarios and to ask a team admin to change it. Don't retry, don't change the inputs to get around it; offer mbo-read-scenario.budget-optimizer-list. Success → MBO is enabled; 403 / not-provisioned → not enabled, exit.attribution-data-query. Do not build a scenario.budget-optimizer-list, branch to modify flow (see references/modify-flow.md)."What's my budget?" / "Show me my budget" type asks are ambiguous. Don't silently pick. Two-step:
Clarify type: give 2-4 options matching the user's phrasing context, e.g.:
If user picks "build new" → continue this skill. If "existing recommendations" → route to mbo-read-scenario. If "actual spend" → route to attribution-data-query.
Required before any data lookup or scenario creation. ctx timestamp for SQL plus MBO conventions + valid goal-vs-method combinations.
From the raw ask, extract everything implicit using the Budget parsing + Goal parsing rules, incl. the worked parse examples (see references/budget-parsing.md).
Fewer fields you ask about, the better.
Lead with the most pivotal missing field. Order:
If user said something wrong / inconsistent → push back and tell them what's wrong; don't silently coerce.
For everything not explicitly mentioned by the user, apply the UI defaults silently and surface them in the Step 11 preview with (default) annotation so user can override. Default values → §3 Inputs table (full per-field semantics in references/inputs-detail.md).
What counts as saturation-prone, the detection rules (≥ 1 match flags the tactic), the Lock / Adjust / Skip behavior and the user-scale-intent caveat live in references/saturation-tactics.md. Use the template at templates/saturation-proposal.md for the user message.
If user voiced any budget constraints ("Meta at least $30K", "TikTok flat", "Pinterest cap $5K"):
Before showing preview, check for out-of-scope inputs — the reject / push-back table (past period, over-long horizon, reference period outside the allowed range, reference period shorter than the plan, non-existent channel, negative budget, questions about the model itself) lives in references/edge-cases.md.
budget-optimizer-reference-data with the reference period the user chose (Step 6) — Ready platforms, recent spend, baseline performance, available channels/tactics, baseline spend (spendBase) for the parsed period (needed to give user a sensible budget anchor).goalMethod=target): also capture the baseline value of the target metric over the reference period (e.g., baseline ROAS = 2.8x when user targets 4x). Show in preview so user knows the starting point.Use the template at templates/scenario-preview.md. Full preview format spec lives in references/preview-format.md.
budget-optimizer-create with resolved settings (all UI defaults explicitly populated, not omitted).scenarioURL from create response VERBATIM. NEVER construct a URL yourself. If absent, omit the link — say only "scenario name N".After Step 12 (create) succeeds, wait ~1 minute then auto-call budget-optimizer-forecast to fetch the completed scenario. Then summarize the result for the user (top 2-3 reallocations + expected delta vs baseline + any excluded channels). The summary is an interpretation — run the goal-vs-projection sanity check and baseline / paid-media decomposition per references/deliver-flow.md before writing it (same discipline as mbo-read-scenario).
Forecast status handling (ready / running / error) and the result-message wording live in references/deliver-flow.md.
| Tool | Required? | System risk | Purpose |
|---|---|---|---|
database-query-ask | Required (first) | R0 | MBO conventions, goal-method combinations, ctx timestamp for SQL |
budget-optimizer-list | Required | R0 | Provisioning check (Step 1) + locate scenarios for modify intent |
budget-optimizer-reference-data | Required | R0 | Called without reference dates → returns the allowed reference range (Step 6); with the user's dates → Ready platforms + baseline spend + Halo eligibility (Step 10) |
tenant-list | Optional | R0 | Verify sales platform setup if needed |
lift-test-list | Optional | R0 | Reference if user asks "is this channel calibrated"; not used for eligibility (backend-gated) |
database-query-run | Optional | R0 | Check reference window for anomalies |
budget-optimizer-create | Required | R1 | Create the scenario. |
budget-optimizer-update-or-delete | Conditional (modify intent) | R1 | Update fields or delete scenario. |
budget-optimizer-forecast | Required | R0 | Fetch completed scenario in Step 13 |
Three turns max:
What never appears:
budget-optimizer-create payloadattr_model_name, table names, model IDs)budget-optimizer-create call must be preceded by Step 11 preview-and-confirm in the same turn.budget-optimizer-reference-data / budget-optimizer-create called without dates), explain what it is and how to choose, never propose or default specific dates. See reference-period-rules.md.budget=100 = keep flat. budget=120 = +20%. budget=80 = −20%. Mis-parsing is critical.totalSalesHalo if Halo model available (Amazon / TikTok Shop integrated); else totalSales.scenarioURL verbatim from create response. Never construct URLs yourself.Full failure-mode catalog (~30 items) lives in references/failure-modes.md. Edge cases & routing live in references/edge-cases.md.
mbo-read-scenario — interpret existing scenario results (also the read-only fallback for Viewers, Step 0)attribution-data-query — historical actuals (when user wanted "actual spend", cost per order or other past numbers instead of a plan)attribution-edge-routing — when MBO not provisionedexamples/example-october-budget.md (opens in a new tab)references/budget-parsing.md (opens in a new tab)references/constraint-conflicts.md (opens in a new tab)references/deliver-flow.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/inputs-detail.md (opens in a new tab)references/key-concepts.md (opens in a new tab)references/modify-flow.md (opens in a new tab)references/preview-format.md (opens in a new tab)references/reference-period-rules.md (opens in a new tab)references/saturation-tactics.md (opens in a new tab)templates/saturation-proposal.md (opens in a new tab)templates/scenario-preview.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