/sparkx-ai-mcp:sparkx-promo-monitorfrom sparkx-ai-mcp
Monitors Amazon ad performance during promotions (Black Friday, Prime Day, holiday events). Checks spend pace, budget depletion, ACOS limits, stock levels, and paused/changed campaigns. Enables capped adjustments to push winners and slow losers.
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 |
|---|---|---|
| Today by hour, keyword x placement by hour, event days so far | get_ads_perf | sparkx-query-ads-performance |
| Budget usage now, groups, schedules, stock, current values | get_entity_metadata | sparkx-query-entity-metadata |
| What changed today, out-of-budget events | get_operation_log | sparkx-query-operation-log |
| Group target / budget, schedule changes | save_sp_sb_ai_group_schedule / save_sp_sb_ai_managed_group / edit_sd_ai_managed_group | sparkx-edit-ai-group |
| Budgets, bids, placements, status | batch_update_ads | sparkx-edit-ads |
Dependency - install all five skills above alongside this one (and
sparkx-promo-prep, whosereferences/change-log.mddefines the change log this skill reads and appends to). 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 goes through the owning write skill's rules - its confirmation protocol, its payload contract, 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. The points that matter most on an event day:
currentBudgetUsagePercentage only updates after another
~5% of the budget is spent - always quote usageUpdatedTime with it. See the entity-metadata
skill's budget-usage.md.timezone
(get_user_authorized_context), not the machine's - the machine can be a day ahead.| Reference | Read it when |
|---|---|
references/pace-and-states.md | Step 2-3: the pulls, the normal-day curve, run-out time, campaign states and their thresholds |
references/moves.md | Step 4: what each goal changes, step sizes, guards, managed groups, the pause and stock questions |
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 and every write confirmation remain in chat; an HTML file never counts as approval.
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 today is outside the event window, required answers are missing or data
is unavailable, show that real boundary and next step; never invent event-day results to make
the document look complete. Markdown, HTML and any external document must all come from the same
current-run structured_report.
Words to the customer. Say "no orders yet", "below target", "lower", "room to gain traffic"; never "burning", "waste", "worst" or "cut". The state Burning keeps its name inside this skill and is shown as "spending, no orders yet". Lead with what is working, then the problem with its numbers, then the moves already prepared.
On an event day the questions come every few hours: is the budget going to last until the evening, which campaigns are selling and starving, which are burning money, is something paused that should not be, can I stop these targets, can I keep spending on a product that is running out. This skill reads the store's hourly curve and current budget usage, compares them with a normal day, puts every campaign into a state, and proposes small, capped moves that fit the goal the user picks right now - each with its numbers. Nothing is written until the user confirms, and every change goes into the promo change log so the reset after the event finds it.
references/moves.md guard 3). No budget is ever cut below today's spend.Terms, as in prep. Event days (the window) = the warm-up start to the event end - every one of them is monitored, warm-up days included. Sale days = the event start to the event end only. Without a warm-up the two are the same.
The first regular check of the day = the first check at or after 08:00 store time. The
00:05-00:30 day-switch check never counts: yesterday's last hours are not in yet and today has
no data, so it only writes the planned budget decreases and any planned raises the user chose
to defer past midnight (references/moves.md section 1).
Everything this file ties to "the first check of the day" - fixing todayBudget, the brand
check, the morning raise, the catch-up of missed rows, yesterday's review - runs at the first
regular check.
get_user_authorized_context; one profileId per run). Compute today's
store date and current hour from its timezone.../sparkx-promo-prep/references/change-log.md):
it carries the event, the window, the event budget and its mode (budgetMode: a daily cap or
a total for the window) with the day roles, the goal, the hard limit, the deal and
leave-alone lists, the brand names and the scope chosen in prep, and the planned per-campaign,
per-day budget rows (targetDate) that the 21:00 check writes from (rows for today still
planned mean a check was missed - write them first, moves.md section 1). Confirm them in one line instead of asking
again. Without it, ask for the event dates first, then the event budget (a cap for every day,
or a total for the window) and any hard limit - and start a change log in the prep format
(../sparkx-promo-prep/references/change-log.md) at the first write: the plan columns from
the user's answers (skill = promo-monitor), and for each object written its valueBefore
read right before the write. That first valueBefore is the pre-promo value the cut floor
(moves.md section 1) and the reset use; MCP keeps nothing between conversations, so hand
the file back after every write and ask for it at the next check.
Today's budget (todayBudget): the prep log's dayBudget for today; without day roles,
the daily cap, or for a window total, (total - spent through yesterday) / the event days
left including today - never the remaining after today's spend, which would shrink today's
budget as today spends (total $10,000 over 2 days, $3,000 spent by 13:00 on day 1: today's
budget is $5,000, not $3,500); capped by the daily cap if the user also gave one. Fix it at
the first regular check of the day (below). The window total covers every event day, warm-up included, so
"spent through yesterday" and window spent both count from the warm-up start (the
event start only when there is no warm-up): window spent = a daily pull from that day to
yesterday plus today's spend so far (pace-and-states.md section 2), and window
remaining = total - window spent.
Large account and no scope yet (roughly 500+ enabled campaigns): say how many campaigns
there are and let the user choose - the whole store, the main campaigns (as prep defines
them: 80% of the last 14 days' spend; with a prep log, reuse its list), or the products /
campaigns they name. Store-level pace and
today's changes always cover the whole store; campaign states, moves and target questions
stay inside the chosen scope. Never narrow it on your own.
Stock: the platform's figure refreshes once a day; on an event day invite the customer's
own, more current source (ERP / inventory export, a sheet, a connected inventory tool), worded
as a way to sharpen the call, not as a shortcoming, and use it first - see ../sparkx-promo-prep/references/own-stock.md.sparkx-promo-prep; after it, to sparkx-promo-reset. Warm-up days count as inside. Only inside the
window go on.| Question | Options |
|---|---|
| What do you want right now? (can pick several) | Push harder where it works / Slow down, protect the budget / Push specific ASINs (name them) / Push a category (name it) / Cut today's spend by an amount (name it) / Stay inside my limit (name it) |
| Has today's total budget changed? | No / a new number |
| Anything changed since the last check? | Something selling out, a deal ended early, a listing problem - in their words |
"Push" and "slow down" together: slow down wins. An unanswered question is not a zero - say what was not answered and act on that: no total means raises are capped at the prep total, or not made if there is none.
If the user only asked a narrow question ("can I pause these targets?", "can I add budget to
this ASIN?"), answer that one with the matching section of
references/moves.md and offer the full check after.
Full pulls and formulas: references/pace-and-states.md.
references/pace-and-states.md section 2).references/pace-and-states.md section 2).Then compute the store pace (spend so far vs a normal day at the same hour, and the projected day total vs the budget) and each campaign's projected run-out hour.
At the first regular check, begin the customer report with Yesterday's review / Today's focus (at the top, right after the header): yesterday vs the baseline's daily average - labelled with its dates, "the 7 days before yesterday" or "the 7 normal days before the warm-up" - for spend, sales, orders, CPC, CVR, ACOS and budget usage (orders, sales and ACOS marked provisional); the top five material campaign anomalies, measured against the store's own lift so the event itself is not the anomaly, with a likely cause and an action; then three priorities for today. Recompute rates from sums. This is a compact morning section, not a second full campaign report.
Checked in this order, the first that applies wins (defaults; exact rules in
pace-and-states.md section 6):
Every campaign gets exactly one state. All orders and ACOS below are settled figures; only "too few clicks" counts all of today's clicks.
| State | When |
|---|---|
| Left alone | On the user's leave-alone list |
| Managed | In a running managed group - judged as a group |
| Too few clicks | Under 20 clicks today - not judged; if its settled ACOS is already over the limit it goes on the watch list (watchReason: overLimit) |
| Burning | 30+ settled clicks, no order, half its budget or more gone |
| Spending, not converting | 20+ settled clicks, no order |
| Clearly over the limit | 20+ settled clicks, settled ACOS over 1.3x the limit - the only ACOS state that leads to a cut |
| Over the limit, watching | Settled ACOS over the limit but not clearly over: at or under 1.3x, or 20+ clicks today but under 20 of them settled - no raise, no cut yet |
| Held | Settled ACOS over the raise line, at or under the limit - no raise, no cut (over prep's holdUpperAcos: flagged overFloor, a step down is offered under "slow down") |
| Winner, running out | 2+ settled orders, ACOS at or under the raise line, and out of budget now or projected to run out before 21:00 |
| Selling, under-spending | ACOS at or under the raise line, projected to use under half its budget |
| Selling, on pace | ACOS at or under the raise line |
| Mixed - keep watching | None of the above - in practice no settled ACOS yet |
Two lines, both percent ACOS (pace-and-states.md section 6): the limit (hard limit - the
non-brand limit on non-brand campaigns - else prep's ceilingAcos, else the store-level
fallback; never a campaign's own ACOS) decides "clearly over the limit" (1.3x, settled) and
cuts; the raise line (prep's raiseAcos = min(target, floor, hard limit); for a managed group
while a schedule is in effect, pace-and-states.md section 7) decides every raise. A held campaign over prep's holdUpperAcos loses money: it is flagged overFloor.
Put the today's changes first - a pause on something that was selling, or a budget cut, is
often the biggest single cause of a bad event day. Leave out this plan's own writes (prep's and
earlier checks' - they match written rows of the change log, prep change-log.md Rules) - and
ask only about the big ones:
At most 3 questions (an ASIN's keyword and product-target campaigns are one question). With more, first offer "keep them all (recommended) / ask about the big ones only / let the check decide". Smaller changes are kept as they are and listed in the report notes with who made them (a person / Amazon's side / AI). Never undo any of them; a question answered today is not asked again today.
Rules, step sizes and guards: references/moves.md. Summary:
references/moves.md section 4); a looser target on the schedule if the group converts well under its
target in effect, never above the limit (the hard limit, else prep's ceiling - the same limit
as the campaign states).references/moves.md section 6). Budget cuts always require the user's confirmation; they
never go below today's spend (a budget below it stops the campaign silently - to stop spend,
offer a pause), and go below the pre-promo budget only with the user's explicit yes. Guard 3
may be set aside for it, group-level protection included, with the user's yes - on the last
event day only when the stock would run out before the event ends today (references/moves.md
guard 3).sparkx-edit-ai-group) -> budgets -> bids -> placements -> statuses
(sparkx-edit-ads). Split batches by campaignType; stay under the write skills' caps.skill = promo-monitor,
valueBefore read right before the write, logField). When the write came from a planned
day-role row, set that row to fulfilled (or skipped, with the reason, if a different value
was written) in the same update - otherwise the next check's catch-up writes it again. Hand
the file back. Then fill the "Executed and
not executed" table: every proposed move is shown there as written, failed, needs read-back,
needs review (references/moves.md section 4) or not written, with the reason (waiting for a yes, a guard, declined, changed by someone else).moves.md section 1) and that
sparkx-promo-reset brings everything back after the event.A waiver such as "apply the ready ones without asking" 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.
# 大促中盯盘 · {店铺} · {大促} 第 {k}/{n} 天
**现在**:{date} {hh:mm}({时区})· 花费数据到 {latestDataHour}:59,订单已稳定到 {settledThroughHour}:59 **现在的目标**:{冲量 / 放慢 / 推指定 ASIN / 守住上限} **今天的预算**:{todayBudget}({每天上限 / 整个大促总额:已花 {spent},还剩 {remaining}}) **上限**:{ACOS / ROAS,或“未给”} **范围**:{全店 / 主力活动 / 你指定的商品}
{仅当天第一次常规检查:}
## 昨日复盘 · 今日重点
| 指标 | 昨日 | {昨天之前的 7 天 / 预热前 7 个正常日}({起}–{止})日均 | 变化 |
| 异常对象 | 变化 | 可能原因 | 今天怎么做 |
**今日重点**:{最多 3 条}
## 今日投放进度
| | 今天到现在 | 平时同一时段 | 倍数 | 预计全天 | 预算 |
{店铺一行;有用时每个托管组再各一行}
{品牌检查(当天第一次常规检查):品牌词 CPC {+x%},品牌词点击占比 {y%}(平时 {z%}),搜索结果顶部 CPC {+w%}——{没有被抢的迹象 / 可能被抢}}
## 托管组
| 托管组 | 状态 | 已稳定的 ACOS | 当前目标(排期 / 托管组) | 总预算(含按表现调预算后的上限) | 几点花完 |
## 计划预算(来自大促前准备)
| 活动 | 日期 | 当天策略、倍数 | 现在 | 计划 | 状态 |
## 今天的改动
| 时间 | 谁 | 做了什么 | 对象 | 改前 → 改后 | 要确认的 |
## 建议调整
| 对象 | 状态 | 现在 | 建议 | 理由 | 需要你确认 |
{按 托管组(排期 / 总预算)→ 预算 → 出价 → 顶部溢价 → 开关 分组}
## 已执行 / 未执行
{在 Step 5.2-5.3 之后填写;写入之前写“还没有写入”,并列出等你确认的项。}
| 对象 | 改前 → 改后(回读) | 结果 | 未执行原因 / 下一步 |
{结果:已写入 / 失败 / 待回读 / 需人工核对(请在平台上修改) / 未写入(等你确认、被保护规则拦下、你不同意、被别人改过)。“建议调整”里的每一行都要出现在这里。}
## 先观察(这次不动)
| 对象 | 状态 | 为什么现在不动 | 什么时候再看 |
## 库存
| ASIN | 按今天速度还能卖几天 | 大促还剩几天 | 在途 | 保护措施(需你确认) | 备注 |
**下次检查**:{time}。大促结束后:运行 sparkx-promo-reset。
---
_生成时间:{timestamp} · 数据源:SparkX AI MCP · Skill: sparkx-promo-monitor v{version}_
Name every object by its name (campaignName, aiGroupName, keyword text), never by an internal
id; an export adds the Amazon id column.
The JSON shape is in references/example-and-report.md.
Build it only from the finalized structured_report; do not recalculate or reinterpret the
check while rendering. After writes, update the execution table from read-back before handing
over the final file. Follow references/html-report.md.
inBudget; budgetSnapshot can differ from
the configured dailyBudget (on managed campaigns by a lot). Quote the snapshot with the
remaining amount, and the update time with both.pace-and-states.md section 8). Sellers with SP-API only; FBA 0 is not a stock-out when a
merchant-fulfilled offer exists.Situation-by-situation handling (a write refused, data missing, an answer that does not fit) is in references/error-handling.md.
sparkx-promo-prep.sparkx-promo-reset (it restores what this skill changed).sparkx-create-campaign /
sparkx-edit-ads if the user asks.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
amazon-ads, promotion-monitoring, budget-management, sp-pc, sb, sd
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)./sparkx-asin-deep-diveDiagnose one named ASIN or parent ASIN: why sales fell or ACOS rose, where traffic comes from, whether its ad structure is fragmented, and which variants deserve budget. Combine account ad data with SQP / ABA demand and share, limited competitorProduct data and brand peer benchmarks; use the customer's SellerSprite for organic rank and broader category comparisons when available. Use for "这个 ASIN 为什么销售下滑 / ACOS 为什么高" or "哪个子体该留". Read-only recommendations. To find which products need diagnosis first, use sparkx-product-diagnosis; for search-term negatives or harvest decisions use sparkx-search-term-diagnosis. For store-, category- or brand-level SQP analysis use sparkx-sqp-insight./sparkx-category-scorecardCompare advertising performance and available brand peer ranges for one specified Amazon category or a confirmed set of ASINs. For a broad store request, start with the advertised products and propose a scope. Use when the user asks "我们这个类目跟同行比怎么样", "保健品的 ROAS 算好吗", "Collagen 的 ACOS 目标设多少合理", "这个类目表现到底好不好". Read-only; no whole-store category ranking, budget allocation, or advertising edit - 不出预算清单,也不改账户。/sparkx-create-ai-groupCreate a NEW AI managed group (托管组) for Amazon Sponsored ads and place campaigns under it when required. Routes by ad type - SD via create_sd_ai_managed_group (campaigns required); SP/SB via save_sp_sb_ai_managed_group (create mode). Use when the user wants to create / set up / 新建 / 建一个 a managed group, or put campaigns under AI management for the first time, even without the exact words "managed group". When the user isn't sure how to set the group up, recommends a matching platform template (推荐托管组模板) - optional, never forced. This creates the group itself - it is NOT for enabling or editing an existing group (use sparkx-edit-ai-group) or deleting one (use sparkx-delete-ai-group)./sparkx-create-campaignCreate new Amazon Sponsored Products, Sponsored Brands and Sponsored Display campaigns in bulk (`create_sp_sb_campaign`, `create_sd_campaign`), add ad groups to an existing campaign (`create_sp_ad_group`, `create_sb_ad_group`, `create_sd_ad_group`), and create advertising portfolios (`create_portfolio`) - promoted products, negatives, SB and SD creatives, and either auto targeting, keywords, product targets or SD audience targeting. New-campaign creation also supports placement adjustments and an optional AMC audience. Use when the user wants to build / launch / set up a new campaign of any type - 新建广告活动 / 建一个自动广告 / 开个手动词的活动 / 建个 SB 或 SD 活动 / 按这批 ASIN 建活动 - add ad groups under an existing campaign, or create a portfolio (广告组合). It is not for editing existing objects (use sparkx-edit-ads), for AI managed groups (use sparkx-create-ai-group), or for reading data (use sparkx-query-ads-performance / sparkx-query-entity-metadata).Other plugins' skills for the same job