Gmail Label Manager Skill
This skill automates the organization of unread Gmail messages by applying labels, removing unnecessary labels, and archiving emails, based on predefined patterns from **archived emails**.
by coenenp · published 2026-03-22
$ claw add gh:coenenp/coenenp-gmail-label-manager# Gmail Label Manager Skill
This skill automates the organization of unread Gmail messages by applying labels, removing unnecessary labels, and archiving emails, based on predefined patterns from **archived emails**.
Features
1. **Automated Workflow Steps:**
- Finds the first unread email.
- Identifies the appropriate label using:
- Dynamic analysis of labels on archived emails from the same sender.
- Ignores labels from emails still in the inbox.
- Adds the determined label(s) to the unread email.
- Removes irrelevant label(s) from the email. Also remove irrelevant CATEGORY labels (`CATEGORY_PERSONAL`, `CATEGORY_PROMOTIONS`, `CATEGORY_UPDATES`, `UNREAD`, etc.).
- Archives the email by removing the `INBOX` label.
- Verifies the operation to ensure all changes are applied correctly.
2. **Customizable Patterns:**
- Dynamically learns from archived emails—no static cache required.
- Reduces dependency on external configurations.
---
Installation
Requirements:
- Install the `gog` CLI and authenticate it for Gmail API access.
Skill Setup:
- Place the skill files inside your OpenClaw workspace.
- Modify paths within the script for your local setup if required.
---
Testing the Workflow
---
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...