theexperiencecompany/gaia/gmail-clean-inbox
Claude Code and agent skill by theexperiencecompany/gaia
- community
Checking that the SKILL.md file is still in the repository.
Intelligently clean Gmail inbox - audit labels, identify patterns, batch categorize, archive old messages, present cleanup summary
Install
npx vskill@latest install theexperiencecompany/gaia/gmail-clean-inboxSKILL.md
Gmail: Clean & Organize Inbox
When to Activate
User wants inbox zero, wants to clean up, organize, or manage their Gmail inbox.
Step 1: Audit Current State
Use lightweight counting first to avoid large message payloads. GMAIL_LIST_LABELS and GMAIL_GET_UNREAD_COUNT are safe to call directly.
Step 2: Identify Cleanup Patterns
Use query-based counting to identify opportunities without fetching full email lists:
If query counting is unavailable in a specific environment, fallback to GMAIL_FETCH_MESSAGES(query="...", fields=["id","threadId"]) (ids only).
Step 3: Present Cleanup Plan
Before acting, present findings and get consent:
Step 4: Execute Cleanup
Only after user confirms, batch process:
- Audit labels first: Use
GMAIL_LIST_LABELSto find the correct label IDs (especially for custom labels). - Count first, fetch IDs only for approved actions: After user confirms,
call GMAIL_FETCH_MESSAGES(query="...", fields=["id","threadId"]) for each selected cleanup query. It server-side paginates, so one call returns every matching message_id (no next_page_token loop, no silent cap).
- Prefer batch operations: Use
GMAIL_BATCH_MODIFY_MESSAGESwhenever you are modifying many emails at once (archive, mark read/unread, apply/remove labels). Chunk large operations (up to 1,000 message IDs per call). - Single-message label changes: Use
GMAIL_ADD_LABEL_TO_EMAILwhen you only need to adjust one message. - Thread-wide label changes: Use
GMAIL_MODIFY_THREAD_LABELSto label/unlabel an entire thread. - Delete carefully: Prefer
GMAIL_MOVE_TO_TRASHfor reversible cleanup; useGMAIL_BATCH_DELETE_MESSAGESonly for permanent deletion and only with explicit user confirmation.
Step 5: Summary Report
Never offer to create Gmail filters: the Gmail connection is not allowed to, and every attempt fails.
Safety Rules
- NEVER delete/trash without explicit user consent
- NEVER touch starred or important emails
- NEVER auto-process emails less than 24h old
- Always present plan first, act second
- Use archive (remove INBOX) over trash when possible
- Report exactly what was done after cleanup
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingapps/api/app/agents/skills/builtin/gmail-clean-inbox/SKILL.md
Popularity
- Repository stars
- 144
- Repository forks
- 19
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 24 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/theexperiencecompany/gaia/gmail-clean-inbox)