spark-recipe-label-organize
Skill149 starsChanged 7 months agoMITView on GitHub
Organize emails with labels and folders: attach labels, detach wrong ones, and move misfiled emails.
In this repository33 other files it gives its agents.
- spark-persona-exec-assistantSkill
- spark-persona-founderSkill
- spark-persona-freelancerSkill
- spark-persona-meeting-managerSkill
- spark-persona-project-managerSkill
- spark-persona-sales-repSkill
- spark-persona-support-agentSkill
- spark-persona-team-leadSkill
- spark-recipe-calendar-auditSkill
- spark-recipe-delegate-and-trackSkill
- spark-recipe-draft-batchSkill
- spark-recipe-end-of-daySkill
- spark-recipe-inbox-by-categorySkill
- spark-recipe-inbox-zeroSkill
- spark-recipe-invitation-managerSkill
- spark-recipe-meeting-followupSkill
- spark-recipe-meeting-prepSkill
- spark-recipe-morning-standupSkill
- spark-recipe-multi-account-reviewSkill
- spark-recipe-new-sender-reviewSkill
- spark-recipe-newsletter-cleanupSkill
- spark-recipe-notification-hygieneSkill
- spark-recipe-priority-tuningSkill
- spark-recipe-schedule-meetingSkill
- spark-recipe-shared-inbox-statusSkill
- spark-recipe-shared-inbox-triageSkill
- spark-recipe-stakeholder-briefSkill
- spark-recipe-team-workloadSkill
- spark-recipe-topic-timelineSkill
- spark-recipe-unsubscribe-auditSkill
- spark-recipe-vacation-catchupSkill
- spark-recipe-weekly-digestSkill
- use-sparkSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Prerequisite: Read the use-spark base skill for command reference and filter syntax.
- Distinctive: line 40
Search for project-related or topic-related emails that should be labeled:
- Distinctive: line 49
Add a label to an email without removing it from its current location:
- Distinctive: line 64
Remove a label that was applied incorrectly:
- Very specific: line 88
Use folders to discover the exact qualified names for labels (e.g., user@gmail.com:MyLabel).
- Distinctive: line 95
Run this recipe periodically to keep project labels current as new related emails arrive.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Recipe: Label & Folder Organize
Organize emails using labels and folders. Attach project labels, detach incorrect ones, and move misfiled emails to the right location.
Prerequisite: Read the use-spark base skill for command reference and filter syntax.
Access level required: triage.
Steps
Step 1: Review current folder and label structure
spark foldersFor a specific account:
spark folders user@example.comNote the existing labels and their message counts. Identify labels that are empty or no longer relevant.
Step 2: Identify emails that need labeling
Search for project-related or topic-related emails that should be labeled:
spark search "project name"
spark emails --filter "from:client@company.com newer_than:30d"Step 3: Attach labels
Add a label to an email without removing it from its current location:
spark action attachLabel <id> --folder "user@example.com:ProjectAlpha"Label multiple emails in a batch:
spark action attachLabel <id1> --folder "user@example.com:ProjectAlpha"
spark action attachLabel <id2> --folder "user@example.com:ProjectAlpha"Step 4: Detach incorrect labels
Remove a label that was applied incorrectly:
spark action detachLabel <id> --folder "user@example.com:WrongLabel"Step 5: Move misfiled emails
Move emails to the correct folder:
spark action moveToFolder <id> --folder "user@example.com:Projects"Step 6: Verify
Browse the organized label to confirm the right emails are there:
spark emails user@example.com:ProjectAlphaTips
- Use
foldersto discover the exact qualified names for labels (e.g.,user@gmail.com:MyLabel). attachLabeladds a label without moving the email - the email stays in its current folder too. This is how Gmail labels work.detachLabelremoves a label without moving the email elsewhere.moveToFolderphysically moves the email to a different folder - use this for IMAP-style organization.- For Gmail accounts, prefer
attachLabel/detachLabelovermoveToFoldersince Gmail uses labels rather than folders. - Shared inbox labels use the format
shared@company.com:LabelNameor"Team Name:LabelName". - Combine with
recipe-meeting-prepor project tracking workflows to label threads as part of a larger process. - Run this recipe periodically to keep project labels current as new related emails arrive.
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.

