/semantic-models:semantic-modelfrom semantic-models
Designs, builds, refreshes, and audits Power BI / Analysis Services tabular semantic models: star schema, measures, relationships, RLS, calculation groups, incremental refresh.
Ships in semantic-models. 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.
Read when SKILL.md points to them.
Guidance for designing, building, refreshing, and reviewing Power BI / Analysis Services tabular models from the terminal. It consolidates model review with modeling best practices, and routes every change to the narrowest capable tool. Depth lives in references/; this file is the operating loop and the routing.
pbir-cli skill (reports plugin)dax-standard skilldax-optimisation skilltmdl skill (this skill routes to it for the file-edit fallback)te command surface itself: the te-cli skill (tabular-editor plugin) is the command reference; this skill is the modeling judgment layered on topReach for the narrowest capable tool, in order. Most edits never leave step 1.
te CLI first. One verb per operation, staged in memory until --save, with a save-time DAX + referential-integrity gate. Covers add/set/rm/mv for measures, columns, relationships (Sales[K]->Dim[K] shorthand on te add), roles + RLS filters, calculation groups / items, DAX formatting (te set <path> --format Expression, or te script --inline "Model.AllMeasures.FormatDax();" for the whole model), te bpa, te vertipaq, te query. Each Bash call is a fresh shell, so pass --model <path> (or -s/-d for remote) on every command, or set TE_SESSION. Properties are -p Name=Value; read the real object's settable surface first with te get <obj> --properties. Every mutation is a dry run until --save. The te-cli skill is the full command reference.te cannot reach a property. Some properties are absent from te set -p (for example alternateOf, securityFilteringBehavior, crossFilteringBehavior, KPI sub-objects, linguistic-schema content, calendar objects). Drive these through a te script C# pass (in-process TOM), or the connect-pbid skill (PowerShell + TOM/ADOMD against a live local Desktop instance, and the only route to traces: EVALUATEANDLOG, aggregation-hit events, storage DMVs). The Power BI Modeling MCP server is also available if you prefer an MCP. The local Desktop proxy cannot reach Direct Lake; use a remote XMLA endpoint there.fab + direct TMDL last, with the tmdl skill. Service- and file-shape operations with no model-edit verb: assigning Entra principals to roles (workspace-side, not in .tmdl), report-to-model binding, Copilot-folder features (AI instructions, AI data schema, verified answers), Lakehouse / Delta reshaping behind Direct Lake, and bulk structural surgery that is cleaner as one TMDL diff than N te calls. For read-only Fabric retrieval of AI instructions / schema, use scripts/get_semantic_model_ai_metadata.py. Author the TMDL with the tmdl skill, then run te validate.Ordering gate: add relationships before any measure that uses RELATED() or a cross-table CALCULATE(), or the save gate fails with DAX0002 (no relationship in context).
Model dimensionally: a star of fact plus conformed dimensions beats snowflakes and fact-to-fact joins. Decide storage mode and refresh strategy before building; both are near one-way doors once published. See references/dimensional-modeling.md, references/storage-modes.md, references/composite-models.md, and references/direct-lake.md.
Make each change through the cascade above. Author measures with full metadata (DisplayFolder, FormatString, Description) in one pass. Validate after every mutation (te validate) and gate on BPA (te bpa run --fail-on error). Renaming or moving any object can silently break downstream reports and models; run the lineage check first, then propagate with pbir-cli / fabric-cli (see references/refactoring-renaming.md). Deep guidance per area: references/relationships.md, references/time-intelligence.md, references/calculation-groups.md, references/parameters.md, references/security.md, references/dax-authoring.md.
Configure incremental refresh from the terminal (te set <table>/RefreshPolicy, applied with te refresh --apply-refresh-policy); for Direct Lake, the refresh is the framing. See references/incremental-refresh.md, and the refresh-semantic-model skill for monitoring and troubleshooting.
Audit against the categories below and produce prioritized findings with file locations. Gather context first with scripts/get_model_info.py (storage mode, size, connected reports, endorsement, data sources, refresh schedule). Full checklist in references/review-checklist.md; performance method in references/performance.md.
isAvailableInMDX on hidden / high-cardinality columns), unsplit DateTime, auto date/time tables, wrong data types, calc columns that should be measures, unused objectsreferences/dax-authoring.md; for query tuning use the dax-optimisation skill)ordinal: lines a save will strip (references/calculation-groups.md)organize-semantic-model)tmdl: TMDL file authoring (the cascade's step-3 fallback)dax-optimisation: DAX query performance optimizationconnect-pbid: TOM / ADOMD via PowerShell against a live Desktop instance; traces; the TOM / MCP tierte-cli: the te command referencec-sharp-scripting: TOM C# scripts and macros (te script) for properties te cannot reachdate-table: drop a ready-made DimDate (calendar / ISO week / fiscal, plus a Dates Selected title measure) into a PBIP modelorganize-semantic-model: organization and naming remediationrefresh-semantic-model: refresh monitoring and troubleshootinglineage-analysis: artifact lineage (downstream reports and models that consume this model, across workspaces); distinct from intra-model object dependenciesbpa-rules (tabular-editor): authoring BPA rules; fabric-cli: service / workspace operationsreferences/dimensional-modeling.md: star schema, SCD2, junk / degenerate dimensions, header-detail, bridges
references/relationships.md: cardinality, limited relationships, ambiguity, active / inactive, USERELATIONSHIP
references/time-intelligence.md: classic vs calendar TI, mark-as-date traps, week-based / 4-4-5
references/calculation-groups.md: when a second measure axis forces one, precedence (whose format string wins, where item order comes from), one shared format string through a UDF, scenario-agnostic row measures, sideways recursion, selection expressions, the variant trap
references/parameters.md: field parameters, what-if parameters, dynamic titles
references/security.md: RLS validation + defensive filters, bidirectional + RLS, OLS restrictions
references/query-semantic-model.md: querying a model with DAX, INFO functions, output formats, probing
references/storage-modes.md: Import / DirectQuery / Dual / Hybrid decision matrix
references/composite-models.md: source groups, regular vs limited, Direct-Lake-plus-Import
references/aggregations.md: user-defined aggregations, grain, te-script AlternateOf
references/direct-lake.md: OneLake vs SQL, framing, DirectQuery fallback, guardrails
references/incremental-refresh.md: IR policy, detect data changes, hybrid / real-time, refresh strategy
references/vertipaq-optimization.md: VPA metrics, value vs hash encoding, splitting high-cardinality keys
references/dax-authoring.md: variable semantics, DIVIDE, measure vs calc column (gaps vs the dax skill)
references/ai-copilot-readiness.md: the Copilot grounding contract, synonyms / linguistic schema, descriptions, Q&A retirement
references/metadata-and-organization.md: descriptions, display folders, naming, measure tables, perspectives
references/hierarchies-cultures.md: user hierarchies, parent-child, KPIs, perspectives, cultures / translations
references/documentation-and-bpa.md: data dictionary, BPA documentation gate, metadata diffs, intra-model impact analysis (artifact lineage = the lineage-analysis skill)
references/refactoring-renaming.md: safe rename workflow (lineage check first, then propagate via pbir-cli / fabric-cli)
references/review-checklist.md: full audit checklist with remediation
references/performance.md: performance testing, unused-column detection, memory analysis
references/synthetic-datasets.md: building a themed, seeded, star-schema mock dataset for a demo or stress test
scripts/get_model_info.py: model metadata overview (mode, size, reports, endorsement, sources, refresh)
scripts/manage-ai-metadata.csx: read/write AI instructions and AI schema through TOM culture linguistic metadata
scripts/get_semantic_model_ai_metadata.py: Fabric CLI service-definition readback for AI instructions and AI schema
references/aggregations.md (opens in a new tab)references/ai-copilot-readiness.md (opens in a new tab)references/calculation-groups.md (opens in a new tab)references/composite-models.md (opens in a new tab)references/dax-authoring.md (opens in a new tab)references/dimensional-modeling.md (opens in a new tab)references/direct-lake.md (opens in a new tab)references/documentation-and-bpa.md (opens in a new tab)references/hierarchies-cultures.md (opens in a new tab)references/incremental-refresh.md (opens in a new tab)references/metadata-and-organization.md (opens in a new tab)references/parameters.md (opens in a new tab)references/performance.md (opens in a new tab)references/query-semantic-model.md (opens in a new tab)references/refactoring-renaming.md (opens in a new tab)references/relationships.md (opens in a new tab)references/review-checklist.md (opens in a new tab)references/security.md (opens in a new tab)references/storage-modes.md (opens in a new tab)references/synthetic-datasets.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 skills in this plugin
/date-tableDrop a complete date dimension into a PBIP semantic model, an extended DimDate (58 columns of calendar, ISO week, fiscal and to-date flags) from a bundled Power Query function, plus the "Dates Selected" title measure. Invoke when the user asks to "add a date table", "add a calendar table", "create DimDate", "mark as date table", "add a fiscal calendar" or wants a title showing the selected period./dax-optimisationDAX performance optimization for semantic models. Automatically invoke when the user asks to "optimize DAX", "fix slow DAX", "DAX performance", "tune a measure", "debug a measure", "DAX anti-patterns", or mentions slow queries, server timings, or a visual that is slower than its DAX query./dax-standardHouse style for writing DAX measures. Build the rows a calculation needs into a table VAR, then aggregate, so each step can be debugged. Covers measure formatting (dynamic format strings, UDFs), the time-intelligence exception and recipes. Use to write, rewrite, review or format a measure, or for a DAX recipe. For a measurably slow measure, use `semantic-models:dax-optimisation`./lineage-analysisTrace relationships between semantic models and downstream reports across Fabric workspaces. Automatically invoke when the user asks to "find downstream reports", "show report lineage", "impact analysis", "what depends on this dataset", "cross-workspace lineage", "which reports are connected", "get model dependencies", or mentions model-to-report dependency tracing./model-changeThe end-to-end pipeline for changing a semantic model in a local PBIP, from confirming the field exists to proving the result against real data. Invoke on "change the model", "add a measure", "add a column", "the number is wrong", "add a relationship", "set up RLS", "add a calculation group", or any request that ends with a .tmdl file changing. Carries the Desktop-breaking gotchas./organize-semantic-modelOrganize a Power BI or Analysis Services semantic model end to end so it is ready for report authors, Excel users and Copilot - table groups, display folders, Title Case business names and naming conventions, hierarchies, sort-by columns, hiding, Analyze in Excel (IsAvailableInMDX), descriptions, format strings, data categories, context annotations, DAX formatting and UDFs, calculated-object justification, duplicate removal, perspectives, translations and security roles. Use whenever the user asks to "organize", "tidy", "clean up", "polish", "prepare", "standardize" or "make report-ready" a model or one table in it (for example "organize the date table"), to "fix naming conventions", "rename fields", "make names human readable" or "fix abbreviations", even when they name only one of these aspects, and whenever a model is driven through the Tabular Editor 3 MCP or the te CLI for that purpose. Not for DAX performance tuning (dax-optimisation skill) or model design and star-schema changes (semantic-model skill).npx claudepluginhub insightfulanalytics/pbi_agentic_dev --plugin semantic-modelsOther plugins' skills for the same job