/sparkx-ai-mcp:sparkx-promo-resetfrom sparkx-ai-mcp
After a promotion ends, recovers pre-promo bids, budgets, placements, and AI managed-group settings from operation logs or user-provided sheets. Restores all at once or paced by post-promo performance, with preview, undo file, and read-back. Also audits bids after promo schedules end and recaps the promo.
Ships in sparkx-ai-mcp. 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.
This skill has no MCP tool of its own. It reads with three tools and writes with two existing skills:
| Step | Tool | Owning skill |
|---|---|---|
| What changed, and what it was before | get_operation_log | sparkx-query-operation-log |
| Post-promo performance and the normal range | get_ads_perf | sparkx-query-ads-performance |
| Internal ids, current values, groups, inventory | get_entity_metadata | sparkx-query-entity-metadata |
| Restore budgets, bids, placements, portfolio caps | batch_update_ads | sparkx-edit-ads |
| Restore managed-group settings | save_sp_sb_ai_managed_group / edit_sd_ai_managed_group | sparkx-edit-ai-group |
| End a promo schedule early (only when the user asks for that schedule) | save_sp_sb_ai_group_schedule (operation: "delete") | sparkx-edit-ai-group |
Dependency - install all five skills above alongside this one. Skills install as sibling directories under your agent's skills root (
.claude/skills/<name>/for Claude Code; see the installation notes in README); the../sparkx-.../links in this file resolve against it. Every write in this skill goes through the owning write skill's rules - its confirmation protocol, its discriminator fields, its read-back. This file does not repeat them and does not relax them.Read each owning skill when its step comes, not all up front: a query skill (only the sections for the query at hand) when you pull that data; the write skills only when you reach the preview and the writes.
Auth, error envelopes, pagination, date limits and currency rules are in the base skills'
references/platform-notes.md - read it once from any of the three query skills (they ship the
same file). The cross-tool points that matter for this skill:
get_ads_perf returns Amazon ids; get_operation_log returns both
(entityId internal, amazonCampaignId / amazonEntityId Amazon); writes need the internal
id plus discriminator fields from get_entity_metadata. Join performance to the log on the
Amazon id; write with the internal id.profileId;
SP/SB managed-group rows are UTC; SD managed-group rows use an undocumented server clock
(see the operation-log skill). Performance dates are store days.| Reference | Read it when |
|---|---|
references/restore-list.md | Building the restore list: which log queries, which rows count, how to get the pre-promo value, how a log row maps to a write |
references/pacing-rules.md | Deciding each item's suggestion: normal range, target ACOS, "clearly worse", step-down days, held items |
references/execution-safety.md | Step 5, before the first write, and before continuing or undoing a reset: the plan file's columns, the stale check, row states, undo |
references/from-file.md | The customer uploads their own record: reading the file, matching rows to objects, comparing with the account and the log |
references/example-and-report.md | A full worked conversation; the structured_report JSON shape |
references/html-report.md | Optional customer-facing HTML report; read only when a downloadable, shareable or print-ready report is needed |
references/error-handling.md | A write is refused, data is missing, or an answer does not fit the normal flow |
The examples (references/example-and-report.md) are in Chinese because most customers are. They show structure, not text to
copy: answer in the user's language, and pass language to get_ads_perf to match.
Default to the Markdown report in chat. If the user asks for a report to download, share, print
or send to a customer, or the detailed tables are too long to scan comfortably in chat, also
create the static HTML report in references/html-report.md. The
chat summary, preview and confirmation remain in chat; an HTML file never counts as approval
and never replaces the plan / undo file used to resume or undo a reset.
When the user asks for a trial run, demo, CSM handoff or example customer deliverable, run this
current workflow again against the data available now and render the resulting
structured_report. Do not relabel, restyle or carry forward result tables from an older trial.
An older document may provide the scenario only; re-query every displayed account value and
recompute every recommendation under the current rules. Mark simulated customer answers and
assumptions separately from queried facts, and include the run time, store, scope and data
windows. Trial mode is read-only unless the user separately confirms writes. If the current
workflow stops because required answers, operation-log history or comparison data are missing,
show that real stop and next step; never invent restore targets or later-stage results. Markdown,
HTML and any external document must all come from the same current-run structured_report.
A promo is set up by hand: budgets raised, bids raised, placement multipliers raised, managed groups switched to "活动冲量" (promotion sales boost) with a looser target ACOS. After the promo all of that has to come back, and people forget what they changed, forget to change it back, or cut everything at once and lose traffic that was still converting. This skill recovers every human promo change and its pre-promo value from the operation log and, as the user chooses, either restores everything at once or looks at how each item did in the days after the promo and proposes restore now / step down over a few days / hold / you decide - each with the numbers behind it. If the customer kept their own record, they can upload it and the restore targets come from the file instead. Nothing is written until the user confirms, and an undo file is produced before the first write.
restore-list.md).Resolve profileIds the usual way (get_user_authorized_context; one store unless the user
asks for several). Run this skill one store at a time: log timestamps are store-local
only when one profileId is passed (see the operation-log skill's "createdDate Timezone"),
and the window boundaries depend on it.
The window comes first, and how depends on what the user already said:
get_ads_perf, factEntity: campaign,
select: ["date"]) and propose the full window from the data: "spend was about 2x normal on
10/6-10/7, and there were many changes on 10/5 and 10/8 - include those four days?" Promo
adjustments routinely start a day or two before the event and end a day after.Also say now if the managed groups are still in "活动冲量" - that is often the biggest single item (Step 2c).
Then ask in one message, three groups - skip anything the user already answered:
| Group | Ask | What it decides |
|---|---|---|
| 1. The promo and how to restore | The window above (confirm, or give it); restore all at once, regardless of performance, or in batches by performance (recommended) | The log window; whether Step 3 judges each item |
| 2. What is different now | Anything still running - a deal not ended, a product low on stock? After the promo: back to normal, or stay profitable at a target ACOS, and how much can ads spend per day? | Items to hold or restore first; the target the pacing uses (references/pacing-rules.md section 3); the budget check in Step 4 |
| 3. Your own record | A record of the pre-promo values - a sheet, a bulk export taken before the promo, a screenshot? | Whether the targets come from a file (below) |
Follow-ups, only when they apply - ask after the answers above, once each:
references/pacing-rules.md section 1).Their own record (group 3). If they upload one - now or at any point - the restore targets
come from the file: follow references/from-file.md instead of
building targets from the log (Step 2 then only supplies the log's view for the comparison, the
"changed again later" check and the binding-budget note).
If the user has the promo change log from sparkx-promo-prep / sparkx-promo-monitor
(see that skill's references/change-log.md), its window is the minimum: from the earlier
of the warm-up start and the file's earliest writtenAt (prep writes group budgets and portfolio
caps before the warm-up) to the event end, plus the days the monitor wrote on. The data check
under "Dates given" still runs and may only widen it (people often adjust things a day before or
after the skills wrote anything): propose the wider of the two in one question, never a narrower
window than the file's. Use the file's pre-promo
value per object (the earliest confirmed write's valueBefore, with needsReadBack rows settled
first against the operation log - references/restore-list.md section 2) as a cross-check of the log's pre-promo value: a mismatch goes to "you
decide". The operation log stays the
source of the list - the file only covers what was written through those skills.
Recap only. When the user asks for a recap of the promotion ("how did Black Friday go?") and not for a restore, ask only which promo and roughly when (if not given) - not the three groups or the follow-ups; fix the window from the data as above, show the Promo Recap table (pre-promo / promo / post-promo daily averages; Step 4 describes it) with the store-level reading of it, and stop: no restore list, no plan file, no writes. Offer the reset afterwards ("want me to list what was changed for it and restore it?").
Look a few days before the window the user gave. Prep often starts earlier than people remember. Pull the 3-5 days before the start too; if changes there look like the same promo (the same campaigns or groups, the same direction, a burst of them), show the counts and ask whether to include them before building the list.
Full procedure, queries and edge cases: references/restore-list.md.
The rules that decide the result:
a. Pull the log without a changeBy filter and classify changedBy yourself. A row is a
human change when changedBy is an email address or Manual; a row with
operationSource = MCP was made through MCP, which is not always the promo skills. With
the promo change log, include only the MCP rows that match a confirmed-write row in it
(written, or needsReadBack settled against the log; object, logField, value and time -
references/restore-list.md section 2, "Matching a log row to the change log"). Rows the
log marks planned, fulfilled, failed, skipped or changedByOthers do not count as
promo changes;
other MCP rows go to "you decide". Without it, show the MCP rows' count and
ask once whether they belong to the promo; until the user says yes they stay in "you
decide". Rows this reset run wrote itself are removed by the stale check (Step 5). Never
filter with changeBy: manual - the server rejects it (references/restore-list.md
section 2).
Amazon Console is a source, not an operator - the change came from Amazon's side, author
unknown. It is not in the default restore set: list those rows in their own section as
source-unknown, force suggestion to customerDecides, and restore only the ones the user
confirms one by one - never via restoreNow or stepDown. Two cases change how you ask
(references/restore-list.md section 2, "Amazon Console"):
Amazon Console: say so with the counts and ask
once whether those changes were theirs; only on a clear yes do they count like human
rows, named "亚马逊后台(已由你确认)" in the header.The user may widen the sources ("API 改的也算") - then say in the list header which sources are included.
b. Pre-promo value = the previousValue of the first human change to that field inside the
window. Later changes inside the window do not matter, including a blanket "set
everything to $100" the customer did on the last day. Skip creation rows - an empty
previousValue, or 0 on budgets, bids, target ACOS and objective - those are not pre-promo
values. Except placement adjustments: 0 there is a real pre-promo value (no uplift), so a
top-of-search change 0 -> 100 is restored to 0, never skipped
(references/restore-list.md section 3).
c. Managed-group settings go on the list too, and go first. Objective (optimizeType in
the log, targetType on SP/SB write), target ACOS (acos), AI personality, bid range
(bidRangeMin / bidRangeMax), action-space switches and the group's total budget
changed directly on a group do not revert by themselves. A dated schedule reverts
automatically, but only after its end date: compare each schedule's endDate with the store's
current date. Ended ones go under "已随排期结束" for the schedule settings, then get the
post-schedule bid audit (once per group, when none of its schedules is in effect - references/restore-list.md section 5); ones still running (a promo schedule that runs past the
window, or one a person extended) go under "排期仍在生效,{日期}结束", not as expired - see
references/restore-list.md section 3. Judge each schedule, not the group: a group total
budget changed directly in the same window still needs its own restore row.
Weekly schedules (timeType=2) and schedules not from the promo are information only - no
reminder row or audit of their own (references/restore-list.md section 3), but while in
effect they delay the group's audit (section 5).
Restore group settings before budgets: the objective and target decide how AI
bids; the budget is only a ceiling.
Zero managed-group rows is not proof of zero changes (the query can fail silently): with
groups still on "活动冲量" (targetType: 3) and no dated schedule in effect that carries goal 3, say the history could not be read
and treat those groups as "you decide" (references/restore-list.md section 1).
d. Budgets: only dailyBudget counts. In managed groups AI rewrites the day's spendable
budget every hour (changeField: currentBudget, hundreds of rows per store in a few days).
Those are not promo adjustments and must not be restored.
e. Split the list:
references/restore-list.md section 3)f. Also on the list: ad group default bids (SP / SD can be restored; SB has no write route)
and portfolio budget caps - see references/restore-list.md.
If the user chose "all at once", skip only the performance judgement: no per-item
post-promo get_ads_perf pull and no per-item pacing (the three store-level daily pulls for the
recap in Step 4 still run, unless the recap is skipped there). Everything that protects later decisions still
runs - the operation log is still queried through today (Step 2; that is how items changed
again after the window are found), and current values are still read and the stale check
still runs before every write (Step 5).
Every restorable item then goes back at once: all managed-group settings on the list (objective, target ACOS, AI personality, bid range, action-space switches, total budget) and every bid, budget, placement and portfolio cap raised during the promo. Unchanged: lowered, changed again after the window, created, paused and enabled during the promo, and budgets and bids raised by less than 10% still go to the customer, and a deal still running is still held - restoring those would overwrite a decision rather than undo a promo adjustment. The "is the lower budget binding" note still works: it comes from the out-of-budget events in the operation log, not from performance data.
The rest of this step applies to "in batches by performance".
Read each item's post-promo days: full days after the window ends, no later than today - 2,
at most the latest 3 (references/pacing-rules.md section 1). A day inside the window is never
one of them - right after the promo there may be fewer than 3, or none. Compare them with the
item's own normal range and its target. Exact calculations: references/pacing-rules.md.
With 3 post-promo days, checked in this order - the first that applies wins
(references/pacing-rules.md section 5 is the rule; this is its summary):
| After the promo | Suggestion |
|---|---|
| Barely spent: under 10x the store's average CPC, whatever the clicks | Restore at once - nothing to judge |
| Clearly worse: ACOS both above its own normal range and above its target, on 20+ clicks and at least 2x the store's clicks per order (fewer clicks: "Otherwise") | Restore now |
| Above target, but in line with its own normal range | Restore as in "Otherwise"; note it runs above target anyway - not caused by the promo |
| Conversion rate still above its normal range | Step down: over 3 days if raised >= 2x, else 2 days |
| Otherwise | Restore at once if raised < 1.5x, else over 2 days |
An item with fewer than 5 orders in its normal period has no own range: it is compared with the
target only - "clearly worse" means ACOS above target (on the same clicks), and the two rows that
need an own range do not apply (references/pacing-rules.md section 2).
On SB, SD and Vendor, attribution lag turns an ACOS-based "restore now" into the "Otherwise"
row's pace (references/pacing-rules.md section 4).
Overrides, in this order: a product low on stock -> restore now; a deal still running -> hold
the items that advertise the deal ASINs until it ends; holiday hold (only if the user said
yes to it in Step 1) -> every item is held until the user's date except the clearly worse ones,
which are restored now (references/pacing-rules.md section 5). After a hold, items are judged
on the days after it ended.
Lowered during the promo -> customer decides, with a note on whether the lower budget is
binding (references/pacing-rules.md section 7) - if not, adding it back changes nothing;
point to stock / buy box / listing instead.
Too few post-promo days to judge (0, 1 or 2 - under 3, references/pacing-rules.md section 1):
the table above is not used - restore at once if raised < 1.5x, otherwise step down over 2
days, and say the data was too thin. The overrides still apply.
Show the customer, in this order:
references/example-and-report.md "Customer names for each group" everywhere - chat,
template, HTML.references/pacing-rules.md section 8). Budget check, when
the user gave a daily budget in Step 1: post-promo daily spend minus those savings must fit
it. If it does not, say by how much and which items would have to go further, lowest ROAS
first - never cut on your own. In "all at once" mode there is no per-item performance pull, so no
savings figure: compare the sum of the restored daily budgets with the user's budget instead
and say that actual spend is usually lower.sparkx-edit-ads, on the customer's word.execution-safety.md section 1).Store-level recap in one compact table, in both restore modes (skipped only when restoring
from a file with no promo dates - references/from-file.md section 4): pre-promo,
promo and post-promo daily averages for spend, sales, orders, CPC, CVR, ACOS and ROAS. The
pre period is the 14 days before the window (the normal window of pacing-rules.md section 1,
pulled at store level here, so it exists in "all at once" mode too); the promo period is the
confirmed reset window; the post period is the earliest full days after the window, up to 3,
ending no later than today - 2 - so a recap asked weeks later still shows the days right after
the promo (per-item pacing keeps its own latest days, references/pacing-rules.md section 1). In
"all at once" mode there is no per-item pull, but this store-level one is cheap: three
store-level daily queries. With 1-2 post days, say how many; with 0, the post row reads "not available yet - from {window
end + 3 days}" and no change is computed against it. Rates
are recomputed from sums and the report names all three windows. Say when sales are still being
attributed (references/pacing-rules.md section 4, "Attribution lag"). If the store's
sales fell sharply after the promo and the drop sits in campaigns that are not spending
their budget, say plainly that budget is not the cause and suggest checking stock, buy box and
listing status - do not suggest raising budgets into it.
Then show the write preview and ask which rows to execute. The suggestion is a suggestion: the customer can drop items, change a suggested pace, or stop at the list. Do not write from the restore list alone; the customer's confirmation must identify the approved scope.
Read references/execution-safety.md before the first
write of the run, and again before continuing or undoing a reset - it holds the full column
meanings, the stale-check procedure (clocks, matching this run's own rows), the row states and
undo. The rules below may never be skipped.
Plan file first - it is both the undo file and the resume state. Before the first
write, re-read the current value of every item about to change (get_entity_metadata) and
give the user a file (CSV / Excel), one row per object + field, with these columns:
runId, profileId, timezone, staleCheckFrom, objectType, writeRoute,
internalId + discriminators, amazonId, name, field, prePromoValue, targetSource,
valueBeforeRun (the undo value), steps, lastCompletedStep (0),
expectedCurrentValue (= valueBeforeRun at creation), writtenAt, writeResult,
readBackValue, rebasedAt, holdUntil, holdReason, bidAudit (schedule reminder rows
only), status (planned, or held).
staleCheckFrom is recorded immediately before the first restore-list log query
starts - one value for every row of the run, never the time the plan file was made.Stale check - before every write, including resumed steps and undo. Both conditions:
expectedCurrentValue, compared as
numbers at the field's precision.writtenAt (or
staleCheckFrom for a row never written) to now, has no row except this run's own MCP
writes. Any other row, from any source, -> stop (stoppedChangedByOthers; customerDecides for a row never written) and ask,
even if the value has since been set back.A row not yet written whose current value differs from the log's last value goes to "you
decide" (customerDecides). Check per write batch, not per object: one current-value read and one log query
covering every object in the batch; an object that fails is dropped from the batch and the
rest go ahead. An empty log result can be a wrong filter: a wrong id space returns 0
rows with no error, so prove each write type's filter once - against the known window rows of
its targetSource: log items. A file-only batch with no proven shape runs the check without
resourceIds and must read it completely, or is not written. Query shapes and the proof:
execution-safety.md section 2.
Write in this order, each through its owning skill and its confirmation rules:
managed-group settings (sparkx-edit-ai-group; a group total budget rescales its
campaigns, so re-read and re-base that group's campaign rows before writing them -
references/restore-list.md section 4) -> portfolio caps -> budgets -> bids
(keyword / target, then ad group default bids) -> placements (sparkx-edit-ads). Split
batches by campaignType (budget and ad-group bid batches must be one type) and keep each
under the write skills' caps.
Today's step only. For stepped items, write today's value; the later steps are a plan.
MCP cannot schedule writes - the customer says "继续复位" on each following day. On that
day drive the work from the plan file, not from a fresh restore list: handle every row
by its status (execution-safety.md section 3), running the stale check before each write.
Do not write a step twice on the same store day.
Read back every written object and update its row (execution-safety.md section 3). An
ambiguous result sets needsReadBack, never a completed step. Report what moved, what did
not, and why.
"撤回刚才的复位" = settle needsReadBack rows, mark every row whose step applied
undoPending (no restore step is written for it again), then write valueBeforeRun back -
group totals first, then the re-based campaign rows, then bids and placements - through the same
stale check, preview and confirmation; confirmed rows become undone and are never written
again; an ambiguous or failed undo stays undoPending. Schedule reminder rows stay held, so the
bid audit still runs. A later "继续复位" says the reset was undone and only finishes the undo,
bid audit and reminders; resetting again is a new run with this plan file, which recognises the
earlier restore and undo writes (execution-safety.md section 4).
Held items and schedules that end later stay in the same plan file (status: held,
holdUntil); come back with "继续复位" and that file - not a new run, which would not
recognise this reset's earlier writes (execution-safety.md section 3). A held item is judged
again then; a held schedule row is never written - once it has ended, its group gets the bid
audit (references/restore-list.md section 5), the result goes in bidAudit, and the row becomes
ended - or, while another schedule of the group is in effect, scheduleStillRunning and the
row stays held to the date section 5 gives.
A waiver ("这批直接执行") follows the owning write skill's waiver rules exactly - the scope is what the user said, and the verification still runs.
A full worked conversation is in references/example-and-report.md.
# 大促调整复位 · {店铺}
**大促时间段**:{start} ~ {end}({时区}) **复位方式**:{根据表现分批 / 不看表现、全部直接复位}
{仅分批模式:**表现取数**:{post start} ~ {post end}}
**本次纳入的改动**:SparkX 平台人工操作{ + 大促助手执行、并与你的大促变更记录对上的操作——仅在你提供了这份记录时}{ + 你确认需要纳入的其他来源}
{没有大促变更记录、但窗口内有助手执行的改动时:**AI 助手执行的改动**:{n} 项——在你确认属于这次大促之前,列在“需要你决定”里}
{有亚马逊后台的改动时:**亚马逊后台的改动(来源不明,默认不复位)**:{n} 项——列在下面由你决定}
{客户确认是自己改的:在**本次纳入的改动**中加上“亚马逊后台操作(已由你确认)”,并去掉上面一行}
{数据不足、只覆盖部分、时间按 UTC 等说明}
## 总览
| 分组 | 数量 | 怎么处理 |
|---|---|---|
| 托管组设置复位 | {n} 个组 | 投放目的、目标 ACOS{、出价范围}改回大促前 |
| 立即复位(大促后表现变差) | {n} | ... |
| 分几天逐步恢复 | {n} | ... |
| 一次恢复到大促前 | {n} | ... |
| 暂缓 | {n} | Deal 还没结束 / 节假日暂缓到 {日期}。保留在计划文件里 |
| 需要你决定 | {n} | 大促期间被调低 / 大促后又改过 / 大促期间新建、暂停或开启 / 加价不到 10% / 亚马逊后台的改动 |
| 排期仍在生效 | {n} | 这次不复位;{日期}结束。保留在计划文件里,到期后用同一份文件说“继续复位” |
| 排期已结束 | {n} | 排期设置已自动恢复;检查当前竞价是否仍偏离常规范围 |
| 排期仅供参考 | {n} | 按周排期或非本次大促的排期,不处理;生效期间会推迟该组的竞价检查 |
| 需在平台上修改 | {n} | MCP 没有写入方式(SB 广告组默认竞价) |
| 无需处理 | {n} | 已是原值 / 已归档 |
{全部直接复位时:总览只有“托管组设置复位”“一次恢复到大促前”“暂缓”“需要你决定”“排期仍在生效”“排期已结束”“排期仅供参考”“需在平台上修改”“无需处理”九行;保留“大促复盘”(按无日期的文件复位时略去);不写两头算账和搜索词;“一次恢复到大促前”表去掉“大促后花费({n} 天)”列,理由写“按你的选择,不看表现,直接恢复到大促前设置”}
整店参考:见下方“大促复盘”表(大促前 / 大促期间 / 大促后的日均;按无日期的文件复位时没有)。
{给了每天预算时的预算核对:复位后每天约 {x},你的预算 {budget}——够用 / 超出 {n}}
## 托管组设置复位
| 托管组 | 投放目的 | 目标 ACOS | 其他 |
## 立即复位(大促后表现变差)
| 对象 | 现在 | 复位到 | 大促后花费({n} 天) | 理由 |
## 分几天逐步恢复
| 对象 | 现在 | 每天复位到 | 大促后花费({n} 天) | 理由 |
## 一次恢复到大促前
| 对象 | 现在 | 复位到 | 大促后花费({n} 天) | 理由 |
## 暂缓
| 对象 | 大促前 | 现在 | 暂缓到 | 原因 |
## 需要你决定
| 对象 | 大促前 | 现在 | 情况 |
## 两头算账(仅分批模式)
| | 每天 |
|---|---|
| 复位后省下的花费 | {x} |
| 可能少掉的销售额 | {y}(ROAS {r}{,高于你的目标——这些设置原本是有效的}) |
## 值得保留的搜索词(仅分批模式;本 Skill 不写入)
| 搜索词 | 活动 | 订单 | 点击 | ROAS | 建议精准词竞价 |
## 排期与结束后竞价(按店铺日期 {今天} 核对)
| 托管组 | 阶段 | 时间段 | 投放目的 / 目标 ACOS | 状态:生效中({日期}结束)/ 已结束 / 按周排期或非本次大促(仅供参考) | 竞价检查(每组一次) | 会怎样 |
## 大促复盘(两种复位方式都有,按无日期的文件复位时略去;按日均)
| 阶段 | 日期 | 花费 | 销售额 | 订单 | CPC | CVR | ACOS | ROAS |
{销售额仍在归因时:注明哪几天的销售额还会补进来、到哪天为止}
## 需在平台上修改
| 对象 | 大促前 | 现在 | 原因 |
## 无需处理
| 对象 | 现在 | 原因(已是原值 / 已归档 / ...) |
---
_生成时间:{timestamp} · 数据源:SparkX AI MCP · Skill: sparkx-promo-reset v{version}_
Name every object by its name (campaignName, aiGroupName, keyword text), never by an
internal id; an export adds the Amazon id column (see the base skills' platform-notes ->
"Naming things in your answer").
The JSON shape is in references/example-and-report.md.
Build it only from the finalized structured_report; do not recalculate or reinterpret the
restore list while rendering. Show plan-file delivery and stale-check status, but keep the plan
/ undo file as a separate machine-readable attachment. Follow
references/html-report.md.
bidOptimization=false) as a
side effect - say so before writing an SB placement (see sparkx-edit-ads
references/write-campaign.md). Where AI placement bid optimization is on, a restored
placement value may not be what ends up live.0 is not a
stock-out when a merchant-fulfilled offer exists - report it as a lead.pacing-rules.md; show the numbers so the customer can override.Situation-by-situation handling (a write refused, data missing, an answer that does not fit) is in references/error-handling.md.
sparkx-promo-prep; adjusting during it - use
sparkx-promo-monitor.references/restore-list.md section 5).references/pacing-rules.md section 1); a full harvest with negatives and
per-term rules is sparkx-search-term-diagnosis, and adding the keywords is
sparkx-edit-ads.references/error-handling.md (opens in a new tab)references/example-and-report.md (opens in a new tab)references/execution-safety.md (opens in a new tab)references/from-file.md (opens in a new tab)references/html-report.md (opens in a new tab)references/pacing-rules.md (opens in a new tab)references/restore-list.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
promo-reset, post-promo, bid-recovery, budget-restore, amazon-ads
npx claudepluginhub sparkxai/sparkxai-mcp --plugin sparkx-ai-mcp23 skills in this plugin
/sparkx-ads-structure-analysisAnalyze how ad spend and efficiency break down across a structural dimension — campaign type (SP/SB/SD), marketplace/site, portfolio, weekday-vs-weekend, hour-of-day, or campaign size tiers (head vs long tail) — and diagnose where spend share and efficiency don't match (over-invested underperformers, under-invested strong performers). Optional sub-scenarios: SP deep-dive (manual vs auto targeting), SB new-to-brand focus. Use when the user asks "我 SP/SB/SD 结构合理吗", "各站点谁强", "SB 新客到底行不行", "工作日和周末哪个好", "structure analysis", "campaign type breakdown". Not for a single-entity trend/anomaly check (use sparkx-weekly-ads-report / sparkx-monthly-ads-report / a lighter ad-hoc analysis skill), product-level diagnosis (use sparkx-product-diagnosis), or search-term diagnosis (use sparkx-search-term-diagnosis)./sparkx-ai-managed-auditAudit AI managed groups (托管组) against a stated success standard: grade every managed campaign 卓越/优秀/良好/一般/差 by the group's objective, pull out the 差 ones, and recommend what to change in the group's configuration — split the group, objective, target ACOS, AI personality, action space, review cadence. Use when the user asks "AI 托管到底有没有效果", "哪些托管组没做好", "给我出份 AI 托管组诊断/评级/审核/POP 报告", "按我们的成功标准给广告活动评级", "AI managed group audit", "grade my managed campaigns". Not for descriptive performance recaps without a grading standard (use sparkx-weekly-ads-report / sparkx-monthly-ads-report), not for ASIN-level or keyword-level diagnosis (use sparkx-product-diagnosis), and never for applying changes (use sparkx-edit-ai-group / sparkx-edit-ads).Other plugins' skills for the same job