المهارات gws-gmail-send
📧

gws-gmail-send

آمن ⚙️ الأوامر الخارجية📁 الوصول إلى نظام الملفات

透過 CLI 傳送 Gmail 電子郵件

無需離開終端機,即可透過 Gmail 以程式化方式傳送電子郵件。此技能將 Claude Code 與 Google Workspace CLI 整合,支援傳送具有附件、HTML 格式與進階選項的郵件。

يدعم: Claude Codex Code(CC)
🥉 73 برونزي
1

تنزيل ZIP المهارة

2

رفع في Claude

اذهب إلى Settings → Capabilities → Skills → Upload skill

3

فعّل وابدأ الاستخدام

اختبرها

استخدام "gws-gmail-send". Send an email to alice@example.com with subject 'Hello' and body 'Hi Alice!'

النتيجة المتوقعة:

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

استخدام "gws-gmail-send". Send an email with attachment to team@company.com with subject 'Report' and attach report.pdf

النتيجة المتوقعة:

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

استخدام "gws-gmail-send". Save as draft: email to bob@example.com, subject 'Draft', body 'Testing'

النتيجة المتوقعة:

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

التدقيق الأمني

آمن
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
الملفات التي تم فحصها
68
الأسطر التي تم تحليلها
2
النتائج
1
إجمالي عمليات التدقيق

عوامل الخطر

⚙️ الأوامر الخارجية (4)
📁 الوصول إلى نظام الملفات (2)
تم تدقيقه بواسطة: claude

درجة الجودة

38
الهندسة المعمارية
100
قابلية الصيانة
87
المحتوى
50
المجتمع
100
الأمان
83
الامتثال للمواصفات

ماذا يمكنك بناءه

自動化郵件通知

當部署完成或測試失敗時,從腳本或 CI/CD 管線傳送自動化通知。

批次郵件傳送

結合 Claude Code、CSV 資料與 gws CLI,傳送個人化郵件給多位收件人。

報表分發

依排程自動附加並傳送生成的報表(PDF、CSV)給利害關係人。

جرّب هذه الموجهات

傳送簡單郵件
Send an email to alice@example.com with subject 'Project Update' and body 'The project is complete.'
傳送含附件的郵件
Send an email to team@company.com with subject 'Monthly Report' and body 'Please find attached the report.' Attach the file report.pdf
傳送 HTML 格式郵件
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'
傳送包含 CC、BCC 與別名的郵件
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

أفضل الممارسات

  • 由於此操作會傳送真實郵件,執行傳送指令前務必向使用者確認
  • 先使用 --dry-run 旗標預覽將傳送的要求,實際上不會傳送郵件
  • 結合 --draft 旗標先將郵件儲存為草稿供審查,之後再傳送給收件人

تجنب

  • 切勿在未經使用者明確確認的情況下傳送郵件,因為郵件傳送後無法撤回
  • 避免超過 25MB 的附件限制,否則會導致傳送作業失敗
  • 使用 --html 旗標時,請勿使用包含 <html> 或 <body> 標籤的完整 HTML 文件結構

الأسئلة المتكررة

Do I need to install anything?
是的,您需要安裝 gws CLI 工具並使用 Google Workspace 帳號完成驗證,才能使用此技能。
Can I send emails to multiple recipients?
可以,使用逗號分隔的電子郵件地址搭配 --to 旗標,或新增 --cc 與 --bcc 旗標給其他收件人。
What is the attachment size limit?
每封郵件所有附件的總大小限制為 25MB。您可以使用多個 -a 或 --attach 旗標附加多個檔案。
Can I send emails from an alias address?
可以,使用 --from 旗標搭配已設定的寄件人別名。若省略,則會從您的主要帳號地址傳送。
How do I save an email as a draft instead of sending?
在您的指令中加入 --draft 旗標。這會將郵件儲存為 Gmail 草稿,而非立即傳送。
Does this skill work with personal Gmail accounts?
此技能專為 Google Workspace 帳號設計。個人 Gmail 帳號可能會根據您的 gws CLI 設定而功能受限。

تفاصيل المطور

المؤلف

googleworkspace

الترخيص

MIT

مرجع

main

بنية الملفات

📄 SKILL.md