outlook-email
БесплатноБез исполняемых скриптовНе проверенSend, read, and manage emails via Microsoft Outlook using the Graph API. Use when someone asks to "send email via Outlook", "read Outlook inbox", "automate…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Outlook Email
Overview
This skill helps AI agents send, read, search, and automate emails through Microsoft Outlook via the Graph API. It covers sending messages (plain text, HTML, attachments, inline images), reading and searching mailboxes, folder management, mail rules, and email automation patterns.
Instructions
Authentication
// Microsoft Entra app registration (formerly Azure AD). Application permissions
// (admin consent required) for a daemon using /users/{id}:
// Mail.ReadWrite - read/write mail (Mail.Read is enough for reading only)
// Mail.Send - send mail as any user the app can reach
// MailboxSettings.ReadWrite - auto-replies and mailbox settings
// For a signed-in person use delegated permissions and /me instead of /users/{id}.
// Application mail permissions cover every mailbox in the tenant unless an Exchange
// admin restricts the app to specific mailboxes.
// npm install @microsoft/microsoft-graph-client @azure/identity
import { ClientSecretCredential } from '@azure/identity';
import fs from 'node:fs';
import { Client } from '@microsoft/microsoft-graph-client';
import { TokenCredentialAuthenticationProvider } from '@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials';
const credential = new ClientSecretCredential(
process.env.AZURE_TENANT_ID!,
process.env.AZURE_CLIENT_ID!,
process.env.AZURE_CLIENT_SECRET!
);
const authProvider = new TokenCredentialAuthenticationProvider(credential, {
scopes: ['https://graph.microsoft.com/.default'],
});
const graphClient = Client.initWithMiddleware({ authProvider });
const userId = '[email protected]'; // user id or userPrincipalName
Send Emails
// sendMail answers 202 Accepted with no body: delivery happens afterwards.
// Simple text email
await graphClient.api(`/users/${userId}/sendMail`)
.post({
message: {
subject: 'Sprint 14 Recap',
body: {
contentType: 'Text',
content: 'Hi team,\n\nSprint 14 is complete. We shipped 3 features and fixed 12 bugs.\n\nBest,\nSarah',
},
toRecipients: [
{ emailAddress: { address: '[email protected]' } },
],
},
saveToSentItems: true,
});
// HTML email with CC, BCC, and importance
await graphClient.api(`/users/${userId}/sendMail`)
.post({
message: {
subject: 'Q1 Revenue Report — Action Required',
body: {
contentType: 'HTML',
content: `
<h2>Q1 2026 Revenue Report</h2>
<table border="1" cellpadding="8" style="border-collapse:collapse;">
<tr style="background:#f0f0f0;"><th>Metric</th><th>Value</th><th>Change</th></tr>
<tr><td>Revenue</td><td>$4.2M</td><td style="color:green;">+23%</td></tr>
<tr><td>New Customers</td><td>847</td><td style="color:green;">+40%</td></tr>
<tr><td>Churn</td><td>2.1%</td><td style="color:green;">-38%</td></tr>
</table>
<p>Please review and share feedback by Friday.</p>
`,
},
toRecipients: [
{ emailAddress: { address: '[email protected]', name: 'Alex' } },
],
ccRecipients: [
{ emailAddress: { address: '[email protected]', name: 'Morgan' } },
],
bccRecipients: [
{ emailAddress: { address: '[email protected]' } },
],
importance: 'high',
isReadReceiptRequested: false,
},
});
// Email with file attachment (inline base64 only for files under 3 MB)
const fileBuffer = fs.readFileSync('./reports/monthly-report-feb-2026.pdf');
await graphClient.api(`/users/${userId}/sendMail`)
.post({
message: {
subject: 'Monthly Report Attached',
body: { contentType: 'Text', content: 'Please find the monthly report attached.' },
toRecipients: [{ emailAddress: { address: '[email protected]' } }],
attachments: [
{
'@odata.type': '#microsoft.graph.fileAttachment',
name: 'monthly-report-feb-2026.pdf',
contentType: 'application/pdf',
contentBytes: fileBuffer.toString('base64'),
},
],
},
});
// Reply, reply all, or forward
await graphClient.api(`/users/${userId}/messages/${messageId}/reply`)
.post({ comment: 'Thanks for the update. I\'ll review by EOD.' });
await graphClient.api(`/users/${userId}/messages/${messageId}/forward`)
.post({ comment: 'FYI', toRecipients: [{ emailAddress: { address: '[email protected]' } }] });
Read Emails
// Get inbox messages
const messages = await graphClient.api(`/users/${userId}/mailFolders/inbox/messages`)
.select('id,subject,from,receivedDateTime,bodyPreview,isRead,importance,hasAttachments')
.top(25)
.orderby('receivedDateTime DESC')
.get();
messages.value.forEach(msg => {
const read = msg.isRead ? ' ' : '*';
const att = msg.hasAttachments ? '+' : ' ';
console.log(`${read}${att} ${msg.from.emailAddress.address}: ${msg.subject}`);
});
// Get unread me
Установить outlook-email в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл outlook-email?
Send, read, and manage emails via Microsoft Outlook using the Graph API. Use when someone asks to "send email via Outlook", "read Outlook inbox", "automate Outlook emails", "manage Outlook folders", "Outlook API integration", "email automation with Graph API", "search Outlook emails", or "process incoming emails". Covers sending (plain, HTML, attachments), reading, searching, folders, rules, and focused inbox via Microsoft Graph API.
Как установить скилл outlook-email?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл outlook-email запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic