# soundsguyza/modeling-warehouse-foundations

Shared foundations for building reusable data models in PostHog, on either of two stacks: PostHog-native data-warehouse views / materialized views (HogQL, via the view-* MCP tools), or an external dbt project (sources.yml + staging/marts + schema tests) run against your own or PostHog's managed warehouse. Read before authoring any specific business model — covers the PostHog-vs-dbt decision, the view-create → view-materialize → sync_frequency workflow and the HogQL column-aliasing rule, the dbt project skeleton and the honest "no native dbt integration" picture, warehouse joins and star-schema dimensions, currency conversion with convertCurrency(), and checking/registering models in the data catalog for reuse. Companion to the domain skills modeling-revenue-metrics, modeling-conversion-metrics, modeling-activation-metrics, modeling-product-usage-metrics, and modeling-dimension-tables. Use when the user asks how to build a view, materialized view, or dbt model in PostHog, or which of the two stacks to use.


- Author: Aluna Africa (https://app.skillsync.com/soundsguyza)
- Price: Free
- Version: 1

## Files

- SKILL.md (8427 bytes)
- references/dbt-project.md (4401 bytes)
- references/dbt-skeleton/dbt_project.yml (741 bytes)
- references/dbt-skeleton/models/marts/fct_daily_active_users.sql (396 bytes)
- references/dbt-skeleton/models/marts/schema.yml (981 bytes)
- references/dbt-skeleton/models/staging/_sources.yml (1227 bytes)
- references/dbt-skeleton/models/staging/stg_events.sql (637 bytes)
- references/governance.md (2902 bytes)
- references/joins-and-dimensions.md (3017 bytes)
- references/posthog-views.md (6253 bytes)

## How to use it

1. Connect the Skillsync MCP server: https://app.skillsync.com/mcp (OAuth sign-in).
2. Add it to your library: https://app.skillsync.com/soundsguyza/modeling-warehouse-foundations
3. Load it with the get_skill tool: `get_skill("soundsguyza/modeling-warehouse-foundations")`, then follow its instructions.
