/dogsled-core:dogsled-project-layoutfrom dogsled-core
Guides folder grouping and file naming for Dogsled projects — sources, models, metrics, relationships, VQs, integrations. Use when scaffolding a new project or adding entities.
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.
Use this skill whenever you're about to create one or more YAMLs in a Dogsled project and the answer to "which folder does this go in, and what should I call it?" isn't already obvious from the project's existing layout. Default outcome: every entity lands in a folder that says what it is and where it came from, and every filename describes the thing — not its position in a list.
This skill is layout-only. It does not decide content; pair it with dogsled-author-model-spec-model, dogsled-add-pipeline, add-integration, etc. for the entity being created.
Dogsled reads an explicit top-level YAML type at any valid path. A typed definition can live in any folder. If a YAML file has no type, Dogsled can infer its kind from the nearest exact conventional ancestor folder. An explicit type takes precedence over a folder convention, and inference never rewrites authored bytes. Folders never set an entity's semantic name, namespace, integration owner, warehouse, or schema.
sources, models, integrations, resources, actions, targets, syncs, metrics, relationships, vqs, agents, or seeds.dogsled.yml and dogsled.yaml remain valid untyped pipeline configurations. Pipeline configuration is never inferred from a pipelines or settings folder; every nonroot fragment declares type: pipeline_config.model-spec.yml, extractor.yml, and extract-intents.yml conventions remain valid. AGENTS.md is a guide at the root or under any directory; a Markdown file can also declare type: guide in its front matter. A conventional Skill is skills/<name>/SKILL.md; another Markdown file declares type: skill.name explicit where its schema requires one. A Resource outside resources/<integration>/ declares integration: <name>.Two more consequences:
resources/<integration>/ names its owner with integration: <name>.<integration>/<name>). A duplicate is an error that lists both paths.type: pipeline_config, and keep each pipeline name, destination name, and single-owner top-level section in one file. Duplicate owners fail with both paths.--config selects one file explicitly and keeps its single-file behavior.models/, sources/, integrations/, resources/, skills/, and the other conventional folders), stops every Dogsled command until you fix it.dogsled.yml, model-spec.yml, extractor.yml), a linked YAML file in a Dogsled folder, or any link under skills/ stops commands, so copy the file instead. Files Dogsled does not load, such as documentation, charts, templated YAML, and other links, are skipped and listed by dogsled doctor.Dogsled discovers CSV files below any exact seeds/ path segment. A bare CSV has a path identity and does not create a warehouse target. A YAML seed specification still requires name and a relative payload.path. Only a specification-backed CSV can participate in a requested warehouse load. Entity Graph specs retain their entity_graph_dir setting.
Never leave a top-level folder flat once it holds files from more than one source, pipeline, or business domain. A models/ or sources/ directory full of unrelated YAMLs from different upstream systems is the single thing this skill exists to prevent — it's the layout that becomes unbrowsable first, and it gets worse with every new pipeline.
If you find a flat folder that has already crossed that line, surface it to the user and offer to reorganize before adding more.
Pick the axis that matches how the user thinks about the project — and confirm with them when more than one fits. The same project may use different axes for different folders (e.g. sources/ by integration, models/ by domain).
| Axis | When it fits | Folder shape |
|---|---|---|
| By integration / upstream system | ELT-heavy projects, multiple connectors landing in one warehouse | sources/linear/, sources/stripe/, resources/github/ |
| By Model Spec layer | Modeling-heavy projects with staging → marts | models/staging/, models/intermediate/, models/marts/ |
| By business domain | Project spans clear domains (sales, finance, product) | models/sales/, models/finance/, metrics/product/ |
| By target warehouse / dialect | One model materialized into multiple warehouses | models/snowflake/, models/bigquery/, models/postgres/ |
| By pipeline | Each named pipeline is logically isolated | models/pipeline_revenue/, models/pipeline_growth/ |
| By source or subject (data-first) | Authors think in upstream systems or business subjects end to end | datagolf/players/, crm/hubspot/ holding every kind for that subject |
For tiny projects (≤ ~5 files per folder), one level of grouping is enough; nest only when a sub-axis emerges (e.g. sources/linear/issues_graphql.yml is already grouped — don't add sources/linear/graphql/ unless you actually have multiple variants).
Nested business domains are supported when each level adds useful context:
golf/
datagolf/
pga/
pipelines.yml # type: pipeline_config
events.yml # type: model
The folders organize the Project; pipeline names and model names remain explicit semantic identifiers.
Drawn from dogsled-overview and the canonical example projects. Use this as the baseline when the user has no preference:
my-dogsled-project/
AGENTS.md # Project guide: data meaning, queryable data, vocabulary, conventions, caveats
dogsled.yml
extractor.yml
model-spec.yml
integrations/ # one file per project-local integration
<integration>.yml
resources/<integration>/ # always group by integration
<resource>.yml
sources/<integration>/ # always group by integration (mirrors resources/)
<resource>.yml
models/ # group by Model Spec layer OR domain — ask the user
staging/<integration>/<model>.yml
intermediate/<domain>/<model>.yml
marts/<domain>/<model>.yml
metrics/<domain>/<metric>.yml # group by domain
relationships/<domain>/<rel>.yml
vqs/<domain>/<vq>.yml
seeds/<domain>/<seed>.csv
entity-graph/ # entity-graph project files (if used)
A data-first layout groups every kind of file for one source or subject together instead:
my-dogsled-project/
AGENTS.md
dogsled.yml
datagolf/
integration.yml # type: integration
players/
raw_players.yml # type: source
players.yml # type: model
player_count.yml # type: metric
skills/
player-lookup.md # front matter: type: skill
Notes on the conventional default:
AGENTS.md files to add data context at the root or a nested directory. Dogsled applies guides from the root down to an asset's directory, with the nearest guide providing the most specific context. Keep at most one guide in each directory. Put repeatable procedures in skills/<name>/SKILL.md and do not scatter guidance across README files.resources/ and sources/ are grouped by integration: a resource under resources/<integration>/ needs no integration: field.models/ defaults to layer-then-domain (the dbt convention) because it's the most widely recognized — but if the user is domain-first, flip them: models/sales/staging/, models/sales/marts/.models/staging/, models/marts/).Names describe what the thing is about, never its position in a pipeline or its kind. Aim for: read the filename → know what the entity represents without opening it. The folder already says which layer or domain it belongs to — don't repeat that in the filename.
issues_graphql.yml, orders.yml, users.yml. Don't invent shorter aliases.orders_enriched.yml, daily_revenue.yml, customer_lifetime_value.yml, active_cycles.yml. Avoid layer/kind prefixes like stg_, int_, fct_, dim_, mart_ — they restate what the folder already conveys and make filenames harder to read. If two models would collide across layers, that's usually a sign that the entity is being modeled at the wrong granularity in one of them; ask the user before reaching for a prefix to disambiguate.bigquery_daily_revenue.yml, snowflake_daily_revenue.yml (or short forms like bq_, sf_ if the project already uses them). Keep the un-prefixed file as the canonical/default when one exists.<measure>.yml — total_revenue.yml, order_count.yml. Don't suffix with _metric.<left>__<right>.yml — orders__customers.yml.monthly_revenue_by_region.yml.linear.yml, snowflake.yml.Avoid: layer/kind prefixes that restate the folder (stg_, fct_, dim_, mart_, _metric, _model), numeric prefixes (01_orders.yml), dated names (orders_2025.yml), generic names (model_a.yml, new_metric.yml), or names that only make sense in current context (temp_fix.yml).
When intuitive naming is genuinely ambiguous — multiple plausible names for the same concept, or a model that spans concepts — ask the user rather than guessing. Offer two or three concrete options framed against the project (see "When to consult the user" below).
type: line.Ask one question, with two or three concrete options framed against their project, rather than asking abstractly. If the user has no strong preferences, present a recommended default plus alternatives instead of an open-ended question.
Examples:
"For
models/, do you want me to group by layer (staging/,marts/) or by domain (sales/,finance/)? Layer is the default I'd recommend since you only have one domain so far." "We're about to add the third Stripe model — want me to start amodels/marts/finance/subfolder so finance models stay together as more land?"
Don't ask when:
If the user asks to "clean up" or you spot a flat-with-mixed-origin folder:
type: lines below.dogsled.yml, model-spec.yml, or extractor.yml, a Skill leaving skills/<name>/SKILL.md, and a resource leaving resources/<integration>/ (it also needs integration:).dogsled-troubleshoot before committing.models/ with files from three pipelines mixed together — the case this skill exists to prevent.modeling/models/, data/sources/) — group by something a reader recognizes.models/orders/orders.yml) — collapse to models/<group>/orders.yml.models/sales/, models/staging/ side-by-side at the same level) — pick one axis per level.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
65 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-destinationnpx claudepluginhub bobsled-inc/dogsled-core --plugin dogsled-core