agentleFS
readdlereaddle/spark-cli-skills/skills/use-spark/SKILL.md

use-spark

Skill159 starsChanged 21 days agoMITView on GitHub

Use the spark CLI to access the user's Spark email data - list emails, search by topic, read threads, check calendar events, find availability, look up contacts, and view team info. Use when the user asks about their emails, calendar, contacts, meetings, or scheduling.

3 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

40 rules. 0 are common, 9 are distinctive, and 31 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 31

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run this first to discover what accounts, calendars, and teams are available, and to check their access levels.

    line 63
  2. Distinctive:

    If a command requires a higher access level than the account or shared inbox has, it returns an error with instructions on how to change …

    line 75
  3. Very specific:

    GateKeeper filtering: When viewing the Inbox with GateKeeper in explicit mode, new sender emails are automatically filtered out and a "New …

    line 102
  4. Very specific:

    Use emails or search to find message IDs (the ID column), then thread to read the full conversation.

    line 191
  5. Very specific:

    Read a single email attachment by its ID (pk) from the thread Attachments table.

    line 195
  6. Very specific:

    Use thread to find attachment IDs (the ID column in the Attachments: table).

    line 207
  7. Distinctive:

    Create a new email draft or edit an existing one.

    line 213
  8. Very specific:

    When the user asks for a closing that differs from their signature, pass --no-signature and write the whole closing yourself.

    line 292
  9. Very specific:

    After a blank line come the Custom Instructions: # Custom Instructions, a blank line, then one instruction per line, - <text>.

    line 315
  10. Very specific:

    Use emails to find message IDs for --edit, --reply-to, --reply-all, and --forward.

    line 323
  11. Very specific:

    Use accounts to find account emails for --account - personal accounts, their Alias: entries, and shared inboxes are all listed there, and …

    line 324
  12. Very specific:

    Use teams to find team names for --team and team member emails for --user.

    line 325
  13. Very specific:

    When it runs, the result reports the original draft ID and the ID of the sent message: Draft 1234 sent.

    line 351
  14. Very specific:

    Scheduled send ("Send Later"): add --date to schedule the draft instead of sending it now.

    line 355
  15. Distinctive:

    If a name matches more than one template, you'll get an error listing the matching IDs - disambiguate by ID.

    line 421
  16. Very specific:

    Use emails to find message IDs.

    line 452
  17. Very specific:

    Run accounts to see available calendar accounts and calendar names.

    line 470
  18. Distinctive:

    Create, update, delete, or RSVP to a calendar event, including managing its attendees.

    line 478
  19. Very specific:

    Only valid on create and update.

    line 515
  20. Very specific:

    Run accounts to see writable calendars and the access level on each account.

    line 538
  21. Very specific:

    Search contacts by name or email.

    line 555
  22. Distinctive:

    Read a single meeting transcript's summary.

    line 604
  23. Very specific:

    Use meetings to find meeting IDs.

    line 616
  24. Very specific:

    Use the emails command to find message IDs.

    line 691
  25. Very specific:

    Use the contacts command to look up email addresses.

    line 734
  26. Distinctive:

    Read the output and answer the user's question

    line 820
  27. Distinctive:

    Check for an update when - and only when - you hit one of these signals:

    line 884
  28. Very specific:

    If the printed version is greater than metadata.version above, refresh this file before answering.

    line 896
  29. Distinctive:

    Do not check on every session or before every command - this skill is the source of truth unless one of the signals above tells you …

    line 905
  30. Very specific:

    Always quote multi-word arguments: spark search "project update"

    line 909
  31. Very specific:

    Use folders to discover exact folder identifiers before passing them to emails or search --in

    line 911
  32. Very specific:

    Use accounts to discover calendar names before passing them to events --in

    line 912
  33. Very specific:

    Use draft to compose emails - it supports new drafts, replies, forwards, and editing existing drafts

    line 915
  34. Very specific:

    Before writing any draft body, run draft context and write in line with the Spark Profile and Custom Instructions it shows.

    line 916
  35. Very specific:

    After creating a draft, always share its Link: deep link with the user as a clickable markdown link instead of asking them to open Spark

    line 917
  36. Very specific:

    Never end a draft body with a sign-off: Spark appends the account's signature itself (draft signatures shows it)

    line 921
  37. Very specific:

    Use comment to post team chat messages on threads - it auto-shares the thread if needed

    line 922
  38. Very specific:

    Use action to perform email actions like pin, archive, snooze, move to folder, and more

    line 923
  39. Very specific:

    Use contact-action to manage contacts - block, accept, change category, toggle auto-summary, and more

    line 924
  40. Very specific:

    Use history to check what a command did and how it ended.

    line 925

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Using spark

spark is a CLI for the Spark email client. Use it to query the user's mailbox, calendar, contacts, meetings, and team data.

Running spark

spark <command> [options]

Environment: spark is a thin client that talks over IPC to the user's running Spark Desktop app - it does not ship its own mailbox, network stack, or credentials. Run it directly on the user's computer against the live Spark Desktop process. Do not try to execute it inside a sandbox, container, CI runner, or any environment isolated from the user's desktop session - it will fail to connect. If Spark Desktop is not running, ask the user to launch it instead of retrying.

JSON output: add --json to any command to get its result as JSON instead of text - the same data, with full (untruncated) values, snake_case keys, and ISO 8601 dates. A failure prints {"error": {"message": "…"}} on stdout and exits non-zero. Prefer the default text when you only need to read the result; use --json when you need to process it (e.g. spark emails --json | jq '.emails[].id'). Fields are only ever added, never renamed or removed.

Commands

CommandDescription
accountsList accounts, calendars, teams, shared inboxes, and access levels
foldersList folders/labels with message counts
emailsList emails with filters and pagination
searchHybrid keyword + semantic search with full bodies
threadRead full thread - headers, bodies, attachments
attachmentRead a single email attachment by its ID (auto-downloads)
draftCreate, edit, send, schedule, or delete email drafts (new, reply, forward, from template), or list account signatures or the drafting context (Spark Profile and Custom Instructions)
templatesList saved message templates (personal and team)
templateShow a single template by ID or name with its placeholders
commentPost a team comment on a thread
eventsList calendar events for a time range
eventCreate, update, delete, or RSVP to a calendar event, including managing attendees / invitations
availabilityFind free time slots, optionally with attendees
contactsSearch contacts by name or email, or list the most-used ones
contactShow one contact's details and settings
teamShow team info, members, shared inboxes, assignments
meetingsList meeting transcripts
meetingRead a single meeting transcript
actionPerform actions on emails (archive, pin, snooze, assign, etc.)
contact-actionPerform actions on contacts (block, accept, categorize, etc.)
historyReview what spark has done and how each command ended, and undo an entry

accounts

List all configured accounts with their aliases, calendars, teams, and shared inboxes. Each account and shared inbox shows its access level in parentheses, which controls what operations Spark can perform.

spark accounts

Run this first to discover what accounts, calendars, and teams are available, and to check their access levels.

Access levels:

LevelAllowed operations
read-onlyList, search, and read emails, threads, folders, events, contacts, meetings, teams
triageEverything in read-only plus all write operations: drafts (including unscheduling a scheduled one and setting its follow-up reminder), team comments, email actions (archive, move, pin, snooze, assign, etc.), contact actions (block, accept, categorize, etc.)
sendEverything in triage plus mail-emitting operations: sending drafts (draft --send, including scheduled "Send Later"), and the entire event command: event create / event update / event delete / event rsvp, including attaching or detaching attendees via --add / --remove and the iTIP REQUEST / UPDATE / CANCEL / REPLY mail that goes with them.

