/workmagic-skills:goal-setupfrom workmagic-skills
Walks through creating or changing a performance goal (ROAS, cost per order, CAC, POAS) per ad platform or tactic, tracked against an attribution model, ad-platform numbers, or third-party source. Asks one question at a time, converts lift test results, previews rows, and saves on confirmation.
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.
A Goal is a target for one KPI (e.g. ROAS 2.5) per ad platform or tactic, measured on one tracking basis (an attribution model with its date type and window, ad-platform reported numbers, or a third-party source). Dashboards then show attainment against it.
The Goals page asks for many choices in internal wording. This skill gets the user from "set a ROAS goal of 3 for Meta" or "turn my lift test result into a goal" to a saved goal by asking one plain question at a time, filling the rest from defaults, and saving only after the user confirms a preview.
Tool names below are the WorkMagic MCP names. In Justin they carry the source prefix — goal-get
is wm-goal-get. Same tool.
Trigger: set / add / change a goal or target; "make my Meta goal 3x ROAS"; "convert my lift test result into a goal"; "my goal is in last-click, I want it on the incrementality model"; add a platform or tactic to an existing goal.
Do NOT trigger — route out:
| Request | Go to |
|---|---|
| "What are my goals / am I hitting them?" | goal-get (and the dashboards / attribution-data-query for actuals) — no write, no skill |
| MER, NC MER or Total CAC goal (financial goals) | Can't be created or edited here — their targets come from a budget solve. Send the user to the Goals page in WorkMagic; goal-get can still read them |
| "How much should I spend to hit X?" | mbo-create-scenario |
| Reading a lift test result without setting a goal | lift-test-readout |
| Setting | Values | Default |
|---|---|---|
KPI (metric) | roas_all / roas_dtc, cost_per_order_all / _dtc, nc_roas_all / _dtc, ads_attributed_cac_all / _dtc, poas_dtc, nc_poas_dtc — plain names in references/metric-map.md | none — ask |
Tracked against (trackAgainstKind) | model (WorkMagic attribution model) · ad_platform_reported · custom_3p (third-party) | none — ask |
Attribution model (model) | required when tracked against a model, e.g. incrementality_adjusted, last_click, data_driven; full list in the goal-set schema | none — ask |
| Date type / window | event or source; 1, 7 or 30 days — only for model | event date, 30 days |
| Granularity | per platform: whole platform (<platform>) or per tactic (<platform>::<tactic>) | inferred from the row keys |
| Duration | ongoing or fixed_period (startDate / endDate, inclusive) | new goal → ongoing; edit → keeps current |
Target per row (method) | fixed · set_from_test · set_from_model (§4 Steps 5–6) | fixed |
KPI + tracked-against + model + date type + window is the goal's key. Only one active goal per key can cover a given time; goals with a different key are separate goals.
Step 1 — Read what exists (no confirmation needed)
Call goal-get (no args). It returns every active goal in goals[] and the latest one in full; call
it with goalId for any other one you need in full. If the tool says several tenants are available,
ask which one and pass tenantId on every later call. Tell the user in 1–3 lines what goals exist.
Then decide edit vs new: if the user's request has the same KPI + tracking basis + date type + window as an active goal, it is an edit of that goal (rows are added or overwritten, the others are kept). Otherwise it is a new goal. Say which one you are doing.
Step 2 — Say up front who can save
Saving a goal needs a team role that can edit (anything other than Viewer). Viewers can read goals but not save them. Mention this once, briefly, before collecting inputs. If you already know the user is a Viewer, offer read-only help instead of walking them through a goal they can't save.
Step 3 — Ask one question at a time, in plain words
Skip any question the request already answers. Never ask with field names; ask with these words:
fixedset_from_test (Step 5)set_from_model (Step 6)Use the platform ids and tactic keys exactly as goal-get / goal-observed return them.
Step 4 — Fixed targets
Take the user's number per row. Cost metrics (cost per order, CAC) are lower-is-better — repeat the number back so a ROAS-style "higher" isn't assumed.
Step 5 — Converting a lift test result (set_from_test)
The goal the user states is an incremental target (e.g. "incremental ROAS 1.2"). It is converted into the tracking basis using how the test's incremental result compares with what the tracking basis showed over the same dates:
goalValue = goalIncrementality × observedTrackAgainst ÷ observedTestResult
lift-test-list (status completed) → confirm which test with the user.lift-test-readout (rows carry
the incremental metrics and test_start / test_end). Which readout metric matches which KPI →
references/metric-map.md. Use the readout row whose sales scope matches the KPI (DTC vs all); if
that is unclear, ask.goal-observed with the goal's KPI, the row key, observe = the tracking basis, and
referencePeriodByKey = { <key>: { start: test_start, end: test_end } } → observedTrackAgainst.If the lift test tools aren't available in this session, ask the user for the test's incremental
result and its test dates, and say those numbers came from them. A test that isn't completed or has
no result can't be used — say so. Pass liftTestId so the goal records which test it came from.
Step 6 — Converting from another model or basis (set_from_model)
The user has a target on one basis (e.g. "ROAS 3 on last click") and wants it on another.
goal-observed with observe = both bases (convert-from and track-against) and that
referencePeriod → observedConvertFrom and observedTrackAgainst per row.For both conversions: a third-party (custom_3p) value is never fetched — ask the user for it. A
null observed value means the platform didn't report it (not zero) — ask the user, don't use 0. An
observed base of 0 is treated as 1 by the tool; a negative one can't be converted — the tool errors
on that row.
Step 7 — Preview, confirm, save
**HARD RULE.** Every `goal-set` call is preceded, in the same turn, by a preview the user has said yes to. A changed plan needs a new yes.Preview: one line for the goal (KPI, tracked against, model + date type + window, duration, new or edit) and a table with one row per platform / tactic: key · how the target was set · resulting value (for converted rows, the inputs that produced it). For an edit, say that rows not listed stay as they are.
On yes, call goal-set with the resolved settings and items. Leave out goalId unless several goals
could match (goal-set finds the goal by its key); never combine goalId with createNew. Edits
merge by default. Use replace: true only when the user asks to rebuild the whole goal — it drops
every row not sent, and the tool requires confirmDropKeys to list exactly those rows, which the
user must have seen in the preview.
Report back from the response: created or updated, the saved rows and values, and that dashboards recompute attainment from the new version.
Step 8 — When the save is rejected
| Error | What to do |
|---|---|
| Permission / role rejected | Tell the user their role can't save goals and to ask a team admin to change their role. Don't retry, don't change the inputs |
| Overlaps an existing active goal | Show both goals and offer the tool's three options: replace the old one in the same save (replaceGoalId), edit the old one instead (goalId), or use a fixed date range that doesn't overlap. Let the user pick |
| Someone else changed the goal (409 / optimistic-lock) | Re-run goal-get, show what changed, re-preview, ask again |
| Financial metric (MER, NC MER, Total CAC) | Send the user to the Goals page in WorkMagic |
| Can't merge (different KPI / basis than the goal found) | Ask whether this should be a separate new goal (createNew) or a rebuild of that goal |
| Several same-key goals on different dates | Ask which period, pass its startDate / endDate (or goalId) |
Any other error: say the reason in plain words and fix the input; don't retry the same call unchanged.
| Tool | Required? | Purpose |
|---|---|---|
goal-get | Required | Existing goals before anything else; re-read after a 409 |
goal-observed | Conditional | Observed values for set_from_test / set_from_model |
lift-test-list, lift-test-readout | Optional | The completed test and its incremental result + dates for set_from_test |
goal-set | Write | Save after confirmation |
goal-get first, every time — edit vs new is decided from what exists.goal-set without a confirmed preview that lists every row with its method and value.goal-observed /
lift-test-readout, or from the user, and you say which.replace only on request, with the dropped rows shown first.lift-test-readout — reading the test a set_from_test goal is built onattribution-data-query — actuals against a goalmbo-create-scenario — how much to spend to reach a targetWhat 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