schema-discovery
Skill by microsoft
Explores Power BI semantic model schemas using DAX INFO functions. It is for users who need to find tables, columns, measures and relationships before writing DAX queries.
Install schema-discovery
Built from the published package, never by AI.
git clone --depth 1 https://github.com/microsoft/rayfin /tmp/rayfin && mkdir -p ~/.claude/skills && cp -r /tmp/rayfin/samples/universal-app/template/.agents/skills/schema-discovery ~/.claude/skills/schema-discoveryRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/microsoft/rayfin /tmp/rayfin && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/rayfin/samples/universal-app/template/.agents/skills/schema-discovery ~/.gemini/antigravity-cli/skills/schema-discoveryAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Schema Discovery is an agent skill that helps an AI assistant explore the metadata of a Power BI semantic model. It uses DAX INFO functions to read tables, columns, measures and relationships, and it can also reach calculation groups, calendars, user-defined functions and variations when the user has the needed access.
The skill follows a progressive strategy. It starts with a scope estimation query to count objects, then fetches only the tables, columns, measures and relationships the current request needs. It uses SELECTCOLUMNS and FILTER to narrow results and avoids re-fetching metadata already discovered in the conversation. The skill is aimed at people working with Power BI semantic models who need schema context for writing DAX.
Written from the project's SKILL.md and checked against it.
What it can do
- Scope estimationCounts tables, columns, measures and relationships before deeper discovery.
- Table discoveryLists tables with INFO.VIEW.TABLES() to find the relevant ones.
- Column and measure discoveryFetches columns and measures for selected tables with INFO.VIEW functions.
- Relationship discoveryReads relationships between relevant tables using INFO.VIEW.RELATIONSHIPS().
- Advanced metadataQueries calculation groups, calendars, user-defined functions and variations when access allows.
- Result narrowingUses SELECTCOLUMNS and FILTER to reduce output size for large models.
What you need
- A Power BI semantic model to query
- The rayfin connector CLI, run with npx
- Elevated access for some INFO functions
Try asking
- Estimate how many tables and measures are in my semantic model
- Show the columns and measures in the Sales table
- List the relationships between my Orders and Customers tables
Good to know
- Some INFO functions may need elevated access and are skipped after a permission failure
- The skill states that GetSemanticModelSchema, GenerateQuery and DiscoverArtifacts MCP tools are not available
- Discovery is designed to be incremental rather than a full schema dump
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: samples/universal-app/template/.agents/skills/schema-discovery/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
references/discovery-queries.md4 KB
Alternatives to schema-discovery
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
schema-discovery: common questions
What does schema discovery do for Power BI models?
It uses DAX INFO functions to read a semantic model's tables, columns, measures and relationships. It fetches only the metadata the current request needs.
Which INFO functions need elevated access?
The source marks INFO.MODEL, calculation groups, calendars, user-defined functions and variations as possibly needing elevated access. INFO.VIEW functions are listed as read access.
What happens if a permission error occurs?
If an elevated INFO function fails while INFO.VIEW functions worked, the skill assumes the user lacks elevated permissions and skips elevated discoveries.
How do I install schema-discovery?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is schema-discovery free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is schema-discovery safe to use?
It scores 85 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to schema-discovery?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
