ingest-maillisted
Install: claude install-skill CodesWhat/careerrat
# ingest-mail
> **Runs under AGENTS.md.** These contracts bind without being restated here: Privacy Invariant (`current_base` never outbound), Honesty Firewall, Placeholder/Bracket Ban, Gate Write-back, Domain-Neutral Rule, Browser Automation Contract, Activity Pulse logging, Tracker verify+snapshot, and Sent-Clears-Draft. Inline reminders at point-of-use are intentional; standalone restatements point back to the relevant AGENTS.md section.
## STEP 0 — SOURCE + OPT-IN GATE
Confirm the user explicitly requested this sync. Never run this skill unprompted
or on a schedule.
Determine the requested mail source:
- **Apple Mail** — default when the user asks for "mail" on macOS and does not name Gmail/Outlook.
- **Gmail / Outlook webmail** — use only when the user asks for Gmail, Outlook, webmail, or the machine is not macOS and the user wants a browser-backed mail sync.
Run `uname`.
- If using Apple Mail and the output is not `Darwin`, stop the Apple Mail path and offer either Gmail/Outlook webmail (if they want to opt into `mail_access`) or pasted email capture via `email-comms`.
- If using Gmail/Outlook webmail, continue to STEP 1W below.
## STEP 1 — MAIL PROCESS PRE-FLIGHT
Run:
```bash
osascript -e 'tell application "System Events" to (name of processes) contains "Mail"'
```
If the result is `false`, tell the user to open Apple Mail and re-run. Do not
attempt to launch Mail automatically.
If the first `osascript` call fails with a permission error ("Terminal wants to