Skip to content
TakoAPI
Back to skills

gmail-label-manager

by coenenp

CLI Utilities
581Downloads reported by clawskills.sh
0Views
0 likesSign in to like this skill
—Not yet rated
Your rating

Brief

This skill automates the organization of unread Gmail messages by applying labels, removing unnecessary labels.

Description

What This Skill Does

Automates Gmail inbox triage by reading label patterns from archived emails and applying them to new unread messages from the same senders. It adds matching labels, strips irrelevant ones including category labels, and archives each email. No static rules or manual configuration needed.

Learning from your existing archive means labels stay consistent with how you already organize email, without writing or maintaining filter rules in Gmail settings.

When to Use It

  • Automatically labeling newsletters from recurring senders
  • Clearing CATEGORY_PROMOTIONS labels before archiving
  • Processing a backlog of unread emails in bulk
  • Keeping inbox clean without manual label rules
  • Organizing emails from known senders the same way every time

Example Workflow

INPUT

User asks: label and archive my first unread email

AGENT
  1. 1

    Fetch the first unread email from Gmail inbox

  2. 2

    Search archived emails from the same sender to identify labels previously applied

  3. 3

    Apply those labels to the unread email

  4. 4

    Remove irrelevant labels including CATEGORY and UNREAD labels

  5. 5

    Remove the INBOX label to archive, then verify all label changes are correct

OUTPUT

Email is labeled, stripped of noise labels, and moved out of inbox

Requirements

  • gog CLI installed and authenticated with Gmail API access

Installation

clawhub install coenenp/gmail-label-manager

Run the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.

Links