All skills
aktsmm avatar

/microsoft-graph-gateway

@848fd9b
by yamapanaktsmm/agent-skills26 stars
4

Route Microsoft Graph work in this workspace. 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.

Use this Skill: https://skilld.dev/gh/aktsmm/agent-skills/microsoft-graph-gateway

This session only. Nothing lands on disk.

SKILL.md

≈114 tokens always: the name and description. ≈1.4k when used: this file. ≈6.4k more on demand in 16 files.

Microsoft Graph Gateway

Use this skill as the orchestration shell for Microsoft Graph work in this workspace.

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 cannot answer, returns insufficient detail, or the user asks for exact Graph semantics.
  • 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

Write Routing

  • Use Microsoft Graph for all writes.
  • 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
  1. For Microsoft Graph execution, determine:
    • resource area
    • endpoint or tool
    • API version
    • least-privileged permission profile
    • minimal response shape
  2. Before any write, present a concise confirmation summary covering target, action, and payload intent.
  3. Execute through the chosen substrate.
  4. 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

Source: SKILL.md on GitHub

1 alert4mo3 checks · Risk HIGH
  • Gen Agent Trust Hub4mo

    The skill acts as a gateway for Microsoft Graph, providing tools to read and write data across Microsoft 365. It includes functionality to download and execute an external runner tool from a third-party GitHub repository. While the skill implements some safety measures like write confirmation summaries and blocking delete operations, the practice of downloading and running external code at runtime from non-verified sources presents a significant security risk.

  • Socket4mo

    1 alert: gptAnomaly

  • Snyk4mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 848fd9b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 17 hours ago.

Activeupdated 3 months ago
user-invocable
true
metadata
{
  "author": "yamapan (https://github.com/aktsmm)"
}
Other metadata
argument-hint
Describe the Graph task, target resource, and any draft payload, endpoint, or constraints

README badge

README badge for aktsmm/agent-skills/microsoft-graph-gateway