microsoft-graph-gateway
БесплатноЗапускает вложенные скриптыНе проверенRoute Microsoft Graph work from VS Code. Use when users want to read or write Outlook mail, calendar events, contacts, OneDrive or SharePoint files, Teams…
от aktsmm★ 27 звёзд на GitHubОб этом скилле
Microsoft Graph Gateway
Use this skill as the orchestration shell for Microsoft Graph work from VS Code.
This skill does not try to abstract all of Microsoft Graph into a fixed checklist. Instead, it does two things:
- Route common read requests to the right source.
- Enforce safe execution rules before Graph writes or advanced reads.
When To Use
- The user wants to read or write Microsoft 365 data from VS Code.
- The request mentions mail, email, inbox, Outlook, meetings, calendar, contacts, OneDrive, SharePoint, Teams, Planner, To Do, users, groups, or Microsoft Graph.
- The user wants an exact Microsoft Graph endpoint, permission, query option, or payload.
- WorkIQ can likely answer a common read request, but Graph may be needed as a fallback.
Routing Rules
Read Routing
- Prefer WorkIQ first for common read scenarios such as inbox checks, meeting lookups, file discovery, and lightweight summaries.
- Use Microsoft Graph for gap-read scenarios when WorkIQ lacks the required capability or detail, or the user asks for exact Graph semantics. Authentication, consent, or permission refusal is not a capability gap: stop the affected operation, report the required authorization, and do not switch routes to bypass it. An ambiguous failure does not establish a gap.
- Go straight to Microsoft Graph when the user asks for:
- exact endpoint names or raw REST calls
- precise properties,
$select,$filter,$expand, or API version control - Teams, Planner, To Do, directory, or permission-oriented data
- schema, permission, throttling, batching, delta, or webhook behavior
- Directory reads (
/users,/users/{id}/manager) worked with an Azure CLI Graph token in a corporate tenant;/users/<mail>/managerreturns 404 when mail differs from the UPN, so resolve the id with/users?$filter=mail eq '<address>'(URL-encoded) first and walk/users/{id}/manager. Do not assume the same token can read mail or files. - A file behind a sharing link can be read without knowing its drive: base64url-encode the full link (
u!prefix,=stripped,/→_,+→-) and read/shares/<id>/driveItemfor metadata and/shares/<id>/driveItem/contentthrough the blob download (the file may be label-encrypted OLE, not zip). Reads do not imply write access.
Write Routing
- Use Microsoft Graph for all writes. Chat-message
mentionsreject a personal Microsoft account (PersonalMicrosoftAccountUser is not supported in Mentions, HTTP 400); those users are missing from tenant directory lookups and have empty display names in chat members. Post without a real mention and address them by bold@namein the body, or add the mention in the Teams UI, and say so in the report. POST /chatswithchatType: oneOnOnefor an existing pair returns the existing chat (201 with the oldcreatedDateTime); use its id to post.- Treat send, create, update, move, upload, reply, assign, and respond operations as writes.
- Require explicit confirmation before any write.
- Keep delete actions disabled by default or behind a stronger confirmation step.
Operating Model
- This skill is a thin shell.
- The execution substrate can be a Graph CLI, a self-hosted MCP server, or another Graph gateway.
- Do not invent endpoints or permissions from memory when an authoritative lookup is available.
- Keep delegated and application permission flows separate.
- Prefer least-privileged scopes and minimal projections.
Procedure
- Classify the request as common read, gap-read, or write.
- For common read, try the WorkIQ route first.
- For gap-read or write, identify the target Microsoft Graph surface.
- Check the capability, routing, and substrate references before choosing the execution path.
- raw execution contract
- permission profiles
- curated tool catalog
- For Microsoft Graph execution, determine:
- resource area
- endpoint or tool
- API version
- least-privileged permission profile
- minimal response shape
- Before any write, present a concise confirmation summary covering target, action, and payload intent.
- Execute through the chosen substrate.
- Report the result, including any permission, throttling, or follow-up concerns.
Script Entry Points
- Use Invoke-GraphGateway.ps1 for raw Graph execution through the selected substrate.
- Use invoke-graph-gateway.sh on macOS or Linux when
pwshis installed. - Use New-GraphWriteConfirmation.ps1 to generate a concise write confirmation summary before execution.
- Use Test-GraphGatewayScaffold.ps1 to smoke-test the current scaffold without live Graph execution.
- Use test-graph-gateway-scaffold.sh on macOS or Linux when
pwshis installed. - Use Get-GraphGatewayRunnerStatus.ps1 to ins
Установить microsoft-graph-gateway в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл microsoft-graph-gateway?
Route Microsoft Graph work from VS Code. Use when users want to read or write Outlook mail, calendar events, contacts, OneDrive or SharePoint files, Teams, Planner, To Do, users, groups, directory data, or arbitrary Microsoft Graph endpoints from VS Code. Prefer WorkIQ for common read scenarios. Use Microsoft Graph for write actions and gap-read scenarios that need exact Graph properties, filters, permissions, or endpoints.
Как установить скилл microsoft-graph-gateway?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл microsoft-graph-gateway запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic