Logo van Microsoft 365

Microsoft 365

Community
arozumenko
microsoft-365

Use when the user asks to 'check my email/Teams/calendar', 'what meetings do I have', 'any messages about X', or whenever a task needs live Microsoft 365 data rather than memory. Microsoft 365 (Graph) access to email, Teams, calendar, and SharePoint — scriptable scans plus an interactive query.py.

Overzicht

Uitgeverarozumenko
Repositorysdlc-skills
Skillnaammicrosoft-365
Sterren
26
Forks
10
Meegeleverde bestanden
23
LicentieApache-2.0
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 23

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door arozumenko op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Microsoft 365 in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/arozumenko/sdlc-skills/tree/main/skills/microsoft-365
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/arozumenko/sdlc-skills.git /tmp/sdlc-skills
mkdir -p .claude/skills
cp -r /tmp/sdlc-skills/skills/microsoft-365 .claude/skills/microsoft-365
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Microsoft 365 in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Microsoft 365 automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Microsoft 365 niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Microsoft Graph Skill

Provides Microsoft 365 data access via the Microsoft Graph API. Two operating modes:

Mode 1 — LLM-less Scan Scripts (Scheduled)

Four scripts run autonomously on a schedule without involving an LLM:

ScriptWhat it scans
scripts/scan-email.pyInbox messages newer than --since
scripts/scan-teams.pyTeams channel messages newer than --since
scripts/scan-calendar.pyCalendar events starting within --since window
scripts/scan-sharepoint.pySharePoint/OneDrive files modified within --since

Common CLI arguments

--since     Lookback window, e.g. 1h, 4h, 24h, 7d  (default: 1h)
--output    Path for JSON output                     (default: m365-inbox.json)
--relay     Path to a script or webhook to call when items are found
--role      Role name passed to the relay for routing

Per-script additional arguments

ScriptExtra flagPurpose
scan-email.py--sender boss@company.comFilter to a specific sender
scan-teams.py--team-id TEAM_IDLimit to a single team
scan-calendar.py--hours-ahead 24Look forward N hours instead of backward
scan-sharepoint.py--site-id SITE_IDScan a SharePoint site instead of personal OneDrive

How results are delivered

  1. If no items are found the script exits silently (exit code 0).
  2. If items are found they are appended (not overwritten) to --output as a JSON array.
  3. If --relay is provided the script calls:
    python3 <relay> --role <role> --data <output_path>
    The relay script is called with the found items and is responsible for any further routing or notification.

Output record shape

Every item in the output JSON array has the following fields:

json
{
  "source":  "email | teams | calendar | sharepoint",
  "ts":      "2026-04-04T11:00:00+00:00",
  "summary": "one-line description",
  "detail":  { /* raw API fields */ },
  "urgent":  false
}

Example cron entry

0 * * * *  cd /path/to/project && python3 scripts/scan-email.py --since 1h --relay scripts/notify.py --role triage

Mode 2 — Interactive Query via Claude (Bash Tool)

scripts/query.py is called by Claude during a session when the user asks about their Microsoft 365 data.

Typed subcommands (recommended):

bash
python3 scripts/query.py email --filter "isRead eq false" --select "subject,from" --top 20
python3 scripts/query.py teams channels --team-id TEAM_ID
python3 scripts/query.py teams messages --team-id TEAM_ID --channel-id CHANNEL_ID --top 20
python3 scripts/query.py calendar --start 2026-04-04 --end 2026-04-11
python3 scripts/query.py sharepoint files --drive-id DRIVE_ID --path /Documents

Sample file mode:

bash
python3 scripts/query.py --sample samples/email/unread-today.yaml

Raw endpoint mode:

bash
python3 scripts/query.py --endpoint "/me/messages" --filter "isRead eq false" --select "subject,from" --top 20
python3 scripts/query.py --endpoint "/me/calendarView" --params "startDateTime=2024-01-01T00:00:00Z&endDateTime=2024-01-07T23:59:59Z"

Results are printed as pretty-printed JSON to stdout. Claude reads and summarises them for the user. All pages are fetched automatically via @odata.nextLink pagination.

Sample YAML files in samples/ describe pre-built queries that Claude can run by name.

Authentication

Scripts auto-install Python dependencies (from requirements.txt) into ~/.msgraph-skill/.venv/ on first run — no manual pip install or venv creation needed. A built-in Azure AD app ID is used by default, so no environment variables or Azure portal setup is required for most users.

Token cache is stored at ~/.msgraph-skill/token_cache.json (shared across all projects — authenticate once, use everywhere).