Access levels are configured separately for each account and each shared inbox in Spark Desktop under Settings -> AI Agents. Shared inboxes can have a different access level than the parent account - for example, a personal account may have triage access while a shared inbox under the same team is read-only or disabled.

If a command requires a higher access level than the account or shared inbox has, it returns an error with instructions on how to change the level.

folders

List folders with message counts. Output includes folder identifiers in parentheses - use these as arguments to emails and search. Mailboxes backed by a Google account show (Gmail labels) on the Email Account or Shared Inbox header. Teams show the team name as a usable identifier for emails. Every account, and the unified section, also lists Outbox - the scheduled and unsent mail (see emails below).

spark folders                        # all accounts
spark folders user@example.com       # single account

emails

List emails with metadata (ID, From, Date, Subject, Flags). Supports pagination and Gmail-style filters.

spark emails                                                   # Unified Inbox
spark emails user@example.com:Archive                          # specific folder
spark emails "My Team"                                         # all shared threads in a team
spark emails Outbox                                            # scheduled and unsent mail, soonest send first
spark emails --filter "from:alice@co.com is:unread"             # filtered
spark emails --filter "newer_than:7d has:attachment"            # recent with attachments
spark emails --page 2 --page-size 20                           # pagination
spark emails --order ascending                                 # oldest first
spark emails --new-senders                                     # show only new sender emails

GateKeeper filtering: When viewing the Inbox with GateKeeper in explicit mode, new sender emails are automatically filtered out and a "New Senders" count is shown at the top. Use --new-senders to view those emails. Use contact-action acceptContact <email> or contact-action blockContact <email> to accept or block a sender.

Folder identifier formats (run folders to see available ones):

FormatExampleMeaning
Bare nameInbox, ArchiveUnified folder (cross-account)
emailuser@example.comAccount inbox shorthand
email:Folderuser@example.com:ArchiveSpecific account folder
"Team Name""My Team"All shared threads in a team (quote if spaces)
shared@email:Inboxshared@co.com:InboxShared inbox open items (conversation view, matches Desktop)
shared@email:Archiveshared@co.com:ArchiveShared inbox done/archived items (conversation view)
shared@email:Foldershared@co.com:LabelOther shared inbox folder / label
Outbox / email:Outboxuser@example.com:OutboxScheduled ("Send Later") and unsent mail

Outbox. Scheduled ("Send Later") mail and mail still on its way out live in Spark's Outbox, not in a folder on the mail server - a mail folder named "Send Later" (some other mail apps create one) is unrelated and usually empty. spark emails Outbox (or <account>:Outbox) lists them with a To column instead of From, the send time in the Date column, and a scheduled, sending or send failed flag; --json adds to and send_at. List it on its own: it can't be combined with other folders, --filter or --new-senders. Check it before and after you schedule or unschedule mail, so you know what is still queued.

Filter operators (combinable, Gmail-style):

OperatorExample
from:<addr>from:alice@co.com
to:<addr>to:bob@co.com
cc:<addr>cc:team@co.com
subject:<text>subject:"quarterly report"
before:yyyy/MM/ddbefore:2026/03/01
after:yyyy/MM/ddafter:2026/01/01
newer_than:Xdnewer_than:7d (also w, m, y)
older_than:Xdolder_than:30d
has:attachmentalso document, spreadsheet, presentation, reminder
is:unreadalso read, starred, pinned, unreplied
is:sharedemails shared to any team (alias for is:shared_email)
is:shared_inbox_openopen items in shared inbox
is:shared_inbox_donecompleted/closed items in shared inbox
category:personalalso priority, notification, newsletter, invitation, invitation_response
assigned_to:meemails assigned to current user
assigned_to:<email>emails assigned to specific teammate
assigned_to:unassignedshared inbox items with no assignee
is:unassignedsame as assigned_to:unassigned
assigned_to:otheremails assigned to someone else (not me)
assigned_by:meemails delegated by current user
filename:<name>filename:report.pdf

search

