gmail-label

Installation
SKILL.md

Gmail Auto-Label

Goal

Fetch inbox emails, classify them via parallel subagents into Action Required / Waiting On / Reference, and apply labels in bulk via Gmail API.

Scripts

  • ./scripts/gmail_label_fetch.py - Fetch email summaries as compact JSON
  • ./scripts/gmail_label_split.py - Split emails into N chunks for parallel classification
  • ./scripts/gmail_label_merge.py - Merge classified chunks into single labels.json
  • ./scripts/gmail_label_apply.py - Apply label classifications in bulk

Subagent

  • email-classifier — defined in .claude/agents/email-classifier.md
  • Model: Sonnet 4.5 (fast, cost-efficient classification)
  • Each subagent reads one chunk, writes one classified output file

Flow (Parallel — default)

Installs
41
GitHub Stars
11
First Seen
Mar 6, 2026
gmail-label — aiagentwithdhruv/skills