microsoft-365

microsoft-365 is a skill for Claude Code, Codex from Threat-Vector-Security/guardian-agent. It costs 0 tokens per session (846 once invoked), scanned A, original, Apache-2.0.

A workflow for using Microsoft 365 services such as Outlook Mail, Calendar, OneDrive, and Contacts through Microsoft's Graph API, which is the interface connecting software to those services.

In plain words
What is it for?
Use it for Outlook email and calendar tasks, OneDrive files, contacts, account information, and other Microsoft Graph operations.
Why use it?
It provides service-specific rules for reading, creating, and sending Microsoft 365 data without handling access tokens manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for Outlook email and calendar tasks, OneDrive files, contacts, account information, and other Microsoft Graph operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/threat-vector-security/guardian-agent/microsoft-365
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Threat-Vector-Security/guardian-agent --skill microsoft-365
Clone the repo
git clone --depth 1 https://github.com/Threat-Vector-Security/guardian-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for microsoft-365

README.md
[![agentmods](https://agentmods.dev/badge/skills/threat-vector-security/guardian-agent/microsoft-365.svg)](https://agentmods.dev/skills/threat-vector-security/guardian-agent/microsoft-365)
Your own site
<a href="https://agentmods.dev/skills/threat-vector-security/guardian-agent/microsoft-365"><img src="https://agentmods.dev/badge/skills/threat-vector-security/guardian-agent/microsoft-365.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 846 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00846
Opus 5 $0.00000 $0.00423
Sonnet 5 $0.00000 $0.00169
Haiku 4.5 $0.00000 $0.00085

Measured 8d ago against content hash f3a24b2f0a57, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

microsoft-365 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/microsoft-365/SKILL.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Microsoft 365

Use the native Microsoft 365 tools for Outlook Mail, Calendar, OneDrive, and Contacts via the Microsoft Graph API.

Core rules:

  • Authentication is handled by the connected Microsoft 365 integration. Never ask the user for OAuth access tokens.
  • If the user asks for a generic email or inbox task and both Microsoft 365 and Google Workspace are available, ask which mailbox they mean before acting. Do not silently choose Outlook.
  • For simple plain-text Outlook drafts, prefer outlook_draft.
  • For simple plain-text Outlook sends, prefer outlook_send.
  • For everything else, use m365.
  • If you are unsure about a Graph endpoint or payload shape, use m365_schema before guessing.

Behavioral rules — CRITICAL:

  • Act, don't offer. When the user asks to read email, list files, check calendar, etc., call the tool immediately. Do not describe what you could do or ask if the user wants you to proceed. Read operations are safe — just execute them.
  • Use the user profile endpoint. For questions about the user's identity, email address, display name, or account, call m365 with service: "user", resource: "me", method: "get". This returns displayName, mail, userPrincipalName, and more.
  • Always select rich fields. When listing emails, always include toRecipients and bodyPreview alongside subject, from, receivedDateTime. The user may ask follow-up questions about recipients or content. When listing events, include attendees. When listing contacts, include emailAddresses.
  • Present results clearly. Format email listings as numbered lists with subject, sender, date, and a brief preview. For calendar events include time, subject, and location. For OneDrive files include name, size, and last modified date.
  • Handle follow-ups from context. If the user asks about details from a previous response (e.g. "who was that email to?"), check if the data is already in the conversation. If not, fetch the specific item by ID with full details rather than saying "I don't have access."

Workflow:

  1. For reads, just execute the call. No confirmation needed.
  2. Prefer narrow reads over broad listings. Use $select to pick useful fields (but err on the side of too many fields, not too few).
  3. Use $filter for server-side filtering instead of fetching everything.
  4. For writes, confirm missing critical details only. Do not add unnecessary confirmation.
  5. Expect approvals for drafts, sends, and most write operations.
  6. If a Microsoft action fails for auth, tell the user to connect Microsoft 365 in Settings. Do not ask for raw tokens.

How to use this skill:

  • Outlook Mail task: read references/outlook.md
  • Calendar task: read references/calendar.md
  • OneDrive task: read references/onedrive.md

User profile (no reference file needed):

  • Get current user's email/name: service: "user", resource: "me", method: "get", params: { "$select": "displayName,mail,userPrincipalName,jobTitle" }

General m365 rules:

  • Resource paths use forward slashes: me/messages, me/events, me/drive/root/children.
  • Resource IDs go in the id parameter, not in the resource path.
  • OData query parameters ($filter, $select, $top, $orderby) go in params.
  • Request bodies go in json.
  • The service field determines scope validation: mail, calendar, onedrive, contacts, user.

Read only the domain reference you need for the current request. Do not load all references up front.

Read the full file on GitHub · 50 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 50 lines · 0 tokens per session scan A f3a24b2f0a57

Subscribe to this mod's changes

microsoft-365 is a skill published in the GitHub repository Threat-Vector-Security/guardian-agent (13 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 846 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

post-build-flow

Handles workflow verification and setup after build-workflow succeeds, or when the message contains workflow-verification-follow-up or workflow-setup-required. Load after direct builds, when verificationReadiness requires action, or on orchestrator verify/setup follow-up turns.

n8n-io/n8n · 53 tokens

intent-recognition

Classifies automation requests using two decisions: anchor (which primitive owns the top-level control flow — workflow-anchored, agent-anchored, needs-clarification, or out-of-scope) and embedsother (whether the other primitive appears embedded inside — an agent step inside a workflow, or a workflow invoked as an…

n8n-io/n8n · 146 tokens

planned-task-runtime

Handles system follow-up turns: planned-task-follow-up (synthesize, replan, build-workflow, checkpoint), background-task-completed, running-tasks context, and create-tasks silence rules. Load whenever any of these tags appear or after calling create-tasks.

n8n-io/n8n · 58 tokens

config-evals

Builds and maintains configuration-based evaluations on a workflow with the eval-config tool. Use when the user asks to set up, add, view, change, or remove an evaluation, score, grade, or judge a workflow's output, or measure answer quality against a test dataset. This is the only eval form Instance AI handles — it…

n8n-io/n8n · 80 tokens

one-off-operations

Handles one-off operations: the request is a concrete effect that happens once — export or copy data somewhere, a migration, a backfill, a cleanup — with no trigger, schedule, or reuse intent. The workflow is the vehicle, not the deliverable. Users rarely say "one-off"; infer it from the task's shape. Load before…

n8n-io/n8n · 123 tokens

debugging-executions

Debug failed or wrong-output workflow executions using executions tools. Load when the user reports execution failures, unexpected node output, empty parameter values after a successful run, or a node showing a red or failed expression error.

n8n-io/n8n · 48 tokens