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

fabric-sdk

Skill by microsoft

Shows an app how to run DAX queries against Fabric semantic models through the Rayfin connectors client. It is for developers building runtime data features in Rayfin apps.

  • Score 84
  • 675 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install fabric-sdk

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/fabric-sdk ~/.claude/skills/fabric-sdk

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

Step-by-step: install fabric-sdk in Claude Code

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

About

This agent skill explains how a running app reads Fabric data through the Rayfin connectors client. Each connector is declared in rayfin.yml and exposed as getRayfinClient().connectors.<name>. The app calls executeQuery with a DAX query, and the connector injects the workspace and item ids on the server, so the app sends only the query.

The skill covers the useSemanticModelQuery hook and direct client calls. It explains how toQueryResult normalizes responses into columns and rows, and how errors arrive on two channels: thrown errors and error results returned by Power BI. It also lists guidance on bounding rows, avoiding unsafe caching, and handling overflow. It is aimed at developers building Rayfin apps that display Fabric semantic model data.

Written from the project's SKILL.md and checked against it.

What it can do

  • useSemanticModelQueryReact hook that runs a DAX query against a named connection and never throws.
  • connectors.<name>.executeQueryClient operation that sends a DAX query to a declared Fabric connector.
  • toQueryResultNormalizes a connector response into a status-tagged result with columns and rows.
  • Error handling guidanceExplains the thrown error channel and the returned error status for failed queries.
  • Row bounding guidanceAdvises using aggregations, TOPN, or resultSetRowCountLimit to control result size.

What you need

  • A Rayfin app with a Fabric connector declared in rayfin/rayfin.yml
  • A Fabric semantic model to query

Try asking

  • Show me how to run a DAX query with useSemanticModelQuery in my app
  • Normalize a connector response with toQueryResult and render the rows
  • Handle both thrown and returned errors from a Fabric DAX query

Good to know

  • There is no default row cap, so queries must be bounded in the DAX.
  • The connectors client does not cache, so every call reaches Power BI.
  • useSemanticModelQuery does not forward resultSetRowCountLimit.
  • Each query must contain exactly one EVALUATE statement.

Security check

A

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

Checked automatically: samples/universal-app/template/.agents/skills/fabric-sdk/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to fabric-sdk

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

fabric-sdk: common questions

How does the app avoid sending workspace or item ids?

The connector's workspaceId and itemId are injected server-side from rayfin.yml. The app sends only the query.

Why can a failed query render nothing in my component?

Thrown failures set the hook's error and leave data undefined. Checking only data.status misses them, so the skill says to check both channels.

Should I use dataType to format columns?

No. dataType is "unknown" when the payload has no column metadata, so the skill says to supply display types through columnMetadata and toDataTable.

How do I install fabric-sdk?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is fabric-sdk free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is fabric-sdk safe to use?

It scores 84 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 fabric-sdk?

Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.

fabric-sdk Install

Add to stack

Loading.