
Forward Labeled Gmail Messages
Find Gmail messages with a chosen label and forward them to another address.
- Repository
- googleworkspace/cli
- Stars
- 32,059
- Licence
- Apache-2.0
- Files
- 1 file
What it does
This skill teaches an AI agent a short, repeatable workflow for Gmail. The agent searches your mailbox for messages carrying a specific label (the example uses one called needs-review), reads the content of each match, and sends a new email with that content to another address you choose. It relies on the separate gws command-line tool and the gws-gmail skill to actually access Gmail.
Great for
- People who label Gmail messages for follow-up and want them passed on to a colleague automatically
- Office staff or managers who regularly forward review requests to a supervisor
- Developers who want a scriptable example of combining the gws CLI with Gmail
Skip it if
- Anyone who wants a preview before anything is sent: the steps show no confirmation step, so emails could go out to the wrong address or contain sensitive content without review
- Forwarding confidential or personal mail to outside parties, since message bodies are copied into new emails with no filtering
- Users who do not have the gws CLI installed and authenticated with Gmail access; the skill cannot work without it
Try asking
- “Forward all my emails labeled needs-review to manager@company.com”
- “Find messages with the needs-review label and send their contents to my team lead with a 'FW:' subject”
- “Show me a table of messages labeled needs-review, then forward the ones from this week”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 1 original files, the Apache-2.0 licence and an attribution note.
recipe-forward-labeled-emails.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip recipe-forward-labeled-emails.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip recipe-forward-labeled-emails.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Replace the example address manager@company.com and the label name with your own before running, and check the recipient carefully.
- Ask the agent to list matching messages first and confirm them before it forwards anything.
- Note that the recipe's forwarding step sends a new email with the original body pasted in, not a true Gmail forward, so attachments may not carry over.
What's inside
- SKILL.md
Redistributed unmodified from googleworkspace/cli under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.