Two modes:

  • With a topic (keyword mode): Hybrid keyword + semantic search returning up to 20 emails with full bodies, sorted by relevance.
  • Without a topic (list mode): Paged compact table of every email matching --filter / --in across all folders and all accounts, sorted newest first. Same output as emails, but the default scope is "all folders" instead of the Unified Inbox. Trash, Spam, and Blocked are excluded (matching Spark's search field) unless --in explicitly targets one of those folders.
spark search "quarterly report"
spark search "API integration" --filter "from:alice@co.com"
spark search "budget" --in user@example.com:Archive
spark search "vacation" --in user@example.com              # all folders in account

# Keywordless list mode - filter across every folder
spark search --filter "from:alice@co.com"                  # every email from alice, all folders
spark search --filter "from:alice@co.com" --in user@example.com
spark search --filter "is:unread newer_than:7d" --page 2
ParameterRequiredDescription
<about>NoSearch topic (positional). Omit to switch to list mode.
--filterNoGmail-style filter (same operators as emails)
--inNoScope: account, team, folder, or shared inbox. All folders if omitted.
--pageNoPage number, 1-based (default: 1). List mode only.
--page-sizeNoEmails per page (default: 50). List mode only.
--orderNoSort order: ascending or descending. List mode only.

Use search with a topic when the user asks about content - it returns email bodies so you can answer questions. Use search without a topic when you need to filter emails (especially by from:) across every folder - emails only sees the Unified Inbox so it can't answer questions like "every email from alice@co.com, anywhere". Use emails for plain browsing of Inbox / one folder.

thread

Print every message in a thread - headers, full plain-text bodies, and attachment info. After the thread summary line, lists custom (non-system) folder labels once for the whole thread, using qualified names like account@domain.com:MyLabel (same style as folders).

spark thread 1114                          # by message ID from emails/search output
spark thread --download-attachments 1114   # also fetch attachments via IMAP
spark thread "https://sparkmailapp.com/dpl/bl?token=ABC..."  # by Spark deep link

The positional argument accepts either a numeric message ID (the ID: line) or a Spark deep link (the Link: line) printed by a previous run - https://sparkmailapp.com/dpl/bl?token=..., readdle-spark://bl=..., or readdlespark://bl=....

A Reply-To: line appears only when that header points somewhere other than From - mailing lists and website contact forms carry the real correspondent there. draft --reply-to already addresses the reply to it, so don't pass --to yourself.

Each message's Attachments: block is a table with columns ID, Name, Size, MIME Type, and Path. The ID column is the attachment's stable pk - feed it to attachment to read the file contents (auto-downloads if necessary). The Path column shows the local file or (not downloaded, ...) for attachments not yet fetched.

Use emails or search to find message IDs (the ID column), then thread to read the full conversation. Use folders to list valid label identifiers for action attachLabel / detachLabel.

attachment

Read a single email attachment by its ID (pk) from the thread Attachments table. The file is auto-downloaded if it isn't cached locally yet.

spark attachment 42                          # print metadata (ID, Name, Size, MIME Type, Path, Message ID)
spark attachment 42 --stream > report.pdf    # write raw file bytes to stdout
ParameterRequiredDescription
<id>YesAttachment ID (pk) from the thread Attachments table.
--streamNoWrite the raw file bytes to stdout instead of metadata text. Useful inside sandboxed agents that can read the CLI's stdout but not local filesystem paths. The CLI streams the file in 64 KB chunks, so there is no practical size limit. To go the other way - attach a file the app can't read - pipe it into draft/comment with --attach-stream.

Use thread to find attachment IDs (the ID column in the Attachments: table). The default text output is one Key: value per line, easy to parse from scripts.

draft

Requires: triage access level.

Create a new email draft or edit an existing one. The body is written in markdown and converted to HTML.

Before writing any draft body, run spark draft context. Write in line with the user's Spark Profile when one is shown, and follow the Custom Instructions; one that names one of the user's accounts applies only to drafts sent from that account. Instructions the user gives you in the conversation take priority over both, and text they dictate word for word is used as is.

spark draft --to "alice@example.com" --subject "Hello" --body "Hi Alice, ..."
spark draft --to "alice@co.com" --to "bob@co.com" --cc "carol@co.com" --subject "Meeting" --body "..."
spark draft --edit 1234 --subject "Updated subject" --body "Updated body"
spark draft --reply-to 5678 --body "Thanks for the update!"
spark draft --reply-all 5678 --body "Thanks everyone!"   # keeps the other recipients and the CCs
spark draft --forward 5678 --to "manager@co.com" --body "FYI"
spark draft --account "john@gmail.com" --to "alice@co.com" --subject "Hi" --body "..."
spark draft signatures                                                                # the signature each account appends
spark draft context                                                                   # the Spark Profile and Custom Instructions to write with
spark draft --to "alice@co.com" --subject "Quick note" --body "..." --no-signature   # send without a signature
spark draft --edit 1234 --no-signature                                                # strip the signature from an existing draft
spark draft --to "alice@co.com" --subject "Report" --body "See attached" --attach /path/to/report.pdf
spark draft --to "alice@co.com" --subject "Files" --body "Two files" --attach /path/to/a.pdf --attach /path/to/b.xlsx
spark draft --to "alice@co.com" --subject "Q3" --body $'Revenue is up:\n\n![Q3 revenue](chart.png)' --attach /path/to/chart.png   # show an attached image in the text
spark draft --reply-to 5678 --body "Resending the file" --attach-id 42   # attach a file from the original email
cat report.pdf | spark draft --to "alice@co.com" --subject "Report" --body "See attached" --attach-stream report.pdf   # pipe a file the app can't read directly
spark draft --to "client@co.com" --subject "Proposal" --body "..." --team "Engineering" --user alice@co.com --user bob@co.com
spark draft --edit 1234 --team "Engineering" --user alice@co.com --allow-send
spark draft --edit 1234 --user carol@co.com           # invite carol on an already-shared draft
spark draft --edit 1234 --allow-send                  # grant send-on-behalf permission on an already-shared draft
spark draft --edit 1234 --no-allow-send               # revoke previously-granted send-on-behalf permission
spark draft --edit 1234 --remove-user alice@co.com    # kick alice from a shared draft (keeps share, comments, other collaborators)
spark draft --edit 1234 --remove-user alice@co.com --user dave@co.com  # swap collaborators: remove alice, invite dave
spark draft --edit 1234 --unshare
spark draft --delete 1234                             # remove the draft for good (no Trash, no undo)
spark draft --delete 1234 2345 3456                   # remove several drafts at once
spark draft --send 1234                               # send the draft now
spark draft --send 1234 --date 2026-04-10T09:00       # schedule it ("Send Later")
spark draft --unschedule 5678                         # cancel a schedule; back to Drafts under a new ID
spark draft --change-reminder 1234 --date 2026-04-15  # remind the user if nobody replies by then
spark draft --clear-reminder 1234                     # remove that reminder
spark draft --template "Cold outbound v3" --to "alice@co.com" --placeholder "Project name=Acme Q3" --placeholder "Deadline=Friday EOD"
spark draft --template 124 --edit 9821 --placeholder "Project name=Acme Q3" --placeholder "Deadline=Friday EOD"
ParameterRequiredDescription
--toNoRecipient address (RFC822). Repeat for multiple.
--ccNoCC address. Repeat for multiple.
--bccNoBCC address. Repeat for multiple.
--subjectNoSubject line.
--bodyYes (new, no --template)Body content in markdown. Required for new drafts unless a template provides one. ![alt](file name) shows an attached image in the text - see Images in the body below.
--editNoMessage ID of an existing draft to update.
--reply-toNoMessage ID to reply to. Addresses the sender alone (or the Reply-To: address when the message carries one).
--reply-allNoMessage ID to reply to, keeping everyone else on the thread: the other To: recipients land in To, the original Cc: in CC, minus your own address. Mutually exclusive with --reply-to; --to / --cc override the lists it builds.
--forwardNoMessage ID to forward.
--deleteNoMessage IDs of drafts to delete permanently - one or several (--delete 1 2 3). Must be the only option on the command. Drafts have no Trash, so the deletion cannot be undone. A scheduled draft and a draft shared with teammates are both refused - draft --unschedule <pk> or draft --edit <pk> --unshare first. With several IDs, the valid drafts are deleted even when others are refused.
--sendNoMessage IDs of drafts to send, or with --date to schedule. On an already-scheduled message, --date reschedules it and no --date sends it now. Takes several IDs. Only --date may come with it. Requires send access. See Sending and scheduling below.
--unscheduleNoMessage IDs of scheduled messages to unschedule; each returns to Drafts under a new ID. Takes several IDs. Must be the only option.
--change-reminderNoMessage IDs of drafts or scheduled messages to set a follow-up reminder on - it fires if nobody has replied by --date, and stays with the message when it is sent. Takes several IDs. Only --date may come with it.
--clear-reminderNoMessage IDs of drafts or scheduled messages to remove the follow-up reminder from. Takes several IDs. Must be the only option.
--dateWith --change-reminder; optional with --sendThe send time or reminder date (yyyy-MM-dd, dd/MM/yyyy, yyyy-MM-ddTHH:mm). Must be in the future.
--accountNoAccount email to send from. Accepts a regular mail account, an alias, or a shared inbox email.
--attachNoAbsolute path to a file to attach. Repeat for multiple. The Spark app must be able to read the path; in the sandboxed App Store build a path outside the app's container can't be read and is rejected with a clear error - pipe the file with --attach-stream instead. Max 25 MB per file.
--attach-idNoID of an attachment on an existing email to copy onto this draft, from the Attachments table of thread <message-id>. Repeat for multiple. Use this to re-send a file the user received - replies don't inherit attachments (only --forward does).
--attach-streamNoAttach a single file whose bytes are read from stdin, shown to recipients as <name>. Use this when the file is outside the app's sandbox (the App Store build can't read arbitrary paths) - it's the inbound twin of attachment --stream. One streamed file per command; combine with --attach for paths the app can read. Max 25 MB. Example: cat report.pdf | spark draft --edit 123 --attach-stream report.pdf. Needs a real stdin, so it only works when you run the spark binary yourself - otherwise use --attach-id / --attach.
--teamNoTeam name. Required when you belong to multiple teams. When editing a draft that's already shared, must match the team that owns the share.
--userNoTeammate email to share with. Repeat for multiple. On an already-shared draft this adds collaborators without removing existing ones - use --remove-user to remove someone.
--remove-userNoTeammate email to remove from an already-shared draft. Repeat for multiple. The shared draft, its comments, and the remaining collaborators are preserved (unlike --unshare, which tears the whole share down). Requires --edit <shared-pk>. Cannot remove yourself - use --unshare for that. Can be combined with --user in one command to swap collaborators; removals run before invites.
--allow-sendNoGrant teammates permission to send the shared draft on your behalf. New share: defaults to off when omitted. Edit of a shared draft: leaves the current value alone when omitted. Mutually exclusive with --no-allow-send.
--no-allow-sendNoRevoke teammates' permission to send the shared draft on your behalf. Useful when editing a shared draft whose allow-send is currently on. Mutually exclusive with --allow-send.
--unshareNoRevert an already-shared draft back to a personal draft. Requires --edit and is mutually exclusive with --team / --user / --remove-user / --allow-send / --no-allow-send and with content edits (--to / --cc / --bcc / --subject / --body / --attach / --attach-id / --attach-stream) - issue the edit (or per-user removal) and the unshare as separate commands.
--templateNoApply a saved template by ID or name. Combine with --edit to overlay onto an existing draft.
--placeholderWhen template has manual placeholdersFill a manual template placeholder, format "<name>=<value>". Repeat for each. Auto-fillable placeholders (recipient/self names) are not addressable here - control them via --to and --account.
--no-signatureNoSend without a signature. Suppresses the account's per-mailbox default signature for this draft. On --edit it strips a signature already on the draft (the body and quoted thread are kept). Omit the flag to keep using the account default.
signaturesNoPositional, not a flag: prints every mailbox you can draft from with the signature it appends. Must be the only argument.
contextNoPositional, not a flag: prints the user's Spark Profile and Custom Instructions. Must be the only argument.

