360 Secure SkillHub
360 安全技能中心

Gmail Draft Initialize

该 Skill 是一个原子步骤:调用 gog CLI 在 Gmail 中创建仅含收件人的空白草稿,不设置主题或正文,并返回 draftId 供后续更新;失败时会按验证循环重试。

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

安装技能

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

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

Lean Philosophy (Principles)

  • Kaizen (改善): This skill is an atomic node, strictly limited to initializing a draft with recipients, preventing complex multi-field string constructions.
  • 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 the initialization fails.

Gmail Draft Initialize

This skill allows the agent to create a new, empty email draft in Gmail with specified recipients. It does NOT set the subject or body (use the dedicated update skills for those).

Cognitive Directives

WHEN [A new email needs to be drafted] THEN [Execute the native terminal command gog gmail drafts create --to "..." --json]

Schema Example

{
  "command": "gog gmail drafts create --to \"example@gmail.com\" --json"
}

Jidoka Validation Loop

  1. Try: Execute the command.
  2. Evaluate: Check the JSON response to confirm the draft ID is returned.
  3. Correct/Fail: If it failed or hallucinated parameters, retry up to 3 times (max_retries=3) with the exact error.
  4. Proceed: Return the final draft ID for subsequent update steps.

Expected Output

A JSON object confirming the draft was created and returning the draftId.