p00318821-eng/skills-plugins-hooks-agents/semantic-model-consumption
Claude Code and agent skill by p00318821-eng/skills-plugins-hooks-agents
- community
Checking that the SKILL.md file is still in the repository.
Execute raw DAX queries and inspect metadata of Microsoft Fabric Power BI semantic models via the MCP server ExecuteQuery tool. Use when the user already knows the DAX to write, wants to run EVALUATE statements, or needs to inspect model metadata (tables, columns, measures, relationships, hierarchies) using INFO functions. For natural-language business questions (where you generate the DAX), use `fabriciq`. For creating, deploying, or managing semantic model definitions, use `semantic-model-authoring`. Triggers: "run DAX query", "execute EVALUATE", "semantic model metadata", "list semantic model tables", "INFO.VIEW.TABLES", "get measure expression", "DAX against", "query the model".
Install
npx vskill@latest install p00318821-eng/skills-plugins-hooks-agents/semantic-model-consumptionSKILL.md
Update Check — ONCE PER SESSION (mandatory)The first time this skill is used in a session, run the check-updates skill before proceeding.- GitHub Copilot CLI / VS Code: invoke thecheck-updatesskill.- Claude Code / Cowork / Cursor / Windsurf / Codex: compare local vs remote package.json version.- Skip if the check was already performed earlier in this session.
CRITICAL NOTES1. To find the workspace details (including its ID) from workspace name: list all workspaces and, then, use JMESPath filtering2. To find the item details (including its ID) from workspace ID, item type, and item name: list all items of that type in that workspace and, then, use JMESPath filtering
Power BI Semantic Model Consumption
Table of Contents
| Task | Reference | Notes | |
|---|---|---|---|
| Finding Workspaces and Items in Fabric | COMMON-CLI.md § Finding Workspaces and Items in Fabric | Mandatory — READ link first [needed for finding workspace id by its name or item id by its name, item type, and workspace id] | |
| Fabric Topology & Key Concepts | COMMON-CORE.md § Fabric Topology & Key Concepts | Hierarchy; Finding Things in Fabric | |
| Environment URLs | COMMON-CORE.md § Environment URLs | Production (Public Cloud) | |
| Authentication & Token Acquisition | COMMON-CORE.md § Authentication & Token Acquisition | Wrong audience = 401; covers token audiences, delegated vs app permissions, OAuth flows, identity types, and Entra app registration | |
| Core Control-Plane REST APIs | COMMON-CORE.md § Core Control-Plane REST APIs | Includes workspace/item CRUD, resolve-by-name, pagination, LRO polling, and rate-limiting patterns | |
| OneLake Data Access | COMMON-CORE.md § OneLake Data Access | Requires storage.azure.com token, not Fabric token; covers URL structure, ADLS Gen2 parity, and shortcuts | |
| Job Execution | COMMON-CORE.md § Job Execution | Run On-Demand Job; Get / Cancel Job | |
| Capacity Management | COMMON-CORE.md § Capacity Management | List Capacities; Assign Workspace to Capacity | |
| Gotchas, Best Practices & Troubleshooting | COMMON-CORE.md § Gotchas, Best Practices & Troubleshooting | Common Errors; Best Practices | |
| Tool Selection Rationale | COMMON-CLI.md § Tool Selection Rationale | ||
| Authentication Recipes | COMMON-CLI.md § Authentication Recipes | az login flows, environment detection, token acquisition, and debugging | |
Fabric Control-Plane API via az rest | COMMON-CLI.md § Fabric Control-Plane API via `az rest` | Always pass `--resource`; includes workspace/item operations, pagination, and LRO patterns | |
OneLake Data Access via curl | COMMON-CLI.md § OneLake Data Access via `curl` | Use curl not az rest (different token audience); file list/read/upload/delete and directory creation | |
| SQL / TDS Data-Plane Access | COMMON-CLI.md § SQL / TDS Data-Plane Access | sqlcmd (Go) connect, query, CSV export, service principal auth, and connection parameter discovery | |
| Job Execution (CLI) | COMMON-CLI.md § Job Execution | Run notebooks/pipelines, refresh semantic models, check/cancel jobs | |
| OneLake Shortcuts | COMMON-CLI.md § OneLake Shortcuts | Create a Shortcut; List Shortcuts; Delete a Shortcut | |
| Capacity Management (CLI) | COMMON-CLI.md § Capacity Management | List Capacities; Assign Workspace to Capacity | |
| Composite Recipes | COMMON-CLI.md § Composite Recipes | End-to-end workspace→lakehouse→file, SQL endpoint→query, and notebook execution recipes | |
| Gotchas & Troubleshooting (CLI-Specific) | COMMON-CLI.md § Gotchas & Troubleshooting (CLI-Specific) | ||
| Quick Reference | COMMON-CLI.md § Quick Reference | az rest Template; Token Audience ↔ CLI Tool Matrix | |
| Prerequisites | SKILL.md § Prerequisites | ||
| Must/Prefer/Avoid | SKILL.md § Must/Prefer/Avoid | Guardrails for read-only semantic model usage. MUST DO; PREFER; AVOID | |
| Metadata Discovery | SKILL.md § Metadata Discovery | INFO.VIEW. and INFO. functions. | |
| Recommended Discovery Order | SKILL.md § Recommended Discovery Order | Preferred order for metadata exploration | |
| Frequently Used INFO Functions | SKILL.md § Frequently Used INFO Functions | High-usage function list for first-pass discovery | |
| Complete INFO Function Catalog (Dynamic) | discovery-queries.md § Complete INFO Function Catalog (Dynamic) | ||
| Metadata Object → INFO Function Map | SKILL.md § Metadata Object → INFO Function Map | Inlined mapping for object-focused discovery | |
| Query Execution | SKILL.md § Query Execution | ExecuteQuery usage shape | |
| Troubleshooting | SKILL.md § Troubleshooting | Resolve common execution and metadata issues | |
| Examples | SKILL.md § Examples | Sample Metadata Query; Sample Data Query | |
| Scope Estimation Queries | discovery-queries.md § Scope Estimation Queries | ||
| INFO Output Columns | discovery-queries.md § INFO Output Columns | INFO.VIEW. (preferred first-pass metadata); Critical INFO. (deep metadata / diagnostics) | |
| Narrowing Results (Projection + Filtering) | discovery-queries.md § Narrowing Results (Projection + Filtering) | ||
| Deep Metadata Queries | discovery-queries.md § Deep Metadata Queries | ||
| Dependency Discovery | discovery-queries.md § Dependency Discovery | Dependency rowset for a DAX query; Dependency rows scoped to a measure; Reverse dependencies (what references a measure) |
Prerequisites
- COMMON-CORE.md — Fabric concepts, authentication, and control-plane API context.
- COMMON-CLI.md — CLI-oriented discovery and token/audience patterns.
Must/Prefer/Avoid
MUST DO
- Call MCP tools for discovery and execution — use
DiscoverArtifactsto find the semantic model GUID andExecuteQueryto run DAX queries. These are MCP tool invocations, not shell commands. Do NOT useaz rest,Get-Command, or PowerShell scripts to discover or invoke them. - Keep this skill read-only: metadata discovery and analytical DAX queries only.
- Treat DAX data queries and
INFO.VIEW.*as available to any user with read access to the semantic model; assume otherINFO.*functions may require elevated permissions. - Resolve workspace and semantic model item identity dynamically; do not hardcode IDs.
- Use DAX
INFO.VIEW.*/INFO.*for metadata discovery before writing data queries.
PREFER
- Validate semantic model scope early (
artifactId) before iterative query refinement. - Discover semantic model schema progressively: use filtered and projected
INFO.VIEW.*/INFO.*calls (e.g.,SELECTCOLUMNS+FILTER) to fetch only the information directly relevant to the current task instead of retrieving the full schema up front. See discovery-queries.md § Narrowing Results (Projection + Filtering). - Keep guidance provider-agnostic so tool endpoint migration is low risk.
AVOID
- Model-change operations in this skill.
Recommended Discovery Order
- Run the discovery-queries.md § Scope Estimation Queries to estimate metadata scope (table, column, measure, and relationship counts) before deep discovery.
- Start with
INFO.VIEW.TABLES()for a fast table inventory. - Expand to
INFO.VIEW.COLUMNS()andINFO.VIEW.MEASURES()for semantic details. - Use
INFO.VIEW.RELATIONSHIPS()to validate joins and filter behavior. - Use the full query catalog in discovery-queries.md for deeper patterns.
Frequently Used INFO Functions
INFO.VIEW.TABLESINFO.VIEW.MEASURESINFO.VIEW.COLUMNSINFO.VIEW.RELATIONSHIPSINFO.PARTITIONSINFO.MODELINFO.STORAGETABLECOLUMNSEGMENTSINFO.DEPENDENCIESINFO.EXPRESSIONSINFO.ROLESINFO.STORAGETABLECOLUMNSINFO.CALCULATIONGROUPSINFO.CALCULATIONITEMSINFO.CULTURESINFO.OBJECTTRANSLATIONSINFO.USERDEFINEDFUNCTIONSINFO.REFRESHPOLICIESINFO.ATTRIBUTEHIERARCHYSTORAGESINFO.COLUMNPARTITIONSTORAGESINFO.COLUMNSTORAGESINFO.DICTIONARYSTORAGESINFO.HIERARCHYSTORAGESINFO.PARTITIONSTORAGESINFO.RELATIONSHIPINDEXSTORAGESINFO.RELATIONSHIPSTORAGESINFO.SEGMENTMAPSTORAGESINFO.SEGMENTSTORAGESINFO.STORAGEFOLDERSINFO.STORAGEFILESINFO.TABLESTORAGESINFO.GENERALSEGMENTMAPSEGMENTMETADATASTORAGESINFO.DELTATABLEMETADATASTORAGESINFO.PARQUETFILESTORAGESINFO.STORAGETABLES
Metadata Object → INFO Function Map
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/semantic-model-consumption/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/p00318821-eng/skills-plugins-hooks-agents/semantic-model-consumption)