Agent skill

Gog Save Attachments

by openclaw in openclaw/gogcli

Gmail attachment download and Google Drive archival with gog.

MITAuto-check passedProductivity & Automation

Install Gog Save Attachments

skills CLI
$ npx skills add openclaw/gogcli --skill gog-save-attachments -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install openclaw/gogcli gog-save-attachments --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/openclaw/gogcli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/gog-save-attachments .claude/skills/gog-save-attachments && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gog-save-attachments
GitHub stars
8.5k
Token cost
~341 tokens
SKILL.md length
88 words
Files
2
Skills in repo
32
Repo updated
First seen
Licence
MIT

At a glance

Gmail attachment download and Google Drive archival with gog.

  • Works in 5 steps: Search narrowly and identify exact threads → Inspect attachment names and sizes… → Download into a new task-specific… → …
  • Tasks that involve Email management
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Gog Save Attachments is an agent skill from openclaw/gogcli. Gmail attachment download and Google Drive archival with gog.

Its SKILL.md is about 340 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Productivity & Automation, covering Email management. It works with Gmail and Google Drive. The repository describes itself as: Google Workspace in your terminal. The licence is MIT.

When your agent uses it

  • Tasks that involve Email management

Example prompts

  • “/gog-save-attachments”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Search narrowly and identify exact threads
  2. Inspect attachment names and sizes before downloading
  3. Download into a new task-specific temporary directory
  4. Treat every file as untrusted. Do not execute or preview active content. Confirm the exact
  5. Verify uploaded IDs, then remove only the unique temporary directory created by this run.

What it can do on your machine

Read from SKILL.md and the folder at commit 4d7478e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gog Save Attachments loads about 341 tokens when it runs. Until then it costs about 21 tokens; SKILL.md has 88 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~21
When it runs · the whole SKILL.md, loaded when a task matches
~341

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from openclaw/gogcli at commit 4d7478e, republished under its MIT licence (© openclaw). 88 words, ~341 tokens.

Download SKILL.mdSave it as .claude/skills/gog-save-attachments/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
gog-save-attachments
description
Gmail attachment download and Google Drive archival with gog.

Save attachments

Read ../gog/SKILL.md, ../gog-gmail/SKILL.md, and ../gog-drive/SKILL.md first.

  1. Search narrowly and identify exact threads:

    bash
    gog --account user@example.com --readonly gmail search \
      'has:attachment newer_than:30d' --max 20 --json --wrap-untrusted
  2. Inspect attachment names and sizes before downloading:

    bash
    gog --account user@example.com --readonly gmail thread attachments THREAD_ID --json --wrap-untrusted
  3. Download into a new task-specific temporary directory:

    bash
    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"
  4. 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:

    bash
    gog --account user@example.com drive upload "$attachment_dir/FILE" --parent FOLDER_ID --json
  5. 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.

© openclaw, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .agents/skills/gog-save-attachments of openclaw/gogcli.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 4d7478e

Compare with similar skills

Gog Save Attachments next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gog Save Attachments compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gog Save Attachments this skillopenclaw/gogcli8.5k—~341Automated safety check: PassMIT
Xs Google Workspacekaraage0703/ai-assistant-workspace1361 repos~691Automated safety check: PassMIT
Recipe Save Email Attachmentsgoogleworkspace/cli31k—~262Automated safety check: PassApache-2.0
Setuptechwolf-ai/ai-first-toolkit132—~1.1kAutomated safety check: PassMIT
Google Workspace CLIlaude-institute/headlong1.2k—~1.2kAutomated safety check: PassApache-2.0
Connectorsautonomous-ai/Physical-AI-Operating-System381—~10kAutomated safety check: NotesApache-2.0

