360 Secure SkillHub
360 安全技能中心

Gmail Draft Send

该 Skill 是一个原子节点,仅负责发送已存在的 Gmail 草稿:在需要发送草稿时执行 gog gmail drafts send 命令,校验返回的 JSON 确认发送成功,失败时最多重试 3 次后返回确认结果。不涉及撰写草稿或草稿管理。

zvirb
zvirb
热度 40.81
最近更新 2026-05-11 17:46:16
分类:协作依赖:第三方 API / 代码执行应用场景:邮件起草 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gmail-draft-send
Metadata
name
Gmail Draft Send
description
Atomic node skill to send an existing Gmail draft.
os
all
requires
{"bins":["gog"]}

Lean Philosophy (Principles)

  • Kaizen (改善): This skill is an atomic node, strictly limited to sending an existing draft.
  • Standardized Work (Hyojun Sagyo): This node represents the most efficient, standardized path for this specific task before automation.
  • Jidoka (自働化): This node includes autonomous defect detection.

Gmail Draft Send

This skill allows the agent to send an existing Gmail draft using the native CLI.

Cognitive Directives

WHEN [An existing email draft needs to be sent] THEN [Execute the native terminal command gog gmail drafts send <draftId> --json]

Schema Example

{
  "command": "gog gmail drafts send draft_id_123 --json"
}

Jidoka Validation Loop

  1. Try: Execute the command.
  2. Evaluate: Check the JSON response to confirm the email was sent successfully.
  3. Correct/Fail: If it failed or hallucinated parameters, retry up to 3 times (max_retries=3).
  4. Proceed: Return the confirmation.

Expected Output

A JSON object confirming the email was sent successfully.