/workmagic-skills:lift-test-creationfrom workmagic-skills
Creates executable lift test drafts from natural-language requests (scope, cell count, constraints) and reviews existing drafts or scheduled tests for viability, budget, and risks before launch.
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.
Turn the user's natural-language request into a well-configured, executable lift test draft and land it in the platform. Do not make undisclosed key decisions on the user's behalf, do not expose internal parameter names, do not create a test when conditions aren't met.
Two things are load-bearing:
Default creation skill in the Lift Test domain.
Trigger condition: The user's request contains a verb like "create / set up / run / launch / start" plus an object that points to "experiment / lift test / incrementality test / measure incrementality." Or it asks about an existing draft or scheduled test before it runs — can it run, is the spend or budget enough, what would another test length or CPA need, what are the risks (→ §5.7).
Examples that should trigger this skill:
Examples that should NOT trigger this skill — route elsewhere:
| Input pattern | Route to |
|---|---|
| Query results / progress of an existing lift test that has started (active / completed) | lift-test-readout |
| Compare multiple completed tests | lift-test-readout |
| "Why did my test fail / come back inconclusive?" | lift-test-diagnosis |
| Conceptual questions about PTM vs. LTM / wanting documentation | knowledge-base-ask |
| Test built on a non-standard metric (custom SQL, imported feed, bespoke definition) | Data Science (DS) — see §3 |
| Creative test ("compare these two creatives / this ad vs. that ad") | Data Science (DS) — see §3 |
This skill builds standard geo lift tests on standard metrics. Anything outside that is not half-built, not approximated, and not "attempted anyway" — it is routed to DS with a handoff summary, and the hand-off is offered as a CS task — preview first, filed with cs-task-create only on the user's yes (references/solve-loop.md). The same applies to a design that can't be formed (an exhausted solve loop).
In scope
GB / CA / DE / FR / AU / ES / SE) and their geo levels — including TikTok in the UK / France at city level (counties / departments)Out of boundary — route to DS, do not build
| Out-of-boundary case | Why | What to say |
|---|---|---|
| Non-standard metric definition — custom SQL metric, imported / offline feed, any metric needing bespoke logic to compute | The design and readout engines expect registry metrics; a bespoke definition changes the power calculation and the readout, not just the label | "That metric needs a custom definition before it can be tested — that's Data Science's call. I can file it as a task for them with what you've told me:" → hand-off summary + CS task preview |
| Creative test — "creative A vs. creative B", "test this new video" | Geo lift measures the incrementality of spend on a channel / tactic / campaign. It cannot isolate creative-level effects; geo splits don't cleanly separate creatives | "Geo lift can't isolate creative-vs-creative effects — it measures incrementality of spend on a channel, tactic, or campaign. Data Science can advise on the right design here — I can file it as a task for them:" → hand-off summary + CS task preview |
| Solve loop exhausted — 3 rounds, still no feasible design | Further levers would require assumptions the skill shouldn't invent | Hand-off summary, then file it as a CS task for Data Science with cs-task-create — preview first, call only on the user's yes. → references/solve-loop.md |
| ≥ 6 cells | Outside the supported design range — the ceiling is 4 impact groups plus one shared reference group | State the 2–5 range; offer to split into separate tests, or to file it as a CS task for DS (preview first) |
| Non-geo design (user-level split, audience holdout, platform-native experiment) | Different product surface | Hand-off summary + CS task preview for DS |
Routing rules
Everything to collect or resolve before the design call, and where each value comes from. The sections below cover how the non-obvious ones get resolved.
The last six are constraints: optional, not create-payload fields, and they only bound a design output rather than set it. Phrasing and interpretation → §4.C and references/constraints.md.
adPlatform / testLevel / impactCampaignInfos ⇄ numberOfCells (either / or)These are two ways of describing the same thing. The user supplies one side; the skill derives the other and confirms it in Step 4.
| Field | Required? | Description / default |
|---|---|---|
| adPlatform | Either/or | The ad platform(s) named (Meta, Google, TikTok, StackAdapt…). Apply alias mapping silently (FB→Meta, GA→Google Ads, IG→Meta), then match it to lift-test-scan's adPlatforms — the tenant's pickable list, the same as the product's Test channel dropdown (its Data Scope ad platforms, imported ones included), and pass that entry's adPlatform id. It must be available for the test's country (supportCountry) and level (supportTestLevel). A platform not in adPlatforms is not in the tenant's Data Scope → §4.D, never other. |
| testLevel | Either/or | platform / tactic / campaign. If the user named a scope but not a level, ask in business language ("Test the entire account, a specific tactic, or particular campaigns?"). |
| impactCampaignInfos | Either/or | Each platform's selected targets, shaped by testLevel (ONE level for the whole test): tactic → one object per tactic {tacticNames:[name]} from tactic-list ('' = the Default tactic; impact-campaigns does not return tactics); platform → accounts {accountId, accountName}, campaign → {accountId, accountName, campaignId, campaignName}, both from lift-test-impact-campaigns. A platform with nothing selectable → [] (saved as “skip for now”, scope set later in the draft). |
| numberOfCells | Either/or | 2 – 5. A cell count is a valid complete request on its own. N cells = (N−1) impact groups + 1 shared reference group, so 5 cells is the ceiling: 4 impact groups. The cells are bound in prepare's testChannel — one array per test cell (§5.1 Step 3). |
Resolution rules
| User gave | Do this |
|---|---|
| Scope only ("Meta, tactic level, Prospecting") | Derive numberOfCells = distinct impact groups + 1. Don't ask for the cell count. |
| Scope with multiple things ("Meta and Google") | One cell = one lift result. Default: each named thing is its own cell ("Meta and Google" → 3-cell test with one shared reference group); things the user explicitly wants measured together ("combined", "as one") share one cell. Explain the shape in business language in Step 4. |
| Cell count only ("set up a 3-cell test") | Take it at face value. Don't propose or fill in a platform, tactic or campaign — run the design on the cell shape and leave the per-cell scope for the user to set in the draft. Say so in Step 4. |
| Both, consistent | Proceed. |
| Both, inconsistent ("4-cell test on Meta only") | Clarify once: is the extra cell a second tactic on Meta, another platform, or did they mean 2-cell? |
| Neither | Run lift-test-scan first, then ask one question that offers both framings: the platforms the user can test — every adPlatforms entry available for the country (scan's country unless the user named one) and the test level (platform unless they named one), never only the ones with spend — with spend and orders as reference columns and automatic / manual setup, plus "or just tell me how many cells". Template: output-templates.md, Step 2. |
| ≥ 6 cells | Out of boundary — §3. |
| Field | Required? | Description / default |
|---|---|---|
| salesChannel | Has default | Use lift-test-scan's salesChannel — already only the channels that are lift-test ready (same readiness source as the product's data-health page). Show them for confirmation; default all selected. custom / imported channels are ordinary sales channels here. |
| primaryMetric | Has default | orders or new customers — these are the only two. Default orders; switch to new customers when the user says "acquisition / new customer". Anything else → out of boundary (§3). |
| country | Has default | Query trailing-90-day sales share, auto-pick the dominant country. Supported (8 countries): US / UK / CA / DE / FR / AU / ES / SE — the UK is passed as GB. Others error out — never hard-build. |
| geoLevel | Has default | Derive from country and platforms: US → DMA; UK / France with TikTok as the only platform → city; every other case → postcode. DMA / state are US-only; city is UK / France and TikTok-only; TikTok in the UK / France is city only (no postcode targeting there) — so TikTok and another platform in the UK / France can't share one test (§4.D). Leave geoLevel unset and prepare derives it; scan's adPlatforms[].geoLevels lists each platform's levels for the country. US state only when the user explicitly says so. |
| status | Default | Default draft. Don't go straight to schedule unless the user explicitly says so. |
Constraints are volunteered, or invited once. Don't interrogate the user constraint by constraint in Step 2. Instead, close the Step 4 confirmation with a single open ask — "anything else to factor in? budget ceiling, a deadline, geos to leave alone, a CPA you'd rather I use" — naming two or three examples so the user knows what's on the table, then move on. One open question, one turn. If they say no, don't raise it again.
| Constraint | Typical phrasing | Maps to | Detail |
|---|---|---|---|
| Concurrent-test requirements | "don't overlap with the test I have scheduled", "avoid the geos in draft #1183", "that draft is dead, ignore it" | per-group concurrent exclusion computed by design-prepare (geoConstraints) — which other tests' geos are kept out of which group | references/constraints.md |
| Geo constraints | "exclude NY and CA", "only run in the Midwest", "don't pause Texas" | locationSetting include / exclude + treatment-side pinning | references/constraints.md |
| Treatment geo size | "keep the holdout small", "no more than 10% of orders", "I can't pause more than a handful of DMAs" | geo-size bracket (Minimum → 5% → 10% → 15% -> 20% -> 25% -> 30%) | references/constraints.md |
| Budget | "under $3k/day", "$50k for the whole test" | Feasibility ceiling in the design check — a test budget bounds LTM's new spend; PTM is checked against ongoing platform spend. Daily vs. total must be disambiguated once; a total is divided by the period being checked, so a longer test never makes it fit. | references/constraints.md |
| Test period | "4 weeks", "finish before July 15", "as fast as possible" | testPeriod target, or deadline → back-solve | references/input-parsing.md |
| CPA estimate | "assume a $40 CPA", "we run about $35 CPA on Meta" | Input to expected-daily-spend / feasibility computation — replaces the derived estimate | references/constraints.md |
Default behaviors when no constraint is given — resolved silently, never raised as questions: the geos the tenant's scheduled / executing / active tests still hold on this test's start are kept out per group (references/constraints.md); geo size, period and method come from design; no budget ceiling is applied; CPA is resolved via database-query-run for any budget decision (Step 5), and a user-stated CPA overrides it.
| Field | Behavior |
|---|---|
| testStartTime | Optional. Never asked. Honor it if the user states one (never accept a past date). If they don't, leave it unset on the draft and say so in the handoff — the user sets it when they schedule. If the stated date overlaps a scheduled / executing / active test, don't judge the overlap yourself — pass the date as prepare's startTime (or, if the design already exists and the date is not earlier than the design's prepare startTime, straight to lift-test-create as testStartTime (earlier → re-run prepare with it and regenerate)); the platform applies the per-group rule, and a real clash comes back as geoConflict → references/edge-cases.md. |
country unless the user named one; the level is the one the user named, else platform. The platforms on offer are the adPlatforms entries whose supportCountry holds the country and supportTestLevel holds the level — all of them, whatever their spend (daily_spend 0 = no data yet, still pickable).automaticCountry holds the country → WorkMagic can apply the holdout automatically; otherwise manual setup. ptmCountry lacks the country → LTM only. source: imported (the product's "Others": StackAdapt, Klaviyo, Microsoft Ads…) → manual setup, platform level, no accounts or campaigns to pick (its impactCampaignInfos is [], scope set in the draft). Its spend and CPA come from the warehouse like any platform's (scan's daily_spend, analyze's CPA) — ask the user for a CPA only when scan shows no spend for it. The tools store its Data Scope name on the test (adPlatformName, which the product reads its spend and CPA by); never set or strip that field yourself.adPlatforms → it isn't in the client's Data Scope yet. Don't substitute other or another platform, and don't refuse. Say so, say what adding it does — it changes the client account's Data Scope, and onboarding then lists it as a channel to connect — and ask once. Only on the user's yes: call data-scope-set with mode: "add" and only that platform — a canonical id (facebookMarketing, roku…) in marketingPlatforms, anything else in importedMarketing as { name, category: "otherPaidChannel" } — then run lift-test-scan again and continue from the new list. A refusal (e.g. the id can't be added there, or the caller is a viewer) → relay it as returned; don't retry. Template: output-templates.md, Step 2.geoLevels (scan, for the test's country). In the UK / France TikTok is ["city"] and every other platform ["postcode"]: a request that mixes them ("TikTok vs Meta in the UK") can't be one test — spot it from scan's geoLevels at Step 2 (no need to call prepare first), say so and offer two tests (TikTok at city level, the rest at postcode — each with its own reference group, so the comparison is looser than one multi-cell test), or dropping one. Don't pass geoLevel to force it; prepare refuses the mix. Two tests from one request → the second gets its own conversation_id with intent: related (§5.4).managementKeyMissing: true, with automaticCountry empty) → when AppLovin is offered or picked, say it once: the test can only be set up manually, its accounts and campaigns can't be listed yet, and automatic setup or a tactic-level test needs the key, which the client adds in the platform at settingsUrl (Settings → Integrations → AppLovin). It's a notice, not a block: carry on with what the user chooses — a manual test now (any level, tactic included; the Default tactic covers all AppLovin spend), or add the key first and come back (then run scan again; campaigns show up after the next sync, so an empty list right after adding the key isn't "no campaigns"). Never ask for the key in chat or try to set it. If analyze returns manualReason: "applovin_key_missing" and it wasn't said yet (scan's check failed), say the same in one line with the design. Template: output-templates.md, Step 2.adPlatforms (§4.D): run scan before offering or checking any — a named platform missing from it goes through the Data Scope step in §4.D first.runningTests — scheduled / executing / active; a draft is excluded only if the user names it, pulled via lift-test-get), and the account-level geo limitation (geoExclusion / geoExclusionSummary, null when the account has none) — for awareness now; the Step 4 table's account-geo row uses prepare's geoExclusion (same shape, at the design's geo level). Query DB for sales channels and country. Apply any stated constraints to the inputs before design. Then call lift-test-design-prepare with the scan result verbatim, testLevel, the geo / metric / location inputs, and testChannel — the cells: one array per test cell, each listing that cell's platforms as {adPlatform, impactCampaignInfos} (never the old flat adPlatform + impactCampaignInfos; never pass numberOfCells — prepare derives it). prepare is where the concurrent-test exclusion (per group, from scheduled / executing / active tests still holding geo on startTime) and the account geo limitation are applied — both computed by the platform; its geoConstraints.occupancy feeds the Step 4 concurrency row. Pass startTime once the user states a start date (a later start keeps more geo), and liftTestGroupId when re-designing an existing test. Re-call prepare whenever Step 4 changes an input. (The PTM / LTM sufficiency call is made later, by lift-test-design-analyze, not by scan.) Permission pre-check: scan returns viewerMember — true means you are a viewer (read-only) on this tenant and cannot save a draft (create will be rejected, and join-as-admin can't override it while you're an activated member). Surface it now, before the ~3–4 min design: tell the user they're a viewer and that the client's owner/admin must upgrade their role (viewer → Operator/Admin) or remove their membership — they can't do either themselves; after removal they can join-as-admin instead. Then ask whether to still run the design as a preview (it won't be savable) or stop here. testChannel rules + examples → references/sop-detail.mdtacticNames: ['']) must read "Default tactic", never "(none)". Close with both halves of the closing line: one open ask for anything else to factor in, and one line that this is the last config confirmation. Surface override conflicts once; don't lecture. Row-by-row spec → references/sop-detail.md · wording → references/output-templates.mdlift_test_group, submits the solve and returns a task_id; design-result polls that token until the ~3–4 min PTM + LTM solve settles into design IDs; design-analyze turns those IDs into the decision — geo pair, test period, geo size, feasibility threshold, expected daily spend, Sufficient / Insufficient, and the PTM / LTM recommendation. Present two tables: (1) the PTM vs LTM comparison (keeps the native ~21-day test period + feasibility threshold), and (2) a test-period × feasibility-threshold table across 14 / 21 / 28 days (read from analyze's feasibilityThreshold.byLength, which the tool scales the way the product does) with ★ on the user's stated test length when they gave one (say whether it clears), otherwise on the shortest sufficient length chosen from 21 / 28 (14 is reference-only; a custom 14–60 length is allowed). → references/output-templates.md. CPA: resolve it yourself, the same way auto-solve does — per cell × platform: one database-query-run query per cell, scoped to that cell's own selection, by testLevel (platform → the selected accounts via account_id, or the whole platform if none were picked; tactic → the selected tactics via tactic_name; campaign → the selected campaigns via campaign_id), DDA / iDDA all-channel cost per order capped at 1.5 × AOV (→ references/auto-solve.md, CPA section) — and pass it to design-analyze as platformSpend[], one entry per cell × platform: { adPlatform, cellIndex, cpa } (cellIndex = the 0-based testChannel index, required; a platform in two cells = two entries with each cell's own CPA). Analyze's auto-CPA (when you omit platformSpend[].cpa) now uses the same 30-day grain-aware DDA / iDDA basis (with the 1.5×AOV cap), so it's a safe equivalent fallback — resolving it yourself just keeps the CPA explicit and consistent across the flow. Every threshold comes from a tool's feasibilityThreshold (each design's in analyze's ptm.designs[i] / ltm.designs[i]; a saved draft's in lift-test-get): quote rows[k].byLength[N].perDay at 14 / 21 / 28 and the design's / draft's own length — the product's own numbers, valid only for that method and CPA; anything else (another length, a CPA the user gives, the other method — at every length, 14 / 21 / 28 included —, an earlier design) → compute it with the formula on that row's raw inputs (cpa, r, mdl, D = experimentDays) — references/output-templates.md, Which number is the threshold. Never take a threshold (perDay, minimum_daily_budget_required, expected_daily_spend, an earlier figure) and scale it — a saved draft's stored threshold is already at its test length, and scaling it again gave a client a wrong number (references/failure-modes.md). A design is Sufficient only when every platform is. Before calling a platform Sufficient, read its estimator.channel entry: cpa or ads_daily_reported_spend null ⇒ feasibility wasn't actually checked for it (analyze still counts it as sufficient, as the product UI does) — say "not checked" and why; threshold_at_floor: true ⇒ the threshold is the platform minimum, not CPA-driven — say so (→ references/output-templates.md, Step 5). Sufficient and every stated constraint honored → show the result, confirm the design ("Shall I create the draft now?"), then Step 7 — create only when the user agrees. Anything else — no viable pair, Insufficient, or a violated constraint — is not an error message; it enters the solve loop → Step 6. If the user named a design id, §5.5 replaces lift-test-design + polling — analyze, the tables and the design confirmation stay the same.
tenantId, the lift_test_group of the prepare run for the configuration in question, and locale = the language you are talking to the user in (zh when the conversation is in Chinese, otherwise en; the same value on a re-check, switched if the user switches language); 10–120 s. Skip it silently when the tool isn't available at all (it is employee-only). If a call errors or times out: say nothing (or, when the user asked, one line that the check couldn't run now), don't retry, carry on.
READY, NOT_CHECKED, NOT_SUPPORTED → say nothing; READY_WITH_WARNINGS, FIX_DATA_FIRST, ROUTE_TO_DS → the note. Not called when the design came back — Sufficient, Insufficient or breaking a stated constraint — nor for auto-solve probes, re-polls, §5.5 (a named design) or a §5.7 review. Once per prepare run: whenever prepare is re-run with any changed input (geo size, location setting, start date, cells, sales channels, metric, country, geo level — any solve-loop lever or user change that re-calls prepare) and that design fails too, check again on the new lift_test_group. A lever that only re-runs analyze (CPA, budget, test period) doesn't re-solve, so there is nothing new to check. When the new result says the same as the note last shown (same overall and the same tier 1 / tier 2 findingIds), say it in one line instead of repeating the note (→ output-templates.md, Step 5 — Data check note).overall is — READY and the others included (→ output-templates.md, Step 5 — Data check note, On request). No prepare run for that configuration yet (before Step 3, or a §5.7 review of a saved draft) → say the check reads the configuration prepare builds, run prepare first (read-only; for a draft, on its saved config), then the check. If it was already run on that prepare run's lift_test_group in this conversation, show that result again instead of calling it again, unless the user says the data was fixed.options in their own words, call it again with previousRunId = the last runId (and answers), quote changes / stillOpen / nextStep as returned, then continue where the flow was (a failed design → the solve loop's levers as before; no draft yet and a design shown → "Shall I create the draft now?"). An option that carries requestChanges is also a mid-flow config change: handle it exactly as references/edge-cases.md "User modifies a field mid-flow" (no extra confirmation).id. Either way, pass restrictStartTime (on create-or-update: only together with a new design) = the startTime of the prepare run whose design is being saved (omit if that run had none — when prepare was re-run with another date, it's the run the chosen design came from, not necessarily the latest) — the tool stores it on the draft (extraInfo.restrictStartTime) so the schedule can't be set earlier and a later session can read the design's start assumption back instead of relying on memory. No second full-config confirmation (the design confirmation in Step 5 / 6 is the gate, not a config re-confirm). Cross-method check before create: when method differs from the chosen geo_group's own method (a design's geos run with the other method), the design confirmation must have shown that on its own line — "This is the PTM design's geo split (12 DMAs, 8.35% of orders), run as LTM" (no design id — rule 7) — with the recomputed thresholds, and the user said yes to it; if not, show it and ask now — never create on a silent mismatch (→ references/solve-loop.md, Running a design with the other method). Return the draft link, plus the start-date note and any "proceed as-is" caveat — in the reply, never in the draft: additionalRequests is not a notes field (it files a manual-design request), so leave it out; lift-test-create-or-update refuses a new value (→ references/create-update-params.md). If create is rejected because you are a viewer (read-only) on the tenant, relay the tool's actionable message as-is — the client's owner/admin must upgrade your role or remove your membership (not self-serviceable) — and don't retry. → references/sop-detail.md<tenant_id> WorkMagic x <client> › Lift Test Design). Reply with the Drive link it returns; if it returns a local file and the folder instead, give both and say the upload is still to do. If it refuses the draft, relay its reason and the choice the user has to make. Never build or patch slides by hand, and never retype a deck's figures into chat (§7). Deleting a draft through this skill also moves its design deck(s) to Drive trash: find the files in that client's Lift Test Design folder whose name starts with the test id, list them in the delete confirmation, and trash them after the user's yes (trash, never permanent delete). A draft deleted in the product UI leaves its deck behind — nothing here sees that. If the deck skills aren't available on this surface (an MCP-only client), say once that the deck needs Claude Code / Cowork with the wm-cs plugin and give the draft link. → references/output-templates.md, Step 8Multi-step SOP — the agent must pause and surface at these gates, never autopilot through:
| After step | Pause and surface |
|---|---|
| Step 2 | Only if a question is genuinely needed — structure or a conflicting either/or. |
| Step 4 | Full-config summary in business language, incl. cell shape + constraint read-back. This is the only full-config confirmation gate. |
| Step 5 (design back, Sufficient) | The method comparison table + the test-period × feasibility-threshold table (★ = the user's stated test length when they gave one, saying whether it clears; otherwise the shortest sufficient length among 21 / 28 — 14 is reference-only and never starred). After the tables, ask "Shall I create the draft now?" and wait for the reply. Do not restate full config, and do not ask for start date. |
| Step 6 (each round) | Quantified gap + levers with numbers. User picks; never pick for them. Say which round this is when on round 2 or 3. |
| Step 6 (auto-solve run) | When budget-related and auto-solve inputs are complete: runs automatically — one progress line, no consent question, no second full-config gate. Comfortable fit → result table, then round log, then the design confirmation ("Shall I create the draft now?"), then Step 7; only a >20% geo size / >35-day trade-off pauses for the user to pick. Never overrides a geo size / test period the user pinned. Once the user confirms (or picks a method, test length, or trade-off point themselves), create directly with no further questions. → references/auto-solve.md |
| Step 6 (exhausted) | DS hand-off summary + CS task preview (title, team, priority, account, description, group members — defaults + extras). Ask, end the turn; call cs-task-create only on the user's yes. No draft gets built. |
| Step 7 | Draft link, then straight into Step 8 (the design deck) unless the user opted out. No final-confirm table. |
| §5.5 lookup (a design id named) | not_found / expired → say user_message, ask: another id, or generate a new design. A difference between the design's inputs and the user's config → list each one, the user picks; never resolve it yourself. |
Autopilot is forbidden at these gates. The Step 4 single-confirmation rule, the no-double-confirm rule (Step 7), and the user-picks-the-lever rule (Step 6's manual rounds — auto-solve is the documented exception, §9-3) are the most-violated invariants — see §9 CRITICAL.
| User provided | Path | Expected quality |
|---|---|---|
| Full spec (platform + level + tactic/campaign) | Resolve defaults → Step 4 → design → create | high |
| Cell count only ("3-cell test") | Resolve defaults → Step 4 (scope left open) → design → create | high |
| Partial spec (platform only) | Ask for the missing structure piece; defaults for the rest, surfaced in Step 4 | medium-high |
| "Create a lift test for me" | One structure question offering both framings; defaults elsewhere; cap at ≤ 3 turns | medium |
| Spec + constraints ("Meta, under $3k/day, finish by Jul 15, avoid my running test") | Parse all constraints; conflicts → clarify once; infeasible → solve loop with quantified gaps | medium — depends on feasibility |
| Constraints only, no structure | Resolve structure first (Step 2), then apply constraints | medium |
| Ambiguous geo / time / budget-unit references | Clarify once (not a loop) | depends on clarification |
| Out of boundary (creative test, custom metric) | Don't build; hand-off summary + CS task preview for DS, file on the user's yes | n/a |
| A design id ("use design online-…_1"), at any step | §5.5: look it up → Step 4 (open fields from the design) → analyze → create; no new solve | high — when the design still fits the config |
Record every turn of this skill with conversation-log (platform MCP), so a run can be replayed later. It writes no customer data. Never mention it to the user, and never let it change or delay what you say.
One conversation_id = one intent: getting one lift test draft made, including follow-ups on that same draft (changing it, its design deck) and reviewing an existing draft / scheduled test (§5.7). Not one chat window — a window can hold several. Make the id yourself on the first turn of an intent: ltc-<YYYYMMDD>-<6 random a-z0-9> (e.g. ltc-20261028-k3v9qx). turn counts from 1 within an id.
Each turn, decide intent:
| The user, this turn… | intent | id |
|---|---|---|
| asks for the first lift test of this window | new | new, turn 1 |
| answers your question; confirms the Step 4 config; picks a method, test length or trade-off; says yes to create | continue | same, turn + 1 |
| follows up on the draft just made — edits it (lift-test-create-or-update), asks anything about it (including how-to questions such as "how do I share it with my CFO?"), asks for its design deck (Step 8), or just acknowledges it ("thanks", "ok") | continue | same, turn + 1 |
| comes back to an intent they paused earlier in this window ("ok, let's finish the Google one") | continue | that intent's id, its next turn |
| opens a new chat window with "continue / change draft 1234 …" | new, related_draft_id = 1234 | new, turn 1 |
| switches to another tenant / account | new | new, turn 1 |
| after a draft is made, wants another test reusing it ("same setup for TikTok") | related, related_to = previous id | new, turn 1 |
| after a draft is made, wants an unrelated test | new | new, turn 1 |
| before any draft, drops it and starts over ("scrap that, let's do …") | related, related_to = the dropped id | new, turn 1 |
| asks something that is not about creating a lift test and doesn't refer to a draft from this window | — don't log this turn | — |
| not sure | continue, explain in intent_note | same |
In a new chat window you can't see earlier work: always new, even when the user says "continue draft 1234" — that wording is about the draft, not this conversation. Pass related_draft_id then.
When to call — once per turn, right before your reply. As the last tool call of every logged turn, after all other tools and immediately before you write the reply, call conversation-log with:
conversation_id, skill: "lift-test-creation", skill_version: "2.5.17", turn, intent;user_message — this turn's user message, verbatim;assistant_reply — the reply you are about to send, exactly as you will send it. Then send that same reply, unchanged;intent_note (one line: what the intent is), related_to on related, and related_draft_id when the intent starts from an existing draft (the user names one, or the new test reuses the setup of one);draft_id only when this turn created or changed a draft;outcome only on a turn that ends the intent: draft_created (lift-test-create) · draft_updated (lift-test-create-or-update or lift-test-replace-platform) · deck_built (Step 8 ran this turn and no draft was created or changed; just re-sending an existing deck link carries no outcome) · handed_off_to_ds (cs-task-create filed) · stopped_by_user (the user drops it: "forget it", "cancel") · paused (the user puts it off: "I'll come back to this next week"; a later return in this window continues the same id) · refused (out of boundary, user declined the task) · blocked (a product limit the user must fix first). When a turn both creates / changes the draft and builds the deck, use draft_created / draft_updated. Follow-ups after the intent ended stay on the same id as continue turns: one that does one of those things again (edits the draft → draft_updated, rebuilds the deck → deck_built) carries that outcome; a question or a "thanks" carries none. A dropped intent (the user starts over or switches before a draft exists) gets no outcome — the new id's related_to is the record.Leave user_original_question / user_original_contexts out of conversation-log — user_message already holds the message.
Every other platform-MCP tool call of the intent carries conversation_id — lift-test-scan, lift-test-impact-campaigns, tactic-list, lift-test-design-prepare / -design / -design-result / -design-analyze, lift-test-data-check, database-query-run, lift-test-create / -create-or-update / -get / -list, cs-task-create.
Text fields are verbatim; anything over 8,000 characters is cut to 7,980 and ends with …[truncated]. If the call fails, fix what its error says and retry once; if it still fails, carry on without it. If you lose track of the id or turn, take them from the last conversation-log result.
The user may name a design they already have — at any point in the flow, before or after Step 4, even after a design came back. The id may look like online-<id>_<n> (as shown on a geo pair card in the product), <id>_<n>, or a bare <id>. Then no new solve is run: the named design replaces lift-test-design + its polling. Everything else in the SOP still applies.
design_id (the id exactly as the user gave it) and tenantId — instead of task_id, never both. One call, no polling.not_found / expired → stop here. Tell the user user_message (the design does not exist in this account / it was generated more than 33 days ago and its data is out of date). Ask whether to use another design id or generate a new design. Don't call lift-test-design-analyze with it.success → compare, then Step 4. design_params holds what the design was generated with: country (geo_country_code), geo level (group_level), sales channels (sales_platform), primary metric (metrics), cell count (num_of_cells), geo size (holdout_pct — e.g. 0.25 = the 25% geo size), method (experiment_type).
testChannel.result.ptmDesignId / result.ltmDesignId to lift-test-design-analyze as returned — only the design's own method has one, the other is null. Present that method only, and say in one line that the other method was not generated for this design (offer a new design if they want to compare). When selected_design_id is set, the user meant that exact design: show and create that one, not the solve's top-ranked one. Same tables, same Sufficient check, same "Shall I create the draft now?"; Insufficient → the solve loop (Step 6), where any re-solve means a new design.restrictStartTime — the start date the named design was generated for isn't known. A geo conflict with a test scheduled since the design was made is not pre-checked: lift-test-create rejects it (geoConflict) → references/edge-cases.md.When the user wants a draft or scheduled test on another ad platform — "switch 1234 from Other to StackAdapt", "make it Google instead of Meta" — the design stays: the geo split depends on the number of cells, not on the platforms. Use lift-test-replace-platform; never hand-build a create-or-update body for it.
adPlatforms (§4.D): not listed → the Data Scope step first; not available in the test's country → say where it can run and stop; its geoLevels lack the test's geo level (UK / France: Meta / Google ↔ TikTok, postcode ↔ city) → the kept design can't serve it — say so and offer a new test for it instead.[]. An imported platform takes no targets (platform level, []). If the old entry had none, nothing to ask.automaticCountry lacks the country), add one line that the setup stays automatic and they should check it in the test. End the turn.id, from, to and, when picked, targets ([{ cell, impactCampaignInfos }]; cell only when the platform is in several cells). Relay the result as returned.Not a replacement: adding or removing a platform so the number of cells changes → a new design (references/sop-detail.md, path C). A new CPA for the new platform, when the user asks → path D.
The user asks about a test that already exists and hasn't started — "can 1236 run?", "is the budget enough?", "what if spend drops to $10K/day?", "does the December slowdown matter?". Only draft and scheduled tests; an active / completed test's results or progress → lift-test-readout (§2).
readiness (computed by the tool, the same warnings the product shows): geoPairing.expired or expiresBeforeStart → say it first, with the date ("the geo pair expires on Nov 29, before the Dec 1 start — it needs a fresh design before then", which is Step 3–5 on this draft's config, then lift-test-create-or-update on the user's yes); startDatePassed → it needs a new start date; manualSetupPlatforms → those platforms' holdout is set up by hand — say so.feasibilityThreshold, by the formula rules (references/output-templates.md, Which number is the threshold): the threshold at the test's own length, and at any length or CPA the user asks about. Every amount — current spend, a budget, or one the user or you assume ("if they cut to $10K/day") — is judged by the pass rule: ≥ 0.95 × threshold; within 5% of the threshold is "at the line", not below it.cpa ≥ 2× or ≤ ½ of originCpa → say so with both numbers and the threshold at originCpa.runningTests — a scheduled / active test whose dates overlap this one or its cooling period → name it.A review-only turn ends with no outcome in the conversation log (§5.4); a change made afterwards logs draft_updated as usual.
| Tool | Required? | Purpose |
|---|---|---|
| lift-test-scan | Required | Last-28-day daily spend + orders, existing tests as runningTests (scheduled / executing / active) for awareness and start-date conflict checks, and suggested params (holdout / cells / metric). The actual concurrent exclusion is computed later by design-prepare (geoConstraints, from the platform), not by scan. Also returns geoExclusion / geoExclusionSummary — the account-level geo limitation converted to the test's geo level (null when none) — for the Step 4 read-back; design-prepare applies it to the design and lift-test-create re-checks it. Also returns viewerMember (true = caller is an activated viewer / read-only → can't save a draft; warn in Step 3). adPlatforms = the platforms the user can pick (Data Scope ∩ lift-test platforms + imported ones), each with supportCountry / automaticCountry / ptmCountry / supportTestLevel / geoLevels (its geo levels in the scanned country) and 28-day spend / orders — the only source for the platform list (§4.D). Its geoLevel is the default for the requested platforms (UK / France + TikTok only → city). The AppLovin entry carries managementKeyMissing / managementKeyNotice / settingsUrl when it has no Campaign Management Key (§4.D). |
| lift-test-impact-campaigns | Required (account / campaign level) | List ad accounts or campaigns to build impactCampaignInfos — level=account for a platform-scope test (also the first step before drilling into campaigns), level=campaign for a campaign-scope test. Tactic-level grouping is NOT here — use the tactic MCP tool for tactic candidates. |
| tactic-list | Required (tactic level) | Fetch the tactic candidates for a tactic-scope test — impact-campaigns does not return tactics |
| lift-test-design-prepare | Required (Step 3, before the Step 4 gate) | Assemble scan output + testLevel + testChannel (one array per test cell, each entry {adPlatform, impactCampaignInfos}) + geo / metric / location inputs into lift_test_group, create_params, and a summary; derives numberOfCells and per-entry testChannelIndex / extraInfo; applies the concurrent-test exclusion per group (only what is still occupied on startTime; omitted → today) and the account-level geo limitation, returned as geoConstraints (concurrent occupancy) and geoExclusion (account limitation, at the design's geo level) plus the per-group lists treatmentExclusion / controlExclusion in lift_test_group. (Budget / CPA constraints are not prepare inputs — they are handled at analyze / create.) |
| lift-test-design | Required (not when a design id was named — §5.5) | Submit the design solve. Runs asynchronously — returns a task_id immediately (the ~3–4 min PTM + LTM solve runs detached), not the design itself |
| lift-test-design-result | Required | Poll the task_id from lift-test-design until the solve settles; returns the PTM / LTM design IDs (or a failed / running state). Or look up a design id the user named — design_id instead of task_id (exactly one), one call: success (same result + selected_design_id, part_date, design_params) / not_found / expired → §5.5 |
| lift-test-data-check | Optional (employee-only; Step 5 item 1: when the design fails, or when the user asks) | Read-only check of the order data the design uses (enough orders, current, no gaps, located, each channel arriving) — the platform's data check, on the Data Science team's rules. One call with prepare's lift_test_group and locale (zh / en, the conversation's language), 10–120 s, one result: overall, statusLine, summary, checks[] (each with userMessage, fix {action, owner}, options), blockers, runId. Called only when the design fails (note after the round-1 framing) or when the user asks (shown whatever overall is); a note only, never a gate (Step 5, item 1). Its CS texts (statusLine, userMessage, option labels, changes / stillOpen / nextStep) are quoted as returned. Re-check with previousRunId (+ answers) only when the user says the data was fixed or picks an option. In a §5.7 review only when the user asks. |
| lift-test-design-analyze | Required | Turn the design IDs into the decision: geo pair, test period, geo size, feasibility threshold, expected daily spend, Sufficient / Insufficient, and the PTM / LTM recommendation. Always pass platformSpend[] as { adPlatform, cellIndex, cpa } per cell × platform (cellIndex 0-based, required) — the CPA resolved via database-query-run scoped to each cell's own selection by testLevel (platform → selected accounts or the whole platform; tactic → selected tactics; campaign → selected campaigns; DDA / iDDA, see references/auto-solve.md); it re-evaluates feasibility + recommendation with it. Left empty it falls back to analyze's own auto-CPA, which now uses the same 30-day grain-aware DDA / iDDA basis (with the 1.5×AOV cap) — a safe equivalent; passing it just keeps the CPA explicit and consistent. Pass timezone (from scan) so that fallback window, and the 7-day spend window, are built in the tenant timezone — identical to the product UI. Its feasibilityThreshold holds the thresholds at 14 / 21 / 28 + the design's own length (byLength, quote as is) and each cell × platform's raw inputs (cpa, r, mdl, experimentDays, method) for computing any other with the formula (references/output-templates.md). |
| lift-test-create | Required (final step — new draft) | Default for a brand-new test. Create the single draft from the chosen analyzed design — all cells in one draft. Takes the structured fields (§4) + the design IDs / geoGroup from analyze + restrictStartTime (the chosen design's prepare startTime, if any) and assembles the payload for you (incl. timezone conversion). larkGroupId — the Task group in context, reused by default (bold 🔁 line), dropped only if the user declines; 2-cell only (→ references/output-templates.md, Step 5 — Task group). |
| lift-test-create-or-update | Optional (update / edit) | Update an existing draft the user is modifying — pull it with lift-test-get, change fields, push the body back with its id. Before saving it runs the same gates as lift-test-create on whatever the body carries — geoGroup / testChannel shape, account-level geo limitation, concurrent geo-conflict, past start date (a body with no design still saves). The caller assembles the body, so prefer lift-test-create for new drafts. |
| lift-test-replace-platform | Optional (platform swap) | Swap one ad platform of a draft or scheduled test, design kept (§5.6). Changes only the platform id (with adPlatformName for an imported platform), the platform in the test / cell names and the design hash — CPA, spend, thresholds, geos, method and setup stay. The new platform must be in adPlatforms for the test's country; when the old entry has targets, pass the user's picks for the new platform in targets (or [] = set later). Confirm first. |
| lift-test-list | Optional | "What tests have I created before"; resolving a named draft in a concurrency constraint |
| lift-test-get | Optional | Pull an existing draft — mid-flow modification, reviewing a draft / scheduled test (§5.7: its readiness — geo pair expiry, past start, manual-setup platforms — and feasibilityThreshold with originCpa), or reading the geos of a draft named in a concurrency constraint. Its feasibilityThreshold is the draft's threshold as the setup page shows it (perDay at its own testLength, byLength for 14 / 21 / 28, raw inputs for any other length or a what-if CPA) — the only source for a saved draft's threshold |
| data-scope-set | Only to add a platform the user named that isn't in adPlatforms, after their yes (§4.D) | mode: "add" with just that platform — canonical id in marketingPlatforms, otherwise importedMarketing: [{ name, category: "otherPaidChannel" }]. Adds it and leaves the rest of the Data Scope as it is. Never mode replace (it removes every channel not passed). Then lift-test-scan again. |
| cs-task-create | Required (DS hand-off: out-of-boundary request or Step 6 exhausted) | File the DS hand-off: a CS task on the account CSM's board plus a Lark group. category: "Lift Test". The server adds the default group members (listed in references/solve-loop.md — show them in the preview); pass inviteEmails only for extra WorkMagic teammates the user names. liftTestGroupId = the existing test the hand-off is about (shown first on the preview as the bold 🧪 Test line) — the task then goes into that test's experiment group, no new group. Preview and get an explicit yes first; call once. Not for product limits the user can fix (unsupported country, past start date, Not-ready channel). Returns duplicate when the same problem is already being handled, groupError when only the group failed, groupReused when it went into the experiment group, taskGroup { id, name } when a new group was opened. → references/solve-loop.md |
| conversation-log | Required (every turn) | Last call of each turn, right before the reply: this turn's user message + the reply about to be sent (+ outcome on the ending turn). Writes no customer data; never mentioned to the user. → §5.4 |
| database-query-run | Required (auto-solve) · Optional (§5.7 review: seasonality / spend-trend questions) | Compute the CPA per cell × platform (Step 5 and the Step 6 auto-solve branch) — one Cube.dev query per cell, scoped to that cell's own selection (attr_all_orders / attr_all_sales, DDA vs iDDA by attr_model_name), passed to analyze as platformSpend[{ adPlatform, cellIndex, cpa }]. Resolving it here keeps one explicit CPA per cell × platform consistent across every probe; analyze's auto-CPA now uses the same basis as the UI and is an equivalent fallback. → references/auto-solve.md |
Design-deck skills (Step 8). 2-cell-test-design-deck and multicell-design-deck are Claude Code / Cowork skills (the wm-cs plugin), not MCP tools. Since 2026-10-26 this skill is run in Claude, where they are available, so Step 8 chains into them by default. Their requirements, inputs and outputs are defined in those skills, not here.
display_groups.treated[i] (analyze / lift-test-get return it ready-labeled; fall back to geo_group.control[i]). geo_group.test is the Reference group — its members are never named (count + share only), and it must never appear in a Holdout / Exposed row. This holds in every place you name geos: the design table, a draft summary, a DS-handoff summary, a solve-loop explanation, any supplementary note. If you're unsure which side a geo is on, don't name it. See §9 rule 10.All output templates (Step 4 summary, solve-loop rounds, design comparison, DS hand-off + CS task preview, draft link) → references/output-templates.md
Design decks (Step 8) may carry figures chat never shows (e.g. MDL, the reference-group geo list) — what they contain is defined by the deck skills. Never retype a deck's contents into chat; send the link.
See references/edge-cases.md — covering unsupported country, cell-count conflicts, mid-flow modification, ambiguous geo names, Not-ready sales channels, design failures, dead drafts in concurrency constraints, out-of-boundary requests.
larkGroupId goes to create unless the user declines the reuse (references/output-templates.md, Step 5 — Task group). Multi-cell: no 🔁 line, no larkGroupId.holdoutPct, MDL, experiment_days, attr_model_name, raw API platform IDs, the raw design-engine fields design_id, minimum_detectable_lift, factor, and the design task_id (the async solve token from lift-test-design). None of these ever appear in chat — not in a progress line while the solve polls, and not in a handoff / continuation note when a solve is still running (keep the task_id internally to resume polling; never print it for the user to "hold"). (numberOfCells is the exception — it is user-facing when the user raises it.) A design id the user named themselves (§5.5) is referred to as "the design you specified" — don't print it back, and never print any other engine id.minimum_detectable_lift is an internal field, NOT the user-facing MDL. It may be used in internal step calculations, but it must never appear in chat and must never be presented or labeled as the test's MDL. Its name is misleading — showing its value to the user, or passing it off as MDL, gives a wrong number.display_groups.treated[i] (fallback geo_group.control[i]); geo_group.test is the Reference group, whose members are never named (count + share only). The platform naming is inverted (control = treated, test = reference), so the swaps happen most in prose outside the table — a draft summary, a DS-handoff summary, a solve-loop explanation, a supplementary note. Any such mention of Holdout / Exposed geos takes names from the treated side only, never from geo_group.test; if unsure which side a geo is on, don't name it. → references/output-templates.md, Step 5.Full failure-modes catalog → references/failure-modes.md
| Skill | Relationship |
|---|---|
| lift-test-readout | Downstream: reading and acting on results — iROAS, confidence intervals, post-test decisions |
| lift-test-diagnosis | Downstream: diagnosing failed or inconclusive tests — implementation drift, data readiness gaps, underpowered designs |
| Data Science (DS) | Escalation target for out-of-boundary requests and exhausted solve loops — both filed as a CS task via cs-task-create, after the user's yes |
| 2-cell-test-design-deck | Downstream (Step 8): builds the design deck from a 2-cell draft — contents defined in that skill |
| multicell-design-deck | Downstream (Step 8): builds the design deck from a 3-cell or larger draft — contents defined in that skill |
references/auto-solve.md (opens in a new tab)references/constraints.md (opens in a new tab)references/create-update-params.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/input-parsing.md (opens in a new tab)references/output-templates.md (opens in a new tab)references/solve-loop.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