Mail Cleanup — Development skill for Claude Code
/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
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 RepositoryRelated Skills
Exo Mesh
See the whole relationship, not the fragment one inbox remembers. Mail, calendar, iMessage and contacts joined
Call the osiris MCP tool inbox with peek=true, render='text' (mount with cwd + $CLAUDE_JOB_DIR if not mounted)
Collect Information
Collect what happened since the last run — Teams chats from the local client cache, new Inbox and Sent mail, v
Agent Mail
Route an agent-mail action - send / read / list / reply - over your inbox and peer repos. "team" points to nat
Sweep
Daily end-of-day Gmail inbox sweep — auto-label the obvious, flag the rest for review, log decisions for futur
Followup Check
Midday inbox check — sync Gmail, classify new replies, send alerts if serious. No outbound emails sent.
Related Agents
Inbox Tracker
Scan Gmail (and Google Calendar) for job-search activity — recruiter mail, ATS/application updates, interview
Email Reader
Read-only Gmail reader. Use it to search, open and summarize email threads (inbox sweeps, Google Scholar alert
Inbox Marshal
Gmail spam cleanup and receipt/subscription organization. Classifies every