Summary
Build the /star-schema-advisor Claude Code slash command to help analysts triage rpt_tableau__* reporting views during the star schema migration.
The tool:
- Parses every field in a chosen reporting view alongside how it is actually used in viz (dimension or aggregated measure)
- Produces a field-by-field verdict: dim, fact, semantic layer, recreate in BI, ambiguous, or skip
- Writes a shareable markdown report that serves as the analyst review artifact and a persistent semantic layer queue for a future
/cube-measure-generator command
- Applies approved dbt mart changes (adding columns to existing models or drafting new ones), leaving all mart files unstaged for analyst review
Deliverables
scripts/tableau-analyze-workbook.py — standalone Tableau XML parser; replaces scripts/tableau-extract-calcs.py
.claude/commands/star-schema-advisor.md — slash command workflow
docs/superpowers/star-schema-reports/ — per-run report directory
tests/scripts/test_tableau_analyze_workbook.py + fixtures
Spec & Plan
- Spec:
docs/superpowers/specs/2026-03-20-star-schema-advisor-design.md
- Plan:
docs/superpowers/plans/2026-03-20-star-schema-advisor.md
Summary
Build the
/star-schema-advisorClaude Code slash command to help analysts triagerpt_tableau__*reporting views during the star schema migration.The tool:
/cube-measure-generatorcommandDeliverables
scripts/tableau-analyze-workbook.py— standalone Tableau XML parser; replacesscripts/tableau-extract-calcs.py.claude/commands/star-schema-advisor.md— slash command workflowdocs/superpowers/star-schema-reports/— per-run report directorytests/scripts/test_tableau_analyze_workbook.py+ fixturesSpec & Plan
docs/superpowers/specs/2026-03-20-star-schema-advisor-design.mddocs/superpowers/plans/2026-03-20-star-schema-advisor.md