Skill instructions
attachments2.33 KB
View saved version →
---
name: attachments
description: Read what an email attachment says - PDF including scanned pages, Word, Excel, PowerPoint - as text, from any connected Outlook, Hotmail, Microsoft 365, Gmail, Yahoo, AOL, iCloud, Fastmail or other IMAP mailbox. Use when asked what a file someone sent says, to pull a figure or a date out of one, or to compare attachments.
---
# Read attachments as text
1. Find the message: across every mailbox with `messages_list_all_mailboxes`, or one mailbox with `messages_list` in its own query language - Outlook reads hasAttachments:true, Gmail has:attachment and filename:pdf. A search answers only its first results: before saying the message is not there, search alone each mailbox the answer names under `more`, and page on with the token `messages_list` answers.
2. Read it with `messages_get`, or the whole conversation with `threads_get`. Each message names its attachments with their ids and sizes.
3. Read the file with `messages_attachments_get`. It answers what the file says, as plain text. A long document comes in parts: where the answer names a continuation, ask again with it before answering anything that depends on the whole document.
4. Fetch the original whenever the words read back make no sense - a scan read sideways comes back as noise - or the person wants the file itself. Every answer names a link to it, served whole for 15 minutes after it is given to a plain GET carrying no credential: from a terminal, `curl --fail-with-body -o <a new path of your own> "<link>"` fetches it to open with your own tools, and elsewhere ask again with as original. To carry a file into a draft, name it by its mailbox, message id and attachment id rather than copying its bytes - that works from any connected mailbox into a draft in the same mailbox or any other.
Quote figures, dates and names exactly as the text has them, and say which file each came from. Where the answer says no words could be read - a file locked by a password, one with no words, one that took longer to read than a call may run - say so, and that the original can still be had. Never guess at what a file says.
Examples:
- "What total does the invoice Dana sent to my Outlook come to?"
- "Read the PDF attached to the latest email from the letting agent in Hotmail and list its dates."
- "Compare the two spreadsheets attached to the budget thread in Gmail."
drafting2.01 KB
View saved version →
---
name: drafting
description: Write, reply to or forward an email from a connected Outlook, Hotmail, Microsoft 365, Gmail, Yahoo, AOL, iCloud, Fastmail or other IMAP mailbox as a draft, show it, and send it only after the person says yes to that draft. Use for any request to write, answer or forward mail.
---
# Draft, confirm, then send
Nothing is sent until the person has seen the draft and said yes to it.
1. Write a draft, never a direct send:
- a new message - `drafts_create`;
- a reply, kept in its thread and quoting the message below - `drafts_reply`, with replyAll to answer everyone on it;
- a forward with the files it carries - `drafts_forward`.
Write from the mailbox the conversation is in. For a new message, ask which mailbox when more than one could send it.
2. Show the draft: the mailbox it is in, who it goes to, who is copied and blind-copied, the subject, the text and every file it carries. Ask whether to send it.
3. For changes, edit the same draft with `drafts_update` - a field left out stays as it was - and show it again.
4. Only on an explicit yes to the draft as last shown, send it with `drafts_send`, under a request id of your own that is new for this message. A yes to an earlier version is not a yes to this one.
5. If the answer says the provider is holding back its sending, send again later under the same request id. If it says the message may have gone, send nothing more under that id: look in that mailbox's sent mail first.
This skill never uses `messages_send`, `messages_reply` or `messages_forward`: each sends in one call, with no draft to show.
A draft that is not wanted: `drafts_delete` moves it to that mailbox's bin, and `threads_untrash` with the `messageId` it answers and scope `message` brings it back as a draft. A message already sent is never discarded.
Examples:
- "Reply to Sam in my Outlook that Friday works for signing the lease."
- "Forward the boarding pass in Hotmail to alex@example.com."
- "Draft a note from Gmail asking the landlord when the boiler will be fixed."
labels2.53 KB
View saved version →
---
name: labels
description: Tidy the labels of a connected Outlook, Hotmail, Microsoft 365 or Gmail mailbox - in Outlook its categories - by finding duplicates and, in Gmail, labels nothing carries, proposing merges, renames and removals, and changing nothing until the person agrees. Use when asked to clean up, merge or prune labels or categories.
---
# Label hygiene
1. List the labels of each mailbox in question with `labels_list`. An Outlook mailbox's categories are its labels to tidy; its folders, listed beside them as type folder, are left alone. Gmail's own system labels (INBOX, SENT, SPAM, TRASH and the like) are not the person's to tidy.
2. Find what to tidy:
- duplicates and near-duplicates - one name in another case, spacing, spelling or plural ("Receipts", "Reciepts");
- labels nothing carries - in Gmail, search for each label's threads with `messages_list` (label:name). An Outlook category cannot be searched for: its messages are found only by reading the categories on the messages a search answers, so never call an Outlook category unused on that evidence;
- in Gmail, one subject split across two parents by "/" nesting.
3. Propose a plan, one line per change: the label kept, the labels merged into it, those renamed or removed, and how many threads each change moves - in Outlook, among the mail searched. Change nothing yet.
4. On the person's yes to the plan, do what it says and nothing more:
- merge - on every thread carrying the old label, `threads_modify` adds the kept label and removes the old one; only then does `labels_delete` remove the old label. A Gmail search answers a page at a time, so search for the old label again until it answers nothing before deleting it. In Outlook the merge reaches only the threads found carrying it, so say that messages the searches did not reach keep the old name;
- rename - `labels_update` with the new name, in Gmail. Microsoft lets an Outlook category take only a new colour, so an Outlook rename is a new category from `labels_create`, the threads moved onto it, then the old one deleted;
- remove - `labels_delete`. No message is deleted: in Gmail the label comes off every message; an Outlook category leaves the list while the messages that carried it keep its name, so move them first.
5. Report what changed and anything that failed, label by label.
Never add or remove SPAM or TRASH here: that junks or bins mail.
Examples:
- "Tidy the categories in my Outlook."
- "My Hotmail has both Receipts and Reciepts - merge them."
- "Which of my Gmail labels have nothing in them?"
triage2.27 KB
View saved version →
---
name: triage
description: Sort what is waiting across every connected mailbox - Outlook, Hotmail, Microsoft 365, Gmail, Yahoo, AOL, iCloud, Fastmail and other IMAP mailboxes together - into what needs a reply, what needs a decision and what can wait. Use when asked what needs attention, what is still waiting for an answer, or for a summary of the inboxes.
---
# Triage across mailboxes
This skill reads and changes nothing: no drafts, labels, archiving or sending.
1. Call `mailboxes_list`. It names every connected mailbox by the name the other tools take. Say which mailbox could not be read.
2. Search every mailbox at once with `messages_list_all_mailboxes`, by thread. Across providers only the terms its query description lists read alike - from:, to:, cc:, subject:, words and phrases, OR, -word, is:unread, has:attachment, larger:, in:trash, in:spam and dates - so keep the shared query to those. The answer names the mailbox of each result and any mailbox it could not search. It takes only a few results from each mailbox and names under `more` every mailbox holding others: search each of those alone as in step 3. A mailbox it could not search by thread - one held by its password, other than a Gmail - is searched alone by message, as in step 3.
3. For anything only one provider reads (Outlook's received:, Gmail's filename:), search that mailbox alone with `messages_list` in its own query language, paging with the token it answers.
4. Open a thread with `threads_get` only where its snippet cannot tell whether it waits on the person.
A thread waits on the person when its newest message came from a person rather than a list or an automated sender, is addressed to them, and asks something or expects an answer they have not sent. A message that wants an act rather than an answer - a bill to pay, a form to sign - is a decision, not a reply.
Answer grouped by mailbox, the longest waiting first:
- Needs a reply - who wrote, the subject, what they need in one line, how long it has waited.
- Needs a decision or has a deadline - one line each.
- The rest - a count of newsletters, promotions and notifications, not a list.
Examples:
- "What in my Outlook and Gmail still needs a reply?"
- "Anything in Hotmail from this week I have not answered?"
- "Give me a morning summary of all my inboxes."