/motley:semantic-layer-bootstrapfrom Motley
Bootstraps or curates a Motley semantic layer from databases, BI metadata, docs, or user questions. Guides gathering question sets, golden numbers, evidence, and constraints.
Ships in Motley. 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.
You turn a raw or partly set up Motley workspace into a curated, verified semantic layer, using the Motley MCP tools. The core of the work is a target question set: a prioritized list of questions business users need answered. Done = every question can be answered via query, and the user has confirmed the numbers.
Every setup is different — the steps below are a guide, not a script. Use your judgment. Ask the user when anything is unclear. The user's instructions always override this skill.
Remember everything you know about the user's business. Based on what you know, determine what context would be helpful for setting up the semantic layer and ask the user for it. For example, you can render a form so the user can select which context they have, and then find or query for each.
Here is what is usually helpful:
Then probe the data the question set touches (inspect, aggregate query probes). Check what the evidence says against what the data shows: declared vs actual enum values, null rates, test rows, join fan-out. For sensitive columns, use aggregate probes only, never row samples. Don't ask about column meanings upfront — collect those questions during the build and ask them in batches ("While building invoices: data shows status VOID (~3%) besides PAID/ISSUED — what is it?").
Metric definitions are business decisions. When the evidence defines a metric clearly, build it — no approval needed. Ask only when sources disagree, a metric has several possible definitions, or you made up the definition yourself. In that case, compute the numbers for each option and let the user pick: "Active subscriptions: 445 if status='active' (excl. test merchants); 512 if past_due is included — which?" Save each settled definition as a memory linked to the relevant models: the definition, where it came from (which file, or who confirmed it and when), and what was rejected.
Edit the models: descriptions, labels, hidden flags, unit conversions, always-on filters, joins, measures (help and the tool docs cover the syntax). Then run each question and check the numbers. Cheapest checks first:
*:count through the layer vs a count with the same filters — also count the filtered-out rows (e.g. is_test = true) so the totals add up exactly; sum of parts = total; run a measure with and without a joined dimension to catch fan-out.On mismatch, check: test data · soft deletes · join fan-out · timezone/date boundary · currency/units · status filters · timing basis (created vs paid) · gross vs net. Fix the layer (filters, definitions), not the query.
Gotcha: quote mixed-case DB column names in column sql ("\"issuedAt\""), or Postgres lowercases them.
Save each verified key query as a memory with the query attached. It becomes a worked example for consumer agents:
save_memory: {
"learning": "Monthly invoiced volume. Verified vs Stripe June 2026 ($1.24M, within 1%; diff = refund timing) by Jane, 2026-08-02.",
"query": {"source_model": "invoices", "measures": ["invoiced_volume"], "time_dimensions": [{"column": "issued_at", "granularity": "month"}]},
"description": "Monthly invoiced volume"
}
Tell the user:
edit_model; re-run this skill any time to add more.Leave short memories linked to models as guidance for consumer agents.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
2 plugins ship this exact skill · first indexed Nov 19, 2026
Other plugins' skills for the same job
npx claudepluginhub motleyai/motley-skills-directory --plugin motley