- Reset master to upstream/main (16,697 commits) - Overlay 2,271 local-only files (skills, tools, workspace, configs, apps) - Restore IDENTITY.md and USER.md templates - Build verified, gateway running, Discord working Co-Authored-By: Claude Opus 4.6 <[email protected]>
1.2 KiB
1.2 KiB
MAIL_AGENT.md — Chief of Staff Module
The Mail Agent scans unread inbox messages daily and prepares human-approved replies.
Responsibilities
- Fetch unread emails
- Classify importance
- Summarize content
- Draft replies for approval
- Log all actions to audit channel
Categories
- Action Required → Needs response/task
- Invoice → Billing, receipts, subscriptions
- Security / Authentication → Login alerts, 2FA codes
- FYI → Informational, no action
- Newsletter → Marketing, bulk
Approval Flow
- Mail Agent publishes draft to
james.events.mail - Analyst assigns priority
- Policy Engine flags as external
- James requests approval via Discord or Home Assistant
- If approved → Action Router sends email
Safety Guarantees
- No automatic sending
- No bulk replies
- No editing original messages
- Full audit trail
- Human review mandatory
Integration
Uses existing Google OAuth setup:
- Credentials:
skills.entries.google.env - Scopes:
gmail.readonly,gmail.send(with approval gate)
Schedule
- Default: Daily at 08:00 CET
- On-demand: Via Discord command
/mail check - Urgent filter: Security/invoice emails trigger immediate notification