microsoft/rayfin/rayfin-connectors
Claude Code and agent skill by microsoft/rayfin
- vendor
Checking that the SKILL.md file is still in the repository.
Connect existing Fabric data sources (Lakehouse, Warehouse, SQL Database, semantic model, KQL Database/Eventhouse) to Rayfin apps; not app-owned data models. Use for connector discovery, setup, entity generation, authorization, SDK wiring, inspecting rows, invoking queries, and troubleshooting. Triggers: rayfin connector (add/search/types/inspect/invoke), rayfin up connector apply, connectors:, fabric-sqlanalytics, fabric-warehouse, fabric-sqldatabase, fabric-semanticmodel, kusto/KQL, DAX EVALU…
Install
npx vskill@latest install microsoft/rayfin/rayfin-connectorsSKILL.md
The same SKILL.md was published earlier as microsoft/rayfin/rayfin-connectors.
Rayfin Connectors
Bring an existing Fabric data source into a Rayfin app.
Two contracts govern connectors, and this file is neither of them:
- The versioned behavioral contract — the category guides shipped in
@microsoft/rayfin-guide.
Workflow, generation rules, authorization semantics, per-dialect behavior, error handling.
- The live catalog contract —
rayfin connector types --json.
Current types, categories, allowed operations, auth modes, required config, adapter versions, and the packages plus versions to install.
Read the matching category guide for workflow and semantics. Read `rayfin connector types --json` for current types, capabilities, package names, and versions. Answer neither from memory, and never copy either into code or prose — a copied catalog goes stale within days.
This file is the router: whether a connector applies, which category you are in, and where to read next.
When to Use a Connector
Use a connector when the user wants the app to read or write existing data already living in a Fabric workspace.
Do not use a connector when the user is creating a brand-new data model owned by the Rayfin app — those entities go under rayfin/data/ and are managed via rayfin up db apply, not rayfin connector add.
Routing note: @role and @entity also appear in the base rayfin skill for owned rayfin/data/ models. This skill applies only when those decorators are used inside rayfin/connectors/ files.
Connectors are cloud-only on day one. rayfin dev parses the connectors: block but does not wire it; verifying connector behavior requires rayfin up.
fabric-sqlanalytics means the Lakehouse SQL analytics endpoint, not full Lakehouse access. It can read SQL-visible tables and views only; it cannot directly open PDFs, images, or other files in the Lakehouse Files area. Do not describe it as generic Lakehouse support.
Connector Commands
rayfin connector ... is always registered; no opt-in is required.
Two Categories — Decide First
| Category A — GraphQL entities | Category B — function bridge | ||
|---|---|---|---|
| Types | fabric-sqlanalytics, fabric-warehouse, fabric-sqldatabase | fabric-semanticmodel; kusto is experimental | |
| App surface | Generated entity files with typed CRUD | Named operations carrying a raw query | |
Entity files, @role policies, metadata.json entities | Yes | No | |
| Read next | cli/connectors/category-a-entities.md | cli/connectors/category-b-function-bridge.md |
Category membership is stable enough to route on. Everything else about a type — allowed operations, auth modes, required config, adapter version, packages to install — comes from rayfin connector types --json, including types added after this file was written.
New `kusto` authoring is held in this release. It is absent from connector types and connector search, and rejected by connector add. If the user asks to add a KQL database, say so and stop rather than substituting another source. A project that already declares a Kusto connector stays valid — validate, deploy and invoke all work — so the guidance below applies to it today.
Do not read both category docs. Category A's entity-generation contract does not apply to fabric-semanticmodel or experimental kusto, and Category B's function-bridge contract does not apply to the SQL types.
Reading the Connector Guides
These guides are published with the Rayfin guide package. Resolve them from disk when you need the version installed in the app:
node_modules/@microsoft/rayfin-guide/assets/docs/<path>.
This skill can load before @microsoft/rayfin-guide is installed, or against a different package version than the one it was written for. If the guide path is unavailable, say it is unavailable and fall back to rayfin connector types --json and rayfin connector <command> --help. Do not reconstruct the contract from memory.
Eventhouse (kusto) has a dedicated guide
The experimental Eventhouse (kusto) connector reads large, append-only time-series data from a Fabric Eventhouse KQL Database; for small relational lookups or CRUD, use a Category A SQL type instead. When to choose it, the streaming model, shaping KQL, safe query construction, and result handling all live in cli/connectors/eventhouse.md, with the shared function-bridge contract in cli/connectors/category-b-function-bridge.md. Read those; do not reconstruct them from memory.
Workflow
- Add.
rayfin connector add --type <type> --workspace-id <ws> --item-id <item> [--name <name>] [--operations <ops>]
Verifies the Fabric item, writes the rayfin.yml entry, and scaffolds rayfin/connectors/<name>/ — plus metadata.json for Category A. It installs nothing, but it prints the exact version-pinned npm install command — run that verbatim. Never install these packages unversioned: their npm tags lag the published release, so npm install <pkg> pulls an older connector and a second, mismatched copy of @microsoft/rayfin-data. See cli/connectors/add.md.
- Scope. Without
--operations,addwrites every operation the catalog allows.
Confirm what the user actually needs and narrow to it: read-only → read; append-only → read, create; edit-but-not-add → read, update; full CRUD → all four. Ask when the intent is ambiguous; for Category A also ask whether rows are scoped per user. You can narrow below the catalog default, never widen above it.
- Follow the category guide. Category A generates entity files, scopes
@role(...), and writes the aggregateschema.ts; Category B installs a marker package and calls a named operation. - Deploy.
rayfin up, orrayfin up connector applyto re-apply DAB config alone. - Preflight — prove data comes back before you build anything on it.
Run exactly one query and stop if it fails. This is a gate, not a suggestion: a connector that cannot return data fails the same way after a dashboard is built on top of it, only an hour later and with the cause buried.
| Category | Command | |
|---|---|---|
| A | rayfin connector inspect --name <name> --entity <entity> --rows 1 | |
B — fabric-semanticmodel | rayfin connector invoke <name> executeQuery --file ./probe.query.json | |
B — kusto | rayfin connector invoke <name> executeQuery --file ./probe.query.json |
fabric-semanticmodel is the one you can run before step 4: from the CLI it calls Power BI directly under your identity, so it needs no deployment. Use that to fail fast. Everything else reads through the deployed app and needs step 4 first.
A CLI probe does not prove the deployed app works. For fabric-semanticmodel the CLI takes the direct Power BI route under your identity by default; the deployed app instead goes through the platform's user-data function, which re-authorises as the signed-in user. Those are different transports with different permissions, and the second can fail — typically Unauthorized — after the first has passed. So the probe is necessary, not sufficient: the connector is only proven once the deployed app itself executes the query and renders real rows in the browser. Re-running rayfin connector invoke after rayfin up does not change that: it still takes the CLI-direct path unless you pass --transport deployed, and that route authenticates the app, so it needs an app-session token in RAYFIN_TOKEN — a normal rayfin login cannot mint one.
--file takes a JSON payload, not a raw .dax or .kql file — it is JSON.parsed, so a bare query fails before the connector is ever reached. Write the query into the operation's input envelope:
``json { "query": "EVALUATE TOPN(1, Sales)" } ``
Prefer that over --input '<json>' for anything you or a model composed: DAX and KQL are full of quotes and brackets a shell reads as syntax, and one apostrophe in a string literal is enough to corrupt the command. The path is resolved against the project root and must stay inside it.
A failure here is a connector, permission, or platform-enablement problem. Report it and stop — do not scaffold UI, and do not work around it in app code. FEATURE_NOT_ENABLED in particular is a workspace switch nobody can fix from inside the app.
Commands
| Command | What it does | Doc path | |
|---|---|---|---|
rayfin connector types [--json] | Emit the live catalog. | — | |
rayfin connector search [query] | Discover addable Fabric sources before you know workspace/item IDs. | cli/connectors/search.md | |
rayfin connector add | Declare a connector and scaffold it. | cli/connectors/add.md | |
rayfin connector list / remove | List connectors; remove the entry and its directory. | cli/connectors/index.md | |
rayfin connector inspect | Run one read-only sample query against a source. | cli/connectors/inspect.md | |
rayfin connector invoke <name> <operation> | Run one named operation — the loop for Category B. | cli/connectors/invoke.md |
Flags, output shapes, and error catalogs live in those docs and in --help. Read one before answering a detailed question; do not guess.
Two behaviors worth knowing before you pick a command:
connector inspectdoes not support experimentalkusto— userayfin connector invoke <name> executeQueryinstead.connector invokeonfabric-semanticmodelruns under the developer's identity and works withoutrayfin up; every other type, including experimentalkusto, POSTs to the deployed item and requires a priorrayfin up.
Rules and Anti-Patterns
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. Certified 24 Nov 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/tools/cli/assets/agent-files/skills/rayfin-connectors/SKILL.md
Popularity
- Repository stars
- 662
- Repository forks
- 77
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. 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/microsoft/rayfin/rayfin-connectors)