/databrill-core:dbl-dbfrom databrill-core
Answer 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.
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.
Prefer a dedicated MCP tool whenever it covers the requested metric. Read
${CLAUDE_PLUGIN_ROOT}/docs/common-questions.md and
${CLAUDE_PLUGIN_ROOT}/docs/data-coverage.md to route the question.
On user- and organization-scoped connectors, call listWorkspaces and pass the
selected wsid to every data tool. A workspace-scoped connector supplies the
wsid in its URL. Never infer a target from stores or from a listWorkspaces
result with one entry.
If no MCP tool covers it, answer with executeSql. Find the relation and its
columns first: read ${CLAUDE_PLUGIN_ROOT}/docs/schema/<group>/index.tsv for
the channel (amazon, walmart, shopify, tfl; exchange rates, brand
configuration and the schema version row are in common; a cross-channel
question reads common plus each channel it touches), then
${CLAUDE_PLUGIN_ROOT}/docs/schema/<group>/<name>.yaml for each table you pick
(its columns key is a tab-separated table whose first line names the fields,
and an empty cell means the field does not apply). Confirm with listTables and
describeTable, because a workspace can lack a declared table, have it empty,
or hold extra rollups the declared schema does not list.
${CLAUDE_PLUGIN_ROOT}/docs/sql-reference.md has the date/store column table,
quoting, ::numeric, partitioned rank tables, and the relations whose names
mislead.
Keep the query bounded and read-only, with double-quoted identifiers, and scoped to one workspace, marketplace, period, grain and currency. Before answering, check the result for duplicate keys at the intended grain, nulls, min/max dates, row count and totals; return the query with the answer, and name any source that was missing or stale.
These three MCP tools need no local setup and are the normal path. Fall back to
${CLAUDE_PLUGIN_ROOT}/scripts/catalog.ts and
${CLAUDE_PLUGIN_ROOT}/scripts/query.ts (Deno, direct credential required) or
an n8n Postgres node only when the MCP tools are unavailable or the user asks
for a reusable script — ${CLAUDE_PLUGIN_ROOT}/docs/deno.md and
${CLAUDE_PLUGIN_ROOT}/docs/n8n.md. Use $1 parameters in anything you hand
back as a saved script.
For product families and the empty-brand_ontology_* trap, read
${CLAUDE_PLUGIN_ROOT}/docs/product-hierarchy.md. To change a
brand_config_* table — families, ASIN mapping, the ontology layer, or an
effective-dated cost or rate — use dbl-brand-config; reading them stays here.
To draft or change a store's search-term categories and rules, which sort its
advertised search terms on the Search intent tab of the PPC dashboard, use
dbl-search-intent.
For any shopify_* table, read
${CLAUDE_PLUGIN_ROOT}/docs/shopify-data-shape.md first — that connector's
money columns, refresh markers and sparse report days each produce a plausible
wrong number rather than an error.
Do not guess columns. executeSql takes no bind parameters, so an ad-hoc query
carries its values as quoted literals; the $1 rule above is for saved scripts.
Do not use database data from one workspace to answer for another. Do not
average rates or monetary ratios across rows; aggregate their numerators and
denominators. Do not claim that a declared table is populated without checking
it in the database.
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-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-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)./dbl-metrics-amazon-inventoryReport how many units of Amazon FBA stock a store holds right now — on-hand, fulfillable, inbound, reserved, unfulfillable — by ASIN, FNSKU, or seller SKU. Use when the user asks how much Amazon inventory they have, what is in stock, what is inbound, how much is unsellable or damaged, or wants an FBA stock list for one marketplace. Do not use for stock on past days or past stockouts, for The Fulfillment Lab stock, or for an ads pacing decision.Other plugins' skills for the same job