Explicit flags always win over template fields. Use template <id|name> to discover the template's manual placeholders before calling draft --template - missing manual placeholders cause a hard error before any draft is created. Auto-fillable placeholders that fail to resolve (e.g. recipient name with multiple --to) leave a localized label in the body and surface in the response as a warning.

Images in the body. To put an image in the text instead of the attachment list, attach it and show it with markdown image syntax by its file name: --attach /path/to/chart.png --body "![Q3 revenue](chart.png)". The file can come from --attach, --attach-stream or --attach-id, or already be on the draft. An https:// image address is left as it is. A local image that matches no attached file, or a file that isn't an image, is an error, so a draft never goes out with a broken image. On --edit with --body, the new body decides which images stay: show an image already on the draft by its name (as thread <draft-id> lists it) to keep it, leave it out to remove it.

The signature is added for you - never write your own sign-off. Spark appends the mailbox's default signature to the body of every draft. spark draft signatures prints what each mailbox you can draft from appends.

When the user asks for a closing that differs from their signature, pass --no-signature and write the whole closing yourself.

Drafting context (Spark Personalization). spark draft context prints what to write a draft body with, named as Spark Settings names it:

  • Spark Profile - what Spark has learned about who the user is and how they communicate (Settings → Spark +AI → Personalization).
  • Custom Instructions - rules the user recorded in Spark: the profile's own (Personalization → Custom Instructions) and the Auto-Drafts ones (Settings → Spark +AI → Inbox Automation → Auto-Drafts → Custom Instructions). An instruction that names one of the user's accounts applies only to drafts sent from that account.

Read-only, takes no other arguments, and needs read-only access on at least one account. Instructions for an account the CLI cannot access are left out. When the user turns Personalization off, both the profile and its Custom Instructions are left out.

spark draft context
spark draft context --json

Text output starts with the Spark Profile, one of:

OutputMeaning
# Spark Profile followed by a blank line and markdownProfile available - write in line with it
Spark Profile: offThe user turned Personalization off - draft without it
Spark Profile: not generated yetPersonalization is on but the profile is not generated yet, or is regenerating - draft without it
Spark Profile: unavailableThe profile could not be read - draft without it

After a blank line come the Custom Instructions: # Custom Instructions, a blank line, then one instruction per line, - <text>; with none recorded it prints Custom Instructions: none.

JSON: {"profile": {"state": "available" | "off" | "notGenerated" | "unavailable", "markdown": "…"}, "custom_instructions": [{"text": "…"}]}. markdown is present only when state is available.

On success the output includes the draft's ID: (use it with --edit and --send) and a Link: line with a Spark deep link (https://sparkmailapp.com/dpl/bl?token=...) that opens the draft directly in Spark. It also echoes the composed body under Body: - the whole message as the recipient will read it, signature included and quoted thread left out. Read it back to confirm the draft says what you meant, and to catch a sign-off of your own standing next to the account's.

