giacomo-galletti

Mail Cleanup — Development skill for Claude Code

Development community

/mail-cleanup - Clean the Gmail inbox after an apply cycle.

How to install Mail Cleanup

Installs to ~/.claude/commands/giacomo-galletti-ai-job-autopilot-mail-cleanup.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/giacomo-galletti/ai-job-autopilot/HEAD/.claude/commands/mail-cleanup.md -o ~/.claude/commands/giacomo-galletti-ai-job-autopilot-mail-cleanup.md

Restart Claude Code, or start a new session, for it to be picked up.

What Mail Cleanup does

/mail-cleanup - Clean the Gmail inbox after an apply cycle

Run LAST in every apply cycle, after the final send, without being asked, and whenever the user asks. Works on the user's Gmail through `tools/gmail_client.py` (configure the address and app password as described in that module); no mail client needs to be open. Trashed mail stays recoverable in Gmail's Bin for 30 days.

Run

python3 tools/clean_confirmations.py --reject --delete --settle 6

One command does all of it:

Alternatives in Development

  • Gmail Sync — /gmail-sync - Sync Application Status from Gmail 36.6k ★
  • Clean Worktree (Interactive) — Interactive cleanup of worktrees: lists merged/stale branches and asks confirmation before deleting 25.5k ★
  • System Cache Cleanup — Clean temporary files and caches to free disk space: $ARGUMENTS 23.4k ★

Full documentation available on GitHub

View Source Repository