/databrill-core:dbl-ask-sales-dropfrom databrill-core
Diagnose why a store's sales dropped — decompose the change into traffic, conversion, and price, and flag ad-channel and ad-efficiency causes. Use when the user asks "why did sales drop / fall / decline", "sales are down", "revenue dropped", "why did orders fall", "what happened to sales (week-over-week)", or wants a sales-decrease diagnosis for a marketplace.
Ships in databrill-core. 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.
None: SKILL.md is the whole skill.
Answer with the core MCP server's salesDropDiagnosis tool
— it decomposes the change in daily sales into an exact, additive set of causes,
so you don't reconstruct the math yourself.
Identity (per day): sales = sessions × units/session × ASP. Logs make the
three factors additive, so each factor's share of the total change is a
defensible attribution.
On user- and organization-scoped connectors, call listWorkspaces and pass the
selected wsid. A workspace-scoped connector supplies it in the URL. Never
infer a target from stores or a listWorkspaces result with one entry; do not
fan this diagnosis out silently.
salesDropDiagnosis parameters:
stores — a merchantId, country code, or {merchantId}-{site}. Omit to use
the client's configured countries; allStores: true includes every store with
data.recentDays (default 7), baselineDays (default 28) — recent window vs the
prior baseline, anchored to each store's latest date.dropThreshold (default 0.10) — fractional fall in sales/day that flags a
drop.inventoryRunwayMax (default 14) — flag ASINs whose runway is at or below
this many days as a possible cause. skipInventory (default false) skips
that join; leave it false when diagnosing.Example: "why did UK sales fall this week" →
salesDropDiagnosis({ stores: "GB", recentDays: 7, baselineDays: 28 }).
Per store: deltaPct (sales/day change), isDrop, ranked causes (traffic
/ conversion / price — share sums to ~100%; a factor that rose and cushioned
the drop has a negative share; shares are suppressed for near-flat stores),
signals (ad vs organic channel, ad CR / CPC moves, and inventory when
stock is low), and inventoryFlags — each low-runway ASIN with its
runway, runwayWithInbound, inventoryAvailable and inbound. When
sessions are missing for a window, notes says traffic and conversion couldn't
be separated.
Read it as: which factor moved most, then which channel/efficiency signal
explains it. If organic drove the fall with healthy inventory, suspect rank /
buy-box — pull dbl-metrics-rank and dbl-metrics-traffic to confirm.
A stockout produces a sales fall, a conversion collapse and wrecked ad
efficiency from a single cause that has nothing to do with demand. Read
inventoryFlags and the inventory signal before assigning any other cause.
The tool does not report buy box: a falling buy_box_percentage in
amazon_sales_and_traffic shows the offer failing even while units remain. If
stock is at or near zero, say so and hand off to dbl-ask-inventory-pacing; for
unit counts use dbl-metrics-amazon-inventory, and for the days stock was at
zero during the period use dbl-metrics-amazon-inventory-history.
For the declared columns and types of those tables, or of any other Amazon
table, read ${CLAUDE_PLUGIN_ROOT}/docs/schema/amazon/index.tsv and then that
table's .yaml beside it.
This tool works at store level, and for a large catalogue the store total is an average that hides almost everything. A store whose total has barely moved can contain a family that has collapsed because it sold out.
So when the store-level verdict is "no meaningful drop", break it down before
reporting that: loadTraffic with groupBy: "family", or loadAds with
groupBy: "family" or "parentAsin", over the same two windows, ranked by
absolute change in sales. For a diversified catalogue this is the normal case,
not an edge case. See
${CLAUDE_PLUGIN_ROOT}/docs/product-hierarchy.md.
Also look for absence, not just decline. A family that sells out can show it
as rows disappearing — its products drop out of the bestseller rankings. Count
distinct ASINs with rank rows, with sessions, or with ad impressions per period;
a collapse in the count means stockout, suppression, or delisting.
${CLAUDE_PLUGIN_ROOT}/docs/diagnosis-methods.md has both methods in full.
Pair with dbl-metrics-traffic (sessions/CR), dbl-metrics-ads
(spend/efficiency), and dbl-metrics-rank (organic rank) to confirm the
suspected cause.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub databrill/databrill-core-agent-plugin --plugin databrill-core19 skills in this plugin
/dbl-ask-inventory-pacingRecommend how advertising should respond to inventory — pause, throttle, hold, or ramp spend based on each product's runway. Use when the user asks "should we pause ads before the stockout", "we're low on stock, what about ads", "should we cut spend to stretch inventory", "we restocked — ramp back up?", "how do we sell down overstock", "long-term storage fee risk", or wants an inventory-driven ad pacing decision./dbl-brand-configEdit brand configuration — product families, the ontology category and variant layer, ASIN-to-family and ASIN-to-SKU mapping, and effective-dated cost, rate and planning attributes. Use when the user asks to set up or edit product families, map ASINs to families or SKUs, seed the ontology, recategorise or relabel a family, or set a cost per unit, VAT rate or lead time for a period. Do not use for reading brand configuration — that is dbl-db./dbl-dashboardOther plugins' skills for the same job