本文へ移動
cccskills
無料GitHub で公開

outlook_mail

Read, search, send, reply to, and delete messages in the user's Outlook Mail.

インストール方法を見る

含まれるファイル(3)

  • SKILL.md7.5 KB
  • connector_auth_config.yaml55 B
  • manifest.yaml2.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Outlook Mail

Purpose

Manage Outlook Mail messages with the outlook-mail companion CLI. The connector supports both personal Microsoft accounts and Microsoft 365 work or school accounts.

Tooling

Use exec to run:

outlook-mail <subcommand> [options]

Core subcommands:

  • disconnect
  • accounts (identity metadata only; never tokens)
  • list [--page-size 10] [--unread] [--page-token 20] [--folder sentitems]
  • get "<MESSAGE_ID>"
  • search "<query>" [--folder sentitems] [--page-size 10]
  • send --to alice@example.com [--to bob@example.com] [--cc charlie@example.com] --subject "Hello" --body "Hi ..." [--attachment /path/to/file.pdf]
  • reply "<MESSAGE_ID>" --body "Thanks for the update!" [--reply-all]
  • delete "<MESSAGE_ID>" (moves the message to Deleted Items; recoverable, not a permanent delete)
  • mark-read "<MESSAGE_ID>"
  • mark-unread "<MESSAGE_ID>"

Commands use the default linked mailbox unless --account <account_id> is provided. When the user clearly means a particular mailbox, run outlook-mail accounts, match its display_name, and pass its opaque account_id with --account. If the match is ambiguous, ask instead of guessing. Never silently fall back to the default after an account-selection error. --account applies only to mailbox operations; --status, accounts, and disconnect are connector-wide. To remove one mailbox while keeping the others, direct the user to that account under Connectors in Settings; do not run disconnect.

Once an account is selected, repeat the same --account <account_id> on every follow-up that uses results from that mailbox, including pagination with --page-token, get, reply, delete, mark-read, and mark-unread. Message IDs and page tokens belong to the account that returned them.

For mail-finding or search requests where the mailbox is unclear, run outlook-mail accounts first. When more than one mailbox is linked, search each with its own --account; do not say the message is missing until every mailbox returned no match. If a mailbox cannot be searched, say it could not be checked and follow the reauthorization flow below instead of claiming the message does not exist.

Use --page-size for result count. --top, --limit, and --max-results are compatibility aliases only; do not use them in new commands. Use get "<MESSAGE_ID>" for a single message; read, get --id, and search --query are compatibility forms only.

JSON output contract:

  • disconnect: parse ok, action, status, and disconnect_url
  • list / search: parse ok, count, next_page_token (when present, pass back as --page-token), total_messages, retrieved_at, and messages[] with id, subject, from, to, date, message_received_at, preview, is_read, and has_attachments
  • get: parse ok, retrieved_at, and message with id, subject, from, to, cc, date, message_received_at, body, body_type, is_read, and has_attachments
  • send: parse ok, action, and optional user_edited: true. If the output includes Final sent message (supersedes the original request): JSON, use it as the sent copy rather than the original draft. If a successful send has no such note, the submitted subject and body are the sent copy. Only look up the matching message in Sent Items using the same account when the user explicitly requests verification or the send result is incomplete; if it is ambiguous, say so.
  • reply: parse ok, action, and message_id
  • delete: parse ok, action (trashed), and message_id; the moved message gets a new id, so message_id is not the id you passed in — use the returned one for any follow-up command
  • mark-read / mark-unread: parse ok, action, and message_id

Auth

Use outlook-mail --status for connector state and link management. The binary handles its callback target internally.

  • If outlook-mail --status returns connect_url, replace <connect_url> with the returned URL and share exactly this Markdown link: [Connect Outlook Mail](<connect_url>); do not paste the raw URL separately.
  • When the connected response includes add_account_url, share it as [Add Outlook Mail account](<add_account_url>) when the user wants another mailbox.
  • If the user wants to disconnect, run outlook-mail disconnect. When disconnect_url is present, replace <disconnect_url> with the returned URL and share exactly this Markdown link: [Disconnect Outlook Mail](<disconnect_url>); do not paste the raw URL separately. Otherwise say it is already disconnected.
  • Keep status and linking inside outlook-mail --status; do not use a shared connector helper CLI.
  • Never print tokens, cookies, or connector secrets.

