email-cleanup

Clean up Gmail - archive old emails, delete promotions, manage storage. Use when user wants to clean inbox, archive emails, or free up space.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "email-cleanup" with this command: npx skills add maroffo/claude-forge/maroffo-claude-forge-email-cleanup

ABOUTME: Gmail bulk cleanup - archive old emails, delete promotions, free storage

ABOUTME: Parameterized batch operations with safety-first approach

Email Cleanup Skill

Gmail: See ../_GMAIL.md for account config and commands.

Safety Rules

  1. NEVER delete without confirmation - show counts first
  2. Archive over delete - prefer archiving (recoverable)
  3. Batch in chunks - max 50 at a time

Cleanup Targets

CategoryQueryAction
Promotionscategory:promotions older_than:30dArchive
Socialcategory:social older_than:14dArchive
Read updatescategory:updates is:read older_than:7dArchive
Large emailslarger:10MReview individually
Unsubscribe candidatesunsubscribe is:read older_than:30dReview

Workflow

Step 1: Count each category

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)

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
done

Process in batches of 50. Report progress.

Quick Stats

gog gmail labels get INBOX --account=maroffo@gmail.com
gog gmail labels get CATEGORY_PROMOTIONS --account=maroffo@gmail.com

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

newsletter-digest

No summary provided by upstream source.

Repository SourceNeeds Review
General

react-nextjs

No summary provided by upstream source.

Repository SourceNeeds Review
General

rails

No summary provided by upstream source.

Repository SourceNeeds Review
General

golang

No summary provided by upstream source.

Repository SourceNeeds Review