# fabric-capacity

fabric-capacity — a skill that tracks utilization of Microsoft Fabric capacities in real time, identifies which workloads consume CU, and manages capacity state through the API.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 1104 repo stars
- Author: Kurt Buhler
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/data-goblin/power-bi-agentic-development/tree/HEAD/plugins/fabric-admin/skills/fabric-capacity/SKILL.md
- Updated: 2026-10-28
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/fabric-capacity

## What it does

The skill queries the Fabric Capacity Metrics semantic model via DirectQuery tables to answer questions about utilization, throttling, per-item CU consumption, and what is currently running. It can start or pause a capacity through the `fab` CLI and report its state from scripts or status bars.

Internally, it runs DAX queries against DirectQuery tables like CU Detail and Metrics By Item, and invokes `fab` commands for capacity management. The account must have capacity admin privileges for every capacity queried. DirectQuery tables require an M parameter with the capacity ID in uppercase, passed inside a `DEFINE` block; omitting it causes the connector to fail. The Metrics app lives in a Pro workspace (XMLA is unavailable), and its OAuth token expires after 90 days of disuse, requiring credential re-entry.

## Requirements
- Works with: Power BI

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add data-goblin/power-bi-agentic-development
```
In the agent chat (not a shell):
```text
/plugin install fabric-admin@power-bi-agentic-development
```
This installs the whole fabric-admin plugin with all its skills

2. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill fabric-capacity -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/fabric-capacity/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/fabric-capacity/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill fabric-capacity -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/fabric-capacity/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill fabric-capacity -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/fabric-capacity/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install data-goblin/power-bi-agentic-development plugins/fabric-admin/skills/fabric-capacity
```

2. **Manually: put the files in place**
- File: `.github/skills/fabric-capacity/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill fabric-capacity -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/data-goblin/power-bi-agentic-development --path plugins/fabric-admin/skills/fabric-capacity
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/fabric-capacity/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/data-goblin/power-bi-agentic-development/tree/HEAD/plugins/fabric-admin/skills/fabric-capacity/SKILL.md

## When to use it
- check current capacity utilization percentage
- find which items and operations are consuming CU
- diagnose throttling and carry-forward issues
- start or stop a capacity from code
- monitor Fabric capacity state continuously

## Example prompts
- What's the current utilization on the F2 capacity?
- Show me CU usage by Planning session for the last hour
- Start the `my-capacity` capacity and report its state

## Similar
- [azure-mgmt-fabric-py](https://affpapa.org/en/nevibecode/skills/azure-mgmt-fabric-py.md) — skill · ★ 3232 repo stars
- [microsoft-fabric-unified-analytics](https://affpapa.org/en/nevibecode/skills/microsoft-fabric-unified-analytics.md) — skill · 282 installs
- [compute-spot-capacity-advice](https://affpapa.org/en/nevibecode/skills/compute-spot-capacity-advice.md) — skill · ★ 24522 repo stars
- [power-platform-architect](https://affpapa.org/en/nevibecode/plugins/power-platform-architect.md) — plugin · ★ 41430 repo stars
- [power-bi-devops-alm-best-practices](https://affpapa.org/en/nevibecode/rules/power-bi-devops-alm-best-practices.md) — rule · ★ 41430 repo stars
- [logifleet-pulse-supply-chain-analytics](https://affpapa.org/en/nevibecode/skills/logifleet-pulse-supply-chain-analytics.md) — skill · 659 installs

From the same set: [data-goblin/power-bi-agentic-development](https://affpapa.org/en/nevibecode/by/data-goblin/power-bi-agentic-development.md) — 59 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
