how-to-agentic-on-your-warehouselisted
Install: claude install-skill phoebefu6/phoebe-data-skills
# how-to-agentic-on-your-warehouse
Gen-AI-layer skill (layer 4 of the phoebe-data-skills 4-layer roadmap). It sits
on top of a modeled warehouse and answers business questions in English.
The demo version of this is easy and worthless. A model writes syntactically
perfect SQL against a clean star schema and everybody claps. The problem is
that in a real warehouse the traps are **semantic, not syntactic** - the query
runs, returns a plausible number, and the number is wrong for reasons that are
nowhere in the schema:
- **grain** - a fact table is usually one row per order LINE, not per order.
`COUNT(*)` is not order volume.
- **status** - finance recognizes one status. Summing all of them inflates the
money.
- **label** - `net_amount` is merchandise value. Platform revenue is that
times a commission rate that lives in nobody's schema.
- **entity** - registered accounts are not active buyers.
None of those raise an error. That is the whole danger. A wrong dashboard gets
argued with; a wrong number in fluent English gets pasted into a board deck.
Showcase walkthrough (Everrest retail case, real captured transcript):
https://github.com/phoebefu6/phoebe-data-skills - `docs/how-to-agentic-on-your-warehouse/`
## Where this sits in the lineage
`raw dump -> lake -> warehouse -> marts -> forecast` **-> agent**. Reads the
stage-2 DuckDB star schema built by `how-to-schema-and-warehouse`, and reuses
the metric definitions signed off in `how-to-metric-to-scorecard`. The regist