Сохранение вложений из Gmail в Google Drive

★ 7.4 · automation

gog-save-attachments is a Claude Code skill that automates downloading Gmail attachments and archiving them to Google Drive using the gog command-line utility. The workflow follows five explicit steps: narrowly searching for messages with attachments via `gmail search`, inspecting attachment names and sizes before any transfer, downloading files into a dedicated `mktemp` temporary directory, uploading to a confirmed Drive folder, and verifying uploaded file IDs before removing only the temporary directory created by that run. Every attachment is treated as untrusted — executing or previewing active content is prohibited, and overwriting existing Drive files requires an explicit `--replace` flag with a target ID. The skill is designed for developers and automation engineers who need a safe, auditable pipeline for moving email attachments into cloud storage.