Similar skills

  • Xs Google Workspace

    karaage0703/ai-assistant-workspace

    gogcli経由でGmail・Google Drive・Google Calendarを操作するスキル。複数Googleアカウント対応。「メールチェック」「メール確認して」「Driveにアップロード」「Driveのファイル」「Gmailで検索」で使用。

    136 GitHub starsUsed in 1 repo~691 tokens
    Productivity & AutomationAuto-check passed
  • Find Gmail messages with attachments and save them to a Google Drive folder.

    31k GitHub stars~262 tokensUpdated 2 days ago
    Productivity & AutomationAuto-check passed
  • Setup

    techwolf-ai/ai-first-toolkit

    Interactive onboarding that discovers team structure, terminology, development goals, performance and management frameworks, organizational values, and ways of working by crawling Slack, Notion…

    132 GitHub stars~1.1k tokensUpdated 9 days ago
    Productivity & AutomationAuto-check passed
  • Google Workspace CLI

    laude-institute/headlong

    Drives Google Drive, Gmail, Calendar, Sheets, Docs and Chat from the shell with the gws CLI, including its sign-in, flags, helper commands and safety rules.

    1.2k GitHub stars~1.2k tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Connectors

    autonomous-ai/Physical-AI-Operating-System

    Discover and use linked third-party services (Gmail, Google Calendar, Google Drive, Notion, Figma, Asana, Linear, GitHub, Ahrefs, Facebook Fan Page and others).

    381 GitHub stars~10k tokensUpdated today
    Productivity & AutomationAuto-check: notes
  • Gws

    LeoYeAI/openclaw-master-skills

    Google Workspace CLI. An agent skill from LeoYeAI/openclaw-master-skills.

    2.2k GitHub stars~4.9k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed

More from openclaw/gogcli

All 32 skills in this repo
  • Gog

    openclaw/gogcli

    gog CLI: safe Google Workspace automation, JSON, auth, scoped reads/writes.

    8.5k GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Crabbox

    openclaw/gogcli

    Use the Crabbox wrapper for OpenClaw remote validation across Linux, macOS, Windows, and WSL2, including delegated Blacksmith Testbox proof.

    8.5k GitHub stars~8k tokensUpdated yesterday
    Auto-check: notes
  • Gog Analytics

    openclaw/gogcli

    Google Analytics operations through gog. An agent skill from openclaw/gogcli.

    8.5k GitHub stars~272 tokensUpdated yesterday
    Auto-check passed
  • Gog Classroom

    openclaw/gogcli

    Google Classroom operations through gog. An agent skill from openclaw/gogcli.

    8.5k GitHub stars~360 tokensUpdated yesterday
    Auto-check passed
  • Gog Searchconsole

    openclaw/gogcli

    Google Search Console operations through gog. An agent skill from openclaw/gogcli.

    8.5k GitHub stars~321 tokensUpdated yesterday
    Auto-check passed
  • Gog Contacts Cleanup

    openclaw/gogcli

    Google Contacts duplicate review and guarded cleanup with gog.

    8.5k GitHub stars~247 tokensUpdated yesterday
    Auto-check passed

Questions about Gog Save Attachments

What does Gog Save Attachments do?

Gmail attachment download and Google Drive archival with gog. Gog Save Attachments is an agent skill from openclaw/gogcli. Gmail attachment download and Google Drive archival with gog.

When should I use Gog Save Attachments?

Gog Save Attachments fits situations like: tasks that involve Email management.

How do I install Gog Save Attachments in Claude Code?

Run `npx skills add openclaw/gogcli --skill gog-save-attachments -a claude-code`. Or copy the skill folder (.agents/skills/gog-save-attachments in openclaw/gogcli) into .claude/skills/gog-save-attachments in your project. Claude Code loads it when a task matches its description.

How do I install Gog Save Attachments in Codex?

Run `npx skills add openclaw/gogcli --skill gog-save-attachments -a codex`. Or copy the skill folder (.agents/skills/gog-save-attachments in openclaw/gogcli) into .agents/skills/gog-save-attachments in your project. Codex loads it when a task matches its description.

Can I use Gog Save Attachments in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openclaw/gogcli --skill gog-save-attachments -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gog-save-attachments, .gemini/skills/gog-save-attachments, .github/skills/gog-save-attachments and .opencode/skills/gog-save-attachments in your project.

What does Gog Save Attachments need to run?

SKILL.md names no scripts, command-line tools or credentials: Gog Save Attachments is instructions for the agent only.

Does Gog Save Attachments access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Gog Save Attachments safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gog Save Attachments use?

Gog Save Attachments is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gog Save Attachments use?

About 341 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gog Save Attachments?

Skills that share tags, products or a category with Gog Save Attachments: Xs Google Workspace (karaage0703/ai-assistant-workspace, 136 stars), Recipe Save Email Attachments (googleworkspace/cli, 31k stars), Setup (techwolf-ai/ai-first-toolkit, 132 stars) and Google Workspace CLI (laude-institute/headlong, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gog Save Attachments?

openclaw (a GitHub organization) maintains it in openclaw/gogcli, which has 8,483 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on October 7, 2026.

Source: openclaw/gogcli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.