← 返回 Skills 市场
zvirb

Gmail Draft Email

作者 zvirb · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ 安全检测通过
67
总下载
0
收藏
1
当前安装
4
版本数
在 OpenClaw 中安装
/install gmail-draft-email
功能描述
Atomic node skill to draft an email via Gmail using the gog CLI.
使用说明 (SKILL.md)

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 \"[email protected]\" --subject \"Invoice\" --body \"Please review the attached invoice.\" --json"
}

Expected Output

Confirmation that the draft was created.

安全使用建议
This skill is a minimal wrapper that runs the installed 'gog' CLI to create Gmail drafts. Before installing/use: (1) Ensure the gog binary on your system is from a trusted source and is the exact CLI you expect. (2) Be aware the skill will use whatever local gog/Gmail authentication tokens already exist — review those tokens and permissions. (3) When providing 'to', 'subject', or 'body' values to the agent, avoid passing untrusted raw strings that could cause shell-injection; prefer a mechanism that properly escapes or passes arguments as structured data. (4) Because the skill is instruction-only and runs a local binary, test it in a controlled environment first if you are unsure about the gog CLI provenance.
功能分析
Type: OpenClaw Skill Name: gmail-draft-email Version: 1.0.3 The skill is a straightforward wrapper for the 'gog' CLI tool to create Gmail drafts. The instructions in SKILL.md define a specific, narrow task using standard command-line arguments and include basic retry logic for error handling. No indicators of malicious intent, data exfiltration, or prompt injection were found.
能力评估
Purpose & Capability
The skill only requires the 'gog' binary and its single runtime instruction calls 'gog gmail drafts create ...' — this aligns with a Gmail-draft CLI helper.
Instruction Scope
The SKILL.md instructs only to run a single gog command and retry on transient failures. It does not reference unrelated files or env vars. Note: running the gog CLI will implicitly use whatever local gog/Gmail authentication is present (not declared), and the command concatenates user-supplied fields on a shell line — this can produce injection risks if inputs are not sanitized by the caller.
Install Mechanism
No install spec or code files are present (instruction-only), so nothing is written to disk by the skill itself.
Credentials
The skill declares no env vars (reasonable). However, it implicitly relies on the user's gog CLI credentials/configuration (OAuth tokens or stored auth) to access Gmail; those credentials are not requested explicitly but will be used by the invoked binary.
Persistence & Privilege
The skill is not always-enabled, has no install-time persistence actions, and does not request elevated system-wide privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gmail-draft-email
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gmail-draft-email 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Improved reliability with an explicit Jidoka-validated retry loop: will verify draft creation and retry up to 3 times on failure. - Updated Cognitive Directives to detail verification steps and error handling. - No changes to CLI usage or schema; workflow is now more robust against transient errors.
v1.0.2
Gmail Draft Email v1.0.2 changelog: - Switched implementation from GoogleWorkspace plugin to native "gog" CLI tool. - Updated requirements to use "gog" binary instead of plugin. - Revised documentation, schema example, and output to reflect the CLI-based approach. - Simplified the use case to focus on native command execution for drafting emails.
v1.0.1
- Expanded operating system support from "windows" to "all". - No other changes made to functionality or documentation content.
v1.0.0
- Initial release of Gmail Draft Email skill. - Enables creation of draft emails via the GoogleWorkspace plugin. - Follows lean principles: atomic node design, standardized process, and autonomous error detection. - Accepts "to", "subject", and "body" parameters; returns JSON confirmation with draft ID.
元数据
Slug gmail-draft-email
版本 1.0.3
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 4
常见问题

Gmail Draft Email 是什么?

Atomic node skill to draft an email via Gmail using the gog CLI. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 67 次。

如何安装 Gmail Draft Email?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install gmail-draft-email」即可一键安装,无需额外配置。

Gmail Draft Email 是免费的吗?

是的,Gmail Draft Email 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Gmail Draft Email 支持哪些平台?

Gmail Draft Email 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Gmail Draft Email?

由 zvirb(@zvirb)开发并维护,当前版本 v1.0.3。

💬 留言讨论