mail

Automate Gmail inbox, thread, send, and label tasks via gog CLI.

6|2|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/dandaka/skills --skill mail-dandaka
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mail
Source: https://github.com/dandaka/skills/tree/main/mail
Command: npx skills add https://github.com/dandaka/skills --skill mail-dandaka

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Gmail management and automation for common email tasks using the gog command-line tool: search, read, send, and label management.

Core Features & Use Cases

  • List, search, and read emails with gog gmail commands
  • Compose and send messages with attachments, CC/BCC
  • Manage labels (create, modify, apply/remove to threads)
  • Handle replies in threads to maintain conversation context

Quick Start

Set the GOOGLE_ACCOUNT in ~/.claude/.env and search for unread emails using gog gmail.

Frequently Asked Questions about mail

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Gmail management tasks from the command line?

You can automate Gmail management from the command line by using the gog CLI tool to search, read, send, and label emails across a single Google account. It requires installing gog and authenticating your account.

Can I send emails with attachments and manage labels via a CLI?

Yes, you can send emails with attachments and manage labels via a CLI. The gog tool supports composing messages with CC/BCC, adding attachments, and creating, modifying, or applying labels to threads.

How do I handle threaded replies to maintain conversation context in Gmail automation?

To maintain conversation context in Gmail automation, the gog CLI supports handling replies within threads. This ensures your automated responses stay correctly linked to the original conversation.

Do I need to set up authentication to use gog for email workflows?

Yes, you need to set up authentication to use gog for email workflows. You must install gog, authenticate your Google account, and set the GOOGLE_ACCOUNT variable in your environment to execute commands.

What's the best way to search and read unread emails using command line tools?

The best way to search and read unread emails using command line tools is with gog gmail commands. After setting your GOOGLE_ACCOUNT environment variable, you can list, search, and read inbox emails directly.

Can I use this approach to manage email across multiple Google accounts?

This approach uses the --account flag for operations and is designed for a single Google account. The metadata does not indicate support for managing multiple accounts simultaneously.