/databrill-core:dbl-metrics-shopify-catalogfrom databrill-core
Look up the Shopify catalogue — products, variants, SKUs, prices, compare-at prices, vendor, product type, status, published state, and the SKU-to-variant mapping used to join Shopify to other sources. Use when the user asks what products or variants exist on Shopify, Shopify pricing, which products are unpublished or draft, or needs to map a Shopify SKU to a product.
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.
On a user- or organization-scoped connector, call listWorkspaces, select the
workspace, and pass its wsid explicitly to every data tool. A workspace-scoped
connector URL supplies that wsid. Never infer it from stores or from a
listWorkspaces result with one entry.
Use executeSql against shopify_products_v1__Product and
shopify_products_v1__ProductVariant, one row per (shopId, id), the variant
carrying its parent productId.
Read ${CLAUDE_PLUGIN_ROOT}/docs/shopify-data-shape.md first. For the
declared columns and types of any shopify_* table, read
${CLAUDE_PLUGIN_ROOT}/docs/schema/shopify/index.tsv and then that table's
.yaml beside it.
Both tables are refreshed as a whole set per shop: every row of a successful run is stamped with that run's instant and rows older than it are deleted. So they describe the catalogue as it is now, and a product removed from Shopify disappears here rather than being marked deleted.
For what a product was called or priced at the time of sale, use the line item's
own title, sku, vendor and price columns — see
dbl-metrics-shopify-orders. Do not reconstruct a historical price from this
table.
shopifyUpdatedAt is Shopify's own instant and is not a watermark here,
because the family is a whole-set read.
ProductVariant.price and compareAtPrice are exact decimal strings in NUMERIC
— never cast to float. Shopify's scalar Money carries no currency code, so the
currencyCode column beside them is the shop's currency captured at import
time, not a per-row fact. compareAtPrice is nullable; a non-null value is the
struck-through reference price.
Product.status — ACTIVE, DRAFT, ARCHIVED. Stored as text, not an enum:
Shopify may add a member in any quarterly version.Product.shopifyPublishedAt — null means unpublished. A product can be
ACTIVE and unpublished.Product.totalInventory is Shopify's own rollup. For anything more than a
headline figure use dbl-metrics-shopify-inventory, which has the per-location
detail and the tracked filter that makes the numbers mean something.ProductVariant.inventoryQuantity is null for an untracked variant.ProductVariant.inventoryItemId matches
shopify_inventory_v1__InventoryLevel.inventoryItemId. This is the reliable
path; do not go through the level's variantId, which is nullable.ProductVariant.id matches OrderLineItem.variantId,
nullable on the line-item side where the variant was deleted.ProductVariant.productId. Always carry shopId in the
join too; ids are only unique within a shop.sku is nullable on both the variant and the line item. Where the merchant
fills it, it is how Shopify lines up with TFL (tfl_products_v1__SkuProduct)
and, where the merchant uses one scheme, with Amazon seller SKUs.
Check before relying on it — a null or duplicate SKU breaks a cross-source join silently:
In the queries below, replace <shopId> with the literal shop id: executeSql takes no bind
parameters.
SELECT COUNT(*) AS "variants",
COUNT("sku") AS "withSku",
COUNT(DISTINCT "sku") AS "distinctSku"
FROM "shopify_products_v1__ProductVariant" WHERE "shopId" = <shopId>;
SELECT p."title", p."status", p."vendor", p."productType",
p."shopifyPublishedAt" IS NOT NULL AS "published",
v."title" AS "variant", v."sku", v."price", v."currencyCode",
v."inventoryQuantity"
FROM "shopify_products_v1__Product" AS p
JOIN "shopify_products_v1__ProductVariant" AS v
ON v."shopId" = p."shopId" AND v."productId" = p."id"
WHERE p."shopId" = <shopId>
ORDER BY p."title", v."position";
v."position" is the variant's order within its product, which is the order the
merchant sees. variant."title" is commonly "Default Title" on a
single-variant product — suppress it rather than showing it to the user.
A workspace can hold several storefronts with overlapping product names and
independent id spaces. Filter to one shopId or group by it, and join
shopify_shop_v1__Shop for the name.
dbl-metrics-shopify-inventory for stock, dbl-metrics-shopify-orders for what
actually sold, dbl-metrics-shopify-sales for store-level performance.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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-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-dashboardDesign or construct a dashboard, report, chart, table, or recurring analysis from Databrill MCP or database data. Use when the user asks to explore their data visually, build a dashboard or artifact, chart trends, make a management report, export a reporting dataset, or compare several accounts/workspaces./dbl-dbAnswer Databrill data questions that do not fit a dedicated metric skill by selecting the right MCP tool or a safe read-only Deno/n8n database workflow. Use for arbitrary database exploration, table or column discovery, SQL, CSV exports, orders, listings, returns, reimbursements, fees, settlements, Walmart, The Fulfillment Lab data, or questions about what data is available./dbl-metrics-adsAnalyze 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).npx claudepluginhub databrill/databrill-core-agent-plugin --plugin databrill-core