/sparkx-ai-mcp:sparkx-search-term-diagnosisfrom sparkx-ai-mcp
Tags every search term (keyword vs ASIN, branded vs non-branded, order tier) and reports spend distribution, brand vs non-brand, zero-order waste with negative candidates, harvest candidates for exact match, and fragmented exact keywords using fixed rules and thresholds from the store's own order value and target ACOS.
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.
No MCP tool of its own. It reads with three tools and hands execution to one skill:
| What | Tool | Owning skill - read it first |
|---|---|---|
| Search terms, keyword performance, totals | get_ads_perf | sparkx-query-ads-performance |
| Exact keywords and existing negatives, campaigns, managed groups, brand names | get_entity_metadata | sparkx-query-entity-metadata |
| Keyword creation/change history and recent campaign/ad-group changes | get_operation_log | sparkx-query-operation-log |
| Adding negatives / exact keywords, pausing a keyword | batch_update_ads | sparkx-edit-ads |
Dependency - install the four skills above alongside this one. Skills install as sibling directories under your agent's skills root (see the the installation notes in README); the
../sparkx-.../links resolve against it. Auth, errors, pagination, date limits and currency rules are in the query skills'references/platform-notes.md- read it once.
| Reference | Read it when |
|---|---|
references/data-retrieval.md | Pulling data: which calls, in what order, and the gotchas (filter semantics, field names, paging) |
references/classification.md | Tagging and the five views: exact rules, thresholds, tie-breaks, the reference script |
Examples are in Chinese because most customers are. Answer in the user's language and pass
language to get_ads_perf to match.
classification.md). Run them as code when you can; never re-label a term by feel.
The same data must produce the same lists and totals every time.sparkx-edit-ads with its own preview and
confirmation.references/classification.md.Resolve the store with get_user_authorized_context. One store per run - thresholds
are in the store's currency and order value.
classification.md).data-retrieval.md -> Narrowing the scope).Pull data-retrieval calls 1, 3 and 9 first - the pre-fills below come from them. Then confirm three inputs, the first two pre-filled by you:
Brand terms. Pre-fill the brand from get_entity_metadata(entity='asin') ->
asinBrand, then list candidates found in the period's search terms: sub-brands and
product-line names that appear in the store's own asinTitles, other spellings of the
brand (spacing, other scripts), and close misspellings. Let the customer tick them and
add more, including competitor brand terms if they want. Never treat an unconfirmed
candidate as a brand term.
Target ACOS - one number for the whole store: "你整店希望 ACOS 控制在多少?". If the customer has none, use the unfiltered whole-store ACOS for the period and say in the first line of the answer that the thresholds use it and can be recomputed. Do not use managed-group target ACOS as the threshold - stores have dozens of groups with targets that vary widely and are often set high on purpose; managed groups are only used to label switches. A product/campaign-scoped run therefore needs a separate unfiltered store-total call for this fallback; never derive the fallback from the scoped total.
Product stage - mature, or new / in launch. It sets the harvest threshold (4 vs 2 orders in 30 days). Ask; do not infer it from listing dates.
Optional: a negative whitelist of word roots that must never be proposed as negatives (e.g. brand / model / year roots for compatibility products). Ask once; reuse the inputs in later runs in the same conversation.
Full call plan and gotchas: references/data-retrieval.md.
In short: scoped totals plus an unfiltered store total for the fallback target; search terms
with orders; zero-order terms above the threshold; source match types; exact keywords in use
and their current/prior performance; current negative coverage; candidate keyword age/change
history; brand data; managed-group switches for the listed terms only. Do not page through every search term - the zero-order small
terms are derived from totals.
Apply references/classification.md and save the result to
a file first (one row per search term with its labels and numbers, plus the totals). The
answer and any export are built from that file, never from a fresh query or a recomputation,
so the conversation and the file always agree.
Lead with the scope line, then five short parts:
钱花在哪 (V1): a small table - core (≥3 orders), potential (1-2), zero-order above the
one-order target spend, zero-order small terms - with spend, share and ACOS; keyword and
ASIN traffic shown separately where it matters. Zero-order small terms are one line with
their amount; never list them term by term. Then add where small unconverted spend comes
from, measured at search term x match type (data-retrieval.md) and named as such -
e.g. "没出单的小额流量(按搜索词 × 匹配方式计)里,48% 来自自动广告的宽泛匹配" - plus the top
campaigns when search-term x campaign detail was pulled. Point to where to look (harvest the
good terms there, check its negatives, split it out to watch it); don't recommend pausing a
match type on this number alone.
品牌 / 公域 (V2): brand share of the listed keyword spend (say "已列出的关键词花费"), brand
ACOS, non-brand ACOS and the ratio,
and the direction (classification.md -> V2). Skip V2 with a reason if the customer
declined to give brand terms.
零单浪费 (V3), in three groups (classification.md -> V3):
Brand terms, the store's own ASINs and whitelisted roots are held back and counted at the end.
扶正候选 (V4): count, orders, top 10 with source match type. Mention managed groups whose harvesting is off.
投放碎片 (V5): enabled exact keywords with ≤3 orders in 30 days - count, zero-order count and spend. Split them into eligible for review versus insufficient sample. A fold-back suggestion for a mature product requires at least 14 complete observed days and 10 clicks; unknown age is insufficient evidence. Never use campaign age as keyword age.
End with: "要完整清单文件吗?要执行哪些?"
Export (only if asked): four sheets from the saved file - all tagged search terms, negative candidates, harvest candidates, fragmented keywords. Counts and spend must match the answer exactly.
Execution: this skill writes nothing. For "把这些否了" / "这些加成精准" / "暂停这个词",
hand the rows - with campaign type, campaign and ad group from data-retrieval call 10 - to
sparkx-edit-ads and follow its resolution, preview and confirmation rules. Its route
limits decide what is possible:
negativeKeyword + create (campaign level, SP only);negativeKeyword + copy to the ad group (SB accepts ad-group level
only);negativeTarget + create at ad-group level, and only into a
product-targeting ad group - edit-ads refuses others;keyword + create (SP / SB); pause: keyword + updateStatus.Suggest re-running in about 30 days.
客户:看看上个月搜索词,钱花哪了。
AI:先确认口径:① 品牌词:商品信息里的品牌名是 “Acme”,搜索词里还出现了 “acme pro”“akme”——这两个算你们的品牌词吗?② 目标 ACOS:你整店希望 ACOS 控制在多少?没有的话,我先按店铺近 30 天的实际 ACOS 32% 算。③ 产品是成熟期还是新品推广期?
客户:都算;目标按 35%;成熟期。
AI:9/10–10/9(最近 3 天的订单可能还没归因完,未计入)搜索词花费 $18,420:
- 钱花在哪:出单 ≥3 的核心词占 41%、ACOS 22%;零单、且已花超过一单目标花费($14)的词占 13%;另有 24% 花在大量零单小词上,其中 52% 来自自动广告的宽泛匹配。
- 品牌 / 公域:品牌词占关键词花费 12%、ACOS 9%;非品牌 ACOS 是品牌的 3.4 倍——主要靠公域。
- 零单浪费:你在投的精准词里有 7 个 0 单、合计 $260,例如 “water jug” 花了 $41 → 建议暂停;否词候选 63 个、$2,410,例如 “replacement filter cartridge” 花了 $96、0 单 → 精准否定,其中 21 个在已开“添加否定定向”的托管组里,已标出;另有 4 个零单词本身也是你在投的精准词,没有列为否词。
- 扶正候选 18 个:例如 “water filter pitcher” 在自动广告里 30 天 6 单、ACOS 24%,还没有单独精准投放。
- 投放碎片:启用中的精准词 310 个,30 天 ≤3 单的 190 个,合计只花 $640。
要完整清单文件吗?要执行哪些?
| Situation | Handling |
|---|---|
A metric filter returns unknown field | The metric must also be in metrics (see data-retrieval.md) |
| A grouped query with a metric filter returns nothing | Metric filters apply after grouping - see data-retrieval.md |
hasNextPage stays true | Keep paging; never classify on a partial page set |
| Very little spend in the period (a few hundred in store currency) | Say the sample is thin and the lists are indicative |
| Customer declines brand terms | Skip V2 and say why; keep the other views |
What SKILL.md sets; muted values are Claude Code's defaults
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