use-spark
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUsing spark
使用spark
sparksparkRunning spark
运行spark
bash
spark <command> [options]Environment: is a thin client that talks to the user's running Spark macOS Desktop app. 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.
sparkbash
spark <command> [options]环境说明: 是一款轻量客户端,需与用户正在运行的Spark macOS桌面应用通信。请勿在沙箱、容器、CI运行器或任何与用户桌面会话隔离的环境中尝试执行它——否则将无法连接。
sparkCommands
命令列表
| Command | Description |
|---|---|
| List accounts, calendars, teams, shared inboxes |
| List folders/labels with message counts |
| List emails with filters and pagination |
| Hybrid keyword + semantic search with full bodies |
| Read full thread - headers, bodies, attachments |
| List calendar events for a time range |
| Find free time slots, optionally with attendees |
| Search contacts by name or email |
| Show team info, members, shared inboxes, assignments |
| List meeting transcripts |
| Read a single meeting transcript |
| 命令 | 描述 |
|---|---|
| 列出账户、日历、团队和共享收件箱 |
| 列出文件夹/标签及对应邮件数量 |
| 通过筛选器和分页功能列出邮件 |
| 混合关键词+语义搜索,返回完整邮件内容 |
| 读取完整对话线程——包含邮件头、正文和附件信息 |
| 列出指定时间范围内的日历事件 |
| 查找空闲时段,可指定参会人员 |
| 通过姓名或邮箱搜索联系人 |
| 查看团队信息、成员、共享收件箱及任务分配情况 |
| 列出会议纪要 |
| 读取单条会议纪要 |
accounts
accounts
List all configured accounts with their calendars, teams, and shared inboxes.
bash
spark accountsRun this first to discover what accounts, calendars, and teams are available.
列出所有已配置的账户及其关联的日历、团队和共享收件箱。
bash
spark accounts建议先运行此命令,了解可用的账户、日历和团队信息。
folders
folders
List folders with message counts. Output includes folder identifiers in parentheses - use these as arguments to and . Mailboxes backed by a Google account show on the Email Account or Shared Inbox header. Teams show the team name as a usable identifier for .
emailssearch(Gmail labels)emailsbash
spark folders # all accounts
spark folders user@example.com # single account列出文件夹及对应邮件数量。输出内容中括号内的是文件夹标识符——可将其作为和命令的参数。由Google账户支持的邮箱会在邮件账户或共享收件箱标题后显示。团队名称可作为命令的有效标识符。
emailssearch(Gmail labels)emailsbash
spark folders # 所有账户
spark folders user@example.com # 单个账户emails
emails
List emails with metadata (ID, From, Date, Subject, Flags). Supports pagination and Gmail-style filters.
bash
spark emails # Unified Inbox
spark emails user@example.com:Archive # specific folder
spark emails "My Team" # all shared threads in a team
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 emailsGateKeeper 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 to view those emails.
--new-sendersFolder identifier formats (run to see available ones):
folders| Format | Example | Meaning |
|---|---|---|
| Bare name | | Unified folder (cross-account) |
| | Account inbox shorthand |
| | Specific account folder |
| | All shared threads in a team (quote if spaces) |
| | Shared inbox folder |
Filter operators (combinable, Gmail-style):
| Operator | Example |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| also |
| also |
| emails shared to any team (alias for |
| open items in shared inbox |
| completed/closed items in shared inbox |
| also |
| emails assigned to current user |
| emails assigned to specific teammate |
| shared inbox items with no assignee |
| emails assigned to someone else (not me) |
| emails delegated by current user |
| |
列出包含元数据(ID、发件人、日期、主题、标记)的邮件。支持分页和Gmail风格的筛选器。
bash
spark emails # 统一收件箱
spark emails user@example.com:Archive # 指定文件夹
spark emails "My Team" # 团队所有共享对话
spark emails --filter "from:alice@co.com is:unread" # 筛选邮件
spark emails --filter "newer_than:7d has:attachment" # 近期带附件的邮件
spark emails --page 2 --page-size 20 # 分页
spark emails --order ascending # 按时间升序( oldest first)
spark emails --new-senders # 仅显示新发件人的邮件GateKeeper筛选: 当在显式模式下使用GateKeeper查看收件箱时,新发件人的邮件会被自动过滤,顶部会显示“新发件人”数量。使用参数可查看这些邮件。
--new-senders文件夹标识符格式(运行命令查看可用标识符):
folders| 格式 | 示例 | 含义 |
|---|---|---|
| 纯名称 | | 跨账户统一文件夹 |
| | 账户收件箱简写 |
| | 指定账户的文件夹 |
| | 团队所有共享对话(名称含空格时需加引号) |
| | 共享收件箱文件夹 |
筛选运算符(可组合使用,Gmail风格):
| 运算符 | 示例 |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| 还支持 |
| 还支持 |
| 共享至任意团队的邮件( |
| 共享收件箱中的未处理项 |
| 共享收件箱中的已完成/已关闭项 |
| 还支持 |
| 分配给当前用户的邮件 |
| 分配给特定团队成员的邮件 |
| 共享收件箱中未分配的项 |
| 分配给其他用户(非当前用户)的邮件 |
| 当前用户委派的邮件 |
| |
search
search
Hybrid keyword + semantic search returning up to 20 emails with full bodies, sorted by relevance.
bash
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| Parameter | Required | Description |
|---|---|---|
| Yes | Search topic (positional) |
| No | Gmail-style filter (same operators as |
| No | Scope: account, team, folder, or shared inbox. All folders if omitted. |
Use when the user asks about a topic. It returns email bodies so you can answer questions about content. Use when listing/browsing by folder or filters without needing bodies.
searchemails混合关键词+语义搜索,最多返回20封按相关性排序的完整邮件。
bash
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 # 账户下所有文件夹| 参数 | 是否必填 | 描述 |
|---|---|---|
| 是 | 搜索主题(位置参数) |
| 否 | Gmail风格筛选器(与 |
| 否 | 搜索范围:账户、团队、文件夹或共享收件箱。省略则搜索所有文件夹。 |
当用户询问特定主题时使用命令,它会返回邮件正文,便于你回答内容相关问题。当仅需按文件夹或筛选器列出/浏览邮件而不需要正文时,使用命令。
searchemailsthread
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 (same style as ).
account@domain.com:MyLabelfoldersbash
spark thread 1114 # by message ID from emails/search output
spark thread --download-attachments 1114 # also fetch attachments via IMAPUse or to find message IDs (the ID column), then to read the full conversation.
emailssearchthread打印对话线程中的每一条消息——包含邮件头、完整纯文本正文和附件信息。在对话摘要行之后,会列出整个线程的自定义(非系统)文件夹标签,格式为(与命令的格式一致)。
account@domain.com:MyLabelfoldersbash
spark thread 1114 # 通过emails/search输出中的消息ID查询
spark thread --download-attachments 1114 # 同时通过IMAP获取附件先使用或命令查找消息ID(ID列),再使用命令读取完整对话。
emailssearchthreadevents
events
List calendar events for a time range.
bash
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 rangeDate formats: , , or .
yyyy-MM-dddd/MM/yyyyyyyy-MM-ddTHH:mmRun to see available calendar accounts and calendar names.
accounts列出指定时间范围内的日历事件。
bash
spark events # 今日剩余事件
spark events --tomorrow
spark events --week
spark events --week --in user@example.com # 指定账户
spark events --week --in user@example.com:Work # 指定日历
spark events --start 2026-03-16 --end 2026-03-20 # 自定义时间范围日期格式:、或。
yyyy-MM-dddd/MM/yyyyyyyy-MM-ddTHH:mm运行命令查看可用的日历账户和日历名称。
accountsavailability
availability
Find free time slots. Without , shows the user's own availability. With , computes mutual free windows.
--attendees--attendeesbash
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.comFree slots are within working hours (08:00-20:00), skip weekends, and ignore events marked "free".
查找空闲时段。不带参数时,显示当前用户的空闲时间;带参数时,计算所有参会人员的共同空闲窗口。
--attendees--attendeesbash
spark availability # 今日
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空闲时段限定在工作时间(08:00-20:00),跳过周末,且忽略标记为“空闲”的事件。
contacts
contacts
Search contacts by name or email. Strict match first, then fuzzy fallback.
bash
spark contacts "john"
spark contacts "example.com"通过姓名或邮箱搜索联系人。优先精确匹配,再进行模糊匹配。
bash
spark contacts "john"
spark contacts "example.com"team
team
Show team info - metadata, shared inboxes with members, full member list, assigned emails, assignment summary.
bash
spark team # list available teams
spark team "Readdle" # specific team查看团队信息——元数据、含成员的共享收件箱、完整成员列表、已分配邮件及任务分配摘要。
bash
spark team # 列出可用团队
spark team "Readdle" # 指定团队meetings
meetings
List meeting transcripts with optional filters and pagination.
bash
spark meetings
spark meetings --filter "newer_than:30d"
spark meetings --filter "subject:standup" --page-size 10Filter operators: , , , , .
subject:<text>before:yyyy/MM/ddafter:yyyy/MM/ddnewer_than:Xdolder_than:Xd列出会议纪要,支持筛选器和分页。
bash
spark meetings
spark meetings --filter "newer_than:30d"
spark meetings --filter "subject:standup" --page-size 10筛选运算符:、、、、。
subject:<text>before:yyyy/MM/ddafter:yyyy/MM/ddnewer_than:Xdolder_than:Xdmeeting
meeting
Read a single meeting transcript's summary. Optionally include the full transcript and/or notes.
bash
spark meeting 42 # summary only
spark meeting --transcript 42 # include transcript
spark meeting --notes 42 # include notes
spark meeting --transcript --notes 42 # everythingUse to find meeting IDs.
meetings读取单条会议纪要的摘要。可选择包含完整纪要和/或会议笔记。
bash
spark meeting 42 # 仅摘要
spark meeting --transcript 42 # 包含会议纪要
spark meeting --notes 42 # 包含会议笔记
spark meeting --transcript --notes 42 # 全部内容使用命令查找会议ID。
meetingsSmart Categories
智能分类
Spark automatically classifies incoming email into six categories. Use the filter operator with and to view mail by category.
category:emailssearch| Category | Filter | Typical Content |
|---|---|---|
| Priority | | Auto-prioritized or manually marked as priority |
| People | | Direct person-to-person email |
| Notifications | | Service notifications, alerts, receipts |
| Newsletters | | Subscriptions, digests, marketing |
| Invites | | Calendar invitations |
| Invite Responses | | RSVPs, accepts, declines |
Browse by category:
bash
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 newslettersCategory-first review 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.
Spark会自动将收到的邮件分为6个类别。在和命令中使用筛选运算符,可按类别查看邮件。
emailssearchcategory:| 类别 | 筛选器 | 典型内容 |
|---|---|---|
| 优先级 | | 自动标记或手动设置为优先级的邮件 |
| 个人邮件 | | 直接的个人往来邮件 |
| 通知邮件 | | 服务通知、提醒、收据 |
| 通讯邮件 | | 订阅内容、合集、营销邮件 |
| 邀请邮件 | | 日历邀请 |
| 邀请回复 | | 回复邀请、接受/拒绝通知 |
按类别浏览:
bash
spark emails Inbox --filter "category:priority is:unread" # 未读优先级邮件
spark emails Inbox --filter "category:personal is:unread" # 未读个人邮件
spark emails Inbox --filter "category:invitation" # 待处理邀请
spark emails Inbox --filter "category:notification is:unread" # 未读通知邮件
spark emails Inbox --filter "category:newsletter newer_than:7d" # 近期通讯邮件优先按类别处理模式: 按优先级顺序处理收件箱——先处理优先级邮件,再处理个人邮件,接着是邀请邮件、通知邮件,最后是通讯邮件。这样能确保最重要的消息优先得到关注。
Typical Workflows
典型工作流
Answer a question about emails:
- - find relevant emails with bodies
spark search "topic" - Read the output and answer the user's question
Find and read a specific email:
- - locate the email
spark emails --filter "from:sender subject:keyword" - - read the full conversation
spark thread <ID>
Check someone's schedule for a meeting:
spark availability --tomorrow --attendees alice@co.com,bob@co.com- Suggest a time from the free slots
Get team workload overview:
- - see members and assigned emails
spark team "Team Name"
Look up a contact:
- - find their email address
spark contacts "name or domain"
Review assigned shared inbox items:
- - unassigned items
spark emails shared@co.com:Inbox --filter "assigned_to:unassigned" - - items assigned to a teammate
spark emails --filter "assigned_to:bob@co.com" - - all open shared inbox items
spark emails --filter "is:shared_inbox_open" - - completed items
spark emails --filter "is:shared_inbox_done"
Read meeting notes:
- - find recent meetings
spark meetings --filter "newer_than:30d" - - read summary, transcript, and notes
spark meeting <ID> --transcript --notes
回答邮件相关问题:
- - 查找包含正文的相关邮件
spark search "topic" - 读取输出内容并回答用户的问题
查找并读取特定邮件:
- - 定位目标邮件
spark emails --filter "from:sender subject:keyword" - - 读取完整对话
spark thread <ID>
查看参会人员的会议日程:
spark availability --tomorrow --attendees alice@co.com,bob@co.com- 从空闲时段中建议合适的会议时间
获取团队工作量概览:
- - 查看成员及已分配邮件情况
spark team "Team Name"
查询联系人:
- - 查找联系人邮箱地址
spark contacts "name or domain"
查看共享收件箱的任务分配:
- - 未分配的项
spark emails shared@co.com:Inbox --filter "assigned_to:unassigned" - - 分配给指定团队成员的项
spark emails --filter "assigned_to:bob@co.com" - - 共享收件箱中所有未处理项
spark emails --filter "is:shared_inbox_open" - - 已完成的项
spark emails --filter "is:shared_inbox_done"
查看会议笔记:
- - 查找近期会议
spark meetings --filter "newer_than:30d" - - 读取摘要、会议纪要和笔记
spark meeting <ID> --transcript --notes
Keeping this skill up to date
保持技能更新
The CLI and this skill share a single 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.
metadata.versionCheck 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 command fails with an "unknown command" or "unknown option" error you didn't expect.
spark - The user explicitly says they upgraded Spark or that the skill is out of date.
In those cases:
bash
spark --versionIf the printed version is greater than above, reinstall and re-read this file before answering:
metadata.versionbash
spark skill --install <parent-of-use-spark><parent-of-use-spark>use-spark/SKILL.mdDo 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.
CLI工具与本技能共享同一版本(见前文的)。Spark桌面应用新版本中的新功能会随更新后的内嵌技能一同发布。主版本内保证向后兼容,因此本文档中记录的命令和参数会持续可用——但新增功能需重新安装后才会显示在此文档中。
metadata.version仅当出现以下情况时,检查是否需要更新:
- 用户询问的Spark功能、命令或参数未在本文档中记录。
- 命令执行失败,出现“未知命令”或“未知选项”的意外错误。
spark - 用户明确表示已升级Spark或本技能已过时。
出现上述情况时:
bash
spark --version如果打印的版本高于前文的,请重新安装并阅读本文档后再回答问题:
metadata.versionbash
spark skill --install <parent-of-use-spark><parent-of-use-spark>SKILL.mduse-spark/请勿在每次会话或每个命令前检查更新——除非出现上述信号,否则本技能即为最新参考。
Tips
提示
- Always quote multi-word arguments:
spark search "project update" - Combine filter operators in a single string:
--filter--filter "from:alice@co.com is:unread newer_than:7d" - Use to discover exact folder identifiers before passing them to
foldersoremailssearch --in - Use to discover calendar names before passing them to
accountsevents --in - The command is best for topic-based queries;
searchis best for browsing/filtering by metadataemails - returns the full conversation - use it when you need the complete email text, not just metadata
thread - This release is read-only. If the user asks you to send, archive, snooze, assign, or comment - explain that those actions aren't available yet and they'll need to use Spark Desktop directly.
- 多词参数需加引号:
spark search "project update" - 在单个字符串中组合多个筛选运算符:
--filter--filter "from:alice@co.com is:unread newer_than:7d" - 在将文件夹标识符传入或
emails命令前,先使用search --in命令确认准确的标识符folders - 在将日历名称传入命令前,先使用
events --in命令确认可用的日历名称accounts - 命令最适合基于主题的查询;
search命令最适合按元数据浏览/筛选emails - 命令返回完整对话——当你需要完整邮件文本而非仅元数据时使用
thread - 当前版本为只读模式。如果用户要求发送、归档、暂缓、分配邮件或添加评论,请说明这些操作目前不可用,需直接使用Spark桌面应用完成。