360 Secure SkillHub
360 安全技能中心

spark-recipe-draft-batch

该 Skill 是面向 Spark 邮件草稿的批处理流程:先列出所有待发草稿,逐条读取相关会话以检查上下文是否过时,再按用户选择编辑、保留或永久删除,最后汇总审查结果;删除前需用户确认,并依赖 use-spark 基础技能提供的命令参考。

分类:协作
readdle
热度 0.00
最近更新 2026-11-21 00:01:24

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add readdle/spark-cli-skills/spark-recipe-draft-batch
兼容性
通用兼容
联网要求
联网要求未确认
数据出网
数据出网未确认
Metadata
name
spark-recipe-draft-batch
description
Review and finalize multiple pending drafts in a batch session: read context, edit, or discard.
metadata
{"version":"1.0.2","requires":{"skills":["use-spark"],"accessLevel":"triage"}}

Recipe: Draft Batch Review

Review and finalize multiple pending drafts in a single session. Read context for each, decide whether to edit, keep, or discard.

Prerequisite: Read the use-spark base skill for command reference and filter syntax.

Access level required: triage.

Steps

Step 1: List all pending drafts

spark emails Drafts

Review the list of drafts - note subjects, recipients, and dates.

Step 2: Review each draft in context

For each draft, read the full thread to understand the context:

spark thread <id>

Check if the conversation has moved on since the draft was created - someone else may have replied, or the topic may be resolved.

Step 3: Decide on each draft

For each draft, present the options to the user:

Edit - the draft needs changes before sending. Run spark draft context first and rewrite the body in line with the Spark Profile and Custom Instructions it shows:

spark draft --edit <id> --body "Updated content..."
spark draft --edit <id> --subject "Updated subject"

Keep as-is - the draft is ready to send. Note it for the user.

Discard - the draft is no longer needed. Deleting a draft is permanent (drafts have no Trash), so confirm with the user first:

spark draft --delete <id>                # one draft
spark draft --delete <id> <id> <id>      # several at once

With several IDs, the valid drafts are deleted even if others are refused; read the output for any that were not.

Step 4: Report

Summarize: "Reviewed N drafts. M edited, K ready to send, L discarded."

Tips

  • Drafts accumulate when the user starts replies but doesn't finish them. This recipe clears the backlog.
  • Always read the thread before editing a draft - the context may have changed since it was created.
  • If a thread has new replies since the draft was created, the draft may be outdated and need rewriting.
  • draft --edit updates the draft in place - it doesn't create a new one.
  • For drafts that are replies (--reply-to), read the original thread to verify the reply still makes sense.
  • Run this recipe weekly to prevent draft accumulation.