Skills gws-gmail-send
📧

gws-gmail-send

Safe ⚙️ External commands📁 Filesystem access

Send Gmail Emails via CLI

Send emails programmatically through Gmail without leaving your terminal. This skill integrates Claude Code with the Google Workspace CLI to send emails with attachments, HTML formatting, and advanced options.

Supports: Claude Codex Code(CC)
🥉 73 Bronze
1

Download the skill ZIP

2

Upload in Claude

Go to Settings → Capabilities → Skills → Upload skill

3

Toggle on and start using

Test it

Using "gws-gmail-send". Send an email to alice@example.com with subject 'Hello' and body 'Hi Alice!'

Expected outcome:

Email sent successfully to alice@example.com with subject 'Hello'

Using "gws-gmail-send". Send an email with attachment to team@company.com with subject 'Report' and attach report.pdf

Expected outcome:

Email sent successfully to team@company.com with subject 'Report' and 1 attachment (report.pdf)

Using "gws-gmail-send". Save as draft: email to bob@example.com, subject 'Draft', body 'Testing'

Expected outcome:

Draft saved successfully for bob@example.com with subject 'Draft'

Security Audit

Safe
v1 • 4/12/2026

All 20 static analysis findings are false positives from Markdown code examples. The external_commands flags (15 occurrences) are bash documentation blocks showing gws CLI usage. The filesystem flags (3 occurrences) are relative path references in documentation links. This is legitimate documentation for a Gmail CLI tool with no executable code or security risks.

1
Files scanned
68
Lines analyzed
2
findings
1
Total audits

Risk Factors

Audited by: claude

Quality Score

38
Architecture
100
Maintainability
87
Content
50
Community
100
Security
83
Spec Compliance

What You Can Build

Automated Email Notifications

Send automated notifications from scripts or CI/CD pipelines when deployment completes or tests fail.

Batch Email Sending

Send personalized emails to multiple recipients by combining Claude Code with CSV data and the gws CLI.

Report Distribution

Attach and send generated reports (PDFs, CSVs) to stakeholders automatically on a schedule.

Try These Prompts

Send Simple Email
Send an email to alice@example.com with subject 'Project Update' and body 'The project is complete.'
Send Email with Attachment
Send an email to team@company.com with subject 'Monthly Report' and body 'Please find attached the report.' Attach the file report.pdf
Send HTML-Formatted Email
Send an HTML email to users@example.com with subject 'Newsletter' and body '<p>Welcome to our newsletter!</p><br><b>Feature highlights:</b><br>- New dashboard<br>- Faster performance'
Send Email with CC, BCC, and Alias
Send from alias@company.com to client@example.com with subject 'Proposal' and body 'Please review our proposal.' CC manager@company.com and BCC archives@company.com

Best Practices

  • Always confirm with the user before executing send commands as this is a write operation that sends real emails
  • Use the --dry-run flag first to preview the request that will be sent without actually sending the email
  • Combine with --draft flag to save emails as drafts first for review before sending to recipients

Avoid

  • Do not send emails without explicit user confirmation due to the irreversible nature of email transmission
  • Avoid exceeding the 25MB attachment limit as larger attachments will cause the send operation to fail
  • Do not use full HTML document structure with <html> or <body> tags when using the --html flag

Frequently Asked Questions

Do I need to install anything?
Yes, you need the gws CLI tool installed and authenticated with your Google Workspace account before using this skill.
Can I send emails to multiple recipients?
Yes, use comma-separated email addresses with the --to flag, or add --cc and --bcc flags for additional recipients.
What is the attachment size limit?
The total size of all attachments per email is limited to 25MB. You can attach multiple files using multiple -a or --attach flags.
Can I send emails from an alias address?
Yes, use the --from flag with a configured send-as alias. If omitted, the email sends from your primary account address.
How do I save an email as a draft instead of sending?
Add the --draft flag to your command. This saves the message as a draft in Gmail instead of sending it immediately.
Does this skill work with personal Gmail accounts?
This skill is designed for Google Workspace accounts. Personal Gmail accounts may have limited functionality depending on your gws CLI configuration.

Developer Details

File structure

📄 SKILL.md