gmail-analysis

Automate Gmail analysis and bulk cleanup via gws CLI or REST API.

Updated May 1, 2026
One-click install
npx skills add https://github.com/xiaoquqi/hermes-agent-skills --skill gmail-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gmail-analysis
Source: https://github.com/xiaoquqi/hermes-agent-skills/tree/main/gmail-analysis
Command: npx skills add https://github.com/xiaoquqi/hermes-agent-skills --skill gmail-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Gmail邮件分析与批量清理工作流,利用 gws CLI 或 Gmail REST API 高效分类和删除邮件,帮助用户提升邮箱维护效率。

Core Features & Use Cases

  • 使用 gws Gmail 命令实现快速邮件筛选与分类
  • 通过 Gmail REST API 获取元数据与全文内容进行深入分析与批量清理
  • 场景示例:对 Promotions/Updates 等类别进行批量筛选并清理,同时保留重要发件人

Quick Start

Analyze Gmail messages to classify by domain and category and perform bulk cleanup using gws CLI or Gmail REST API.

Frequently Asked Questions about gmail-analysis

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

FAQPage Schema
How do I automate bulk cleanup of Gmail messages in specific categories?

Automate Gmail bulk cleanup by using the gws CLI or Gmail REST API to filter messages, extract metadata, and batch delete emails in categories like Promotions or Updates while preserving important senders.

How does pagination and concurrency work for large inbox Gmail analysis?

Gmail analysis handles large inboxes by applying pagination and concurrency to list messages and extract metadata via the Gmail REST API, enabling scalable workflows for batching deletions and applying labels.

Can I use the Gmail REST API to classify emails by domain and apply labels in bulk?

Yes, you can use the Gmail REST API to extract message metadata and content, classify emails by domain and category, and apply labels across large inboxes as part of an automated workflow.

Do I need the gws CLI to perform Gmail batch deletions and metadata extraction?

No, you do not strictly need the gws CLI. The solution supports scalable Gmail analysis and batch deletions using either the gws CLI commands or direct Gmail REST API calls.

What is the best way to filter and delete promotional emails while keeping specific senders?

The best way to filter and delete promotional emails is to use gws CLI or Gmail REST API to classify messages by category, identify important senders, and execute targeted batch deletions safely.

Are there limitations when applying bulk labels across large Gmail inboxes via REST API?

When applying bulk labels or batching deletions across large Gmail inboxes, you must manage pagination and concurrency to avoid hitting Gmail REST API rate limits and ensure workflow stability.