Always give the user the deep link. After creating or updating a draft, include the Link: URL in your response as a clickable markdown link (e.g. [Open draft in Spark](https://sparkmailapp.com/dpl/bl?token=...)) so the user can jump straight to the draft to review or send it. Do not tell the user to open Spark and hunt for the draft manually.

Use emails to find message IDs for --edit, --reply-to, --reply-all, and --forward. Use accounts to find account emails for --account - personal accounts, their Alias: entries, and shared inboxes are all listed there, and any of them can be used as the from address when the account has draft & comment access. Use teams to find team names for --team and team member emails for --user.

Threading is critical. Whenever a new message belongs to an existing conversation, you must pass --reply-to with the last message in that thread. This is what attaches the draft to the conversation (correct In-Reply-To / References headers, same thread in the recipient's mailbox). Without --reply-to the draft starts a brand new thread, which is almost always wrong when the user asked you to "reply", "respond", "follow up", "answer", or "ping" anyone in the context of an existing conversation. Use thread <id> to inspect the conversation and pick the most recent message's ID as --reply-to. On a thread with several participants, use --reply-all unless the user wants a private answer to the sender.

Follow-ups (no response yet). When the user asks to follow up with someone you already emailed and they haven't replied yet (e.g. "send Alice a nudge - she never responded to my last email", "bump the proposal thread"), the most recent message in that thread is your own outgoing one. Use that message's ID as --reply-to - the follow-up stays attached to the original outgoing message so the recipient sees it as a bump on the existing conversation rather than a new cold email.

Sharing is triggered by the presence of --team or --user; teams with exactly one other active member auto-share with everyone, otherwise --user is required. To add collaborators or change the allow-send setting on an existing shared draft, use --edit <pk> together with the sharing flags - the change is applied to the existing share instead of creating a new one. To toggle allow-send off, pass --no-allow-send. To remove a specific collaborator without tearing the share down, pass --remove-user <email>; the shared draft, its comments, and the remaining collaborators stay intact. Combine --user and --remove-user in one command to swap collaborators in a single operation - removals run before invites. Content edits (--to, --cc, --bcc, --subject, --body, --attach) and sharing updates (--team, --user, --remove-user, --allow-send, --no-allow-send) must be issued as separate draft commands.

Deleting a draft is final. --delete <pk> removes the draft outright - unlike a received email there is no Trash to recover it from, and neither history undo nor Spark's own undo can bring it back. Only delete a draft the user asked you to discard, and say so plainly in your response rather than implying it can be restored. To throw away just the text of a draft while keeping the draft itself, edit it (draft --edit <pk> --body "...") instead. action moveToTrash does not work on a draft.

Deleting several drafts. --delete 1234 2345 3456 checks each ID and deletes every valid draft in one go, even when others are refused. If any ID was not deleted (scheduled, shared, not a draft, not found), the command exits non-zero; its first line names those IDs, and the rest lists what was deleted and why the others were not. --json gives one entry per ID with status deleted, refused or not_found.

Sending and scheduling

--send sends an existing draft (created with spark draft or in Spark Desktop) through the owning account's outbound mail pipeline. Same validation as the desktop composer: the draft must live on an account whose access level is send (Settings -> AI Agents), have at least one recipient, a non-empty subject, all attachments uploaded, and no unresolved manual template placeholders.

Sending waits for the user. So the user can stop it, every --send is held for 60 seconds before it runs: the command answers right away with Queued: … and nothing has been sent yet. The user can undo it in Spark Desktop during that time. Check the outcome afterwards with spark history (see history): ok means it went out, error that it failed, and blocked that the user stopped it. The entry appears once the 60 seconds are over; spark emails Outbox is a second check. The other verbs below run at once.

spark draft --send 1234

When it runs, the result reports the original draft ID and the ID of the sent message: Draft 1234 sent. Sent message ID: 5678.

Typical flow: spark draft ... to compose, review the draft, then spark draft --send <pk> to send it. Splitting the two operations means you (or the user) can edit the draft before any external mail is emitted - creating or editing a draft never sends.

Scheduled send ("Send Later"): add --date to schedule the draft instead of sending it now. The date must be in the future (formats: yyyy-MM-dd, dd/MM/yyyy, yyyy-MM-ddTHH:mm); a past or malformed date is rejected before anything is sent.

spark draft --send 1234 --date 2026-04-10T09:00

Result: Draft 1234 scheduled to send on 2026-04-10 09:00. Message ID: 5678. The message moves to the Outbox (spark emails Outbox) under that new ID and goes out at that time.

Manage an already-scheduled message by its Outbox ID:

  • Reschedule: --send with a new --date updates the schedule; the ID stays the same.
spark draft --send 5678 --date 2026-04-12T15:00
  • Send now: --send with no --date drops the schedule and sends it immediately.
spark draft --send 5678
  • Unschedule: --unschedule cancels the schedule and returns the message to Drafts, so you can edit it or send it later. It needs only triage access and runs at once.
spark draft --unschedule 5678

Output: Message 5678 unscheduled - returned to drafts. Find it in the Drafts folder. Unscheduling creates a fresh draft, so the old ID (5678) no longer resolves - list emails Drafts (or thread on the conversation) to get the new draft ID before editing or sending it. Run spark emails Outbox afterwards to confirm nothing you unscheduled is still queued.

Follow-up reminder on a draft: --change-reminder <pk> --date <date> sets a reminder on a draft or a scheduled message; if nobody has replied by then, the thread comes back to the user's Inbox. The reminder stays with the message when it is sent. --clear-reminder <pk> removes it.

spark draft --change-reminder 1234 --date 2026-04-15
spark draft --clear-reminder 1234

Several messages at once: --send, --unschedule, --change-reminder and --clear-reminder each take several IDs (--send 1234 2345), with one verb per command. If any ID fails, the command exits non-zero; the first line names the failed IDs, and the rest of the output shows which ones went through. Act on what the output says, not on the command alone.

templates

List Spark message templates - the saved drafts users can apply via draft --template. Templates round-trip from desktop, so anything saved on the user's computer shows up here.

spark templates                          # all personal + team templates
spark templates --personal               # only personal templates
spark templates --team "Marketing"       # only that team's templates
spark templates --page 2 --page-size 20  # pagination

Output columns: ID, Scope (Personal / <team name>), Name, Subject (truncated to 40 chars), Modified. Use the ID or Name value with template <id|name> and draft --template.

template

Read-only. Show a single template's full contents and its placeholder requirements. Run this before draft --template so you know which --placeholder "<name>=<value>" arguments the template needs.

spark template 123                       # by ID
spark template "Welcome reply"           # by name (case-insensitive)

Output includes scope, recipients, subject, body (HTML stripped to text), attachments, and a Placeholders: section listing every placeholder in the template:

  • [auto] - auto-fillable (recipient/self name). Resolved from --to and --account when applied. Not overridable via --placeholder.
  • [manual] - free-form placeholder. Required: must be passed as --placeholder "<name>=<value>" to draft --template.

If a name matches more than one template, you'll get an error listing the matching IDs - disambiguate by ID.

comment

Requires: triage access level.

Post a team comment (chat message) on a thread. If the thread is not yet shared, it will be shared automatically. Supports text comments, file attachments, or both. Use --edit to update an existing comment.

To mention (tag) a teammate, write @ followed by their email in --body, e.g. @alice@co.com. It becomes a real mention: the teammate is notified and added to the conversation, and the comment shows @Full Name. Get emails from spark team "<Team Name>". An @email that isn't an active member of the team is rejected with the member list; @Name without an email is posted as plain text and notifies nobody.

spark comment 1234 --body "Looks good, let's proceed."
spark comment 1234 --body "@alice@co.com can you take this one?"
spark comment 1234 --body "Please review this" --team "Engineering"
spark comment 1234 --body "FYI" --team "Engineering" --user alice@co.com --user bob@co.com
spark comment 1234 --attach /path/to/screenshot.png
spark comment 1234 --body "See attached" --attach /path/to/report.pdf --attach /path/to/data.csv
cat screenshot.png | spark comment 1234 --attach-stream screenshot.png   # pipe a file the app can't read directly
spark comment --edit 5678 --body "Updated comment text"
ParameterRequiredDescription
<message-id>Yes (post)Message ID of a message in the thread to comment on.
--bodyWhen no --attachComment text to post. @<email> mentions a teammate. Required when using --edit.
--attachWhen no --bodyAbsolute path to a file to attach. Repeat for multiple files. Each file is sent as a separate message. Cannot be used with --edit. The Spark app must be able to read the path; in the sandboxed App Store build a path outside the app's container can't be read and is rejected with a clear error - pipe the file with --attach-stream instead. Max 25 MB per file.
--attach-streamWhen no --bodyAttach a single file whose bytes are read from stdin, shown as <name>, sent as its own comment message. Use this when the file is outside the app's sandbox (the App Store build can't read arbitrary paths) - it's the inbound twin of attachment --stream. One streamed file per command; cannot be used with --edit. Max 25 MB. Example: cat shot.png | spark comment 456 --attach-stream shot.png --team "Engineering". Needs a real stdin, so it only works when you run the spark binary yourself - otherwise use --attach.
--editNoMessage ID of an existing comment to edit. Requires --body.
--teamWhen >1 teamTeam name. Required when you belong to multiple teams.
--userWhen team >2 membersTeammate email to share with. Repeat for multiple. Only used when auto-sharing an unshared thread; it doesn't mention anyone (use @<email> in --body). For teams with 2 or fewer members, the whole team is shared with automatically.

Use emails to find message IDs. Use thread to see comment IDs in a conversation. Use team to list teams and their members.

events

List calendar events for a time range.

spark events                                          # today's remaining events
spark events --tomorrow
spark events --week
spark events --week --in user@example.com             # specific account
spark events --week --in user@example.com:Work        # specific calendar
spark events --start 2026-03-16 --end 2026-03-20      # custom range
spark events --week --include-hidden                  # hidden calendars too

Date formats: yyyy-MM-dd, dd/MM/yyyy, or yyyy-MM-ddTHH:mm.

Run accounts to see available calendar accounts and calendar names.

Hidden calendars: accounts marks a calendar (hidden) when the user switched it off in Spark's calendar view. events leaves hidden calendars out, the same way Spark's calendar view does. Pass --include-hidden to add them, or name one with --in user@example.com:Name to list just that calendar. If the user expects events that aren't listed, check accounts for hidden calendars before concluding the calendar is empty or unsupported.

event

Requires: send access level on the target calendar's owning account. Every mode can emit mail through the calendar service (invitations on create / update, iTIP UPDATE / CANCEL on update / delete of attendee-bearing events, an iTIP REPLY on rsvp), and attaching attendees makes the event discoverable by the provider's invitation channel independent of email, so the whole command sits at send.

Create, update, delete, or RSVP to a calendar event, including managing its attendees. Use --add / --remove on create or update to attach or detach attendees and send invitations / cancellations through the calendar provider (CalDAV / Google / Exchange).

spark event create --title "Sync" --start 2026-07-01T12:00 --end 2026-07-01T13:00
spark event create --title "OOO" --start 2026-07-01 --all-day
spark event create --title "Standup" --start 2026-07-01T09:00 --end 2026-07-01T09:15 --video-conference auto
spark event create --title "Sync" --start 2026-07-01T10:00 --end 2026-07-01T10:30 --video-conference zoom
spark event create --title "1:1" --start 2026-07-01T14:00 --end 2026-07-01T14:30 --calendar "user@co.com:Work"
spark event create --title "Sync" --start 2026-07-01T12:00 --add "alice@co.com,bob@co.com"   # create + invite
spark event update ABC-123 --title "New title"
spark event update ABC-123 --location "Room 7"
spark event update ABC-123 --video-conference meet   # add a meeting link
spark event update ABC-123 --add alice@co.com --remove bob@co.com   # swap attendees
spark event delete ABC-123
spark event rsvp ABC-123 accept     # calendar event ID
spark event rsvp ABC-123 decline
spark event rsvp 44268 maybe        # invitation email message ID
ParameterRequiredDescription
modeYescreate, update, delete, or rsvp (positional).
event_idFor update/delete/rsvpPositional, second arg. For update/delete: a calendar event ID (use events). For rsvp: either a calendar event ID or the message ID of the invitation email (use emails / thread).
statusFor rsvpRSVP status (positional, third arg): accept, decline, or maybe.
--titleNoEvent title / summary.
--startYes (for create)Start date/time (yyyy-MM-dd, dd/MM/yyyy, yyyy-MM-ddTHH:mm, or yyyy-MM-ddTHH:mm:ssXXX).
--endNoEnd date/time.
--all-dayNoMark the event as all-day.
--descriptionNoEvent description / notes.
--alertsNoComma-separated alert offsets (Ns for N seconds before, e.g. 300s,600s) or absolute dates.
--locationNoEvent location text.
--video-conferenceNoAttach a video conference (value required). auto auto-picks the account's type (recently used, else default); meet, zoom, or teams selects a specific one and errors if the account doesn't support it.
--calendarNoTarget calendar for create. Format: email@domain.com (account's default calendar) or email@domain.com:Name (specific named calendar). Hidden calendars work too, and saving an event in one switches it back on in Spark's calendar view.
--addNoAttendee email address(es) to invite (create / update only). Repeat the flag or pass a comma-separated list. New attendees receive an iTIP REQUEST (invitation).
--removeNoAttendee email address(es) to remove (update only). Repeat the flag or pass a comma-separated list. Removed attendees receive an iTIP CANCEL. The organizer cannot be removed.

Attendees (--add / --remove):

  • Only valid on create and update; passing them to delete or rsvp is refused. Combine both in one update to swap attendees - removals run before additions.
  • Adding or removing attendees always emits iTIP mail (REQUEST / CANCEL). An event with no attendees stays invisible to the calendar service's invitation channel.
  • Attaching attendees makes the event discoverable by the calendar provider's invitation channel (including Google Calendar's same-provider auto-add behavior), independent of email delivery - which is why the whole command requires send.

event update semantics:

  • --video-conference attaches a meeting link (meet / zoom / teams, or auto) to an existing event, generated through the same path as create. On an event with attendees this is a shared change, so it sends the iTIP UPDATE.
  • Event with no attendees → local update, no mail goes out.
  • Event with attendees → update + iTIP UPDATE sent to all attendees so their calendars reflect the new state. Output reports the attendee count.
  • An alerts-only edit is a personal reminder and notifies nobody, even on an event with attendees.

event delete semantics:

  • Event with no attendees → local delete, no mail goes out.
  • Event with attendees → delete + iTIP CANCEL sent to all attendees so their calendars get cleaned up too. Output reports the attendee count. Deleting without the cancellation would orphan the invitation on attendees' calendars (most visibly on Google's same-provider auto-add channel).

event rsvp semantics:

  • Sets your own attending status on an invitation: accept, decline, or maybe (alias for tentative). Responding emits an iTIP REPLY back to the organizer.
  • The id can be either a calendar event ID or the message ID of the invitation email. Many providers (Google included) leave an unanswered invite sitting in the inbox without adding it to the calendar, so when the user asks you to respond to an invitation, look it up with emails / thread and pass that message ID - you do not need a calendar event. When the invite has been auto-added to the calendar, a calendar event ID works too.
  • For a message ID, the reply mirrors Spark Desktop: it updates the matching calendar event if one is synced, otherwise it mails the iTIP REPLY straight to the organizer (and, on accept, adds the event to your calendar).
  • Errors if the target is not an invitation you can respond to (a plain email, your own organized event with no RSVP, or a provider that does not allow responding).
  • For a calendar event, re-RSVPing to the status you already hold is a no-op and reported as such.

Typical flow when scheduling a new meeting: call event create ... to lay down the event first, confirm the time and details with the user, then call event update <event-id> --add ... to push invitations - so the user can review (or you can revise) the event before any external email goes out. When you already have the attendees, event create ... --add ... does both in one step.

Run accounts to see writable calendars and the access level on each account.

availability

Find free time slots. Without --attendees, shows the user's own availability. With --attendees, computes mutual free windows.

spark availability                                                        # today
spark availability --tomorrow
spark availability --week --attendees alice@co.com
spark availability --start 2026-03-16 --end 2026-03-20 --attendees a@co.com,b@co.com

Free slots are within working hours (08:00-20:00), skip weekends, and ignore events marked "free".

contacts

Search contacts by name or email. Strict match first, then fuzzy fallback. Without a query, lists the contacts the user writes to most, most-used first. --limit caps the list (1-1000, default 25).

spark contacts "john"
spark contacts "example.com"
spark contacts --limit 500 --json   # most-used contacts; "query" is null, "match" is "top"

contact

Show one contact's details: name, other addresses, and each setting contact-action changes. Check a sender's state before changing it - e.g. whether they are already Priority or blocked. An unknown address is an error.

spark contact bob@example.com
spark contact bob@example.com --json
FieldChanged by
category (personal / notification / newsletter)changeCategory*
is_prioritymarkContactAsPrimary / unmarkContactAsPrimary
notificationsmarkContactAsImportant / unmarkContactAsImportant
blocked / accepted (GateKeeper; neither for a new sender)blockContact / acceptContact
grouped, grouped_in_inboxgroupEmailsFromContact[AndShowInInbox] / ungroupEmailsFromContact
auto_summaryenableAutosummaryForContact / disableAutosummaryForContact

team

Show team info - metadata, shared inboxes with members, full member list, assigned emails, assignment summary.

spark team                     # list available teams
spark team "Readdle"           # specific team

meetings

List meeting transcripts with optional filters and pagination.

spark meetings
spark meetings --filter "newer_than:30d"
spark meetings --filter "subject:standup" --page-size 10

Filter operators: subject:<text>, before:yyyy/MM/dd, after:yyyy/MM/dd, newer_than:Xd, older_than:Xd.

meeting

Read a single meeting transcript's summary. Optionally include the full transcript and/or notes.

spark meeting 42                            # summary only
spark meeting --transcript 42               # include transcript
spark meeting --notes 42                    # include notes
spark meeting --transcript --notes 42       # everything
spark meeting "https://sparkmailapp.com/dpl/bl?token=ABC..."  # by Spark deep link

The positional argument accepts either a numeric meeting message ID or a Spark deep link.

Use meetings to find meeting IDs.

action

Requires: triage access level.

Perform an action on one or more emails. Supports standard email actions and team actions.

spark action <action-name> <message-id...> [options]

Supported actions:

  • pin - Pin the message to keep it at the top of the list
  • unpin - Remove the pin from the message
  • mute - Mute the thread to stop receiving notifications
  • unmute - Unmute a previously muted thread
  • snooze - Snooze the message until a specific date (requires --date)
  • unsnooze - Remove the snooze and return the message to the inbox
  • changeReminder - Set a follow-up reminder if no reply by the date (requires --date)
  • clearReminder - Remove the follow-up reminder from the message
  • setAside - Set the message aside for later review
  • archive - Archive the message, removing it from the inbox
  • moveToInbox - Move the message back to the inbox
  • moveToTrash - Move the message to trash
  • moveToFolder - Move the message to a specific folder (requires --folder)
  • attachLabel - Attach a Gmail or Spark Team label without removing other labels (requires --folder)
  • detachLabel - Remove a Gmail or Spark Team label from the message (requires --folder)
  • markAsDone - Mark the message as done
  • markAsUndone - Mark the message as not done
  • markAsSeen - Mark the message as read
  • markAsUnseen - Mark the message as unread
  • markAsSpam - Mark the message as spam
  • markThreadAsPriority - Mark the thread as priority
  • unmarkThreadAsPriority - Remove the priority mark from the thread
  • unsubscribe - Unsubscribe from the sender or mailing list
  • changeCategoryPersonal - Change the email category to Personal
  • changeCategoryNotification - Change the email category to Notification
  • changeCategoryNewsletters - Change the email category to Newsletter
  • shareInTeam - Share the thread with teammates (requires --team when multiple teams)
  • assign - Assign the email to a teammate (requires --assignee)
  • unassign - Remove the assignment; in a shared inbox the thread returns to Unassigned. Fails if the thread is not assigned. Outside a shared inbox, reopen a completed delegation first
  • delegationComplete - Mark the delegation as complete
  • delegationReopen - Reopen a completed delegation

Several messages at once: pass several IDs (spark action archive 100 200 300). If any of them fails or is refused, the command exits non-zero and its first line names those IDs; the rest of the output lists what went through. Check that line rather than assuming the whole batch succeeded.

Options:

  • --date - required for snooze and changeReminder, optional for assign as due date (formats: yyyy-MM-dd, dd/MM/yyyy, yyyy-MM-ddTHH:mm)
  • --folder - required for moveToFolder, attachLabel, and detachLabel (qualified name: email@domain.com:FolderName; use folders to list labels including shared inboxes)
  • --team - team name for team actions; required when you belong to multiple teams
  • --user - teammate email to share with for shareInTeam; repeat for multiple users; required when team has more than 2 members
  • --assignee - teammate email to assign the email to for assign
  • --comment - comment text for the assign action
spark action pin 12345                                          # pin a message
spark action archive 100 200 300                                # archive multiple messages
spark action markAsSeen 100 200                                 # mark as read
spark action snooze 12345 --date 2026-04-10T09:00               # snooze until date/time
spark action snooze 12345 --date 2026-04-10                     # snooze until date
spark action moveToFolder 12345 --folder "user@example.com:Archive"  # move to folder
spark action attachLabel 12345 --folder "user@gmail.com:MyLabel"       # add Gmail/Team label
spark action detachLabel 12345 --folder "shared@company.com:SomeLabel"  # remove label
spark action changeReminder 12345 --date 2026-04-15             # set reminder
spark action shareInTeam 1234 --team "Engineering" --user alice@co.com  # share with teammate
spark action shareInTeam 1234 --user alice@co.com --user bob@co.com    # share with multiple
spark action assign 1234 --assignee bob@co.com                  # assign to teammate
spark action assign 1234 --assignee bob@co.com --date 2026-04-15 --comment "Please review"
spark action unassign 1234                                      # remove the assignment
spark action delegationComplete 1234                            # mark delegation done
spark action delegationComplete 100 200 300                     # complete multiple delegations
spark action delegationReopen 1234                              # reopen delegation

Use the emails command to find message IDs. Use folders to resolve qualified names for moveToFolder, attachLabel, and detachLabel. Use team to list teams and members for team actions.

contact-action

Requires: triage access level.

Perform an action on one or more contacts by email address.

spark contact-action <action-name> <email...>

Supported actions:

ActionDescription
changeCategoryPersonalChange the contact's email category to Personal
changeCategoryNotificationChange the contact's email category to Notification
changeCategoryNewslettersChange the contact's email category to Newsletter
groupEmailsFromContactGroup emails from the contact by category
groupEmailsFromContactAndShowInInboxGroup emails from the contact and show in inbox
ungroupEmailsFromContactUngroup emails from the contact
markContactAsImportantEnable notifications for the contact
unmarkContactAsImportantDisable notifications for the contact
markContactAsPrimaryMark the contact as priority (auto-prioritize emails)
unmarkContactAsPrimaryRemove priority mark from the contact
acceptContactAccept or unblock the contact (bypass Gatekeeper)
blockContactBlock the contact
acceptDomainAccept or unblock the contact's entire domain
blockDomainBlock the contact's entire domain
enableAutosummaryForContactEnable auto-summary for emails from the contact
disableAutosummaryForContactDisable auto-summary for emails from the contact

Examples:

spark contact-action blockContact spammer@example.com
spark contact-action acceptContact alice@co.com bob@co.com
spark contact-action changeCategoryPersonal alice@co.com
spark contact-action markContactAsPrimary ceo@company.com
spark contact-action enableAutosummaryForContact newsletter@example.com

Use the contacts command to look up email addresses.

history

Every spark command - yours, the user's, and other agents' - is recorded on the user's computer: when it ran, the items it touched, and how it ended. Use history to check what a command did, above all the outcome of a draft --send, which answers Queued: … before anything is sent. Entries that touched an account or shared inbox agents can't access (Settings -> AI Agents) are left out. Nothing is uploaded, and entries older than 30 days are pruned.

spark history                                  # recent changes, newest first
spark history --status error                   # only commands that failed
spark history --access send                    # only sends
spark history --access readOnly                # include reads as well
spark history --from 2026-04-10 --to 2026-04-12
spark history --details                        # who ran each entry, every item, its arguments and detail
spark history undo 42                          # revert entry 42

Output:

  ID  Time                 Command         Status  Items
  42  2026-04-10 09:15:02  action archive  ok      message 1234 "Quarterly report" (+2 more)
  41  2026-04-10 09:14:40  action send     error   message 5678 "Re: Budget"

Page 1 of 1 (2 total entries)
Showing entries that needed triage access or more (--access readOnly to include reads).
Revert one with: history undo <id>

Status is ok, error (it failed - the detail says why), blocked (Spark refused it, or the user stopped a held send), or undone. A draft --send is recorded as action send, and gets its entry when its 60 seconds are over.

Options:

  • --access <level> - lowest access level an entry needed: readOnly, triage (the default, which leaves reads out), or send
  • --status <status> - success, error, or blocked
  • --from / --to - date range (yyyy-MM-dd)
  • --details - add who ran each entry, every item it touched, its arguments, and its detail
  • --page, --page-size - pagination (default 50 per page)

Undo. history undo <id> puts back what a successful action, contact-action, or draft creation changed - unpins what was pinned, moves back what was moved, deletes a draft spark wrote - while its items still exist and still hold the state the entry left them in. It needs triage access, as the original command did. Undoing a new draft deletes it permanently, including any edits made since. A sent email, a deleted draft, and a calendar change can't be undone. Undo only when the user asks for it; the user can also undo an entry in Spark Desktop, under Agent Activity.

Smart Categories

Spark automatically classifies incoming email into six categories. Use the category: filter operator with emails and search to view mail by category, and use action / contact-action to reclassify and tune.

CategoryFilterTypical Content
Prioritycategory:priorityAuto-prioritized or manually marked as priority
Peoplecategory:personalDirect person-to-person email
Notificationscategory:notificationService notifications, alerts, receipts
Newsletterscategory:newsletterSubscriptions, digests, marketing
Invitescategory:invitationCalendar invitations
Invite Responsescategory:invitation_responseRSVPs, accepts, declines

Browse by category (read-only):

spark emails Inbox --filter "category:priority is:unread"       # unread priority mail
spark emails Inbox --filter "category:personal is:unread"       # unread people mail
spark emails Inbox --filter "category:invitation"               # pending invites
spark emails Inbox --filter "category:notification is:unread"   # unread notifications
spark emails Inbox --filter "category:newsletter newer_than:7d" # recent newsletters

Reclassify a message (triage):

spark action changeCategoryPersonal <id>       # move to People
spark action changeCategoryNotification <id>   # move to Notifications
spark action changeCategoryNewsletters <id>    # move to Newsletters

Tune per-contact category rules (triage) - changes apply to all future mail from the sender:

spark contact-action changeCategoryPersonal sender@example.com         # reclassify as People
spark contact-action changeCategoryNewsletters sender@example.com      # reclassify as Newsletters
spark contact-action groupEmailsFromContact sender@example.com         # group by category
spark contact-action markContactAsImportant vip@example.com            # enable notifications
spark contact-action markContactAsPrimary ceo@example.com              # auto-prioritize
spark contact-action enableAutosummaryForContact newsletter@example.com # AI summaries

Category-first triage pattern: Process inbox in priority order - priority first, then people, then invites, then notifications, then newsletters. This ensures the most important messages get attention first.

Typical Workflows

Answer a question about emails:

  1. spark search "topic" - find relevant emails with bodies
  2. Read the output and answer the user's question

Find and read a specific email:

  1. spark emails --filter "from:sender subject:keyword" - locate the email
  2. spark thread <ID> - read the full conversation

Draft a reply:

  1. spark emails --filter "from:sender" - find the email
  2. spark draft context - read the Spark Profile and Custom Instructions to write with
  3. spark draft --reply-to <ID> --body "Thanks for the update!"
  4. Give the user the Link: from the output as a clickable markdown link so they can review the draft in Spark

Send an email from a saved template:

  1. spark templates - list templates (or spark templates --personal / --team "<name>")
  2. spark template "<name>" - inspect placeholders before applying
  3. spark draft --template "<name>" --to <recipient> --placeholder "<manual>=<value>" - create the draft (repeat --placeholder for each manual one)

Check someone's schedule for a meeting:

  1. spark availability --tomorrow --attendees alice@co.com,bob@co.com
  2. Suggest a time from the free slots

Comment on a shared thread:

  1. spark emails --filter "from:sender" - find the email
  2. spark comment <ID> --body "Looks good, approved!"

Get team workload overview:

  1. spark team "Team Name" - see members and assigned emails

Look up a contact:

  1. spark contacts "name or domain" - find their email address

Perform an action on emails:

  1. spark emails --filter "from:sender" - find the email
  2. spark action archive <ID> - archive it (or pin, snooze, etc.)

Share an email with your team:

  1. spark emails --filter "subject:keyword" - find the email
  2. spark action shareInTeam <ID> --user alice@co.com - share with a teammate

Delegate an email to a teammate:

  1. spark emails --filter "subject:keyword" - find the email
  2. spark action assign <ID> --assignee bob@co.com --date 2026-04-15 --comment "Please handle this"

Mark delegated emails as done:

  1. spark emails --filter "subject:keyword" - find the email(s)
  2. spark action delegationComplete <ID1> <ID2> - mark multiple as complete

Find unassigned shared inbox emails:

  1. spark emails shared@co.com:Inbox --filter "assigned_to:unassigned" - list unassigned items
  2. spark action assign <ID> --assignee bob@co.com - assign to a teammate

Review what's assigned to a teammate:

  1. spark emails --filter "assigned_to:bob@co.com" - see their assignments
  2. spark emails --filter "is:shared_inbox_open" - all open shared inbox items
  3. spark emails --filter "is:shared_inbox_done" - completed items

Manage a contact:

  1. spark contacts "name or domain" - find the contact email
  2. spark contact-action blockContact spammer@example.com - block them (or accept, change category, etc.)

Keeping this skill up to date

The CLI and this skill share a single version (metadata.version in the front-matter above). New features in newer Spark Desktop releases ship with an updated embedded skill. Backward compatibility is guaranteed within a major version, so the commands and flags documented here keep working - but newly added features won't appear in this file until it is reinstalled.

Check for an update when - and only when - you hit one of these signals:

  • The user asks about a Spark feature, command, or flag that isn't documented here.
  • A spark command fails with an "unknown command" or "unknown option" error you didn't expect.
  • The user explicitly says they upgraded Spark or that the skill is out of date.

In those cases:

spark --version

If the printed version is greater than metadata.version above, refresh this file before answering. spark skill prints SKILL.md to stdout - capture it and write it back over the file you're reading right now (the path is in your context). For example:

mkdir -p <parent-of-use-spark>/use-spark
spark skill > <parent-of-use-spark>/use-spark/SKILL.md

<parent-of-use-spark> is the directory containing the use-spark/ folder this SKILL.md lives in. If you have a file-write tool, you can also pipe spark skill output directly through it - the CLI itself does not write any files.

Do not check on every session or before every command - this skill is the source of truth unless one of the signals above tells you otherwise.

Tips

  • Always quote multi-word arguments: spark search "project update"
  • Combine filter operators in a single --filter string: --filter "from:alice@co.com is:unread newer_than:7d"
  • Use folders to discover exact folder identifiers before passing them to emails or search --in
  • Use accounts to discover calendar names before passing them to events --in
  • The search command is best for topic-based queries; emails is best for browsing/filtering by metadata
  • thread returns the full conversation - use it when you need the complete email text, not just metadata
  • Use draft to compose emails - it supports new drafts, replies, forwards, and editing existing drafts
  • Before writing any draft body, run draft context and write in line with the Spark Profile and Custom Instructions it shows; the user's own instructions in the conversation take priority
  • After creating a draft, always share its Link: deep link with the user as a clickable markdown link instead of asking them to open Spark
  • draft --delete <pk> discards a draft permanently - there is no Trash and no undo, so use it only when the user asked for it; it takes several IDs at once
  • Send or schedule a draft with draft --send <pk> [--date <date>]; sending waits 60 seconds for the user to undo it, so confirm the outcome with history after that, and emails Outbox as a second check
  • Scheduled and unsent mail is in emails Outbox, not in any mail folder - check it before and after scheduling or unscheduling
  • Never end a draft body with a sign-off: Spark appends the account's signature itself (draft signatures shows it)
  • Use comment to post team chat messages on threads - it auto-shares the thread if needed
  • Use action to perform email actions like pin, archive, snooze, move to folder, and more
  • Use contact-action to manage contacts - block, accept, change category, toggle auto-summary, and more
  • Use history to check what a command did and how it ended; history undo <id> reverts an action, contact action, or new draft

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.