Operating Rules

  1. Use search for targeted lookup, list for browsing, and get only when you need the full body of a specific message.
  2. Message IDs are opaque Graph values. Reuse the exact id returned by list or search.
  3. Before send, confirm recipients, subject, and body in the current thread.
  4. Before reply, confirm the reply body and whether the user wants --reply-all. Use --reply-all only when the user explicitly wants everyone included.
  5. delete, mark-read, and mark-unread may proceed from a clear user request without an additional confirmation. delete moves the message to the Deleted Items folder, where the user can still recover it; tell the user that, and do not describe it as permanent or unrecoverable.
  6. For mailbox-summary requests, exclude likely spam, phishing, or irrelevant bulk promotions by default unless the user explicitly asks for junk or spam, and briefly note that filtering if you used it.
  7. If any command reports an auth failure, stop and run outlook-mail --status. If it returns connect_url, share the normal connect link. Otherwise run outlook-mail accounts: check the selected account when the failed command used --account, or every account when it did not. For each relevant row with needs_reauth: true, share the status response's add_account_url as [Reconnect Outlook Mail account](<add_account_url>) and ask the user to sign in with that same Microsoft account. Never rerun a failed --account command without --account.
  8. Never surface raw Graph identifiers (message ids, conversation ids) or other internal response fields (change keys, @odata fields, page/skip tokens, raw JSON) in text shown to the user — including in summaries, lists, or per-item annotations. Reuse the ids only internally to chain follow-up commands (rule 2). The sole exceptions are when the user explicitly asks for a raw id or you must show one to troubleshoot a failure.
  9. The compatibility date field is Outlook's message-received time. Prefer message_received_at.user_local when presenting it. It is not the time of an event described inside the email; never infer a delivery, payment, trip, meeting, or other event time from it.
  • Permission-withheld fields: a list/search result carrying a withheld entry had those fields removed by the user's "Access messages" permission — they are NOT empty. Answer from the remaining fields and mention that the permission hides the rest. Only when the user actually needs a withheld field for one specific message and withheld.reason is requires_approval, read that message with get, which shows the user the approval prompt. Never get during routine browsing just to fill previews.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

The user's synced Apple Health (HealthKit) data: daily metrics (steps, distance, calories, heart rate, HRV, VO2max), sleep sessions (stages, quality, efficiency), and workouts.

日本語の概要は準備中です。原文の説明を表示しています。

obra/muse-skills202026年10月12日 更新

Create, read, edit, or manipulate Word documents (.docx) and Word templates (.dotx). Use whenever a build task's artifact kind is document with the default docx output, or the task mentions a Word doc, .docx, or .dotx, extracts or reorganizes content from one, inserts or replaces images, does find-and-replace in one, or works with tracked changes (redlines) or comments. Covers python-docx generation, raw OOXML editing of existing files, document structure and formatting, and render verification. Not for PDFs, spreadsheets, or Google Docs.

日本語の概要は準備中です。原文の説明を表示しています。

obra/muse-skills202026年10月12日 更新

Build or revise a plain markdown file (md) deliverable such as notes, a README, meeting minutes, documentation, or text the user will edit or paste elsewhere. Use whenever a build task's artifact kind is markdown. Covers markdown formatting conventions and read-back verification.

日本語の概要は準備中です。原文の説明を表示しています。

obra/muse-skills202026年10月12日 更新

Build, revise, or manipulate a fixed-layout PDF (report, guide, one-pager, printable document). Use whenever a build task's artifact kind is pdf, a document build's output format is pdf, or the task reads, merges, splits, crops, or fills an existing PDF, including fillable AcroForms. Covers authoring the print-CSS HTML source, rendering, the geometry and validation gates, existing-PDF manipulation and form filling, and delivery under workspace/your_files.

日本語の概要は準備中です。原文の説明を表示しています。

obra/muse-skills202026年10月12日 更新

Build or revise a slide deck (pptx by default; pdf or html on request). Use whenever a build task's artifact kind is presentation, or the user asks for a deck, slides, or a presentation. Covers per-slide HTML authoring, the StylePlan theme system, font embedding, deck assembly, render gates, and the PPTX export.

日本語の概要は準備中です。原文の説明を表示しています。

obra/muse-skills202026年10月12日 更新

Create, read, edit, fix, or clean spreadsheet files (.xlsx, .xlsm, .csv, .tsv). Use whenever a build task's artifact kind is spreadsheet, or the task names a spreadsheet file and wants something done to it or produced from it, including restructuring messy tabular data into a proper workbook. Covers openpyxl generation, formulas and recalculation, editing existing workbooks, and the validation gates. Not for tasks whose deliverable is a document, report, or web page that merely contains a table.

日本語の概要は準備中です。原文の説明を表示しています。

obra/muse-skills202026年10月12日 更新

obra のスキルをすべて見る

このスキルの問題を報告する