pedrohcgs/triage-inbox
Triage academic email and calendar (Gmail / Google Calendar via the session's MCP) into a prioritized digest plus a referee-obligations tracker — classifying referee requests, R&R and editor correspondence, co-author threads, seminar and conference invites, and grant/admin deadlines, and proposing a human-gated action for each (draft reply, calendar hold, scaffold a project, snooze). Use when user says "triage my inbox", "check my academic email", "what needs my attention this week", "go through my mail", or when run as a scheduled routine. NEVER auto-sends or auto-accepts anything.
npx skills add https://github.com/pedrohcgs/claude-code-my-workflow --skill triage-inbox
Turn a noisy academic inbox into a short, decision-ready digest. Fetch recent mail and calendar context through the session's MCP servers (Gmail / Google Calendar), classify each thread into the categories an academic actually acts on, and propose one action per thread — always human-gated. The companion artifact is a running referee-obligations tracker so you never silently overcommit to reviews.
Core principle: this skill *reads, classifies, and proposes*. It drafts; it never sends, accepts, declines, or books anything without you. That boundary is what makes it safe to run unattended as a /schedule routine.
/schedule to run each morning and leave a digest waiting./coauthor-brief./respond-to-referees.Gmail search/read, Google Calendar list/suggest). They are session-scoped — in a headless claude -p or cron run they may be absent. Probe once (e.g. list labels / list calendars). If unavailable, degrade gracefully: emit a tracker-only digest from the on-disk tracker (Phase 3) plus a one-line "MCP servers not reachable in this run — skipped fetch" note, and exit cleanly. Never fail the routine over a missing server.--since (an ISO date or Ndays), else the timestamp of the last digest in quality_reports/inbox/, else default 7 days. Echo it back.--cap if given, else read the standing cap from the tracker header, else default 3 concurrent reviews. This cap gates the recommendation in Phase 2, not your inbox.--no-calendar), dry-run on/off.| Bucket | Signals |
|---|---|
| Referee request | "invite you to review", journal/editor sender, manuscript ID, "would you be willing" |
| R&R / editor correspondence | "revise and resubmit", "minor/major revision", decision letter, due-date language |
| Co-author thread | known collaborator, shared-paper subject, "can you", "your section", attachment churn |
| Seminar / conference invite | "invited talk", "submit by", CFP, "seminar series", scheduling polls |
| Grant / admin deadline | funder name, "submission deadline", reporting/compliance, IRB/DUA renewals |
| Noise | newsletters, receipts, auto-notifications — counted, not itemized |
For each non-noise thread, propose exactly one of:
/new-referee-project on the attached manuscript. Over the cap → recommend a polite decline draft instead, and say why ("4 reviews already open vs. cap of 3")./coauthor-brief.Hard gate: every outbound action (send, accept, decline, book, scaffold) waits for explicit user confirmation. Drafts and holds are *proposals*. Honor --dry-run by proposing without staging even drafts.
quality_reports/inbox/YYYY-MM-DD_triage.md (create the dir). Buckets ordered by urgency; each item is a one-liner + its proposed action. Noise is a count, not a list.quality_reports/inbox/referee-obligations.md (a persistent ledger, not dated). Append/refresh rows for any review accepted, declined, or completed this run; recompute open count vs. cap; flag overdue rows.# Inbox Triage — YYYY-MM-DD (window: last N days · referee cap: K)
## Needs a decision (M)
- **[R&R]** *J. of X* — minor revision, **due 2026-07-15**. → Propose calendar hold (−14d reminder); conflicts: none.
- **[Referee]** *Econometrica* — review request, manuscript 12-345. Open reviews 2/3 → under cap. → Offer `/new-referee-project`.
- **[Co-author]** A. Smith — "can you redo Table 3 with not-yet-treated controls?" → Summarized; offer `/coauthor-brief`.
## FYI / snoozed (P)
- **[Seminar]** Dept. brown-bag poll — snoozed to 2026-06-16.
## Noise: 24 threads (newsletters, receipts) — not itemized.
## Referee load: 2 open / cap 3 (see referee-obligations.md)
Plus the one-line chat summary: digest path, counts per bucket, open-reviews-vs-cap, and whether the MCP fetch ran or was skipped.
--dry-run: propose everything, stage nothing (not even a draft).--since <Ndays|date> — Lookback window. Default: the last digest's timestamp, else 7 days.--cap <N> — Standing concurrent-review cap that gates referee scaffolding. Default: the tracker header value, else 3.--no-calendar — Skip the Calendar MCP entirely; classify mail only, no holds proposed.--dry-run — Propose actions without staging anything (no Gmail drafts created)..claude/skills/coauthor-brief/SKILL.md — the handoff brief offered for co-author threads..claude/skills/respond-to-referees/SKILL.md — drafts the R&R response document once a revision deadline surfaces here./new-referee-project — scaffolds a review repo from an accepted referee request (the action this skill proposes, never auto-runs)./schedule — wire this skill into a cron routine; the human-gated design is what makes unattended runs safe..claude/rules/orchestrator-protocol.md — the "no daemon, user/skill-initiated, human-in-the-loop" contract this skill honors for outbound actions..claude/rules/confidential-data.md — never copy attachment contents, restricted data, or credentials into a digest that may be committed./new-referee-project; scaffolding waits for your yes and respects the cap.Take pedrohcgs/triage-inbox from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.