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.
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-sdkRun 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/fabric-sdk ~/.gemini/antigravity-cli/skills/fabric-sdkAntigravity 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
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
ANo 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 →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
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.
