Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

schema-discovery

Skill by microsoft

Explores Power BI semantic model schemas with DAX INFO functions. It helps an AI assistant find tables, columns, measures and relationships without loading the full schema.

  • Score 73
  • 679 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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/data-app/.agents/skills/schema-discovery ~/.claude/skills/schema-discovery

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install schema-discovery in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Schema Discovery is a skill for exploring Power BI semantic model schemas with DAX INFO functions. It guides the assistant to run a scope probe that counts tables, columns, measures and relationships, then fetch only the metadata a request needs. Discovery uses INFO.VIEW functions for tables, columns, measures and relationships, and narrows output with SELECTCOLUMNS and FILTER.

Elevated INFO functions cover calculation groups, calendars, user-defined functions and variations. If an elevated function fails with a permission error, the skill tells the assistant to skip the other elevated queries in that session. It is for anyone who uses an AI assistant to inspect a Power BI semantic model before writing DAX queries.

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.
  • Progressive schema discoveryFetches only the metadata relevant to the current user request.
  • INFO.VIEW.TABLES()Lists tables to identify the relevant ones.
  • INFO.VIEW.COLUMNS()Returns columns for relevant tables, filtered to needed rows and fields.
  • INFO.VIEW.MEASURES()Returns measures, which the skill prefers over raw aggregations.
  • INFO.VIEW.RELATIONSHIPS()Returns relationships between the tables under discussion.
  • Advanced metadata queriesCovers calculation groups, calendars, user-defined functions and variations.
  • Permission fallbackMarks elevated access as unavailable after a permission error and skips those queries.

What you need

  • A Power BI semantic model reachable through the fabric-app-data CLI (npx)
  • The fabric-cli skill for full CLI options

Try asking

  • Explore the schema of my Power BI model and count its tables and measures
  • List the columns and measures in the Sales table of my semantic model
  • Show the relationships between the tables related to customer orders

Good to know

  • INFO.* functions may need elevated access; INFO.VIEW.* functions are the read-access path
  • Elevated queries are skipped for the session after a permission failure
  • GetSemanticModelSchema, DiscoverArtifacts and GenerateQuery MCP tools are not available

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: samples/data-app/.agents/skills/schema-discovery/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to schema-discovery

All alternatives →
kaggle-cliKaggle
94

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.

AAA Skill 7.7k
bigquery-bigframesgoogle
94

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.

AAA Skill 25k
data-loadingmicrosoft
94

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.

AAA Skill 18k
data-manager-api-setupgoogle
94

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.

AAA Skill 25k
managed-airflow-dag-authoringgoogle
94

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.

AAA Skill 25k
data-feedsdavila7
94

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.

AAA Skill 34k

Compare with kaggle-cli, bigquery-bigframes or data-loading

schema-discovery: common questions

What is the difference between INFO.VIEW and INFO functions in this skill?

The skill uses INFO.VIEW functions first because they need read access and are lightweight. Other INFO functions may need elevated access.

What happens if I do not have elevated permissions?

If an elevated INFO function fails after INFO.VIEW functions succeed, the skill assumes elevated access is missing and skips all elevated discoveries.

Does the skill load the whole model schema at once?

No. The skill advises against full schema dumps and discovers metadata incrementally based on need.

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 73 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.

schema-discovery Install

Add to stack

Loading.