email-senderlisted
Install: claude install-skill themarmack/research-bot
# email-sender
The post-write distribution hook. Every vault write worth surfacing beyond the local Obsidian copy goes through here. Scheduled digests fire-and-forget to the distribution list; ad-hoc research notes prompt the user `[y/n]` before sending. The vault note remains the canonical record; email is a delivery channel, not a replacement.
## When to use
- Immediately after `vault-writer.write_digest()` succeeds — invoked from `scheduled-agent-runner` step 11.
- Immediately after `vault-writer.write_research()` succeeds in any Category 1 researcher — researcher invokes `prompt_then_send`.
- User explicitly asks: "email this", "send the latest weekly digest to my distribution list", "show me my distribution list".
## When NOT to use
- Writes to `facts/`, `events/`, `decisions/`, `insights/`, `people/`, `projects/`, `_inbox/` — durable knowledge, not distribution targets. (`auto_send` no-ops on these surfaces.)
- Non-interactive context AND surface is `research` — `prompt_then_send` requires a user; degrade gracefully by skipping.
- Mid-stream (vault write hasn't completed yet — wait for the write).
## Prerequisites
Two pieces of config:
1. **Gmail credentials** at `~/.config/research-bot/env`:
```
GMAIL_SEND_ADDRESS=you@gmail.com
GMAIL_APP_PASSWORD=xxxxxxxxxxxxxxxx
```
Requires 2-Step Verification enabled on the account. Generate at https://myaccount.google.com/apppasswords ("Mail" → "Other / research-bot"). Use the helper script: `scripts/set-gmai