labels
Skill0 starsChanged 20 days agoMITView on GitHub
Tidy the labels of a connected Outlook, Hotmail, Microsoft 365 or Gmail mailbox - in Outlook its categories - by finding duplicates and, in Gmail, labels nothing carries, proposing merges, renames and removals, and changing nothing until the person agrees. Use when asked to clean up, merge or prune labels or categories.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- VectorLabAU/skillstheir own version, first seen Oct 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- VectorLabAU/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- attachmentsSkill
- draftingSkill
- triageSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
remove - labels_delete. No message is deleted: in Gmail the label comes off every message.
- Distinctive: line 20
Never add or remove SPAM or TRASH here: that junks or bins mail.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Label hygiene
- List the labels of each mailbox in question with
labels_list. An Outlook mailbox's categories are its labels to tidy; its folders, listed beside them as type folder, are left alone. Gmail's own system labels (INBOX, SENT, SPAM, TRASH and the like) are not the person's to tidy. - Find what to tidy:
- duplicates and near-duplicates - one name in another case, spacing, spelling or plural ("Receipts", "Reciepts");
- labels nothing carries - in Gmail, search for each label's threads with
messages_list(label:name). An Outlook category cannot be searched for: its messages are found only by reading the categories on the messages a search answers, so never call an Outlook category unused on that evidence; - in Gmail, one subject split across two parents by "/" nesting.
- Propose a plan, one line per change: the label kept, the labels merged into it, those renamed or removed, and how many threads each change moves - in Outlook, among the mail searched. Change nothing yet.
- On the person's yes to the plan, do what it says and nothing more:
- merge - on every thread carrying the old label,
threads_modifyadds the kept label and removes the old one; only then doeslabels_deleteremove the old label. A Gmail search answers a page at a time, so search for the old label again until it answers nothing before deleting it. In Outlook the merge reaches only the threads found carrying it, so say that messages the searches did not reach keep the old name; - rename -
labels_updatewith the new name, in Gmail. Microsoft lets an Outlook category take only a new colour, so an Outlook rename is a new category fromlabels_create, the threads moved onto it, then the old one deleted; - remove -
labels_delete. No message is deleted: in Gmail the label comes off every message; an Outlook category leaves the list while the messages that carried it keep its name, so move them first.
- merge - on every thread carrying the old label,
- Report what changed and anything that failed, label by label.
Never add or remove SPAM or TRASH here: that junks or bins mail.
Examples:
- "Tidy the categories in my Outlook."
- "My Hotmail has both Receipts and Reciepts - merge them."
- "Which of my Gmail labels have nothing in them?"
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

