← Back to Skills Marketplace
zvirb

Gmail Draft Email

by zvirb · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ Security Clean
67
Downloads
0
Stars
1
Active Installs
4
Versions
Install in OpenClaw
/install gmail-draft-email
Description
Atomic node skill to draft an email via Gmail using the gog CLI.
README (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.

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gmail-draft-email
  3. After installation, invoke the skill by name or use /gmail-draft-email
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug gmail-draft-email
Version 1.0.3
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 4
Frequently Asked Questions

What is Gmail Draft Email?

Atomic node skill to draft an email via Gmail using the gog CLI. It is an AI Agent Skill for Claude Code / OpenClaw, with 67 downloads so far.

How do I install Gmail Draft Email?

Run "/install gmail-draft-email" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Gmail Draft Email free?

Yes, Gmail Draft Email is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Gmail Draft Email support?

Gmail Draft Email is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Gmail Draft Email?

It is built and maintained by zvirb (@zvirb); the current version is v1.0.3.

💬 Comments