microsoft-graph-apilisted
Install: claude install-skill aiskillstore/marketplace
# Microsoft Graph API Integration
Access Microsoft 365 emails and calendar through TypeScript scripts executed via Bun.
## Overview
This skill provides access to Microsoft Graph API for:
- **Email**: List, read, search, and send emails
- **Calendar**: View, search, and create calendar events
All scripts return JSON and handle authentication automatically.
## Response Format
All scripts output JSON with a consistent structure:
### Success
```json
{"status": "success", "data": [...]}
```
### Authentication Required
```json
{
"status": "auth_required",
"userCode": "ABC123",
"verificationUri": "https://microsoft.com/devicelogin",
"expiresAt": "2024-01-15T10:30:00.000Z",
"message": "To sign in, use a web browser..."
}
```
When you receive `auth_required`, display to the user:
```
To access your email, please authenticate:
1. Go to: https://microsoft.com/devicelogin
2. Enter code: ABC123
Let me know when you've completed authentication.
```
Then **retry the same command** - the script will automatically complete authentication.
### Authentication Pending
```json
{
"status": "auth_pending",
"userCode": "ABC123",
"verificationUri": "https://microsoft.com/devicelogin",
"expiresAt": "...",
"message": "..."
}
```
User has been shown the code but hasn't completed login yet. Remind them to complete authentication.
### Error
```json
{"status": "error", "error": "Error description"}
```
## Email Access
All scripts are located at `${CLAUDE_PLUGIN_ROOT}/ski