/dogsled-core:starter-data-modelsfrom dogsled-core
Guides users through Dogsled's curated three-layer starter data models (bronze source, silver staging, gold mart) for 23 integrations. Routes to per-integration skills and helps adapt gold marts to loaded tables.
Ships in dogsled-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.
Dogsled ships a curated set of starter data models — pre-built Dogsled Model Spec (Model Spec) bundles that turn a freshly loaded integration into an analytics-ready warehouse with no modeling from scratch. Bundles can include named metrics and declared relationships alongside their models. They exist for 23 popular sources (Stripe, HubSpot, Salesforce, Linear, GitHub, LangSmith, Vercel, …; full list below).
Each bundle is the canonical analytics shape for that source: the tables an experienced analyst would build on top of the raw extract. Use them as the suggested shape you propose and adapt — not a mechanical file-copy. The user's real loaded tables will differ (a subset of resources, extra or missing columns, a different raw schema name), so every bundle gets fitted to what's actually in their warehouse.
Offer starter data models proactively, right after an extract+load pipeline for a supported source has been onboarded and the raw tables have landed. The natural pitch:
"I've loaded your Stripe data into
raw. Dogsled ships a curated set of Stripe analytics models — customers, charges, invoices, subscription status, daily overview. Want me to stand those up on top of your loaded tables?"
Also reach for this skill when a user asks "what models should I build for X?", "are there prebuilt models for Stripe?", or "give me the standard analytics shape for this source".
If the source is not one of the 23 below, there is no starter
bundle — author models from scratch with dogsled-author-model-spec-model instead.
A starter bundle is a standard bronze → silver → gold Model Spec stack, one
slice per integration resource (e.g. Stripe charges, customers):
| Layer | Model Spec shape | Name pattern | Materialization | Shipped as a file? |
|---|---|---|---|---|
| Bronze | type: source (warehouse_table) | raw_<resource> | n/a (raw table) | No — you author it |
| Silver | type: model (staging view) | stg_<integration>__<resource> | view | No — you author it |
| Gold | type: model (analytics table) | <integration>__<name> | table | Yes — starter-models-<integration> ships these verbatim |
The per-integration skills ship the gold marts, curated Model Spec metrics, and
relationships. dogsled model models install <integration> writes the semantic
files under metrics/<integration>/ and relationships/<integration>/ with
the source, staging, and mart files. The bronze sources and silver staging
models are derived mechanically from the integration's resource schema. The
recipe for building them is below, and it is identical for every integration.
The gold marts reference staging columns by name (expr: stg_<int>__<resource>.<col>). For a mart to compile, the staging model
it references must exist and expose those columns. So before promising a
mart:
raw and table raw_<int>__<resource>, but use whatever the
extract pipeline actually wrote.stg_stripe__disputes is dead weight if disputes weren't
extracted — don't ship it.Treat the shipped marts as a high-quality starting point an analyst reviews and adjusts, not a guaranteed-correct artifact.
Fetch starter-models-<integration> to get one source's full set of
gold marts (each mart inlined verbatim). Available bundles:
asana, chargebee, freshdesk, github, gong, hubspot,
intercom, jira, klaviyo, langsmith, linear, notion, pipedrive,
pylon, quickbooks, salesforce, shopify, slack, smartlead,
stripe, vantage, vercel, zendesk.
Example: starter-models-stripe ships stripe__customers,
stripe__charges, stripe__invoice_details, stripe__payment_intents,
stripe__subscription_details, stripe__subscription_status_summary,
stripe__balance_transactions, stripe__refund_details,
stripe__dispute_impact, stripe__customer_lifetime_value,
stripe__customer_overview, stripe__daily_overview.
For an integration linear with a resource issues:
| Thing | Value |
|---|---|
| Connection | linear (the integration name unless overridden) |
| Raw warehouse table | raw.raw_linear__issues |
Bronze source name | raw_issues |
Silver model name | stg_linear__issues |
Silver source.ref | linear.raw_issues (<connection>.<source-name>) |
Gold mart name | linear__issues |
Gold source.ref | stg_linear__issues (the staging model name) |
starter-models-<integration> to see the
gold marts on offer.raw_<int>__<resource> tables exist
and their columns.pipeline skill).This is the deterministic recipe Dogsled uses to derive bronze and silver from an integration resource's output schema. Apply it per resource.
raw_<resource>)spec_version: '0.2'
name: raw_<resource> # e.g. raw_issues
type: source
source_type: warehouse_table
connection: <connection> # integration name unless overridden
table: <schema>.raw_<integration>__<resource> # default schema: raw
description: Raw <integration> <resource> records as extracted by Dogsled.
trust_tier: bronze
schema:
columns:
- name: <field>
type: <WAREHOUSE_TYPE> # mapped from the resource field type
description: <field description>
Column type map (resource field type → warehouse type):
| Field type | Warehouse type |
|---|---|
integer | BIGINT |
number | NUMERIC |
boolean | BOOLEAN |
timestamp | TIMESTAMP |
array, object | JSON |
| anything else | VARCHAR |
stg_<integration>__<resource>, a view)spec_version: '0.2'
name: stg_<integration>__<resource>
type: model
description: Staged <resource> records from the <connection> integration.
grain: <pk_column> # single PK col, or a list for composite keys
source:
ref: <connection>.raw_<resource> # references the bronze source by name
columns:
- name: <renamed_field>
expr: t0.<source_field> # base alias is always t0; may be a cast (below)
description: <field description>
type: <CAST_TYPE> # only present when expr casts the value
primary_key: <true on the PK column>
not_null: <true on the PK column>
semantic_role: <entity_id|event_timestamp|time_dimension|measure|categorical>
references: <other_staging.col> # only for foreign-key-like columns
tags: [<pii?>, <financial?>]
business_rule: <set when a cast applies>
tags: [<connection>, staging]
trust_tier: silver
materialization:
type: view
For a composite primary key (more than one PK column), set
grain to the list of columns, mark each PK column not_null: true,
and add a custom uniqueness test:
tests:
- type: custom
sql: SELECT <pk1>, <pk2>, COUNT(*) AS duplicate_count FROM {name} GROUP BY <pk1>, <pk2> HAVING COUNT(*) > 1
Column renames (raw field name → staging column name):
id → <singular_resource>_id (e.g. resource issues → issue_id)created → created_at, updated → updated_at, deleted → deleted_at_id, _token, _uuid → kept as-isstring/integer field whose description reads like an identifier
("id of …", "uuid of …", ends in " id") → <field>_idExpression casts (chosen from the field type + description):
| Condition | expr | type |
|---|---|---|
integer whose description says "unix timestamp" | TO_TIMESTAMP(t0.<f>) | TIMESTAMP |
integer/number currency in the "smallest currency unit"/"cents" | CAST(t0.<f> / 100.0 AS NUMERIC(16, 2)) | NUMERIC(16, 2) |
string numeric measure stored as a "numeric string" | CAST(NULLIF(t0.<f>, '') AS NUMERIC(16, 2)) | NUMERIC(16, 2) |
string date "YYYY-MM-DD" whose column name ends _date | CAST(t0.<f> AS DATE) | DATE |
| otherwise | t0.<f> (no type, no business_rule) | — |
semantic_role (first match wins): entity_id if PK or name ends
_id/_token; else event_timestamp if type timestamp or name ends
_at/_timestamp; else time_dimension if name ends _date or it's a
date string; else measure if numeric or the name looks financial
(amount|price|cost|revenue|total|tax|fee|balance|spend|budget|value) or
a count/quantity measure; else categorical.
tags: add pii for email/phone/name columns; add financial
for financial-looking names. Omit tags when neither applies.
Embedding columns (when the pipeline has an embed: block):
A pipeline's embed: block adds one <field>_embedding column per
configured field to the extracted stream. These columns must propagate
through the bronze source and silver staging. Two places to mention:
dogsled pipeline … --emit-model-spec-source
scaffold pre-fills these columns with type: VECTOR, dimension, and
embedded_from. Copy the scaffold output verbatim into the
handcrafted source YAML.type: VECTOR, dimension, and re-author embedded_from so the
host agent has a single place to look up provenance for the
silver-layer model.# In stg_linear__issues — propagating an embedded description column
- name: description_embedding
expr: t0.description_embedding
type: VECTOR
dimension: 1024
description: Vector embedding of description (amazon-bedrock/cohere.embed-english-v3)
embedded_from:
column: description
provider: amazon-bedrock
model: cohere.embed-english-v3
dimension is required when type: VECTOR; embedded_from is required
semantically — without it, the host agent cannot generate a query
embedding in the same model family at vector-search time.
issuesBronze raw_issues (illustrative columns; mirror the real loaded
table):
spec_version: '0.2'
name: raw_issues
type: source
source_type: warehouse_table
connection: linear
table: raw.raw_linear__issues
description: Raw linear issues records as extracted by Dogsled.
trust_tier: bronze
schema:
columns:
- name: id
type: VARCHAR
description: Unique Linear issue identifier.
- name: title
type: VARCHAR
description: Issue title.
- name: estimate
type: BIGINT
description: Issue estimate in points.
- name: created
type: TIMESTAMP
description: Timestamp when the issue was created.
Silver stg_linear__issues (renames id→issue_id,
created→created_at; plain t0. exprs since no cast applies):
spec_version: '0.2'
name: stg_linear__issues
type: model
description: Staged issues records from the linear integration.
grain: issue_id
source:
ref: linear.raw_issues
columns:
- name: issue_id
expr: t0.id
description: Unique Linear issue identifier.
primary_key: true
not_null: true
semantic_role: entity_id
- name: title
expr: t0.title
description: Issue title.
semantic_role: categorical
- name: estimate
expr: t0.estimate
description: Issue estimate in points.
semantic_role: measure
- name: created_at
expr: t0.created
description: Timestamp when the issue was created.
semantic_role: event_timestamp
tags:
- linear
- staging
trust_tier: silver
materialization:
type: view
Gold linear__issues — the canonical mart, shipped verbatim by
starter-models-linear and inlined here as the reference shape:
spec_version: '0.2' name: linear__issues type: model description: Detailed Linear issues with team and project metadata. grain: issue_id source: ref: stg_linear__issues columns:
After authoring, compile the bundle against the target dialect
(dogsled model compile or the unified CLI equivalent) to catch broken
source.refs and missing columns before running a model pipeline. For
materialization choices and the full Model Spec authoring grammar, see
dogsled-author-model-spec-model.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub bobsled-inc/dogsled-core --plugin dogsled-core65 skills in this plugin
/add-custom-api-integrationAuthor a generic custom_api source for any REST/GraphQL API purely in YAML — inline transport (base_url + auth), one declarative resource per endpoint, then validate/verify/extract. Use when the API isn't in the bundled catalog./add-custom-mcp-integrationAuthor a custom_mcp source for any remote MCP server (Model Context Protocol over streamable HTTP) purely in YAML — inline mcp_http transport (url + auth + auth_env_vars), one resource_kind mcp resource per tool, then validate/verify/extract. Use when the MCP server isn't in the bundled catalog./add-database-destinationAdd a new database load destination (e.g., Snowflake, PostgreSQL, ClickHouse) to the @bobsled-inc/loader package. Implements the DatabaseDestination interface with full append/merge/full_refresh support./add-file-destinationAdd a new file-based load destination (e.g., Azure Blob Storage, R2, MinIO) to the @bobsled-inc/loader package. Walks through class implementation, config schema, factory wiring, CLI options, check command, and tests./add-file-storage-sourceOnboard documents (PDF, DOCX, PPTX, HTML, Markdown, text, email) from an Amazon S3 or Google Cloud Storage bucket — author a file-storage integration (source_type s3|gcs, bucket + auth) plus a document resource that parses and token-chunks each file, and an optional pipeline that embeds the chunks. Use when the user wants to ingest files/documents from cloud object storage rather than from an API./add-integrationAdd a new API integration to the @bobsled-inc/integrations library. Automates OpenAPI spec discovery, YAML generation, curation, and validation.