recipe-save-email-attachments — Claude Code skill: how to install
Searches Gmail messages with attachments and uploads those files directly to a Google Drive folder.
npx skills add googleworkspace/cli --skill recipe-save-email-attachments -a claude-codeWhat recipe-save-email-attachments does
This recipe automates a multi-step routine between email and cloud storage. It first queries messages using gws gmail users messages list with filters like has:attachment. After retrieving the target message and attachment IDs, it downloads the file and uploads it directly to Google Drive via gws drive +upload.
The recipe requires the gws CLI executable on your system. It also depends on two companion skills: gws-gmail and gws-drive. Both must be installed for the workflow commands to execute properly.
Install this skill if you frequently route incoming invoices or client documents into Drive. If you only move files once a month, doing it manually takes less effort.
What it helps with
- search Gmail for messages matching attachment filters
- download attachment files via message and attachment IDs
- upload retrieved files directly into a specific Google Drive folder
Example prompts for the agent
- Find emails from [email protected] with attachments and save them to Google Drive
- Download the attachment from message MESSAGE_ID and upload it to folder FOLDER_ID
How to install recipe-save-email-attachments
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill recipe-save-email-attachments -a claude-code2Manually: put the files in place
~/.claude/skills/recipe-save-email-attachments/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/recipe-save-email-attachments/
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill recipe-save-email-attachments -a codex2Manually: put the files in place
.agents/skills/recipe-save-email-attachments/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill recipe-save-email-attachments -a cursor2Manually: put the files in place
.cursor/skills/recipe-save-email-attachments/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install googleworkspace/cli recipe-save-email-attachments2Manually: put the files in place
.github/skills/recipe-save-email-attachments/SKILL.md1Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill recipe-save-email-attachments -a gemini-cli2Platform CLI
gemini skills install https://github.com/googleworkspace/cli --path skills/recipe-save-email-attachmentsManually: put the files in place
.devin/skills/recipe-save-email-attachments/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add googleworkspace/cli --skill recipe-save-email-attachments -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set95
The whole set →Similar
Questions about recipe-save-email-attachments
How to install recipe-save-email-attachments in Claude Code?
Run npx skills add googleworkspace/cli --skill recipe-save-email-attachments -a claude-code. The recipe file will be stored in ~/.claude/skills/recipe-save-email-attachments/SKILL.md.
What does recipe-save-email-attachments do?
It orchestrates searching Gmail for messages with attachments, retrieving those files, and uploading them directly into Google Drive folders.
What prerequisites are required before using this recipe?
You need the gws command-line tool installed, along with the gws-gmail and gws-drive skills loaded in your assistant.
Source text
SKILL.md · Apache-2.0
---
name: recipe-save-email-attachments
description: "Find Gmail messages with attachments and save them to a Google Drive folder."
metadata:
version: 0.22.5
openclaw:
category: "recipe"
domain: "productivity"
requires:
bins:
- gws
skills:
- gws-gmail
- gws-drive
---
# Save Gmail Attachments to Google Drive
> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-gmail`, `gws-drive`
Find Gmail messages with attachments and save them to a Google Drive folder.
## Steps
1. Search for emails with attachments: `gws gmail users messages list --params '{"userId": "me", "q": "has:attachment from:[email protected]"}' --format table`
2. Get message details: `gws gmail users messages get --params '{"userId": "me", "id": "MESSAGE_ID"}'`
3. Download attachment: `gws gmail users messages attachments get --params '{"userId": "me", "messageId": "MESSAGE_ID", "id": "ATTACHMENT_ID"}'`
4. Upload to Drive folder: `gws drive +upload --file ./attachment.pdf --parent FOLDER_ID`
© googleworkspace · Apache-2.0 · googleworkspace/cli