一键导入
gmail-clean-inbox
Intelligently clean Gmail inbox - audit labels, identify patterns, batch categorize, archive old messages, present cleanup summary
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Intelligently clean Gmail inbox - audit labels, identify patterns, batch categorize, archive old messages, present cleanup summary
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyze spreadsheet data intelligently - understand structure, choose right analysis tool (SQL/pivot/chart), apply formatting, present insights.
Create charts and visualizations in Google Sheets — detect data structure, select chart type, format for clarity, present insights
Generate an editable Microsoft Word (.docx) document — reports, letters, memos, structured docs. Use when the user wants a Word file. Built with docx-js (Node) for high fidelity.
Generate a polished, printable PDF — reports, letters, invoices, resumes, one-pagers. Use when the user wants a PDF document. Typst is the primary engine; LaTeX (tectonic) is the fallback for niche packages or specific academic/journal templates.
Generate a PowerPoint (.pptx) slide deck — pitch decks, reviews, summaries. Use when the user wants slides. Built with pptxgenjs (Node) for native, editable slides and charts.
Generate an Excel (.xlsx) workbook or a CSV file — tables, financial models, data exports, formatted reports with charts. Use when the user wants a spreadsheet or CSV. Built with openpyxl + pandas (Python).
| name | gmail-clean-inbox |
| description | Intelligently clean Gmail inbox - audit labels, identify patterns, batch categorize, archive old messages, present cleanup summary |
| target | gmail_agent |
User wants inbox zero, wants to clean up, organize, or manage their Gmail inbox.
Use lightweight counting first to avoid large message payloads.
GMAIL_LIST_LABELS and GMAIL_GET_UNREAD_COUNT are safe to call directly.
GMAIL_LIST_LABELS()
# Per-label unread + total counts
GMAIL_GET_UNREAD_COUNT(
label_ids=["INBOX", "CATEGORY_PROMOTIONS", "CATEGORY_UPDATES", "CATEGORY_SOCIAL"]
)
# Inbox unread via query estimate
GMAIL_GET_UNREAD_COUNT(query="is:unread", label_ids=["INBOX"])
Use query-based counting to identify opportunities without fetching full email lists:
GMAIL_GET_UNREAD_COUNT(
query="category:promotions is:unread",
label_ids=["INBOX"]
)
GMAIL_GET_UNREAD_COUNT(
query="from:notifications@github.com is:unread",
label_ids=["INBOX"]
)
GMAIL_GET_UNREAD_COUNT(
query="is:unread before:2025/01/01",
label_ids=["INBOX"]
)
GMAIL_GET_UNREAD_COUNT(
query="is:unread category:updates",
label_ids=["INBOX"]
)
If query counting is unavailable in a specific environment, fallback to
GMAIL_FETCH_EMAILS(query="...", include_payload=false) in parent context.
Before acting, present findings and get consent:
Inbox Audit:
Total in inbox: 847
Unread: 234
Cleanup opportunities:
1. 78 unread promotions → Archive all? (saves 78 emails)
2. 45 GitHub notifications older than 7 days → Archive? (saves 45)
3. 32 newsletter emails → Archive + create filter? (saves 32)
4. 28 old calendar notifications → Trash? (saves 28)
Estimated cleanup: 183 emails (78% of unread)
Which actions should I proceed with? (all/specific numbers)
Only after user confirms, batch process:
GMAIL_LIST_LABELS to find the correct label IDs (especially for custom labels).GMAIL_FETCH_EMAILS(query="...", include_payload=false) for each
selected cleanup query and paginate with next_page_token to collect all
message_ids.GMAIL_BATCH_MODIFY_MESSAGES whenever 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).GMAIL_ADD_LABEL_TO_EMAIL when you only need to adjust one message.GMAIL_MODIFY_THREAD_LABELS to label/unlabel an entire thread.GMAIL_MOVE_TO_TRASH for reversible cleanup; use GMAIL_BATCH_DELETE_MESSAGES only for permanent deletion and only with explicit user confirmation.Inbox Cleanup Complete:
Before: 847 emails (234 unread)
After: 664 emails (51 unread)
Actions taken:
- Archived 78 promotions
- Archived 45 old GitHub notifications
- Trashed 28 calendar notifications
- Labeled 32 newsletters as "newsletters"
Tip: I can help set up Gmail filters to auto-archive these in the future.