
Recipe Save Email Attachments
Automate pulling Gmail attachments from filtered messages into a chosen Google Drive folder using the gws CLI recipe chain.
Install
npx skills add https://github.com/googleworkspace/cli --skill recipe-save-email-attachmentsWhat is this skill?
- Four-step recipe: search with has:attachment, fetch message, download attachment, upload via gws drive +upload
- Hard prerequisite chain — loads gws-gmail and gws-drive before execution
- Parameterized Gmail query example (from:client@example.com) for repeatable client-inbox sweeps
- Uses gws CLI table formatting on message list for quick agent-readable scans
- Recipe metadata version 0.22.5 under openclaw productivity domain
Adoption & trust: 16k installs on skills.sh; 26.9k GitHub stars; 3/3 security scanners passed (skills.sh audits).
Recommended Skills
Agent Browservercel-labs/agent-browser
Lark Imlarksuite/cli
Lark Calendarlarksuite/cli
Lark Sheetslarksuite/cli
Lark Vclarksuite/cli
Lark Contactlarksuite/cli
Journey fit
Primary fit
Canonical shelf is Build → integrations because the skill wires Gmail and Drive APIs together via prerequisite agent skills rather than shipping or growth work. Subphase integrations fits a multi-service recipe that depends on gws-gmail and gws-drive skills and explicit gws commands.
Common Questions / FAQ
Is Recipe Save Email Attachments safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Recipe Save Email Attachments
# 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:client@example.com"}' --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`