360 Secure SkillHub
360 安全技能中心

Gmail Draft Email

该 Skill 为原子节点,指导 agent 调用 gog CLI 的 gmail drafts create 命令,以收件人、主题和正文参数创建 Gmail 草稿并校验 JSON 确认;失败时等待 3 秒重试最多 3 次,仍失败则报告错误并停止。仅创建草稿,不发送邮件。

zvirb
zvirb
热度 51.98
最近更新 2026-05-11 17:45:58
分类:协作依赖:代码执行应用场景:邮件起草

安装技能

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

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

Lean Philosophy (Principles)

  • Kaizen (改善): This skill is an atomic node, broken down into its simplest, smallest component to eliminate waste and ensure perfection.
  • 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. It relies on the CLI's self-healing loop and will report errors if drafting fails.

Gmail Draft Email

This skill allows the agent to create an email draft using the native CLI.

Cognitive Directives

WHEN [An email needs to be drafted but not sent] THEN [ Execute the following Jidoka-validated loop:

  1. Execute Node: Execute the native terminal command gog gmail drafts create --to "..." --subject "..." --body "..." --json.
  2. Verification Step (Jidoka): Verify the command returns a valid JSON confirmation. IF it fails or returns an error message, wait 3 seconds and retry (max 3 times). IF it still fails, report the error to the user and STOP. ]

Schema Example

{
  "command": "gog gmail drafts create --to \"example@gmail.com\" --subject \"Invoice\" --body \"Please review the attached invoice.\" --json"
}

Expected Output

Confirmation that the draft was created.