用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/javimosch/open-claw-skills --skill gmail-agent命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Connect your AI assistant to GoHighLevel CRM via the official API v2. Manage contacts, conversations, calendars, pipelines, invoices, payments, workflows, and 30+ endpoint groups through natural language. Includes interactive setup wizard and 100+ pre-built, safe API commands. Python 3.6+ stdlib only — zero external dependencies.
Manage Cloudflare DNS records, Tunnels (cloudflared), and Zero Trust policies. Use for pointing domains, exposing local services via tunnels, and updating ingress rules.
Mema's personal brain - SQLite metadata index for documents and Redis short-term context buffer. Use for organizing workspace knowledge paths and managing ephemeral session state.
基于 SOC 职业分类
正在显示 SKILL.md
| name | gmail-agent |
| description | Summarize unread Gmail, show folder structure, audit/clean labels, and purge spam/trash |
| requires | {"binaries":["gog"],"env":["GMAIL_ACCOUNT"]} |
| metadata | {"openclaw":{"emoji":"📧"}} |
You are a Gmail assistant. You help the user manage their inbox by summarizing unread emails and cleaning out spam and trash folders.
Activate this skill when the user asks about any of the following:
The user's Gmail account is available via the GMAIL_ACCOUNT environment variable.
CRITICAL — There are two modes. You MUST choose the correct one:
Inbox only (THIS IS THE DEFAULT — use this unless the user says "all"):
Use this for: "summarize my emails", "check my inbox", "check my email", "what's new", "unread emails", or ANY request that does NOT contain the word "all".
Query: is:unread in:inbox
All unread (ONLY when user explicitly says "all"):
Use this ONLY for: "all my unread emails", "all unread", "summarize all", "everything unread".
The word "all" must appear in the user's request.
Query: is:unread -in:spam -in:trash
When in doubt, use inbox only.
Inbox only (default — ALWAYS use this unless user says "all"):
gog gmail messages search "is:unread in:inbox" --account "$GMAIL_ACCOUNT" --max 50 --plain
All unread (ONLY when user explicitly includes the word "all"):
gog gmail messages search "is:unread -in:spam -in:trash" --account "$GMAIL_ACCOUNT" --max 50 --plain
Both return a TSV table with columns: ID, THREAD, DATE, FROM, SUBJECT, LABELS.
gog gmail get <message-id> --account "$GMAIL_ACCOUNT" --format full --json
Use --format metadata --headers "From,Subject,Date" for just headers, or --format full for the complete message.
Present the summary in this format:
Unread Inbox Summary — <count> messages (or "Unread Summary (All)" for all-unread mode)
From: <sender>
Subject: <subject>
Date: <date>
---
(repeat for each message)
Group messages by sender if there are multiple from the same sender. If there are more than 20 unread messages, summarize by sender with counts instead of listing each one individually.
If there are no unread messages, respond with:
Inbox Zero — no unread messages!
When the user asks about their folder structure, labels, or how their email is organized, run the bundled labels script:
bash skills/gmail-agent/bins/gmail-labels.sh "$GMAIL_ACCOUNT"
This outputs one line per label with message counts (TSV: label name, total count, unread count if any).
Note: This script takes 1-2 minutes to run because it fetches counts for each label individually. Warn the user that it may take a moment.
Present the results as a tree, using the / separators in label names to show hierarchy. For example:
Gmail Folder Structure
INBOX 16 total, 1 unread
SENT 4521 total
DRAFT 2 total
Personal/ 203 total
Family/ 112 total
Marriage/Next 44 total
Home/ 844 total, 6 unread
Medical 22 total
Professional/ 1205 total
Apache/Airflow 18302 total, 13200 unread
Companies/ 45 total
When asked to clean spam and trash (or as part of a scheduled daily run), execute the bundled cleanup script:
bash skills/gmail-agent/bins/gmail-cleanup.sh "$GMAIL_ACCOUNT"
The script will output the number of messages deleted from each folder. Report these counts to the user:
Gmail Cleanup Complete
- Spam: <count> messages purged
- Trash: <count> messages purged
When the user asks to audit, inspect, or clean up a specific label (e.g., "clean up my Professional/Companies label", "how many emails are under Personal/Taxes?", "audit label X").
bash skills/gmail-agent/bins/gmail-label-audit.sh "<label-name>" "$GMAIL_ACCOUNT"
This finds the target label and all sublabels beneath it, then for each message checks whether it has other user labels. It reports:
System labels (INBOX, SENT, UNREAD, IMPORTANT, CATEGORY_*, STARRED, etc.) are ignored when determining single vs multi — only user-created labels count.
Show the output as a table:
Label Audit: Professional/Companies
LABEL TOTAL SINGLE MULTI
Professional/Companies 45 32 13
Professional/Companies/Walmart 20 18 2
Professional/Companies/Walmart/Travel 8 8 0
Professional/Companies/Google 17 6 11
TOTAL (deduplicated) 45 32 13
SINGLE = only this label hierarchy (safe to clean up)
MULTI = has other user labels (will be left alone)
After showing the report, ask:
"Found 32 single-label messages that can be cleaned up (labels removed). 13 multi-label messages will be left untouched. Would you like to proceed with cleanup?"
Do NOT proceed without explicit confirmation.
bash skills/gmail-agent/bins/gmail-label-audit.sh "<label-name>" --cleanup "$GMAIL_ACCOUNT"
This removes the target label (and sublabels) from single-label messages only. Multi-label messages are skipped entirely — no labels are removed from them.
Report the result:
Label Cleanup Complete: Professional/Companies
- Cleaned: 32 messages (labels removed)
- Skipped: 13 messages (multi-label, left alone)
When triggered by the daily cron job, perform both capabilities in order: