# microsoft-graph

A hub for Microsoft Graph work: eight reference files, shared query parameters and permission rules. Useful when the agent is writing a Microsoft 365 integration.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 263 installs · ★ 25 repo stars
- Author: markpitt
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/markpitt/claude-skills/tree/HEAD/skills/microsoft-graph/SKILL.md
- Updated: 2026-02-19
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/microsoft-graph

## What it does

Microsoft Graph is one REST endpoint for Microsoft 365 data, based at `https://graph.microsoft.com/{version}/{resource}`, in `v1.0` or `beta`. The skill carries eight reference files for it: app registration and OAuth, users and groups, mail, calendar, OneDrive and SharePoint, Teams, Planner/To Do/OneNote, security and reports.

A task table maps the job to a file. Before that the agent answers four questions: which resource, which action, whose identity, and whether permissions are delegated or application-level. Each file then supplies endpoints, CRUD examples and the permission list. Shared pieces live in the hub: `$select` and `$filter`, sorting with `$orderby`, paging through `@odata.nextLink`, `POST /$batch` for 1 to 20 calls, delta queries for change tracking.

Auth runs on OAuth 2.0 through Azure AD. Skip the app registration, or leave permissions ungranted, and calls come back 403; that fix belongs in the Azure portal, not in the skill.

## Requirements
- Works with: Azure

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add markpitt/claude-skills --skill microsoft-graph -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add markpitt/claude-skills --skill microsoft-graph -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add markpitt/claude-skills --skill microsoft-graph -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install markpitt/claude-skills skills/microsoft-graph
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add markpitt/claude-skills --skill microsoft-graph -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/markpitt/claude-skills --path skills/microsoft-graph
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add markpitt/claude-skills --skill microsoft-graph -a opencode
```

### 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/markpitt/claude-skills/tree/HEAD/skills/microsoft-graph/SKILL.md

## When to use it
- build a Graph API call with the right `$select` and `$filter`
- find the file that covers mail, calendar or OneDrive work
- work out which permissions an app needs before the first call
- add paging and batch requests to an existing integration
- handle 429 responses without breaking the sync

## Example prompts
- Pull the user list from Azure AD with `$select=displayName,mail` and group it by department.
- Set up OAuth 2.0 for a new app registration and list the scopes needed to read mail.
- Page through the OneDrive file listing with `@odata.nextLink` and save the file names.

## Similar
- [ms365-tenant-manager](https://affpapa.org/en/nevibecode/skills/borghei-ms365-tenant-manager.md) — skill · 127 installs
- [Microsoft 365 Admin](https://affpapa.org/en/nevibecode/mcp/microsoft-365-admin.md) — MCP server · ★ 20 repo stars
- [Microsoft 365 Files](https://affpapa.org/en/nevibecode/mcp/microsoft-365-files.md) — MCP server · ★ 14 repo stars
- [Microsoft Graph MCP](https://affpapa.org/en/nevibecode/mcp/microsoft-graph-mcp.md) — MCP server · ★ 87 repo stars
- [microsoft](https://affpapa.org/en/nevibecode/skills/microsoft.md) — skill · 196 installs
- [Microsoft 365 SharePoint](https://affpapa.org/en/nevibecode/mcp/microsoft-365-sharepoint.md) — MCP server · ★ 14 repo stars

From the same set: [markpitt/claude-skills](https://affpapa.org/en/nevibecode/by/markpitt/claude-skills.md) — 10 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
