auto-generated-gmail-batch-operations
Installation
SKILL.md
Gmail Batch Operations
70% API reduction via metadata-first approach and known sender categorization.
Metadata-First Pattern
Fetch message list first, then batch get full messages. Don't fetch all details upfront.
// From EmailFetcherAgent.ts lines 136-139
const messages = await this.fetchMessages(query, options.batchSize);
const fullEmails = await this.fetchFullMessages(messages);
List uses gmail.users.messages.list() with query, then batch fetch IDs only: