[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EFR9J0B6C8KF35B3DBD79B":3,"skill-same:01M6EFR9J0B6C8KF35B3DBD79B":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":35,"frontMatter":36,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":42,"ownerHtmlUrl":43,"ownerBlogUrl":7,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M6EFR9J0B6C8KF35B3DBD79B","outlook-email","Outlook 邮件检索与管理",null,"","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Foutlook-email\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TPH3VQWKQZXV7EPF8VZ","办公行政人员","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8CA5BYP6JTMPXCGK1Y0G4M3","邮件检索与管理","SCENARIO","使用场景",[30,31,32],"email","outlook","outlook email","2026-11-10 10:12:30",false,"# Outlook Email\n\n## Overview\n\nThis 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.\n\n## Instructions\n\n### Authentication\n\n```typescript\n\u002F\u002F Same Azure AD app registration as other Microsoft 365 services\n\u002F\u002F Permissions needed:\n\u002F\u002F   Mail.ReadWrite — read\u002Fwrite user's mail\n\u002F\u002F   Mail.Send — send mail as user\n\u002F\u002F   MailboxSettings.ReadWrite — manage rules, auto-replies\n\nimport { ClientSecretCredential } from '@azure\u002Fidentity';\nimport { Client } from '@microsoft\u002Fmicrosoft-graph-client';\nimport { TokenCredentialAuthenticationProvider } from '@microsoft\u002Fmicrosoft-graph-client\u002FauthProviders\u002FazureTokenCredentials';\n\nconst credential = new ClientSecretCredential(\n  process.env.AZURE_TENANT_ID,\n  process.env.AZURE_CLIENT_ID,\n  process.env.AZURE_CLIENT_SECRET\n);\n\nconst authProvider = new TokenCredentialAuthenticationProvider(credential, {\n  scopes: ['https:\u002F\u002Fgraph.microsoft.com\u002F.default'],\n});\n\nconst graphClient = Client.initWithMiddleware({ authProvider });\n```\n\n### Send Emails\n\n```typescript\n\u002F\u002F Simple text email\nawait graphClient.api(`\u002Fusers\u002F${userId}\u002FsendMail`)\n  .post({\n    message: {\n      subject: 'Sprint 14 Recap',\n      body: {\n        contentType: 'Text',\n        content: 'Hi team,\\n\\nSprint 14 is complete. We shipped 3 features and fixed 12 bugs.\\n\\nBest,\\nSarah',\n      },\n      toRecipients: [\n        { emailAddress: { address: 'team@company.com' } },\n      ],\n    },\n    saveToSentItems: true,\n  });\n\n\u002F\u002F HTML email with CC, BCC, and importance\nawait graphClient.api(`\u002Fusers\u002F${userId}\u002FsendMail`)\n  .post({\n    message: {\n      subject: 'Q1 Revenue Report — Action Required',\n      body: {\n        contentType: 'HTML',\n        content: `\n          \u003Ch2>Q1 2026 Revenue Report\u003C\u002Fh2>\n          \u003Ctable border=\"1\" cellpadding=\"8\" style=\"border-collapse:collapse;\">\n            \u003Ctr style=\"background:#f0f0f0;\">\u003Cth>Metric\u003C\u002Fth>\u003Cth>Value\u003C\u002Fth>\u003Cth>Change\u003C\u002Fth>\u003C\u002Ftr>\n            \u003Ctr>\u003Ctd>Revenue\u003C\u002Ftd>\u003Ctd>$4.2M\u003C\u002Ftd>\u003Ctd style=\"color:green;\">+23%\u003C\u002Ftd>\u003C\u002Ftr>\n            \u003Ctr>\u003Ctd>New Customers\u003C\u002Ftd>\u003Ctd>847\u003C\u002Ftd>\u003Ctd style=\"color:green;\">+40%\u003C\u002Ftd>\u003C\u002Ftr>\n            \u003Ctr>\u003Ctd>Churn\u003C\u002Ftd>\u003Ctd>2.1%\u003C\u002Ftd>\u003Ctd style=\"color:green;\">-38%\u003C\u002Ftd>\u003C\u002Ftr>\n          \u003C\u002Ftable>\n          \u003Cp>Please review and share feedback by Friday.\u003C\u002Fp>\n        `,\n      },\n      toRecipients: [\n        { emailAddress: { address: 'ceo@company.com', name: 'Alex' } },\n      ],\n      ccRecipients: [\n        { emailAddress: { address: 'cfo@company.com', name: 'Morgan' } },\n      ],\n      bccRecipients: [\n        { emailAddress: { address: 'archive@company.com' } },\n      ],\n      importance: 'high',\n      isReadReceiptRequested: false,\n    },\n  });\n\n\u002F\u002F Email with file attachment\nconst fileBuffer = fs.readFileSync('\u002Fpath\u002Fto\u002Freport.pdf');\nawait graphClient.api(`\u002Fusers\u002F${userId}\u002FsendMail`)\n  .post({\n    message: {\n      subject: 'Monthly Report Attached',\n      body: { contentType: 'Text', content: 'Please find the monthly report attached.' },\n      toRecipients: [{ emailAddress: { address: 'manager@company.com' } }],\n      attachments: [\n        {\n          '@odata.type': '#microsoft.graph.fileAttachment',\n          name: 'monthly-report-feb-2026.pdf',\n          contentType: 'application\u002Fpdf',\n          contentBytes: fileBuffer.toString('base64'),\n        },\n      ],\n    },\n  });\n\n\u002F\u002F Reply, reply all, or forward\nawait graphClient.api(`\u002Fusers\u002F${userId}\u002Fmessages\u002F${messageId}\u002Freply`)\n  .post({ comment: 'Thanks for the update. I\\'ll review by EOD.' });\nawait graphClient.api(`\u002Fusers\u002F${userId}\u002Fmessages\u002F${messageId}\u002Fforward`)\n  .post({ comment: 'FYI', toRecipients: [{ emailAddress: { address: 'partner@external.com' } }] });\n```\n\n### Read Emails\n\n```typescript\n\u002F\u002F Get inbox messages\nconst messages = await graphClient.api(`\u002Fusers\u002F${userId}\u002FmailFolders\u002Finbox\u002Fmessages`)\n  .select('id,subject,from,receivedDateTime,bodyPreview,isRead,importance,hasAttachments')\n  .top(25)\n  .orderby('receivedDateTime DESC')\n  .get();\n\nmessages.value.forEach(msg => {\n  const read = msg.isRead ? '  ' : '?';\n  const att = msg.hasAttachments ? '?' : '  ';\n  console.log(`${read}${att} ${msg.from.emailAddress.address}: ${msg.subject}`);\n});\n\n\u002F\u002F Get unread messages only\nconst unread = await graphClient.api(`\u002Fusers\u002F${userId}\u002FmailFolders\u002Finbox\u002Fmessages`)\n  .filter('isRead eq false')\n  .select('id,subject,from,receivedDateTime,bodyPreview')\n  .orderby('receivedDateTime DESC')\n  .get();\n\n\u002F\u002F Get full message body\nconst fullMsg = await graphClient.api(`\u002Fusers\u002F${userId}\u002Fmessages\u002F${messageId}`)\n  .select('subject,body,from,toRecipients,ccRecipients,receivedDateTime,attachments')\n  .expand('attachments')\n  .get();\n\nconsole.log('Subject:', fullMsg.subject);\nconsole.log('Body:', fullMsg.body.content); \u002F\u002F HTML or Text\n\n\u002F\u002F Download attachment\nconst attachment = await graphClient\n  .api(`\u002Fusers\u002F${userId}\u002Fmessages\u002F${messageId}\u002Fattachments\u002F${attachmentId}`)\n  .get();\nconst fileData = Buffer.from(attachment.contentBytes, 'base64');\nfs.writeFileSync(attachment.name, fileData);\n```\n\n### Search Emails\n\n```typescript\n\u002F\u002F Search by subject\u002Fbody content\nconst results = await graphClient.api(`\u002Fusers\u002F${userId}\u002Fmessages`)\n  .search('\"quarterly report\" OR \"Q1 revenue\"')\n  .select('subject,from,receivedDateTime,bodyPreview')\n  .top(20)\n  .get();\n\n\u002F\u002F Filter by sender\nconst fromSender = await graphClient.api(`\u002Fusers\u002F${userId}\u002Fmessages`)\n  .filter(\"from\u002FemailAddress\u002Faddress eq 'ceo@company.com'\")\n  .select('subject,receivedDateTime,bodyPreview')\n  .orderby('receivedDateTime DESC')\n  .get();\n\n\u002F\u002F Filter by date range\nconst recentImportant = await graphClient.api(`\u002Fusers\u002F${userId}\u002Fmessages`)\n  .filter(\"receivedDateTime ge 2026-02-01T00:00:00Z and importance eq 'high'\")\n  .select('subject,from,receivedDateTime')\n  .orderby('receivedDateTime DESC')\n  .get();\n\n\u002F\u002F Filter messages with attachments\nconst withAttachments = await graphClient.api(`\u002Fusers\u002F${userId}\u002Fmessages`)\n  .filter('hasAttachments eq true')\n  .select('subject,from,receivedDateTime')\n  .top(20)\n  .get();\n```\n\n### Folder Management\n\n```typescript\n\u002F\u002F List, create folders\nconst folders = await graphClient.api(`\u002Fusers\u002F${userId}\u002FmailFolders`)\n  .select('id,displayName,totalItemCount,unreadItemCount').get();\nconst newFolder = await graphClient.api(`\u002Fusers\u002F${userId}\u002FmailFolders`)\n  .post({ displayName: 'Project Alpha' });\n\n\u002F\u002F Move message to folder, mark as read\nawait graphClient.api(`\u002Fusers\u002F${userId}\u002Fmessages\u002F${messageId}\u002Fmove`)\n  .post({ destinationId: folderId });\nawait graphClient.api(`\u002Fusers\u002F${userId}\u002Fmessages\u002F${messageId}`)\n  .patch({ isRead: true });\n```\n\nFor bulk operations, use `POST \u002F$batch` with up to 20 requests (e.g., batch mark-as-read).\n\n### Mail Rules (Inbox Rules)\n\n```typescript\n\u002F\u002F Create inbox rule\nawait graphClient.api(`\u002Fusers\u002F${userId}\u002FmailFolders\u002Finbox\u002FmessageRules`)\n  .post({\n    displayName: 'Move newsletters to folder',\n    sequence: 1,\n    isEnabled: true,\n    conditions: {\n      senderContains: ['newsletter', 'digest', 'weekly-update'],\n    },\n    actions: {\n      moveToFolder: newsletterFolderId,\n      markAsRead: true,\n    },\n  });\n\n```\n\nFor auto-replies (Out of Office), use `PATCH \u002Fusers\u002F{userId}\u002FmailboxSettings` with `automaticRepliesSetting` — set `status: 'scheduled'` with start\u002Fend dates, and provide separate `internalReplyMessage` and `externalReplyMessage`.\n\n### Webhooks (New Email Notifications)\n\n```typescript\n\u002F\u002F Subscribe to new messages (expires in 3 days, must renew)\nconst subscription = await graphClient.api('\u002Fsubscriptions')\n  .post({\n    changeType: 'created',\n    notificationUrl: 'https:\u002F\u002Fyour-app.com\u002Fapi\u002Femail-webhook',\n    resource: `\u002Fusers\u002F${userId}\u002FmailFolders\u002Finbox\u002Fmessages`,\n    expirationDateTime: new Date(Date.now() + 3 * 24 * 60 * 60 * 1000).toISOString(),\n    clientState: 'your-secret-token',\n  });\n```\n\nIn the webhook handler, return the `validationToken` on subscription creation, then fetch the new message by ID from `notification.resourceData.id` and process it (forward to Slack, trigger workflows, etc.).\n\n## Examples\n\n### Example 1: Send a weekly project status report with attachment\n**User prompt:** \"Send an HTML email to the engineering team at eng-team@northwind.com with the subject 'Sprint 22 Status Report' summarizing our completed features. Attach the burndown chart from \u002Freports\u002Fsprint-22-burndown.png.\"\n\nThe agent will compose an HTML email body with a styled table showing completed features, their owners, and status. It will read the burndown chart file, base64-encode it, and attach it as a `fileAttachment` with the correct content type. The email will be sent via `POST \u002Fusers\u002F{userId}\u002FsendMail` with `importance: 'normal'`, the HTML body, the attachment array, and `saveToSentItems: true`.\n\n### Example 2: Create an inbox rule to auto-organize client emails\n**User prompt:** \"Set up an Outlook rule that moves all emails from anyone at @acmecorp.com into a folder called 'Acme Project', and create the folder if it doesn't exist. Also mark those emails as read automatically.\"\n\nThe agent will first create a mail folder named `Acme Project` using `POST \u002Fusers\u002F{userId}\u002FmailFolders` and capture the returned folder ID. It will then create an inbox message rule via `POST \u002Fusers\u002F{userId}\u002FmailFolders\u002Finbox\u002FmessageRules` with conditions set to `senderContains: ['acmecorp.com']` and actions set to `moveToFolder` (using the new folder ID) and `markAsRead: true`.\n\n## Guidelines\n\n- Use `$select` on every query — mailbox data is heavy, fetch only needed fields\n- Batch operations for bulk updates (mark read, move, delete) — max 20 per batch\n- Webhook subscriptions expire in 3 days — set up auto-renewal\n- HTML emails: use inline CSS only — email clients strip `\u003Cstyle>` blocks\n- Large attachments (>3MB): use upload session instead of inline base64\n- Use `$search` for full-text search, `$filter` for structured queries — different syntax\n- Rate limits: 10,000 requests per 10 min per app per tenant\n- Always set `saveToSentItems: true` when sending — unless intentionally ephemeral\n- For automated emails, use a dedicated service account — not a person's mailbox\n- Delta queries for efficient polling: `\u002Fusers\u002F{id}\u002FmailFolders\u002Finbox\u002Fmessages\u002Fdelta`\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Foutlook-email",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":9,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill outlook-email",{"tool":52,"command":53},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill outlook-email",{"tool":55,"command":56},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill outlook-email","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Foutlook-email\u002FSKILL.md",true,[60,66,70,74],{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"ACCESSIBILITY.md","REFERENCE","参考文档",17407,"https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_Mobile-Dev\u002Ffrom-article-18-ui-ux\u002Fbencium-claude-code-design-skill\u002Fbencium-controlled-ux-designer\u002Fskills\u002Fbencium-controlled-ux-designer\u002FACCESSIBILITY.md",{"path":67,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":68,"sourceHtmlUrl":69},"DESIGN-SYSTEM-TEMPLATE.md",15193,"https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_Mobile-Dev\u002Ffrom-article-18-ui-ux\u002Fbencium-claude-code-design-skill\u002Fbencium-controlled-ux-designer\u002Fskills\u002Fbencium-controlled-ux-designer\u002FDESIGN-SYSTEM-TEMPLATE.md",{"path":71,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":72,"sourceHtmlUrl":73},"MOTION-SPEC.md",11162,"https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_Mobile-Dev\u002Ffrom-article-18-ui-ux\u002Fbencium-claude-code-design-skill\u002Fbencium-controlled-ux-designer\u002Fskills\u002Fbencium-controlled-ux-designer\u002FMOTION-SPEC.md",{"path":75,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":76,"sourceHtmlUrl":77},"RESPONSIVE-DESIGN.md",12666,"https:\u002F\u002Fgithub.com\u002Fvitalikpestov\u002FSkills-Catalog\u002Fblob\u002Fmain\u002F_Mobile-Dev\u002Ffrom-article-18-ui-ux\u002Fbencium-claude-code-design-skill\u002Fbencium-controlled-ux-designer\u002Fskills\u002Fbencium-controlled-ux-designer\u002FRESPONSIVE-DESIGN.md",[79,88,97,106,112,118],{"skillNo":80,"name":81,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":33},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[85,86,87],"model","model hierarchy","model hierarchy skill",{"skillNo":89,"name":90,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":33},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[94,95,96],"MCP","zoom","zoom mcp",{"skillNo":98,"name":99,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":33},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[103,104,105,95],"sdk","zoom apps sdk","apps",{"skillNo":107,"name":108,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":33},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[108],{"skillNo":113,"name":114,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":33},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[114],{"skillNo":119,"name":120,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":33},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[120]]