Microsoft Graph Gateway logo

Microsoft Graph Gateway

Community
aktsmm
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.

Overview

Publisheraktsmm
RepositoryAgent-Skills
Skill namemicrosoft-graph-gateway
Stars
27
Forks
5
Bundled files
27
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 27 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by aktsmm on GitHub. Read the source before you install it.

Installation

Install the Microsoft Graph Gateway AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/aktsmm/Agent-Skills/tree/master/microsoft-graph-gateway
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aktsmm/Agent-Skills.git /tmp/Agent-Skills
mkdir -p .claude/skills
cp -r /tmp/Agent-Skills/microsoft-graph-gateway .claude/skills/microsoft-graph-gateway
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Microsoft Graph Gateway in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Microsoft Graph Gateway on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Microsoft Graph Gateway is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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:

  1. Route common read requests to the right source.
  2. 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>/manager returns 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>/driveItem for metadata and /shares/<id>/driveItem/content through 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 mentions reject 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 @name in the body, or add the mention in the Teams UI, and say so in the report.
  • POST /chats with chatType: oneOnOne for an existing pair returns the existing chat (201 with the old createdDateTime); 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

  1. Classify the request as common read, gap-read, or write.
  2. For common read, try the WorkIQ route first.
  3. For gap-read or write, identify the target Microsoft Graph surface.
  4. Check the capability, routing, and substrate references before choosing the execution path.
    • raw execution contract
    • permission profiles
    • curated tool catalog
  5. For Microsoft Graph execution, determine:
    • resource area
    • endpoint or tool
    • API version
    • least-privileged permission profile
    • minimal response shape
  6. Before any write, present a concise confirmation summary covering target, action, and payload intent.
  7. Execute through the chosen substrate.
  8. Report the result, including any permission, throttling, or follow-up concerns.

Script Entry Points

Example Assets

Done Criteria

  • The request was routed to WorkIQ or Microsoft Graph for an explicit reason.
  • Graph calls used least-privileged intent and minimal response shape where practical.
  • Writes were confirmed before execution.
  • Deletes were blocked or separately escalated.
  • The response states what happened and any remaining risk or next action.

References

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Microsoft Graph Gateway AI skill do?

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.

Why use Microsoft Graph Gateway on TypingMind?

Because you install it once and use it with any model. Microsoft Graph Gateway is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Microsoft Graph Gateway in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/aktsmm/Agent-Skills/tree/master/microsoft-graph-gateway. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Microsoft Graph Gateway?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Microsoft Graph Gateway?

As many as you like. As long as a model supports skills, you can use Microsoft Graph Gateway with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Microsoft Graph Gateway AI skill free?

It is published on GitHub by aktsmm. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