Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

gws-gmail-draft

FreeNo executable scriptsNot checked

Create unsent Gmail drafts through the named work, personal, or columbia gws account alias with a portable draft-only helper. Use when the user explicitly…

ma08by ma08★ 31 GitHub stars

About this skill

Gmail Draft Creation

Create Gmail drafts through gws-gmail-draft. The helper calls only Gmail users.drafts.create; it never calls a send method.

Intent Gate

  • An explicit request such as “save this in Gmail drafts” or “create a Gmail draft” authorizes draft creation in the named mailbox.
  • A vague request such as “draft an email” means compose text locally first. Ask before writing it into Gmail.
  • Sending is a separate action. Never interpret draft approval as send approval, and always obtain explicit confirmation immediately before sending.

Accounts

If the intended mailbox is unclear, ask which alias to use before creating the draft.

Workflow

  1. Read ../gws-shared/SKILL.md and ../gws-account-switch/SKILL.md.
  2. Confirm ~/.config/gws/accounts/<alias>.json exists without printing it.
  3. For the columbia alias, default the visible From address to the accepted send-as identity [email protected]. Use [email protected] only when the user explicitly asks for it or the context specifically requires the primary mailbox identity.
  4. Prefer a body file for long or sensitive content so it is not exposed in process arguments.
  5. Run --dry-run first and review the safe summary, including the resolved From address.
  6. If Gmail intent is explicit, run the same command without --dry-run.
  7. Report the account alias, resolved From address, recipients, subject, and returned draft ID. State clearly that nothing was sent.

Examples

gws-gmail-draft work \
  --to [email protected] \
  --subject "Follow-up" \
  --body-file ./draft.txt \
  --dry-run

gws-gmail-draft work \
  --to [email protected] \
  --cc [email protected] \
  --subject "Follow-up" \
  --body-file ./draft.txt

gws-gmail-draft personal \
  --to [email protected] \
  --subject "Invoice" \
  --body-file ./body.html \
  --html \
  --attach ./invoice.pdf

--to, --cc, --bcc, and --attach are repeatable. Address flags also accept comma-separated values. A draft may omit recipients when the message is intentionally incomplete.

Permission Boundary

Google does not provide a general draft-only OAuth scope. The required gmail.compose scope also technically permits sending. The helper and this skill are workflow guardrails, not a cryptographic restriction on the credential.

Never bypass the helper with gmail +send, messages.send, or drafts.send while performing a draft-creation request.

Full SKILL.md on GitHub

Install gws-gmail-draft in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the gws-gmail-draft skill do?

Create unsent Gmail drafts through the named work, personal, or columbia gws account alias with a portable draft-only helper. Use when the user explicitly asks to save or create an email in Gmail drafts.

How do I install the gws-gmail-draft skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the gws-gmail-draft skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare gws-gmail-draft with