email-triage
Triage Joel's email inboxes via the joelclaw email CLI. Scan, categorize, archive noise, surface actionable items, and draft replies. Use when: 'check my email', 'scan inbox', 'triage email', 'what needs a reply', 'clean up inbox', 'archive junk', 'email summary', 'anything important in email', or any request involving email inbox review or cleanup.
What this skill does
# Email Triage Scan Joel's email inboxes (Front), triage conversations by importance, archive noise, and surface items needing attention. All operations use the `joelclaw email` CLI. ## Canonical Email Interface - **Front is canonical** for all email triage in joelclaw. - **Never use `gog gmail` for triage** — `[email protected]`, VIP threads, and all inboxes are in Front. - Use `gog` for Google Workspace operations (Calendar, Drive, Docs, etc.), not email triage. ## Front Search API Reference The search endpoint is `GET /conversations/search/{url_encoded_query}`. Results sorted by last activity date (not configurable). ### Valid `is:` statuses `open`, `archived`, `assigned`, `unassigned`, `snoozed`, `trashed`, `unreplied`, `waiting`, `resolved` **There is NO `is:unread`.** Use `is:unreplied` for conversations where the last message was inbound. Status conflicts (cannot combine): - `archived` ↔ `open` ↔ `trashed` ↔ `snoozed` (mutually exclusive) - `assigned` ↔ `unassigned` (mutually exclusive) ### Date filters — UNIX TIMESTAMPS ONLY - `before:<unix_seconds>` — messages/comments created before this timestamp - `after:<unix_seconds>` — messages/comments created after this timestamp - `during:<unix_seconds>` — messages/comments on same day as timestamp **Front does NOT accept `before:YYYY-MM-DD`** — always convert to unix seconds. The CLI `--before` and `--after` flags accept `YYYY-MM-DD` and convert automatically. ### Recipient filters - `from:<handle>` — sender (email, social handle) - `to:<handle>` — recipient (includes to/cc/bcc) - `cc:<handle>`, `bcc:<handle>` — specific fields - `recipient:<handle>` — any role (from, to, cc, bcc) - Multiple same-type filters use **OR** logic: `from:[email protected] from:[email protected]` → either - Different filter types use **AND** logic: `from:[email protected] to:[email protected]` → both ### Entity filters (use IDs, not names) - `inbox:<inbox_id>` — e.g. `inbox:inb_41w25` - `tag:<tag_id>` — e.g. `tag:tag_13o8r1` - `assignee:<teammate_id>` — e.g. `assignee:tea_hjx3` - `participant:<teammate_id>`, `author:<teammate_id>`, `mention:<teammate_id>`, `commenter:<teammate_id>` - `contact:<contact_id>`, `link:<link_id>` - `custom_field:"<name>=<value>"` ### Free text Bare words search subject + body. Phrases in quotes: `"exact phrase"`. ### No negation Front search has **no negation** — no `-from:`, no `NOT`, no exclusion operators. ### Max 15 filters per query. ## CLI Commands ### Scan inbox ```bash joelclaw email inbox # default: is:open, 50 results joelclaw email inbox -n 100 # more results joelclaw email inbox -q "is:open is:unreplied" # awaiting reply joelclaw email inbox --from [email protected] # by sender joelclaw email inbox --before 2026-02-01 # auto-converts to unix ts joelclaw email inbox --after 2026-01-15 # auto-converts to unix ts joelclaw email inbox --page-token "TOKEN" # pagination (from previous response) ``` Flags can be combined: ```bash joelclaw email inbox --from [email protected] --after 2026-02-01 -n 20 ``` ### Archive single ```bash joelclaw email archive --id cnv_xxx ``` ### Archive multiple by ID (fast, parallel, batched) ```bash joelclaw email archive-ids --ids cnv_abc,cnv_def,cnv_ghi ``` Runs 10 concurrent requests. Best for triaging a page of results — grab the IDs of noise and blast them. ### Archive bulk by query (dry-run by default) ```bash joelclaw email archive-bulk -q "is:open from:[email protected]" # dry run — shows count + sample joelclaw email archive-bulk -q "is:open from:[email protected]" --confirm # execute joelclaw email archive-bulk -q "is:open from:[email protected]" --limit 100 --confirm # batch size ``` ### Read a conversation ```bash joelclaw email read --id cnv_xxx joelclaw email read --id cnv_xxx --refresh # bypass local cache ``` `joelclaw email read` uses a local thread + attachment cache (default TTL: 60 minutes). Cache path: `~/.cache/joelclaw/email/`. Use `--refresh` to bypass cache and force a fresh fetch from Front. ### Read output shape + jq patterns `joelclaw email read` returns: ```text result.conversation: {id, subject, status, from: {name, email}, date, tags} result.messages[]: {id, from: {name, email}, date, is_inbound, body_preview (or body), attachments[]} result.attachment_summary: {total, cached, metadata_only, cache_errors} result.cache: {hit, source, cache_path, age_seconds, ttl_seconds} ``` Message content is currently in `body_preview`, with a migration to `body` underway. Treat both as valid for backwards compatibility. Correct extraction pattern (current field): ```bash joelclaw email read --id cnv_xxx 2>&1 | jq '.result.messages[] | {from: .from.email, date: .date, body: .body_preview}' ``` Backwards/forwards-compatible extraction pattern: ```bash joelclaw email read --id cnv_xxx 2>&1 | jq '.result.messages[] | {from: .from.email, date: .date, body: (.body // .body_preview)}' ``` ### List inboxes ```bash joelclaw email inboxes ``` ## Triage Workflow ### 1. Load inbox state ```bash joelclaw email inbox -n 50 ``` Parse the JSON result. Each conversation has: `id`, `subject`, `from` (name + email), `date`, `status`, `tags`. Useful follow-up queries: ```bash joelclaw email inbox -q "is:open is:unreplied" -n 50 # awaiting reply joelclaw email inbox --before 2026-01-01 -n 50 # old stuff to clean joelclaw email inbox --from [email protected] # CI noise check ``` ### 2. Categorize using inference Read each conversation and **decide** its category based on sender, subject, and context. Do NOT use hardcoded domain lists. Use judgment: - **Reply needed** — Real people expecting a response. Colleagues, collaborators, friends, business contacts with personal messages. Look for reply threads (`Re:`), questions, invitations to specific meetings, requests. - **Read later** — Interesting content worth saving. Newsletters Joel subscribes to intentionally (The Information, Astral Codex Ten, Lenny's Newsletter), industry news, technical deep-dives. - **Actionable** — Requires action but not a reply. Bills, security alerts, expiring trials, tax documents, delivery updates for real orders, calendar invites needing RSVP. - **Archive** — No value. Marketing spam, promotional offers, cold outreach, duplicate notifications, resolved alerts, automated reports nobody reads, vendor upsells. ### 3. Present triage summary Organize findings for Joel. Lead with what matters: ``` ## 🔴 Reply needed (N) - **Name** — Subject (why it needs a reply) ## ⚡ Actionable (N) - **Sender** — Subject (what action) ## 📖 Read later (N) - **Source** — Subject ## 🗑️ Archive candidates (N) - Count by type (e.g., "14 marketing, 8 CI failures, 5 duplicate notifications") ``` ### 4. Execute decisions **Fastest path for noise:** scan a page, collect noise IDs, use `archive-ids`: ```bash joelclaw email archive-ids --ids cnv_aaa,cnv_bbb,cnv_ccc,cnv_ddd ``` **For sender-based cleanup:** use `archive-bulk` with `from:` filter: ```bash joelclaw email archive-bulk -q "is:open from:[email protected]" --limit 100 --confirm ``` **Rate limiting:** Front allows ~50 req/s. If archiving large batches (>200), add pauses between batches or expect 429s. The CLI handles batching for `archive-ids` (10 concurrent), but `archive-bulk` iterates page-by-page and may hit limits on very large sets. **Read before deciding:** ```bash joelclaw email read --id cnv_xxx ``` ## Key Context - Joel has 8 Front inboxes across [email protected], [email protected], [email protected], [email protected], [email protected], LinkedIn, DMs, and Inngest - `joelclaw email inboxes` lists them all with IDs - Joel's teammate ID: `tea_hjx3` - The CLI handles Front API auth automatically via `secrets lease front_api_token` - Draft-then-approve for replies — never send directly - Front search results are eventually consistent — recently archived items may still appear in search for a f
Related in Productivity
gitea-workflow
IncludedOrchestrate agile development workflows for Gitea repositories using the tea CLI. Use when working with Gitea-hosted repos and asking to 'run the workflow', 'continue working', 'what's next', 'complete the task cycle', 'start my day', 'end the sprint', 'implement the next task', or wanting guided step-by-step development assistance. Keywords: workflow, orchestrate, agile, task cycle, sprint, daily, implement, review, PR, standup, retrospective, gitea, tea.
microsoft-graph-gateway
IncludedRoute Microsoft Graph work in this workspace. Use when users want to read or write Outlook mail, calendar events, contacts, OneDrive or SharePoint files, Teams, Planner, To Do, users, groups, directory data, or arbitrary Microsoft Graph endpoints from VS Code. Prefer WorkIQ for common read scenarios. Use Microsoft Graph for write actions and gap-read scenarios that need exact Graph properties, filters, permissions, or endpoints.
copilotkit
IncludedUse when building with CopilotKit — setup, development, integrations, debugging, upgrading, or contributing. Routes to the appropriate specialized skill based on the task.
wordly-wisdom
IncludedProvides calibrated decision analysis using Charlie Munger-style multiple mental models, inversion, incentive mapping, circle-of-competence checks, misjudgment audits, second-order effects, and forecast updates. Use when the user asks for an oracle take, a hard call, a decision memo, a premortem, an outside view, a red-team, a sanity-check, what am I missing, think this through, or wants a strategy, hire, investment, plan, product, partnership, or major life choice analysed. Avoid for simple factual lookups or time-sensitive legal, medical, or market questions without fresh evidence.
swain-session
IncludedSession management and project status dashboard. Owns the full session lifecycle (start/work/close/resume), focus lane, bookmarks, worktree detection, and tab naming. Also serves as the project status dashboard — shows active epics, progress, actionable next steps, blocked items, tasks, GitHub issues, and recommendations. Worktree creation is deferred to swain-do task dispatch (SPEC-195). Triggers on: 'session', 'status', 'what's next', 'dashboard', 'overview', 'where are we', 'what should I work on', 'show me priorities', 'bookmark', 'focus on', 'session info'.
gandi
IncludedComprehensive Gandi domain registrar integration for domain and DNS management. Register and manage domains, create/update/delete DNS records (A, AAAA, CNAME, MX, TXT, SRV, and more), configure email forwarding and aliases, check SSL certificate status, create DNS snapshots for safe rollback, bulk update zone files, and monitor domain expiration. Supports multi-domain management, zone file import/export, and automated DNS backups. Includes both read-only and destructive operations with safety controls.