A GitHub Copilot agent skill is a folder of instructions and optional resources. It does not automatically give Copilot access to SharePoint, Teams, Planner or Outlook. Data access requires a separate application or MCP server that calls a supported API, authenticates with Microsoft Entra ID and returns results only within the permissions granted.
Separate instructions from actions
A typical architecture consists of the Copilot client, an explicitly provided tool or MCP server, a Microsoft Graph API and a reviewed response. The skill file can explain when to use the tool and how to present results. It replaces neither the API client nor authentication, authorisation, consent and error handling.
Microsoft Graph, for example, offers a DriveItem search within a specific drive or site hierarchy. The documented search function uses an endpoint such as /sites/{site-id}/drive/root/search(q='…'); permissions differ for delegated and application access, and this endpoint does not support the Sites.Selected application permission. For Teams messages and meeting transcripts, Microsoft specifies separate consents and application policies, some of them administrative.
Grant only the access required
Start with a single site and read-only access. For each endpoint, choose the documented least-privileged permission; check whether it is granted as delegated or application access and whether admin consent is required. Avoid broad Sites.Read.All or message permissions when the integration can work with narrower access. Limit queries, page size and returned fields, and do not pass sensitive results into prompts or logs unnecessarily.
Test in your own environment
Microsoft Graph endpoints and permissions vary by resource and national cloud. Verify the endpoint, SDK syntax, tenant consent and user access with a test account. Teams transcripts are available only for supported meetings and under documented conditions. Do not send meeting or message content to Copilot until the people affected, retention and purpose have been clarified.
Sources: GitHub: agent skills · Microsoft Graph: search for files · Microsoft Graph: channel messages and permissions · Microsoft Graph: meeting transcripts · Microsoft Graph: Selected permissions

