skills-for-fabric: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from microsoft/skills-for-fabric. It costs 2,989 tokens per session, scanned A, original, MIT.

Project rules for developing with Microsoft Fabric, Microsoft's cloud platform for data engineering, data warehouses, and analytics. They cover its REST API, authentication, project structure, and data-access patterns.

In plain words
What is it for?
Use them when creating or managing Fabric lakehouses, warehouses, semantic models, real-time data, and related engineering workflows through Azure authentication and Fabric APIs.
Why use it?
They give an agent consistent instructions for working with Fabric resources and choosing the right interface for each kind of data.

Cursor rule for Cursor ✓ vendor

Written for Cursor: installed under .cursor/.

This is microsoft/skills-for-fabric's own configuration. It tells Cursor how to work on skills-for-fabric itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything skills-for-fabric configures →

About the project

Microsoft Fabric Skills is a collection of reusable instructions and MCP systems that help AI assistants work with Microsoft Fabric workloads, APIs, queries, and operations. It is intended for users of GitHub Copilot CLI and compatible coding tools; the catalogue entries are the skills, agents, instructions, MCP systems, plugins, and rules distributed by the project.

microsoft/skills-for-fabric · 1,321 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to microsoft/skills-for-fabric. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/microsoft/skills-for-fabric/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/microsoft/skills-for-fabric

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/microsoft/skills-for-fabric/cursorrules/github.svg)](https://agentmods.dev/rules/microsoft/skills-for-fabric/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/microsoft/skills-for-fabric/cursorrules"><img src="https://agentmods.dev/badge/rules/microsoft/skills-for-fabric/cursorrules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/microsoft/skills-for-fabric/cursorrules"><img src="https://agentmods.dev/badge/rules/microsoft/skills-for-fabric/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,989 This file is loaded in full into every session.
When invoked 2,989 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02989 $0.02989
Opus 5.5 $0.01196 $0.01196
Sonnet 5.5 $0.00598 $0.00598
Haiku 4.5 $0.00299 $0.00299

Measured today against content hash 3cd2727439fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cursorrules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursorrules · 199 lines

How it starts

The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Microsoft Fabric Development Rules

Updates: These instructions do not run a session-start update check. Refresh them through your host's plugin or marketplace update flow, or run git pull if you use a manual clone.

Context

This project works with Microsoft Fabric for data engineering, warehousing, and analytics. Primary API reference: https://learn.microsoft.com/en-us/rest/api/fabric/articles/

Architecture Mode

  • Follow repository layering: Agents -> Skills -> Common.
  • For medallion and other cross-endpoint workflows, start with agents/FabricDataEngineer.agent.md.
  • Delegate endpoint-specific tasks to corresponding skills in skills/.

Authentication

All operations require Azure AD tokens via az login:

az login
az account get-access-token --resource https://api.fabric.microsoft.com

Developer Pattern: REST + Protocol

Developers use REST APIs to manage artifacts, then protocol-specific connections to access data:

  • REST → ODBC for Warehouse
  • REST → Spark for Lakehouse
  • REST → XMLA/DAX for Semantic Models
  • REST → KQL for Real-Time Intelligence

Code Generation Rules

Lakehouse & Spark

  • Always use Delta Lake format for tables
  • Use mssparkutils for Fabric-specific operations (fs, credentials, notebook)
  • Include partition columns for large tables
  • Run OPTIMIZE and VACUUM for table maintenance
  • Use skills/project-osmos/SKILL.md when a local agent should carry a complex Lakehouse, OneLake, notebook, or Spark outcome end to end; Fabric portal Copilot returns availability guidance without Project Osmos API calls.
  • Project Osmos owns target selection, MWC authentication and continuation in one skill. Use the selected Lakehouse URL or saved routing with its bundled resolver.
  • Preserve the selected target, task IDs and saved /aichat or /tasks routes. Validate credential destinations, let the service enforce access, and never substitute production. Recheck assignments before execution; the production SKU policy applies only to production.
  • Immediately after a successful Osmos POST /{taskId}/run response, show the run card and complete controls/feedback notice together in chat before further task operations or acting on follow-ups. Read task status/messages, report progress, then return control to the user; preserve cancel/delete confirmations and production resume capacity preflight.
  • Load project-osmos for task controls and offline plans; select the existing task from conversation/recovery context and confirm ambiguity. Explicit Resume of a Completed task uses the same task's empty-body /run after execution checks, not a follow-up message. Offline mode persists across turns; Resume alone is not live execution consent. Return the complete requested offline plan each turn. Reject invalid portal URLs before calls; may request a valid URL for the intended environment without automatically switching targets.
  • Explanation-only requests do not authorize sign-in, API calls or saved-state changes.
  • Use skills/spark-cli/SKILL.md for notebook authoring and runs, Livy analysis, Spark diagnostics, and the full Materialized Lake View lifecycle.
  • MLV authoring resources: skills/spark-cli/references/authoring/resources/materialized-lake-view-patterns.md and skills/spark-cli/references/authoring/resources/mlv-incremental-refresh-patterns.md.

Read the full file on GitHub · 199 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +13 lines · +535 tokens per session 3cd2727439fa
  2. 7d ago Changed · +1 lines · +50 tokens per session d5547d4c852e
  3. 1mo ago Changed · +1 lines · +45 tokens per session 091cfa6c03cc
  4. 1mo ago Changed · +2 lines · +115 tokens per session 6cda7ec17731
  5. 1mo ago Changed · -3 lines · -33 tokens per session d4c6fc250ab7
  6. 2mo ago Changed · +5 lines · +64 tokens per session bfa5a108c1c7
  7. 2mo ago First seen · 180 lines · 2,213 tokens per session scan A 034921dd87f1

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository microsoft/skills-for-fabric (1,321 stars, last pushed yesterday), licensed MIT. It adds 2,989 tokens to every session, about $0.0120 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

cursorrules compared with cursor rules from other repositories

cursorrules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursorrulesmicrosoft/skills-for-fabricCursor rule1.3kyesterdayMITA2,989Cursor
ponytailDietrichGebert/ponytailCursor rule185k8d agoMITA604Cursor
angular-20angular/angularCursor rule101kyesterdayMITA0Cursor
dev-standardapache/supersetCursor rule75ktodayApache-2.0A1,147Cursor
prefer-direct-imports-over-module-mocksprisma/ormCursor rule48kyesterdayApache-2.0A0Cursor
config-validation-and-normalizationprisma/ormCursor rule48kyesterdayApache-2.0A0Cursor
control-plane-descriptorsprisma/ormCursor rule48kyesterdayApache-2.0A0Cursor