/google-workspace-cli:gmailfrom google-workspace-cli
Use this skill when the user asks about reading, sending, searching, or managing emails via the Google Workspace CLI. Trigger on Gmail-related tasks like composing emails, searching inbox, managing labels, archiving, or working with drafts.
Ships in google-workspace-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use gws gmail to interact with Gmail from the command line.
# List recent emails
gws gmail list
# List unread emails
gws gmail list --unread --limit 20
# Search emails (uses Gmail search syntax)
gws gmail search "from:[email protected]"
gws gmail search "subject:meeting is:unread"
gws gmail search "has:attachment newer_than:7d"
gws gmail search "label:important in:inbox"
# Read a specific message
gws gmail read <message-id>
# Read with full headers
gws gmail read <message-id> --full
# Read as JSON for parsing
gws gmail read <message-id> --format json
# Send a new email
gws gmail send --to "[email protected]" --subject "Hello" --body "Message body"
# Send with CC/BCC
gws gmail send --to "[email protected]" --cc "[email protected]" --subject "Hello" --body "Body"
# Reply to a message
gws gmail reply <message-id> --body "Thanks for the update"
# Forward a message
gws gmail forward <message-id> --to "[email protected]"
# Create a draft
gws gmail draft create --to "[email protected]" --subject "Draft" --body "Content"
# List drafts
gws gmail draft list
# Send a draft
gws gmail draft send <draft-id>
# Archive a message
gws gmail archive <message-id>
# Mark as read/unread
gws gmail mark-read <message-id>
gws gmail mark-unread <message-id>
# Add/remove labels
gws gmail label add <message-id> "MyLabel"
gws gmail label remove <message-id> "MyLabel"
# Move to trash
gws gmail trash <message-id>
# List all labels
gws gmail labels list
# Create a label
gws gmail labels create "MyNewLabel"
Gmail supports powerful search operators:
| Operator | Example | Description |
|---|---|---|
from: | from:[email protected] | Sender |
to: | to:[email protected] | Recipient |
subject: | subject:meeting | Subject line |
is: | is:unread, is:starred | Message state |
has: | has:attachment | Has attachments |
in: | in:inbox, in:sent | Mailbox location |
label: | label:important | Has label |
newer_than: | newer_than:7d | Date range |
older_than: | older_than:30d | Date range |
filename: | filename:pdf | Attachment type |
All commands support --format json for machine-readable output:
gws gmail list --format json | jq '.[].subject'
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nsheaps/ai-mktpl --plugin google-workspace-cli11 skills in this plugin
/adminUse this skill when the user asks about Google Workspace administration tasks like managing users, groups, organizational units, or domain settings via the Google Workspace CLI. Requires admin privileges.
/calendarUse this skill when the user asks about managing Google Calendar events, checking schedules, creating meetings, finding free time, or any calendar-related task via the Google Workspace CLI.
/chatUse this skill when the user asks about Google Chat operations like sending messages, managing spaces, or listing conversations via the Google Workspace CLI.
Other plugins' skills for the same job