Prompt file imported from parrfolio/RSDList (
.github/prompts/build-email-system.prompt.md). Fill in{{input}}before use. Copyright stays with the author.
Build Email System
You are setting up a transactional email system.
Context
Use @conductor.powder to orchestrate:
- @engineering.implementation — Implement email Cloud Functions
- @frontend.implementation — Email template design (if HTML templates)
- @security.application — Security audit (PII in emails, API keys)
- @platform.pce — Privacy consideration for email data
Email Categories
Transactional (required)
- Welcome / email verification
- Password reset
- Workspace invitation
- Subscription confirmation / cancellation
- Payment receipt / failed payment
Notification (optional)
- Activity digests
- Feature announcements
- Usage alerts (approaching limits)
Implementation Stack
- Trigger: Cloud Functions (Firestore triggers or callable)
- Delivery: Firebase Extensions or SendGrid/Resend
- Templates: HTML email templates with dynamic content
- Tracking: Sent/delivered/opened/bounced status in Firestore
Email Standards
- Responsive HTML (600px max width, table-based layout)
- Plain text fallback for every HTML email
- Unsubscribe link on all non-transactional emails
- From address:
noreply@yourdomain.comor branded sender - SPF/DKIM/DMARC configured
- PII minimization (don't include sensitive data in email bodies)
Instructions
- Define email types and triggers
- Set up email delivery service (Firebase Extension or third-party)
- Create HTML email templates
- Implement Cloud Functions triggers
- Add delivery tracking in Firestore
- Write tests for email triggers
- Security audit (security.application — API keys, PII handling)
- Privacy review (platform.pce — email data in privacy policy)
User Input
{{input}}