/sparkx-ai-mcp:sparkx-asin-deep-divefrom sparkx-ai-mcp
Diagnoses a single ASIN or parent ASIN on Amazon: analyzes sales declines, ACOS increases, traffic sources, ad structure fragmentation, and variant budget allocation. Combines ad data with SQP/ABA demand and competitor benchmarks. Read-only recommendations.
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.
sparkx-product-diagnosis answers which products have a problem. This skill answers why this
one does, for a single ASIN or parent ASIN, and it is the heavier of the two by design — it pulls
targeting, search terms, placements and operation logs that a catalogue-wide pass cannot afford.
It calls get_user_authorized_context, get_ads_perf, get_entity_metadata and
get_operation_log, and uses get_market_search_perf / get_peer_benchmark when the question
and coverage warrant them. It can also use the customer's own SellerSprite MCP when connected.
It writes nothing. Every "pause", "lower the bid", "add a negative" in the
output is a recommendation for a human to execute, and the report must never say "已优化".
Three things it deliberately does not do itself, because another skill already does them:
| Not here | Where | Why not duplicate it |
|---|---|---|
| Negative-keyword and harvest decisions | sparkx-search-term-diagnosis | It derives its thresholds from the store's own order value and target ACOS; a second copy would drift from it |
| Account-wide channel / marketplace / portfolio share | sparkx-ads-structure-analysis | Different unit — that one divides an account, this one dives into a product |
| Judging which AI managed-group switches should be on | A managed-group audit | The action space differs per ad type (SP, SB and SD do not expose the same switches). Do not write a fixed switch list into this skill — see "Managed groups" below |
The templates below are written in Chinese because that matches this product's primary customer
base. They are structural illustrations, not literal text. Produce the report in whatever
language the user asked in, and set get_ads_perf's language parameter to match.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
asin | string | Yes | — | The ASIN to diagnose. A parent ASIN switches the report to parent mode (all children covered) |
profileIds | array[long] | No | — | Resolved the same way as the rest of the family; the ownership gate below must pass before anything is pulled |
granularity | enum | No | inferred | asin | parentAsin. Inferred from whether asin resolves to a parent; state which mode you ran in |
dateStart / dateEnd | string (YYYY-MM-DD) | No | Trailing 30 days ending yesterday | The analysis window. The comparison window is the immediately preceding equal-length period |
focus | enum | No | balanced | balanced | traffic | structure | acos | variants — which module to go deepest on. balanced gives all of them equal depth |
targetAcos | number | No | — | The customer's own target or break-even ACOS. Without it, efficiency judgements are relative to this product's own baseline and must be labelled 盈利阈值待确认. Never substitute an industry figure |
thresholds | object | No | the defaults in each section | Customer overrides for any analysis cut-point — wasteClicksMin, wasteSpendMin, lowStockDays, autoCampaignsMax, fragmentCampaignsMax, concentrationTop. Echo the values you actually used, so a reader can reproduce every classification |
Every number in this skill is an analysis cut-point, not a rule. They live in thresholds
with a stated default and must be printed in the output. A threshold that appears only in prose
cannot be tuned per customer and cannot be audited — and a bid or budget figure hard-coded into a
published skill is a review finding, not a feature.
Call get_user_authorized_context. A tool being listed is not proof of a connection: it must
return userId and authorized profiles for the tenant that owns this ASIN. Then confirm the ASIN actually sits in
that profile with get_entity_metadata (entity=asin) — not by requiring product-ad rows.
A product that was never advertised, whose ads were removed, or that runs only SB/SD (where the
promoted-product dimension does not exist) has no product-ad rows and is still perfectly ownable
and diagnosable. When ownership holds but no ad rows come back, say so and run the modules that
business and configuration data can still support.
If this fails, stop. Do not produce a report with estimated, remembered or placeholder ad figures. A diagnosis whose advertising half is invented is worse than no diagnosis.
Several of these questions are answerable from this platform, and those come first because they
need no third-party entitlement. Load sparkx-query-market-data for them - it is a dependency
of this skill, not an alternative to it: its reference files carry the coverage limits, week
alignment and low-sample rules these modules rest on, and the numbers cannot be read correctly
without them. Each of its two tools degrades on its own:
| Missing | What changes |
|---|---|
sparkx-query-market-data not installed | Both market modules (market position, competitors from ABA) run the substitute path in sellersprite-fallback.md |
sqp:read (or menu permission MCP_tool_SQP_ABA) only | SQP / ABA modules run the substitute path; the brand peer background still runs if benchmark:read is there |
benchmark:read (or menu permission MCP_tool_benchmark) only | Only the brand peer background line is dropped; SQP / ABA demand, share and top-3 still run |
Say which permission was missing and what it would have added; never drop a module whose own permission is present.
| Question | Where |
|---|---|
| Demand for the ASIN's terms, and our share of it | get_market_search_perf (SQP) |
| Who else is taking the clicks on those terms | the ABA top-3 columns on the same rows - candidates, not confirmed competitors, see below |
| Which similar or related products appear in the current recommendation report | get_entity_metadata(entity=competitorProduct), when the parent ASIN and permission are available; top 60 per report type, refreshed daily |
| Whether the brand this ASIN belongs to runs above or below its peers | get_peer_benchmark, as background only |
⚠️ ABA top-3 ASINs are not automatically competitors. They are whatever took the most
clicks on that search term, which can include this store's own products, sibling variants
of the same parent, or items from a different category that happen to rank for the term. Check
each one's identity before naming it a competitor - against the store's own ASIN list, and
against competitorProduct where that is available. Describing an own-brand ASIN as a
competitor in a customer report is the error this prevents.
⚠️ The ad half and the market half cover different periods. Ad metrics cover the date range you requested (typically the last 30 days); SQP and ABA are aligned outward to whole weeks (Sunday-Saturday), so their window is wider and rarely starts on the same day. Label each section with the period that produced it, and never compute a ratio that mixes the two.
competitorProduct needs one authorized profile, the product's parent ASIN from
entity=asin, reportType=1 (similar) or 2 (related), and All_Product_List permission.
It returns a current, daily offline top-60 list per report type, not all competitors or a
historical comparison. An empty report with no update time is not proof of no competitors;
star is the star rating, while rating is the review count.
⚠️ get_peer_benchmark has no ASIN-level and no campaign-level grain. A row is
brand x browse category x ad product x campaign goal, and its own value is the brand's total.
It can never say this ASIN is efficient or inefficient. Use it only to frame the brand's
position - "the brand sits below its peer median on ROAS for SP conversion campaigns" - and
only when a default-node row exists for that brand and category. Then attribute the ASIN's
result to this ASIN's own evidence, not to the brand row. The usage rules are in
sparkx-query-market-data's references/peer-benchmark.md; read them before quoting a
percentile.
Two limits decide whether that path exists at all, and both must be checked before promising it: market search data covers Seller profiles in US, CA, UK, DE, FR, IT, ES and JP only, and a peer benchmark needs a default category node for the brand - roughly 4 in 10 brand x category cells have none. When either is missing, say which one and move on.
SellerSprite still owns what the platform cannot answer: organic (non-ad) keyword rank, category-wide position against sellers who are not our advertising peers, and broader competitor coverage beyond the ABA top 3 and the available competitorProduct reports. The latter can include products this account never targeted; do not describe it as a targeting-only list. Detect it by calling it, not by reading a tool list — the tool name can be present while the account has no entitlement.
| Branch | What to do |
|---|---|
| Connected (a cheap probe returns data) | Run the full market modules |
| Not connected | Tell the user once what connecting SellerSprite would add beyond the available platform data — organic keyword rank, broader category and competitor comparisons — and what the report already answered without it. Let them decide |
| Declined, or no response | Run the substitute path in sellersprite-fallback.md. Do not leave the sections blank |
The substitute path fills only gaps left after the available platform market and competitor data. It can use price and BSR within the account, product targets the account is paying for, and ad share of total sales. Each section must name its source and what that source cannot answer.
Read evidence-scope.md and keep its table in front of you for the
whole run. One mistake accounts for most wrong ASIN diagnoses: quoting an ad group's or campaign's
numbers as if they were this ASIN's. They are only this ASIN's when the row is product-ad level.
Label every figure with the scope that produced it. "包含该 ASIN 的广告组表现" and "该 ASIN 的商品 广告表现" are different claims and the second does not follow from the first.
Two performance windows (current and the preceding equal-length period) at these grains, scoped to
this ASIN's campaigns and ad groups: productAd (ASIN-specific), adGroup, target, searchTerm,
placement, and asin for business totals (TotalSalesAmount, Sessions, TACOS,
BuyBoxPercentage). Configuration from get_entity_metadata (campaign, adGroup, productAd,
asin, aiGroup). History from get_operation_log, scoped to the carrying campaigns/ad groups.
The operation-log completeness gate: before writing any sentence of the form "只有 N 次人工操作" or "AI 只在某天动过", confirm the log is fully paginated and covers the whole window. An incomplete log reads exactly like an inactive account.
Run all of them under balanced; go deepest on the one focus names. Each module states its own
evidence scope and its own cut-points.
competitorProduct list when available,
SellerSprite for broader comparisons, and product-target spend from target rows with
queryType: product for "which ASINs are we paying to target, and do they pay back"TACOS is ad spend over total sales (what the business pays for advertising), while
ad-sales share is ad-attributed sales over TotalSalesAmount (how much of the business
advertising brings in). Name which one each figure is. An ASIN-grain TACOS counts SP and SD spend only - SB has no ASIN to attribute to, so the numerator is short a whole ad type while the denominator still counts every sale. It understates by construction, by roughly the brand's SB share, and is not comparable with a store-level TACOS. Say which grain a TACOS is (sparkx-query-ads-performance field reference).ad-structure.mdcampaignId-level configuration, and an empty audienceId on SD means unsupported, not unboundIf this ASIN's campaigns sit in AI managed groups, report the facts — group name, state, objective, target ACOS, actual ACOS, whether it is meeting target — and whatever action-space switches that group actually returned, exactly as many as came back.
Do not write a switch list into this skill. The action space differs by ad type, so any fixed count is wrong for two of the three types. Read, report, and say that deciding which switches should change is a managed-group audit, not part of this report.
Markdown by default. Lead with the answer, not the method:
# ASIN 诊断 · {asin} · {date_start} ~ {date_end}
对比期:{compare_start} ~ {compare_end}(等长前置)
数据路径:广告 SparkX 直连|市场 {SQP/ABA + 同行基准 / 卖家精灵 / 替代口径(纯 SparkX)}——每节标明来源
{盈利阈值待确认(客户未提供目标 ACOS)}
## 结论
{两三句。先说这个 ASIN 到底怎么了,再说最该先改的一件事}
## 一、生意与广告总盘
## 二、市场位置{(替代口径)}
## 三、竞品{(替代口径:我们在打谁)}
## 四、流量结构
## 五、广告结构
## 六、SB / SD / 受众
## 七、变体与库存 {父 ASIN 模式}
## 八、ACOS 机制归因
## 九、托管组现状(事实,不含判断)
## 十、建议与验证方式
---
_数据路径:{...} 阈值:{echo the thresholds actually used} Skill: sparkx-asin-deep-dive v{version}_
Every recommendation carries action + target + evidence + how to verify it. A recommendation without a verification condition cannot be reviewed next period, which is the only way anyone finds out whether this report was right.
sparkx-edit-ads / sparkx-edit-ai-group, each with
its own confirmation flow.competitorProduct when available. The substitute path covers only what is
left (organic rank, broader category and competitor comparisons). Label every section with the
path that produced it, and never give a
remembered or estimated competitor figure.| File | Contents |
|---|---|
references/data-contract.md | Call-level rules: the two ID systems, disallowed joins, per-entity notes, pagination, the operation-log completeness gate, metric recomputation |
references/evidence-scope.md | What each data grain can and cannot prove. Read before quoting any figure |
references/sellersprite-fallback.md | The three substitute analyses when SellerSprite is absent, and what each cannot answer |
references/ad-structure.md | Targeting mix, duplicate bidding, concentration, and the CPC/CVR/CPA joint rule |
references/platform-notes.md | Shared platform behaviour (auth, errors, pagination, currency) |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
amazon-ads, asin-analysis, ppc-diagnosis, seller-sprite, ad-performance
23 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).npx claudepluginhub sparkxai/sparkxai-mcp --plugin sparkx-ai-mcpOther plugins' skills for the same job