Login flow (important for Claude)

The default login opens an interactive browser (auth-code + PKCE on a localhost redirect). This passes Conditional Access policies that block the device-code flow. Because it needs a browser + a local redirect listener, ask the user to run it in their own terminal:

python3 scripts/auth.py login            # Browser auth-code+PKCE (default)
python3 scripts/auth.py status           # Check token validity
python3 scripts/auth.py logout           # Clear cached credentials

If the browser flow can't be used (no GUI / SSH), fall back:

python3 scripts/auth.py login device     # Device-code — relay LOGIN_URL/LOGIN_CODE to user
python3 scripts/auth.py login authcode   # Browser via nativeclient redirect (manual URL paste)

For login device, the output contains LOGIN_URL=... and LOGIN_CODE=... — relay both to the user. Note: many tenants block device-code via Conditional Access ("...an authentication flow that is restricted by your admin"); prefer the default browser flow.

Environment variables (optional)

VariableDefaultDescription
SDLC_SKILLS_CACHE_DIR~/.msgraph-skillShared cache root for all sdlc-skills (token cache, venv). When set, the skill stores its data under $SDLC_SKILLS_CACHE_DIR/msgraph/.
MSGRAPH_CLIENT_ID3d7688c6-f449-4d04-8b0d-57d94818e922Public client with localhost redirect; override with your own Azure AD app
MSGRAPH_TENANT_IDcommonRestrict to a specific tenant

Variables can be set via environment or in a .env file at the skill root or cwd. Most users do not need to set these.

Custom Azure AD app (advanced)

If your organisation blocks third-party app IDs or you need additional permissions, register your own Azure AD app:

  1. Azure portal → App registrations → New registration.
  2. Add delegated permissions: Mail.Read, Calendars.Read, Team.ReadBasic.All, Channel.ReadBasic.All, Sites.Read.All, Files.Read.All.
  3. Under Authentication → Add platform → Mobile and desktop, enable the http://localhost redirect URI (required for the default browser flow).
  4. Set MSGRAPH_CLIENT_ID=<your-app-id> in your .env and re-run login.

Installation

Claude Code plugin marketplace

/plugin marketplace add arozumenko/sdlc-skills
/plugin install microsoft-365@sdlc-skills

Direct install via npx

bash
npx github:arozumenko/sdlc-skills init --skills microsoft-365 --target claude

Python dependencies are installed automatically into ~/.msgraph-skill/.venv/ on first script run — no manual setup needed.

First-time authentication

bash
python3 scripts/auth.py login

Known issues / troubleshooting

  • Conditional Access blocks device-code — Error: "Your sign-in was successful but does not meet the criteria to access this resource ... an authentication flow that is restricted by your admin." Many tenants block the device-code flow via Conditional Access. This is why the default login now uses the interactive browser (auth-code + PKCE) flow. If you still see this message after the browser sign-in, the CA policy is keying on device compliance / managed app / location rather than the auth flow — that needs your tenant admin (check Entra → Sign-in logs → your sign-in → Conditional Access tab for the exact policy).

  • AADSTS50011 redirect URI mismatch — The configured MSGRAPH_CLIENT_ID app has no http://localhost redirect registered. The default app does; if you override it with your own app, register the http://localhost redirect (Authentication → Mobile and desktop applications). The legacy device-code flow (login device) needs no redirect URI if you must avoid this.

  • Default app is a shared public client — 3d7688c6-... is a third-party public-client app reused because it has the http://localhost redirect. It is not controlled by this project. For a durable / auditable setup, register your own Azure AD app (see Custom Azure AD app above) and set MSGRAPH_CLIENT_ID.

  • Teams scopes may not consent on the default app — The default app's registered scopes do not include Team.ReadBasic.All / Channel.ReadBasic.All. Mail, calendar, and SharePoint work; Teams scans may fail with a consent error. Use your own app registration with all six delegated permissions if you need Teams.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Microsoft 365?

Use when the user asks to 'check my email/Teams/calendar', 'what meetings do I have', 'any messages about X', or whenever a task needs live Microsoft 365 data rather than memory. Microsoft 365 (Graph) access to email, Teams, calendar, and SharePoint — scriptable scans plus an interactive query.py.

Waarom Microsoft 365 gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Microsoft 365 bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Microsoft 365 in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/arozumenko/sdlc-skills/tree/main/skills/microsoft-365. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Microsoft 365 gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Microsoft 365 gebruiken?

Zoveel als je wilt. Je kunt Microsoft 365 gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Microsoft 365 gratis?

Ja. Deze skill is door arozumenko op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