gws-gmail-forward — Claude skill: forward Gmail messages
This skill forwards a Gmail message to new recipients from the command line, with a note, copies and attachments. Handy when an agent works through your inbox.
npx skills add googleworkspace/cli --skill gws-gmail-forward -a claude-codeWhat gws-gmail-forward does
The skill wraps gws gmail +forward. You hand it a message ID and the addresses, and it builds the forward: the original with sender, date, subject and recipients, plus your note on top. Attachments from the original come along by default, matching how Gmail behaves in the browser.
The flags cover the usual cases: --cc and --bcc for copies, --attach for your own files, --from for an alias, --draft to hold it back, --dry-run to inspect the request first. In --html mode the note and the quoted block keep their markup, and inline images survive through cid: references. Original and added attachments together are capped at 25MB.
You need gws installed and auth configured, since the skill leans on ../gws-shared/SKILL.md. If that file is missing, gws generate-skills creates it. Worth installing if mail already runs through your agent; for a one-off forward, the Gmail web UI is faster.
What it helps with
- forward a message to a colleague with a short note on top
- send the original plus its attachments to several addresses at once
- save a forward as a draft and review it before sending
- add your own file alongside the original attachments
- forward a message without the files from the original
Example prompts for the agent
- Forward message 18f1a2b3c4d to [email protected] with the note 'FYI see below'
- Draft a forward of 18f1a2b3c4d to [email protected] with [email protected] in cc
- Forward 18f1a2b3c4d to [email protected], attach notes.pdf and skip the original attachments
How to install gws-gmail-forward
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-gmail-forward -a claude-code2Manually: put the files in place
~/.claude/skills/gws-gmail-forward/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/gws-gmail-forward/
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-gmail-forward -a codex2Manually: put the files in place
.agents/skills/gws-gmail-forward/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-gmail-forward -a cursor2Manually: put the files in place
.cursor/skills/gws-gmail-forward/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install googleworkspace/cli gws-gmail-forward2Manually: put the files in place
.github/skills/gws-gmail-forward/SKILL.md1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-gmail-forward -a gemini-cli2Platform CLI
gemini skills install https://github.com/googleworkspace/cli --path skills/gws-gmail-forwardManually: put the files in place
.devin/skills/gws-gmail-forward/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill gws-gmail-forward -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set95
The whole set →Similar
Questions about gws-gmail-forward
How do I install gws-gmail-forward in Claude?
Run npx skills add googleworkspace/cli --skill gws-gmail-forward -a claude-code. The skill lands at ~/.claude/skills/gws-gmail-forward/SKILL.md.
What does gws-gmail-forward do?
It forwards a Gmail message to new recipients via gws gmail +forward. The original and its attachments are included by default, and you can add a note above it.
What does the skill need to run?
The gws binary plus the auth setup described in ../gws-shared/SKILL.md. If that file is missing, create it with gws generate-skills.
Source text
SKILL.md · Apache-2.0
---
name: gws-gmail-forward
description: "Gmail: Forward a message to new recipients."
metadata:
version: 0.22.5
openclaw:
category: "productivity"
requires:
bins:
- gws
cliHelp: "gws gmail +forward --help"
---
# gmail +forward
> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.
Forward a message to new recipients
## Usage
```bash
gws gmail +forward --message-id <ID> --to <EMAILS>
```
## Flags
| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--message-id` | ✓ | — | Gmail message ID to forward |
| `--to` | ✓ | — | Recipient email address(es), comma-separated |
| `--from` | — | — | Sender address (for send-as/alias; omit to use account default) |
| `--body` | — | — | Optional note to include above the forwarded message (plain text, or HTML with --html) |
| `--no-original-attachments` | — | — | Do not include file attachments from the original message (inline images in --html mode are preserved) |
| `--attach` | — | — | Attach a file (can be specified multiple times) |
| `--cc` | — | — | CC email address(es), comma-separated |
| `--bcc` | — | — | BCC email address(es), comma-separated |
| `--html` | — | — | Treat --body as HTML content (default is plain text) |
| `--dry-run` | — | — | Show the request that would be sent without executing it |
| `--draft` | — | — | Save as draft instead of sending |
## Examples
```bash
gws gmail +forward --message-id 18f1a2b3c4d --to [email protected]
gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] --body 'FYI see below'
gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] --cc [email protected]
gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] --body '<p>FYI</p>' --html
gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] -a notes.pdf
gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] --no-original-attachments
gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] --draft
```
## Tips
- Includes the original message with sender, date, subject, and recipients.
- Original attachments are included by default (matching Gmail web behavior).
- With --html, inline images are also preserved via cid: references.
- In plain-text mode, inline images are not included (matching Gmail web).
- Use --no-original-attachments to forward without the original message's files.
- Use -a/--attach to add extra file attachments. Can be specified multiple times.
- Combined size of original and user attachments is limited to 25MB.
- With --html, the forwarded block uses Gmail's gmail_quote CSS classes and preserves HTML formatting. Use fragment tags (<p>, <b>, <a>, etc.) — no <html>/<body> wrapper needed.
- Use --draft to save the forward as a draft instead of sending it immediately.
## See Also
- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth
- [gws-gmail](../gws-gmail/SKILL.md) — All send, read, and manage email commands
© googleworkspace · Apache-2.0 · googleworkspace/cli