googleworkspace/cli · Official

recipe-save-email-attachments

Find Gmail messages with attachments and save them to a Google Drive folder.

All-time #792 Trending #1771 Hot #403 First seen Mar 4, 2026
8-week activity · all time api

Installation

$ npx skills add googleworkspace/cli --skill recipe-save-email-attachments

Summary

  • Automated workflow to find Gmail attachments and save them to Google Drive folders.
  • Requires both gws-gmail and gws-drive skills as prerequisites Covers four core steps: searching emails by attachment criteria, retrieving message details, downloading attachments, and uploading files to Drive Supports filtered searches using Gmail query syntax (e.g., sender, attachment presence) to target specific messages Integrates Gmail and Drive operations in a single recipe for streamlined attachment management

Security audits

Partner security reviews for this skill.

agent-trust-hub SAFE

Analyzed Apr 1, 2026

This skill is a productivity recipe that automates saving Gmail attachments to Google Drive using the gws CLI. It uses official tools and maintains data within the Google Workspace environment with no security issues detected.

snyk LOW

Analyzed Apr 1, 2026

No issues detected.

socket Score 0.9000 · 0 alerts

Analyzed Apr 1, 2026

  • license 1
  • maintenance 1
  • quality 0.9
  • supply chain 1
  • vulnerability 1

0 alerts

Also in this package

Other skills from googleworkspace/cli · top by installs.

npx skills add googleworkspace/cli

Browse all from googleworkspace/cli

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 30.8K
License LICENSE
Default branch main
Open issues 129
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Version0.22.5
Declared agents clawdbot
More metadata
version
0.22.5
openclaw
{"category":"recipe","domain":"productivity","requires":{"bins":["gws"],"skills":["gws-gmail","gws-drive"]}}

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,047 B
  • docs SUMMARY.md 113 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 28,117 installs

SKILL.md

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": "MESSAGEID", "id": "ATTACHMENTID"}'
  4. Upload to Drive folder: gws drive +upload --file ./attachment.pdf --parent FOLDER_ID