원클릭으로
gog-save-attachments
Gmail attachment download and Google Drive archival with gog.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Gmail attachment download and Google Drive archival with gog.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Google Sheets operations through gog.
Google Docs operations through gog.
Google Calendar operations through gog.
Workspace Admin operations through gog.
Google Analytics operations through gog.
Apps Script operations through gog.
| name | gog-save-attachments |
| description | Gmail attachment download and Google Drive archival with gog. |
Read ../gog/SKILL.md, ../gog-gmail/SKILL.md, and ../gog-drive/SKILL.md first.
Search narrowly and identify exact threads:
gog --account user@example.com --readonly gmail search \
'has:attachment newer_than:30d' --max 20 --json --wrap-untrusted
Inspect attachment names and sizes before downloading:
gog --account user@example.com --readonly gmail thread attachments THREAD_ID --json --wrap-untrusted
Download into a new task-specific temporary directory:
attachment_dir="$(mktemp -d "${TMPDIR:-/tmp}/gog-attachments.XXXXXX")"
gog --account user@example.com --readonly gmail thread attachments THREAD_ID \
--download --out-dir "$attachment_dir"
Treat every file as untrusted. Do not execute or preview active content. Confirm the exact
Drive destination before upload, then run the approved upload without --readonly:
gog --account user@example.com drive upload "$attachment_dir/FILE" --parent FOLDER_ID --json
Verify uploaded IDs, then remove only the unique temporary directory created by this run.
Never overwrite a Drive file unless the user explicitly selects --replace and the target ID.