/ccxp-skills:email-triage [--window 7d] [--no-slack]from ccxp-skills
Use when the user explicitly asks to triage the Gmail inbox — summarize, surface the top action item, Slack the result
Ships in ccxp-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Daily email triage: read the inbox, separate notifications from action items, summarize the notifications, surface the single most important action item, and Slack the result.
┌────────────────────────────────────┐
in:inbox last N ─► │ Classify each thread: │
│ • notification (auto/bot/list) │ ──► summarize → digest
│ • actionable (human, deadline, │ ──► rank → top 1
│ financial, @-mention, etc.) │
└────────────────────────────────────┘
│
▼
Slack: digest + top-1 action item
│
▼
User decides what to archive / reply / act on
The skill only reads Gmail — by policy, not because the connector forbids more. The connector also exposes mutating tools (send, reply, forward, draft, trash, label, spam); this skill must never call them. The one carve-out is the separate /inbox-clean step, which may archive, label and draft (never send) under its own allowlist; this skill itself stays read-only.
$ARGUMENTS is optional:
/email-triage — default: 7d window, Slack the result/email-triage --window 24h — narrower window/email-triage --window 14d — wider sweep/email-triage --no-slack — print to user only (dry-run / debug)search_threads, get_thread, list_labels)slack_send_message (DMs to user)slack_search_users)Search: in:inbox newer_than:7d (or --window). Walk the thread list; keep sender, subject, date, snippet, recipient list.
For each thread, decide notification vs actionable using these signals:
Notification (low-attention):
noreply, no-reply, notifications, notification, automated, donotreplynotifications@<service>, git@<host>, *@notification.<service>, support tickets in informational mode, marketplace event emails, event platform notifications, newsletter senders matching *@info.* or similar)to: is a mailing list (e.g. ASF lists, GitHub subscription addresses)newsletter, unsubscribe, webinar, generic cold-outreach phrasings (heuristic)Actionable (everything else):
to: includes user onlyinvoice, due, deadline, expir, urgent, please review, approve, sign, confirm, money/currency mentionsEdge cases — keep in mind:
When uncertain, default to actionable (false positives are cheap; missed action items are expensive).
Group by sender domain or category. For each group, list 1 line per thread:
*Email digest — last 7d* (N notification threads)
*<group A>* (count)
- <subject snippet> — <1-line gist>
- ...
*<group B>* (count) — <one-line summary if homogeneous>
*<group C>* (count)
- <subject snippet> — <1-line gist>
Aim for short. The user shouldn't have to expand the digest to know nothing is on fire.
For each actionable thread, score additively:
| Signal | Points |
|---|---|
| Sender is a real human (not bot/noreply/notifications) | +3 |
Subject contains money pattern ($, USD, CNY, RMB, "invoice", "debit") | +2 |
| Subject contains time pressure ("due", "deadline", "expir", "urgent", "EOD", date in next 7d) | +2 |
to: is me only (not a list) | +1 |
| Newer than 24h | +1 |
| Sender is on a user-configured "key contacts" list (cofounders, partners, etc.) — list lives outside the skill | +2 |
| Older than half the window (e.g. >3.5d in default 7d run) | -1 |
| Already replied to (you're in the thread, last message is from you) | -1 |
Sort desc, ties broken by recency.
For the #1 ranked thread, optionally get_thread to read the body and produce a real summary:
https://mail.google.com/mail/u/0/#inbox/<threadId>Cap deep reads at 3 per run (top-1 + maybe top-2/top-3 if score is close, for context).
To the user (always):
🔝 Top action item:
<subject>
from <sender>, <age>
<2-3 sentence summary>
Action: <suggested action>
Link: <gmail url>
📬 Digest:
(summarized notification groups)
To Slack (unless --no-slack), DM the user directly — never a public channel:
slack_send_message(channel_id=<dm_or_user_id>, message=<below>)
channel_id for a DM should be a DM conversation ID (typically D...). Two ways to obtain it:
D... ID is stable and can be cached in the user's environment.chat.postMessage API auto-opens an IM when given a user ID (U...), and most Slack MCP wrappers pass this through. If slack_send_message rejects a U... ID, fall back to looking up / opening the DM channel via the MCP (e.g. slack_search_users to find the user, then use a conversations-open call if exposed).The MCP tool description often surfaces the logged-in user's ID. Do not use the slack webhook skill here — webhooks are bound to a public channel.
*Email triage — last 7d*
🔝 *Top action:* <subject> — <action> — <gmail url>
📬 *Digest:*
*<group A>* (count) — ...
*<group B>* (count) — ...
...
Run daily via the schedule skill:
/schedule daily 08:00 /email-triage
search_threads, get_thread, list_labels (and get_message). Never call send/reply/forward/draft/trash/label/spam tools (archive, label and draft belong to /inbox-clean) — the connector offers them, so the restriction is this skill's own rule, not a platform limit. The user decides what to do with each item.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub synx-data-labs/ccxp-skills --plugin ccxp-skills57 skills in this plugin
/1password-env-setupUse when the user explicitly asks to bootstrap or refresh a repo's 1Password-backed .env — installs the refresh-env helper, generates a hash-checking .envrc, and materializes .env from .env.tpl via op inject/address-prUse when the user explicitly asks to address, verify, or merge a specific open PR (CI, Claude Code review, test plan, tiered merge)/agent-pairingUse when the user explicitly asks to toggle the ccxp-agent main-session agent on/off for this Claude Code profile or check its status