/databrill-core:dbl-metrics-adsfrom databrill-core
Analyze Amazon PPC advertising performance metrics including impressions, clicks, orders, spend, sales, CTR, CR, CPC, ACOS, and ROAS. Use when the user asks about ad performance, PPC metrics, advertising efficiency, campaign analysis, ACOS/ROAS, or spend by ad type (SP/SB/SBV/SD).
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.
Fetch advertising metrics from the core MCP server's
loadAds tool. Do not write SQL for this — call the tool.
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. Query
workspaces separately and keep currencies separate.
loadAds parameters:
stores (required) — country code (e.g. US, DE), region (na, eu,
fe), a marketplaceId, *, or {merchantId}-{scope}.when (required) — ISO 8601 interval or duration:
2026-04-13/2026-04-19, P7D, P4W/2026-04-19.groupBy (required) — comma-separated:
asin, family, parentAsin, campaign, adType, placement, target, adgroup, country, store, merchant, marketplaceId.
Use store if no breakdown is needed.timeUnit — DAY|WEEK|MONTH|QUARTER|YEAR (optional).products — family names, parent ASINs (auto-expanded), or child ASINs
(optional).filter — e.g. campaignName:=:value (optional).derived — include ctr, cr, cpc, acos, roas (default false).nested — nest halo metrics into adStats* objects (default false).Example: "how did SBV do in the US last 4 weeks" →
loadAds({ stores: "US", when: "P4W", groupBy: "adType", derived: true }).
If that breakdown returns one row, the store runs one ad format — say so
explicitly rather than reporting an empty-looking result.
Group by family (or parentAsin) whenever the question is about a product:
a single variant may sell too few units to conclude anything while its family
sells enough to. See
${CLAUDE_PLUGIN_ROOT}/docs/product-hierarchy.md.
data[] rows carry
impressions, clicks, addToCart, purchases, units, spend, revenue, halo
(*HaloOut, *HaloIn), and — with derived — ctr, cr, cpc, acos, roas.
A row with haloInOnly: true exists only because of halo-in sales (another
product's ads were credited with selling this one): its advertised and halo-out
metrics are zero, so leave it out of spend, ACOS and CTR comparisons and do not
read it as an advertised product. groupBy: "placement" reports all halo-in on
such a row, with a null placement. meta.dateDataLatest is the latest date with
ad data for the selected stores (Amazon's ad reports lag 1–2 days); it is null
when those stores have no ad data at all.
State each metric with its value, and name the ASIN or family beside any product
you mention. ACOS = spend/sales (lower is better); ROAS = sales/spend.
revenue is total attributed sales and already includes halo out; the
*HaloOut / *HaloIn fields break it down, so never add them on top.
Read ${CLAUDE_PLUGIN_ROOT}/docs/diagnosis-methods.md before answering "ACOS is
too high" or "why did efficiency drop". The short form:
inventoryPacing for the family's runway,
or fulfillableQuantity in amzfact_fnsku_fbaInventory_latest (see
dbl-metrics-amazon-inventory), and buy_box_percentage; for a past
period, check the days at zero with dbl-metrics-amazon-inventory-history.
If stock is at or near zero, say so and hand off to dbl-ask-inventory-pacing.groupBy: "store") and the same product in a prior period. A
product's ACOS only means something against its store's average and its own
earlier value — which also gives a defensible target.ACOS = CPC ÷ (CR × AOV). Measure all three across
both periods; the culprit names itself instead of being guessed.With one ad format, break down by campaign type (auto / broad / product targeting / manual keyword), which an account may encode in its campaign names.
Read ${CLAUDE_PLUGIN_ROOT}/docs/sql-reference.md first — it has the date/store
column table, quoting and ::numeric rules, and which ad relation holds which
numbers. For the declared columns and types of any Amazon table, read
${CLAUDE_PLUGIN_ROOT}/docs/schema/amazon/index.tsv and then that table's
.yaml beside it.
amzadapi_reports_v1__search_asin_placement__byDay — adds adProduct,
campaignId, target, searchTerm, placementClassification, totalCost;
search-term grain, so aggregate before use.amzadapi_exports_v1__campaign — campaign names, states, budgets.amzadapi_reports_v1__product01__byDay — has no impressions, clicks or
cost, despite the name. It carries the ad-format and halo breakdown only;
advertising efficiency cannot be computed from it.Always double-quote identifiers.
What SKILL.md sets; muted values are Claude Code's defaults
19 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-ask-sales-dropDiagnose 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./dbl-npx claudepluginhub databrill/databrill-core-agent-plugin --plugin databrill-coreOther plugins' skills for the same job