email-cleanup
Original:🇺🇸 English
Translated
Clean up Gmail - archive old emails, delete promotions, manage storage. Use when user wants to clean inbox, archive emails, or free up space.
3installs
Sourcemaroffo/claude-forge
Added on
NPX Install
npx skill4agent add maroffo/claude-forge email-cleanupTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →ABOUTME: Gmail bulk cleanup - archive old emails, delete promotions, free storage
ABOUTME: Parameterized batch operations with safety-first approach
Email Cleanup Skill
Gmail: See for account config and commands.
../_GMAIL.mdSafety Rules
- NEVER delete without confirmation - show counts first
- Archive over delete - prefer archiving (recoverable)
- Batch in chunks - max 50 at a time
Cleanup Targets
| Category | Query | Action |
|---|---|---|
| Promotions | | Archive |
| Social | | Archive |
| Read updates | | Archive |
| Large emails | | Review individually |
| Unsubscribe candidates | | Review |
Workflow
Step 1: Count each category
bash
gog gmail search "<query>" --account=maroffo@gmail.com --json | jq '.resultSizeEstimate'Step 2: Present summary table with counts and suggested actions
Step 3: Execute (with confirmation)
bash
THREADS=$(gog gmail search "<query>" --account=maroffo@gmail.com --json --max=50 | jq -r '.threads[].id')
for tid in $THREADS; do
gog gmail thread modify $tid --account=maroffo@gmail.com --remove-labels=INBOX
doneProcess in batches of 50. Report progress.
Quick Stats
bash
gog gmail labels get INBOX --account=maroffo@gmail.com
gog gmail labels get CATEGORY_PROMOTIONS --account=maroffo@gmail.com