inbox-management
Skill1.4k starsChanged 5 months agoMITView on GitHub
Ongoing Gmail inbox management via scheduled runs. Archives known noise, flags urgent items, drafts replies in-thread (never auto-sends), and catches stale follow-ups. Empty polls spend no model tokens. Starts in flag-only mode.
1 other project uses a version of this.
Trending
Quiet since October.thin dataabout the whole repository
Most recently taken up by
- sidchaudhary/gtm-skillstheir own version, first seen Aug 21, 2026
Who's talking about vellum-ai/vellum-assistant
- @githubfeed.bsky.social“🚀 GitHub Intelligence Drop project-golem (JavaScript • 🟢) ⭐ 592 → …”Bluesky · May 13, 2026 · 1 likes
- sudosubin/agents.nix“agent-plugins.github.vellum-ai.vellum-assistant: init at 0.12.6”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.vellum-ai.vellum-assistant: init at 0.12.6”GitHub · Oct 4, 2026
- awesome-selfhosted/awesome-selfhosted-data“Add Vellum”GitHub · Sep 15, 2026
- janhq/awesome-local-ai“Add Vellum personal AI assistant”GitHub · Sep 15, 2026
The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 14
Talked about on GitHub and Bluesky (14 times).
On GitHub · 13
- Oct 4, 2026agent-plugins.github.vellum-ai.vellum-assistant: init at 0.12.6 — sudosubin/agents.nix0 reactions
- Oct 4, 2026agent-skills.github.vellum-ai.vellum-assistant: init at 0.12.6 — sudosubin/agents.nix0 reactions
- Sep 15, 2026Add Vellum — awesome-selfhosted/awesome-selfhosted-data0 reactions · 3 comments
- Sep 15, 2026Add Vellum personal AI assistant — janhq/awesome-local-ai0 reactions
- Sep 15, 2026Add Vellum personal AI assistant — mihaiwillberich/awesome-desktop-ai-assistants0 reactions
8 more on GitHub
- Sep 15, 2026Add Vellum personal AI assistant — punkpeye/awesome-mcp-clients0 reactions
- Sep 15, 2026Add Vellum personal AI assistant — elyase/awesome-personal-ai-assistants0 reactions
- Sep 14, 2026Add Vellum to alternatives and comparison table — T31K/awesome-openclaw-alternatives0 reactions
- Aug 26, 2026feat: send a canned denial when the gateway refuses a sender — vellum-ai/imessage0 reactions
- Aug 24, 2026feat: pick the iMessage provider from a dropdown — vellum-ai/imessage0 reactions
- Aug 24, 2026feat: add Linq as a selectable iMessage provider — vellum-ai/imessage0 reactions
- Aug 14, 2026feat: engine settings, Lightpanda, and a plugin browser skill — vellum-ai/browser0 reactions
- Aug 2, 2026vellum-ai — Viktor6886/evaself0 reactions
On Bluesky · 1
- May 13, 2026🚀 GitHub Intelligence Drop project-golem (JavaScript • 🟢) ⭐ 592 → https://github.com/Arvincreator/project-golem vellum-assistant… — @githubfeed.bsky.social1 likes and repost
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- sidchaudhary/gtm-skills★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository96 other files it gives its agents.
- AGENTS.mdAGENTS.md
- assistant/AGENTS.mdAGENTS.md
- cli/AGENTS.mdAGENTS.md
- clients/AGENTS.mdAGENTS.md
- gateway/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- assistant/CLAUDE.mdCLAUDE.md
- gateway/CLAUDE.mdCLAUDE.md
- skills/assistant-migration/references/claude.mdCLAUDE.md
- add-mcp-integrationSkill
- cli-testingSkill
- releaseSkill
- updateSkill
- vellum-boundary-guardSkill
- vellum-change-reviewSkill
- vellum-feature-flag-rolloutSkill
- vellum-migration-checklistSkill
- vellum-pr-readinessSkill
- vellum-skill-authoringSkill
- vellum-test-selectionSkill
- vellum-user-facing-copySkill
- amazonSkill
- api-mappingSkill
- assistant-migrationSkill
- chat-complex-documentsSkill
- chatgpt-importSkill
- cli-discoverSkill
- conversation-launcherSkill
- daily-briefingSkill
- deepgram-voiceSkill
- deploy-fullstack-vercelSkill
- discord-app-setupSkill
- doordashSkill
- elevenlabs-voiceSkill
- email-setupSkill
- fish-audioSkill
- frontend-designSkill
- geo-auditSkill
- geo-writingSkill
- gmailSkill
- gmail-triggerSkill
- google-calendarSkill
- guardian-verify-setupSkill
- headless-claude-codeSkill
- inbox-cleanupSkill
- influencerSkill
- linear-app-setupSkill
- llm-cost-optimizerSkill
- llm-provider-setupSkill
- macos-automationSkill
- mailgun-setupSkill
- mcp-setupSkill
- meme-generatorSkill
- memory-corpus-ingestSkill
- notificationsSkill
- notionSkill
- oura-setupSkill
- ouraSkill
- outlook-calendarSkill
- outlookSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
30 rules. About 0 are common, 15 are distinctive, and 15 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 53
Before anything else, explain what the user is opting into.
- Distinctive: line 65
Wait for explicit confirmation before proceeding.
- Very specific: line 69
Default to Stage 0 (flag-only).
- Distinctive: line 78
Ask for senders/domains that may look like outreach but matter.
- Distinctive: line 90
Default urgency bar for alerts:
- Distinctive: line 102
Do not create an execute-mode job.
- Distinctive: line 104
Create a recurring script-mode schedule:
- Very specific: line 107
Default cadence: 0 */3 * * 1-5 (every 3 hours on weekdays)
- Very specific: line 115
If assistant oauth status google shows more than one active connection, ask which inbox to watch and append one --account user@example.com …
- Very specific: line 130
Verify with assistant schedules execute <id>.
- Very specific: line 136
Run messaging_analyze_style on the user's recent sent mail.
- Very specific: line 152
Resume interrupted runs first: Before starting a new pipeline pass, check bun run scripts/gmail-runs.ts list.
- Very specific: line 154
Read the last-run timestamp via gmail-prefs.ts --action get-management-config.
- Very specific: line 171
Cross-check the safe-list before each batch: Use gmail-prefs.ts --action list to load the safe-list.
- Very specific: line 198
Never archive through the --cache-key + --sender-emails path here.
- Distinctive: line 212
If any qualify, send one alert:
- Distinctive: line 216
If nothing qualifies: skip silently.
- Distinctive: line 226
Check whether the thread already has a draft (the Gmail thread view shows it).
- Distinctive: line 227
Read the full thread before drafting so the reply answers what was actually asked.
- Very specific: line 229
Create draft in-thread via gmail-email.ts draft --thread-id "..." --in-reply-to "...".
- Distinctive: line 231
After the pass, send one summary:
- Distinctive: line 242
Ask: did this email clearly expect a response?
- Distinctive: line 251
If yes, alert with: recipient, subject, date sent, and a ready-to-send follow-up draft.
- Very specific: line 295
Expiry recovery: If a stored historyId has expired, the account re-baselines and catches up with a one-day inbox+sent search.
- Very specific: line 300
Add or remove a watched account: edit the schedule's command string (--account flags).
- Very specific: line 302
Update to a newer shipped script: re-copy both files from the skill directory into schedules/<id>/, re-applying any custom edits.
- Very specific: line 304
Remove: delete the schedule.
- Very specific: line 305
If polls start failing on auth, try assistant oauth ping google.
- Distinctive: line 311
Every batch archive cross-references the safe-list.
- Distinctive: line 324
Filter dedup is automatic: If auto-filters already cover a category, new matching mail never reaches the inbox, so it never appears in a …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Inbox Management Skill
Companion to inbox-cleanup. Cleanup drains the backlog once. Management keeps the inbox clean on a schedule: archiving noise, flagging urgents, drafting replies, and catching stale follow-ups.
Runs as a script-mode schedule. Each fire polls Gmail deterministically. An empty poll (no new inbox mail and no due follow-up) exits without waking the assistant, so leftover Stage 0 mail is not re-judged every few hours. The assistant runs only when the poll attaches a digest.
Default posture: high recall on noise archiving, high precision on user interruption. Archive aggressively on known-safe patterns. Ping sparingly. Never auto-send a reply. When unsure, flag instead of archiving.
Trust Ladder
A single wrong archive of an important email kills trust. Earn autonomy in stages:
| Stage | Archive behavior | Draft behavior | Alerts |
| 0. Flag-only (default) | Nothing archived. All archive calls use --dry-run. Summary shows what would be archived for user review. | Drafts created in-thread, listed in summary. | Urgent scan active. |
| 1. Standard | Silent archive of known-safe categories only (calendar responses, no-reply, newsletters). Cold outreach still flagged. Batches > 1,000 ops auto-dry-run. | Drafts created in-thread, summarized per run. | Urgent scan active. |
| 2. Aggressive | Above + cold outreach archived by LLM judgment (default archive, flag only when relevant to user). All ops logged for reversal. | Same as Stage 1. | Urgent scan active. |
Graduation requires the user to explicitly say "graduate me" or equivalent. Do not infer from silence.
Never auto-send a draft. No toggle for this rule.
Setup (one-time, before enabling schedule)
0. Informed consent
Before anything else, explain what the user is opting into. Be direct:
"Here's what inbox management does: on a schedule you choose (e.g. every few hours on weekdays), I'll scan new mail and take action based on a trust level you control. Quiet polls (no new mail) do not use the model.
Stage 0 (the default starting point): I watch but don't touch. I'll tell you what I would archive among new mail, show you draft replies I wrote, and flag urgent items, but I won't move or delete anything. This lasts until you explicitly tell me to graduate.
Stage 1 (you opt in): I silently archive obvious noise (calendar responses, no-reply senders, newsletters). Everything else is still flagged for your review.
Stage 2 (you opt in): I also archive cold outreach using my judgment. Higher autonomy, slightly higher risk of a wrong call.
At every stage: I will never send an email on your behalf. I create drafts for you to review. You can pause or stop this at any time."
Wait for explicit confirmation before proceeding. If the user hesitates or asks clarifying questions, answer them. Don't rush past this step.
1. Stage
Default to Stage 0 (flag-only). When the user (directly or via a caller like
admin-copilot setup) has made an explicit, informed choice to start higher,
honor it: Stage 1 (silent archive of known-safe categories only) or Stage 2
(also cold outreach by judgment). Do not infer a higher stage from enthusiasm;
require an explicit choice made after the §0 consent framing for that stage. Store
the chosen stage via gmail-prefs.ts --action set-management-config --stage <0|1|2>.
2. Safe-list
Ask for senders/domains that may look like outreach but matter. Seed categories:
- Financial advisors, lawyers, accountants
- Active investors and VCs
- Customer domains
- Family/personal contacts
- Paid subscriptions (billing addresses)
Store via gmail-prefs.ts --action add-safelist --emails "...". The safe-list is shared with inbox-cleanup.
3. Interrupt threshold
Default urgency bar for alerts:
- Customer at risk (churn, renewal, escalation)
- Investor/board with time-sensitive ask
- Legal/compliance deadline
- Team member flagging urgency
- Explicit markers ("EOD today", "ASAP", "urgent") from real humans
Store threshold level via gmail-prefs.ts --action set-management-config --interrupt-threshold "default".
4. Schedule
Do not create an execute-mode job. Empty inbox fires must not start an agent turn. This skill only sets up new script-mode schedules. Do not convert or rewrite leftover execute-mode jobs.
- Create a recurring script-mode schedule:
- Name:
Inbox Management - Default cadence:
0 */3 * * 1-5(every 3 hours on weekdays) - Mode:
script - Script:
bun "$VELLUM_WORKSPACE_DIR/schedules/$__SCHEDULE_ID/poll.ts" timeout_ms: 900000(the poll's runtime includes the woken assistant turn)inference_profile: "cost-optimized"(applies to wake handoff turns)quiet: truereuse_conversation: false(each wake is a fresh conversation)
If assistant oauth status google shows more than one active connection, ask which inbox to watch and append one --account user@example.com flag per chosen mailbox.
By default the first poll baselines at now and does not escalate pre-existing mail (that is what stops the leftover Stage 0 pile from being re-billed). If the user wants the first sync to include recent mail, append --lookback <duration> (90m/4h/2d/1w).
- Copy the shipped poll script into the schedule's directory. Read the id from the create result:
mkdir -p "$VELLUM_WORKSPACE_DIR/schedules/<id>"
cp "$VELLUM_WORKSPACE_DIR/skills/inbox-management/scripts/poll.ts" \
"$VELLUM_WORKSPACE_DIR/skills/inbox-management/scripts/poll-lib.ts" \
"$VELLUM_WORKSPACE_DIR/schedules/<id>/"The schedule owns this copy. poll.ts self-provisions JSON state on first run (schedules/<id>/state/state.json).
- Verify with
assistant schedules execute <id>. The first run records{"ok":true,"new":0,...,"baselined":true}. Later empty polls record"new":0without waking the assistant.
Confirm cadence with the user. Overnight wakes (when the digest is non-empty): urgent-scan only.
5. Voice profile
Run messaging_analyze_style on the user's recent sent mail. Store the style profile in the Personal Knowledge Base for draft generation.
6. Draft preference
Confirm the user wants drafts generated. Some prefer flag-only forever.
Pipeline (only when the poll wakes you)
The poll attached a digest as untrusted external content. Run these steps only against message ids in that digest. Do not search in:inbox or in:sent for the whole mailbox. Do not re-judge mail that is not in the digest.
Each step is silent unless something qualifies for interrupt.
Step 0: Missed-run check & resume
Resume interrupted runs first. Before starting a new pipeline pass, check bun run scripts/gmail-runs.ts list. If the most recent run has status: "interrupted", resume it via bun run scripts/gmail-archive.ts archive --resume "<run-id>" before proceeding. Also run bun run scripts/gmail-runs.ts prune to clean up logs older than 30 days.
Read the last-run timestamp via gmail-prefs.ts --action get-management-config. If last-run is more than 2x the scheduled interval ago (e.g. >6 hours for a 3-hour schedule), notify the user:
- Slack: "📬 Inbox management hasn't run since [time]. I'm catching up now."
- No Slack: In-app notification.
Then update last-run to now via gmail-prefs.ts --action set-management-config --last-run "..." before continuing.
Step 1: Archive known noise (Stage 1+ only)
Restrict the usual archive queries to digest inbox ids (or --dry-run the matching ids). Queries for context:
subject:(Accepted: OR Declined: OR Tentative: OR "has accepted" OR "has declined") in:inbox
from:(noreply OR no-reply OR donotreply) in:inbox
subject:("newsletter" OR "weekly digest" OR "monthly digest") in:inboxCross-check the safe-list before each batch. Use gmail-prefs.ts --action list to load the safe-list. Remove any safe-listed sender from the batch before archiving.
Stage 0: Collect digest matches but do not archive. Include in summary with "would archive" label.
Step 2: Cold outreach judgment (Stage 2: archive / Stage 0-1: flag)
Scope the scan to the poll window, then intersect it with the digest:
bun run scripts/gmail-scan.ts outreach-scan --time-range 1d--time-range feeds Gmail's newer_than:, whose granularity is days, so 1d is the smallest window that covers the default 0 */3 * * 1-5 cadence. On a first sync, use the schedule's --lookback value rounded up to whole days. Append one --account user@example.com flag per mailbox when the schedule watches specific inboxes.
Then drop every result that is not in the digest: keep only senders that appear among the digest's inbox messages, and ignore the rest. The scan has no digest filter and its cache spans the whole window, so its results reach back past the mail this run is allowed to judge.
For each surviving sender, judge: is this person/offer potentially relevant to the user?
- Relevant → leave in inbox, include in summary
- Not relevant → archive (Stage 2) / flag as "would archive" (Stage 0-1)
Archive only the digest ids for that sender, as one comma-separated list:
bun run scripts/gmail-archive.ts --message-ids <id1>,<id2>,<id3>Never archive through the --cache-key + --sender-emails path here. That path replays the scan's cache and pulls the sender's older messages, which are outside the digest.
Step 3: Urgent scan (all stages)
Scan digest inbox messages (unread or not) for urgency signals:
| Signal | Why |
| "past due", "overdue", "final notice", "balance due" | Financial consequence |
| "will be suspended", "service interruption", "account closure" | Operational consequence |
| "signature required", "agreement", "DocuSign pending" from real sender | Legal action needed |
| .gov domain, "IRS", "state of", "department of" | Regulatory |
| Safe-list sender with deadline language | Known-important, urgent framing |
If any qualify, send one alert:
- Slack connected: Slack DM with
🚨 urgent email: count + per-item bullets (sender · subject · why) - Slack not connected: In-app notification via notification pipeline
- If nothing qualifies: skip silently. Never ping just to ping.
Overnight wakes: stop after this step.
Step 4: Draft replies (all stages, if enabled)
From digest inbox messages, filter out anything caught by Steps 1-2, calendar responses, receipts, no-reply senders, one-way FYIs.
For each remaining email from real humans expecting a response:
- Check whether the thread already has a draft (the Gmail thread view shows it). If it does, skip.
- Read the full thread before drafting so the reply answers what was actually asked.
- Decide: does this need a reply? If no, skip.
- Create draft in-thread via
gmail-email.ts draft --thread-id "..." --in-reply-to "...". Draft must be fully written in the user's voice (use Personal Knowledge Base style profile), substantive, no placeholders. Never auto-send.
After the pass, send one summary:
- Slack:
[N] drafts ready for review:+ per-item bullets - No Slack: In-app notification
Step 5: Follow-up scanner (all stages)
The poll script ages sent mail in JSON state and only includes a follow-up in the digest when it is 2 to 14 days old and the thread still has no later message. Look only at digest followups (and any digest sent items the script already judged due). Do not search in:sent newer_than:14d yourself.
For each of those threads:
Ask: did this email clearly expect a response? Only flag if 2+ signals are present:
- The email contains a direct question
- The email proposes a meeting, call, or next step
- The email requests a deliverable or decision
- The recipient is on the safe-list (known-important contact)
Do not flag: cold outreach the user sent, intros where silence is normal, thank-yous, FYIs, one-line acknowledgments, or threads where the user's last message was itself a reply to a no-reply sender.
If yes, alert with: recipient, subject, date sent, and a ready-to-send follow-up draft.
Stage 0 Summary
At Stage 0, send one summary for this digest only. This wake is a new conversation and only sees the current digest, so do not claim a full-day rollup. Skip the recap when the digest is a single obvious item.
📬 Inbox digest (flag-only mode):
Would archive ([N]):
• [category]: [count] ([sample sender/subject])
Cold outreach flagged ([N]):
• [sender] · [subject] · relevant: [y/n]
Drafts ready ([N]):
• [sender] · [subject]: [one-line summary]
Follow-ups suggested ([N]):
• [recipient] · [subject] · sent [date]User responds with:
- "approve X": graduates a category to auto-archive
- "safe-list X": permanently protects a sender/domain
- "graduate me": advances to Stage 1
Capture every correction: add protected senders to safe-list immediately.
How the poll works
Cursor state is JSON at schedules/<id>/state/state.json (same idea as the gmail skill's data/gmail-preferences.json). There is no SQLite database.
- Deterministic poll, LLM only on new inbox work or a due follow-up.
poll.tssyncs incrementally with Gmail's History API viaassistant oauth request --provider google. New INBOX mail is judged now. New SENT mail is stored as a follow-up candidate and does not wake the model by itself. Drafts, spam, and other non-inbox/non-sent additions are ignored. No model call when history is empty and no follow-up is due. - Aged follow-ups. A stored sent message becomes due when it is 2 to 14 days old and Gmail still shows that message as the latest in the thread. Younger sent mail stays in JSON with no model call. Older than 14 days is dropped.
- Baseline skips the leftover pile. The first run stores the current
historyIdand reportsnew: 0unless--lookbackwas set. Mail already sitting in the inbox is not attached to a digest. - Digest cap and pending overflow. The digest is capped at 50 items (due follow-ups first, then inbox). Overflow inbox ids stay in
pendingand are retried on the next poll. The History API will not resend them afterhistoryIdadvances, so pending is the retry queue. Overflow is never marked reported. - Commit after a successful wake. The script writes pending + watermark before wake. After a successful wake it marks only the delivered ids reported. A failed wake retries the same pending ids.
- Fenced escalation. New work wakes a fresh conversation. The digest goes through
--external-content(untrusted data). The pipeline hint is the trusted framing. The prompt is this digest only, not a day-wide journal. - Expiry recovery. If a stored
historyIdhas expired, the account re-baselines and catches up with a one-day inbox+sent search; the reported-id ledger absorbs the overlap.
Managing it
- Change cadence: update the schedule's expression.
- Add or remove a watched account: edit the schedule's command string (
--accountflags). - Customize behavior: edit the schedule's copy of
poll.ts/poll-lib.ts. - Update to a newer shipped script: re-copy both files from the skill directory into
schedules/<id>/, re-applying any custom edits. - Pause / resume: disable / enable the schedule.
- Remove: delete the schedule; optionally clean up its
schedules/<id>/directory. - If polls start failing on auth, try
assistant oauth ping google; if that fails, load thevellum-oauth-integrationsskill to reconnect.
Safe-List Rules
- Every batch archive cross-references the safe-list. No exceptions.
- Any user correction ("don't archive this") auto-adds to safe-list permanently.
- Supports exact sender (
name@domain) and domain-level (example.com) matches. - Safe-list entries never expire.
- Shared with
inbox-cleanup. Both skills read/write the same store viagmail-prefs.ts.
Integration
- Run
inbox-cleanupfirst. Management assumes the backlog is drained. - Auto-filters bridge the gap. Cleanup Phase 6 runs
gmail-auto-filters.ts generateto propose Gmail filters for safe categories (no-reply, calendar, sketchy TLDs, confirmed newsletters). The user confirms before any filter is created. These filters prevent re-accumulation immediately. Management Step 1 handles only new digest mail that slips through. - Shared safe-list and blocklist via
gmail-prefs.ts. - Filter dedup is automatic. If auto-filters already cover a category, new matching mail never reaches the inbox, so it never appears in a digest.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

