Use this skill when the user wants WorkBuddy to work with Outlook or Microsoft 365 email.
What this skill is for:
Before first use, check whether olk is ready:
olk exists: which olkolk auth statusIf olk is missing and install metadata is supported, install it through the provided Homebrew step. Otherwise install manually with:
brew install rlrghb/tap/olkIf the user has not logged in yet:
olk auth loginolk auth login --enterpriseIf the default public client is blocked by the organization, tell the user they need their own Microsoft Entra app registration and then use:
olk auth login --client-id YOUR_CLIENT_ID --tenant-id YOUR_TENANT_IDAfter successful login, confirm with:
olk auth statusFor read-only inbox work, prefer this sequence:
Always prefer --json --results-only when you need structured data.
Recent inbox:
olk mail list -n 10 --json --results-onlyRecent unread inbox:
olk mail list -n 10 -u --json --results-onlyMessages from a sender:
olk mail list -n 20 --from someone@example.com --json --results-onlySearch by keyword or subject:
olk mail search "subject:invoice"olk mail search "from:boss@company.com project alpha"olk mail search "hasAttachment:true"Read one message:
olk mail get --format text olk mail get --format full --json --results-only List attachments:
olk mail attachments Download attachments only when the user asks:
olk mail attachments --save --out ./downloads When the user asks for an inbox summary, use this approach:
olk mail list -n 10 -u --json --results-onlyolk mail get --format text If the user asks things like "帮我总结今天 Outlook 里重要的邮件", prioritize:
帮我总结最近 5 封 Outlook 未读邮件搜索 Outlook 里主题包含 invoice 的邮件并总结看一下今天收到的重要邮件,并告诉我哪些需要我处理把来自某个发件人的最近邮件按时间顺序整理出来读取这封 Outlook 邮件的正文并给我中文摘要Prefer ISO dates:
olk mail list --after 2026-05-22 --json --results-onlyolk mail list --after 2026-05-21 --before 2026-05-23 --json --results-onlylist or search first.olk auth status and explain the exact issue.olk auth list.olk mail list -n 10 -u --json --results-only for a quick unread pass.olk mail search "" --json --results-only for targeted retrieval.olk mail get --format text before writing summaries that depend on message body details.--account EMAIL to avoid ambiguity.共 1 个版本